/* Global Variables & Reset */
:root {
    /* Colors - Emerald Palette */
    --primary-color: #065f46;
    /* Deep Emerald */
    --primary-light: #047857;
    /* Lighter Emerald for hover */
    --accent-color: #10b981;
    /* Vibrant Green */
    --accent-light: #d1fae5;
    /* Light Green Background */
    --bg-color: #ffffff;
    --bg-secondary: #f9fafb;
    /* Light Gray for sections */
    --text-dark: #111827;
    /* Heading text */
    --text-medium: #4b5563;
    /* Body text */
    --text-light: #9ca3af;
    --white: #ffffff;
    --footer-bg: #1f2937;

    /* Typography */
    --font-family: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 5rem 0;

    /* Layout */
    --max-width: 1200px;
    --border-radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-medium);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

/* Helper Classes */
.text-center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
}

.highlight-alt {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 95, 70, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--accent-light);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f3f4f6;
}

.btn-outline-white {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-cta {
    display: none;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: 0.4s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: block;
    }
}


/* Hero Section */
.hero {
    padding: 4rem 0 6rem 0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--text-medium);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars {
    display: flex;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid var(--white);
    background-size: cover;
    margin-left: -12px;
}

.avatar:first-child {
    margin-left: 0;
}

.trust-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
}

/* High Fidelity Phone Mockup (CSS Only) */
.hero-image {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    /* Approx mobile width */
    height: 600px;
    background: var(--white);
    border-radius: 40px;
    border: 12px solid #1f2937;
    /* Screen Bezel */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 0 0 2px #d1d5db;
    /* Inner subtle bezel */
    position: relative;
    overflow: hidden;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #1f2937;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    height: 100%;
    width: 100%;
    background-color: #f3f4f6;
    display: flex;
    flex-direction: column;
    padding-top: 35px;
    font-family: var(--font-family);
}

/* App UI Simulation Styles */
.app-header {
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-greeting {
    font-weight: 600;
    color: var(--text-dark);
}

.app-header i {
    color: var(--text-medium);
}

.app-balance-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    margin: 15px 20px;
    padding: 20px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 10px 15px -3px rgba(6, 95, 70, 0.3);
}

.app-balance-card p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.app-balance-card h3 {
    font-size: 1.8rem;
    margin: 5px 0 15px 0;
    color: var(--white);
}

.app-actions {
    display: flex;
    justify-content: space-between;
}

.app-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    cursor: pointer;
}

.app-action-btn i {
    background: rgba(255, 255, 255, 0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1rem;
}

.app-section-title {
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.app-transaction {
    background: white;
    margin: 0 20px 10px 20px;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    box-shadow: var(--shadow-sm);
}

.trans-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.icon-netflix {
    background: #E50914;
}

.icon-upwork {
    background: #14a800;
}

.icon-spotify {
    background: #1DB954;
}

.trans-info {
    flex-grow: 1;
}

.trans-info span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
}

.trans-info small {
    color: var(--text-light);
    font-size: 0.7rem;
}

.trans-amount {
    font-weight: 700;
}

.trans-amount.positive {
    color: var(--accent-color);
}

.trans-amount.negative {
    color: var(--text-dark);
}

/* Chart inside phone */
.app-chart {
    flex-grow: 1;
    margin: 20px 20px 0 20px;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 20px;
}

.chart-bar {
    width: 12px;
    background: #e5e7eb;
    border-radius: 10px;
}

.chart-bar.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-light);
}


/* Partners Strip */
.partners-strip {
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-container {
    text-align: center;
}

.partners-container p {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: #9ca3af;
    /* Grayscale logos to not distract */
    flex-wrap: wrap;
}

/* Features */
.features {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
    /* OPay style */
}

.feature-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.5rem auto;
    color: var(--primary-color);
}

/* Specific Feature Icon BGs */
.icon-bg-1 {
    background-color: #ecfdf5;
    color: #059669;
}

.icon-bg-2 {
    background-color: #eff6ff;
    color: #2563eb;
}

.icon-bg-3 {
    background-color: #fff7ed;
    color: #ea580c;
}

.icon-bg-4 {
    background-color: #fdf4ff;
    color: #c026d3;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Why Us */
.why-us {
    background-color: var(--bg-secondary);
}

.why-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-us-image {
    position: relative;
    height: 400px;
    background-color: #d1fae5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.security-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 300px;
}

.security-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.benefits-list {
    margin-top: 2rem;
}

.benefits-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.benefits-list li i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 3px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.cta-content .hero-buttons {
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #e5e7eb;
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    color: var(--white);
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .trust-badge {
        justify-content: center;
    }

    .why-us-container {
        grid-template-columns: 1fr;
    }

    .why-us-image {
        margin-bottom: 2rem;
        order: -1;
    }

    /* Image on top mobile */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
    }
}