:root {
    --primary: #0F9D58;
    --primary-dark: #0b7a44;
    --secondary: #12355B;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font: 'Inter', sans-serif;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray-800); background: var(--white); line-height: 1.6; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: 50px;
    font-weight: 600; font-size: 16px;
    transition: all 0.3s ease; cursor: pointer;
    border: none; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 14px rgba(15,157,88,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--gray-700); border: 2px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-outline-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }

.btn-lg { padding: 16px 36px; font-size: 18px; }

/* ===== DOWNLOAD BUTTON — Consistent Gray with Green Hover ===== */
.btn-download {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600; font-size: 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.btn-download i { font-size: 18px; }
.btn-download:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15,157,88,0.3);
}
.btn-download.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-download.btn-lg i { font-size: 20px; }

/* ===== FOOTER DOWNLOAD BUTTON ===== */
.footer-download .btn-download {
    padding: 10px 20px;
    font-size: 14px;
}
.footer-download .btn-download i { font-size: 16px; }

/* ===== COMING SOON TOAST ===== */
.coming-soon-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%); z-index: 9999;
    background: var(--gray-900); color: var(--white);
    padding: 16px 28px; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease;
}
.coming-soon-toast .toast-content { display: flex; align-items: center; gap: 8px; }
.coming-soon-toast .toast-content i { color: var(--primary); font-size: 20px; }
.coming-soon-toast.fade-out {
    opacity: 0; transform: translateX(-50%) translateY(20px);
    transition: all 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-block; font-size: 14px; font-weight: 600;
    color: var(--primary); text-transform: uppercase; letter-spacing: 0.05em;
    background: rgba(15,157,88,0.1); padding: 4px 16px; border-radius: 50px;
}
section { padding: 80px 0; }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(30px, 3.5vw, 42px); font-weight: 800; line-height: 1.2; }
h2 span { color: var(--primary); }

/* ===== HEADER ===== */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200); transition: all 0.3s ease;
}
.navbar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; color: var(--secondary); text-decoration: none; }
.logo img { height: 36px; }
.logo span { color: var(--secondary); }
.logo span::after { content: "Smart"; color: var(--primary); }

.nav-menu { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-menu li a { font-weight: 500; font-size: 15px; color: var(--gray-600); text-decoration: none; transition: all 0.2s ease; }
.nav-menu li a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 8px 20px; font-size: 14px; }
.nav-cta .btn-primary { color: #ffffff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 28px; height: 2.5px; background: var(--gray-800); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== HERO ===== */
.hero { padding-top: 120px; padding-bottom: 60px; background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content { display: flex; flex-direction: column; gap: 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(15,157,88,0.1); color: var(--primary); padding: 6px 16px; border-radius: 50px; font-size: 14px; font-weight: 600; width: fit-content; }
.hero h1 span { color: var(--primary); }
.hero-subtitle { font-size: 18px; color: var(--gray-500); line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-availability { font-size: 14px; color: var(--gray-400); }
.hero-availability a { color: var(--primary); font-weight: 600; text-decoration: none; }
.hero-availability a:hover { text-decoration: underline; }

.hero-title-gray {
    color: var(--gray-700) !important;
}

.hero-mockup { border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); overflow: hidden; background: var(--white); border: 1px solid var(--gray-200); max-width: 560px; width: 100%; position: relative; }
.hero-mockup img { width: 100%; display: block; }
.mockup-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); }
.mockup-stats { display: flex; gap: 32px; color: var(--white); }
.mockup-stats .stat { display: flex; flex-direction: column; font-size: 14px; opacity: 0.9; }
.mockup-stats .stat span { font-size: 24px; font-weight: 800; opacity: 1; }

/* ===== FEATURES ===== */
.features { background: var(--white); text-align: center; }
.features .section-label { display: inline-block; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; text-align: left; }
.feature-card { background: var(--gray-50); padding: 24px; border-radius: 16px; border: 1px solid var(--gray-200); transition: all 0.3s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.05); border-color: var(--primary); }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(15,157,88,0.1); color: var(--primary); font-size: 20px; margin-bottom: 12px; }
.feature-card h4 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--gray-500); font-size: 14px; line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--gray-50); text-align: center; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0; }
.step { background: var(--white); padding: 24px; border-radius: 16px; text-align: center; transition: all 0.3s ease; }
.step:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.05); }
.step-number { font-size: 48px; font-weight: 900; color: var(--primary); opacity: 0.3; margin-bottom: 8px; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--gray-500); font-size: 15px; }
.steps-cta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ===== MOBILE APP ===== */
.mobile-app { background: var(--secondary); color: var(--white); padding: 80px 0; }
.mobile-app .section-label { background: rgba(255,255,255,0.15); color: var(--white); }
.mobile-app h2 { color: var(--white); }
.mobile-app h2 span { color: var(--primary); }
.mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.mobile-content { display: flex; flex-direction: column; gap: 20px; }
.mobile-content p { color: rgba(255,255,255,0.8); font-size: 18px; }
.mobile-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; list-style: none; padding: 0; }
.mobile-features li { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.9); font-size: 15px; }
.mobile-features li i { color: var(--primary); }
.mobile-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.mobile-note { font-size: 14px; opacity: 0.6; margin-top: 4px; }
.mobile-visual { display: flex; justify-content: center; align-items: center; }
.phone-mockup { position: relative; max-width: 320px; width: 100%; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); overflow: hidden; background: var(--gray-900); }
.phone-mockup img { width: 100%; display: block; }
.phone-screen { position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 16px; background: rgba(0,0,0,0.6); backdrop-filter: blur(10px); border-radius: 16px; color: var(--white); }
.phone-stats { display: flex; justify-content: space-between; font-size: 13px; }

/* ===== WEB APP ===== */
.webapp { background: var(--gray-50); padding: 80px 0; }
.webapp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.webapp-content { display: flex; flex-direction: column; gap: 20px; }
.webapp-content p { font-size: 18px; color: var(--gray-500); }
.webapp-steps { display: flex; flex-direction: column; gap: 12px; }
.webapp-step { display: flex; align-items: center; gap: 12px; }
.webapp-step span { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--white); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.webapp-step p { font-size: 16px; color: var(--gray-700); margin: 0; }
.webapp-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.webapp-icon { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--primary); color: var(--white); font-size: 48px; }
.webapp-badge { position: absolute; bottom: -8px; right: -8px; font-size: 12px; font-weight: 600; background: var(--secondary); color: var(--white); padding: 4px 12px; border-radius: 50px; }
.webapp-devices { display: flex; gap: 32px; font-size: 32px; color: var(--gray-400); }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, var(--secondary), #1a2a4a); padding: 80px 0; }
.cta-card { background: rgba(255,255,255,0.05); backdrop-filter: blur(10px); border-radius: 28px; padding: 48px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.cta-card h2 { color: var(--white); }
.cta-card p { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 560px; margin: 0 auto 24px; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cta-note { margin-top: 16px; font-size: 14px; opacity: 0.6; color: rgba(255,255,255,0.6); }
.cta-note a { color: var(--primary); text-decoration: none; font-weight: 600; }
.cta-note a:hover { text-decoration: underline; }

/* ===== FAQ ===== */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--white); border-radius: 12px; border: 1px solid var(--gray-200); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 16px 24px; background: none; border: none; font-size: 17px; font-weight: 600; color: var(--gray-800); cursor: pointer; font-family: var(--font); text-align: left; }
.faq-question:hover { background: var(--gray-50); }
.faq-question i { transition: all 0.3s ease; color: var(--gray-400); }
.faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s ease; }
.faq-answer p { padding: 0 24px 24px; color: var(--gray-500); font-size: 16px; line-height: 1.7; }
.faq-question[aria-expanded="true"] + .faq-answer { max-height: 300px; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: rgba(255,255,255,0.8); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); text-decoration: none; }
.footer-brand p { font-size: 14px; opacity: 0.6; margin-top: 8px; }
.footer-download { margin-top: 16px; }
.footer-links h4 { color: var(--white); font-size: 16px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; padding: 4px 0; transition: all 0.2s ease; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; text-align: center; font-size: 14px; color: rgba(255,255,255,0.4); }

/* ===== LANGUAGE SWITCHER ===== */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 8px;
}
.lang-btn {
    background: none;
    border: 1.5px solid var(--gray-200);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--gray-500);
    font-family: var(--font);
    transition: all 0.2s ease;
}
.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.lang-btn.lang-sw {
    /* Swahili button */
}
.lang-btn.lang-en {
    /* English button */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav-lang {
        margin: 8px 0;
        justify-content: center;
        width: 100%;
    }
    .lang-btn {
        padding: 6px 14px;
        font-size: 14px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-grid, .webapp-grid, .mobile-grid { grid-template-columns: 1fr; }
    .hero-content { align-items: center; text-align: center; }
    .hero-badge { align-self: center; }
    .hero-buttons { justify-content: center; }
    .hero-mockup { max-width: 100%; }
    .mockup-stats { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .mockup-stats .stat { font-size: 12px; text-align: center; }
    .mockup-stats .stat span { font-size: 18px; }

    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
        height: 100vh; background: var(--white); flex-direction: column;
        padding: 72px 24px 24px; gap: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }
    .nav-menu.active { right: 0; }
    .nav-cta { flex-direction: column; width: 100%; margin-top: 16px; }
    .nav-cta .btn { width: 100%; justify-content: center; }
    .hamburger { display: flex; }

    .hero { padding-top: 100px; }
    .cta-card { padding: 24px; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
    .phone-mockup { max-width: 240px; }
    .mobile-features { grid-template-columns: 1fr; }
    .mobile-buttons { flex-direction: column; }
    .mobile-buttons .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    .section-subtitle { font-size: 16px; }
    .coming-soon-toast { max-width: 90%; padding: 12px 20px; font-size: 14px; }
}

/* ===== HERO IMAGE — NO BORDER RADIUS, FLOAT EFFECT ===== */
.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

.hero-float-image {
    width: 100%;
    height: auto;
    display: block;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-16px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== MOBILE APP IMAGE — NO BORDER, STATS WITH BORDER ===== */
.phone-mockup {
    position: relative;
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.phone-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
}

.phone-screen {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.phone-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
}
.phone-stats span {
    opacity: 0.95;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-float-image {
        max-width: 90%;
        margin: 0 auto;
    }
    .phone-mockup {
        max-width: 240px;
    }
    .phone-screen {
        width: 75%;
        padding: 10px 14px;
        bottom: 14px;
    }
    .phone-stats {
        font-size: 11px;
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        max-width: 200px;
    }
    .phone-screen {
        width: 70%;
        padding: 8px 12px;
        bottom: 10px;
    }
    .phone-stats {
        font-size: 10px;
    }
}

/* ===== REMOVE OLD HERO MOCKUP STYLES ===== */
.hero-mockup {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
    max-width: 100% !important;
}

.mockup-overlay {
    display: none !important;
}