/* static/css/style.css */
/* ============================================================
   AgriDoctor.AI — Main Stylesheet
   Dark UI. AgriDoctor green (#2ECC40) primary, gold (#FFD700)
   secondary. Matches the AgriDoctor.AI mobile app palette.
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Colors */
    --color-bg: #0A0F0F;
    --color-bg-secondary: #0A1414;
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.06);
    --color-primary: #2ECC40;
    --color-primary-rgb: 46, 204, 64;
    --color-secondary: #FFD700;
    --color-secondary-rgb: 255, 215, 0;
    --color-accent-amber: #FFA500;
    --color-flag-red: #DE3831;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #B0B0B0;
    --color-text-muted: #707070;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-glow: rgba(46, 204, 64, 0.18);
    --color-error: #FF4444;
    --color-success: #2ECC40;

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

    /* Spacing */
    /* Vertical section rhythm. --section-padding is DERIVED from
       --section-pad-y, so overriding that one token (see responsive.css)
       retunes every section at once. --section-pad-y-tight is for the
       edges where two sections meet and 100px+100px would otherwise
       stack into dead space. */
    --section-pad-y: 100px;
    --section-pad-y-tight: 50px;
    --section-padding: var(--section-pad-y) 0;
    --container-max: 1200px;
    --container-padding: 0 24px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    --glass-radius: 16px;
    --glow-primary: 0 0 16px rgba(46, 204, 64, 0.10);
    --glow-secondary: 0 0 16px rgba(255, 215, 0, 0.10);
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Particles Canvas --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
    position: relative;
    z-index: 1;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

.text-gradient {
    /* Flat gold. The background-clip:text + transparent-fill technique was
       removed on purpose: if the clip ever fails to apply, the headline
       renders invisible. A solid colour has no such failure mode. The class
       name is kept so no template has to change. */
    color: var(--color-secondary);
}

.text-center { text-align: center; }

/* --- Glass Card --- */
.glass-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: var(--glass-radius);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    transition: all var(--transition-medium);
}

.glass-card:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-border-glow);
    box-shadow: var(--glow-primary);
    transform: translateY(-2px);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    text-decoration: none;
    font-family: var(--font-primary);
}

.btn-primary {
    /* Gold -> amber. No green in the ramp. Label stays --color-bg (dark):
       white on gold fails contrast badly. */
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent-amber));
    color: var(--color-bg);
}

.btn-primary:hover {
    box-shadow: var(--glow-secondary);
    transform: translateY(-1px);
    color: var(--color-bg);
}

.btn-secondary {
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-secondary:hover {
    background: rgba(46, 204, 64, 0.08);
    box-shadow: var(--glow-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: inline-flex;
}

/* --- Section Styles --- */
section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(46, 204, 64, 0.08);
    border: 1px solid rgba(46, 204, 64, 0.2);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* "Coming Soon" launch badge -- Uganda flag red. Deliberately NOT
   --color-error: an error state and a launch state must never share a
   token. Modifier-scoped, so "Our Mission" and "What AgriDoctor.AI Does"
   keep the green .section-badge base. */
.section-badge--soon {
    background: rgba(222, 56, 49, 0.08);
    border-color: rgba(222, 56, 49, 0.2);
    color: var(--color-flag-red);
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-medium);
    background: rgba(6, 13, 13, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom: 1px solid var(--color-border-glow);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--color-primary);
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.navbar-links a {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-medium);
}

.navbar-links a:hover {
    color: var(--color-text-primary);
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-cta {
    display: inline-flex;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-medium);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 100px 24px 40px;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu.active {
    display: flex;
}

.mobile-links {
    list-style: none;
    text-align: center;
}

.mobile-links li {
    margin-bottom: 20px;
}

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    /* Was min-height:100vh — that forced a full viewport regardless of
       content and left a large dead gap under the CTAs. The hero now sizes
       to its content. */
    display: flex;
    align-items: center;
    padding-top: 110px;   /* clears the fixed navbar */
    padding-bottom: 32px; /* overrides section{padding:100px 0} */
    overflow: hidden;
}

/* Pull the features section up close under the hero */
.features {
    padding-top: 32px;
}

.hero-container {
    display: grid;
    /* Text column gets the larger share: the headline needs ~600px to sit on
       two lines, and .hero-photo is capped at 520px anyway. */
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    background: rgba(222, 56, 49, 0.1);
    border: 1px solid rgba(222, 56, 49, 0.25);
    color: var(--color-flag-red);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-headline {
    /* Sized to fit the 546px hero text column on two clean lines.
       Measured against a wide fallback font (Verdana/DejaVu): at 2.1rem the
       longest line is ~592px inside a ~628px column. Do not raise this cap or
       the headline wraps to a third line. */
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.headline-line {
    display: block;
}

.hero-subheadline {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    max-width: 620px;
}

/* --- What is AgriDoctor.AI ------------------------------------- */
.about-intro {
    padding: var(--section-padding);
}

.about-intro-lead {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    text-align: center;
}

.about-intro-pills {
    list-style: none;
    padding: 0;
    margin: 36px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
}

.about-intro-pills li {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border-glow);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Hero photo — real field imagery instead of a device mockup */
.hero-photo {
    position: relative;
    z-index: 2;
    margin: 0;
    max-width: 520px;
    width: 100%;
    border-radius: var(--glass-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-photo-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Subtle bottom fade so the photo settles into the dark page */
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 15, 15, 0) 60%, rgba(10, 15, 15, 0.45) 100%);
}

.phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 270px;
    height: 550px;
    background: var(--glass-bg);
    border: 2px solid var(--color-border-glow);
    border-radius: 36px;
    padding: 12px;
    position: relative;
    box-shadow: var(--glow-primary);
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: var(--color-bg);
    border-radius: 0 0 20px 20px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(46, 204, 64, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-placeholder {
    text-align: center;
    color: var(--color-primary);
}

.phone-placeholder svg {
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 64, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* --- Feature grid: real app screenshots, 3 across ----------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--glass-radius);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-glow);
}

.feature-card-shot {
    margin: 0;
    padding: 22px 22px 0;
    display: flex;
    justify-content: center;
    background: linear-gradient(180deg, rgba(46, 204, 64, 0.05), transparent);
}

/* Tall phone screens: cap the height so all six cards line up */
.feature-shot-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.feature-card-body {
    padding: 24px 22px 26px;
}

.feature-card-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(46, 204, 64, 0.10);
    border: 1px solid var(--color-border-glow);
    color: var(--color-primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feature-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.feature-card-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}





.feature-card {
    padding: 32px;
    text-align: center;
}

.feature-icon {
    margin-bottom: 20px;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(46, 204, 64, 0.08);
    border: 1px solid var(--color-border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.5rem;
}

.icon-emoji {
    font-size: 1.75rem;
}

.feature-title {
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.feature-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: 600;
}

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screenshots-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 -12px;
}

.carousel-track {
    display: flex;
    transition: transform var(--transition-slow);
    gap: 20px;
    padding: 0 12px;
}

.carousel-slide {
    min-width: 280px;
    flex-shrink: 0;
}

.screenshot-frame {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--glass-radius);
}

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: var(--glass-radius);
}

.screenshot-frame:hover .screenshot-overlay {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: var(--glass-border);
    color: var(--color-text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-text-muted);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 8px rgba(46, 204, 64, 0.5);
}

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ai-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.ai-orb {
    position: relative;
    width: 200px;
    height: 200px;
}

.ai-orb-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(46, 204, 64, 0.05);
    border: 2px solid var(--color-border-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: orbFloat 4s ease-in-out infinite;
}

.ai-pulse-ring {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    border-radius: 50%;
    border: 1px solid rgba(46, 204, 64, 0.2);
    animation: pulseRing 3s ease-out infinite;
}

.ai-pulse-delay {
    animation-delay: 1.5s;
}

.ai-stats {
    display: flex;
    gap: 32px;
    margin: 32px 0;
}

.ai-stat {
    text-align: center;
}

.ai-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.ai-stat-unit {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
}

.ai-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================================
   MARKETPLACE
   ============================================================ */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    overflow: hidden;
}

.product-image {
    position: relative;
    height: 180px;
    background: rgba(46, 204, 64, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-placeholder {
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-badge.in-stock {
    background: rgba(46, 204, 64, 0.15);
    color: var(--color-success);
}

.product-badge.out-of-stock {
    background: rgba(255, 68, 68, 0.15);
    color: var(--color-error);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    font-weight: 600;
}

.product-name {
    margin: 4px 0 8px;
}

.product-description {
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.marketplace-more {
    margin-top: 20px;
}

/* ============================================================
   BUILT FOR AFRICA
   ============================================================ */
.africa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.africa-card {
    padding: 32px;
    text-align: center;
}

.africa-card h3 {
    margin-bottom: 8px;
}

.africa-card p {
    font-size: 0.9375rem;
}

.africa-map-preview {
    margin-top: 40px;
    position: relative;
}

.map-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 204, 64, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map-label {
    margin-top: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    transition: transform var(--transition-slow);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 20px;
}

.testimonial-card {
    padding: 32px;
    position: relative;
}

.testimonial-quote-icon {
    position: absolute;
    top: 16px;
    left: 24px;
}

.testimonial-quote {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 40px 0 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(46, 204, 64, 0.1);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.author-name {
    display: block;
    color: var(--color-text-primary);
}

.author-role {
    display: block;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.author-location {
    display: block;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.testimonials-carousel .carousel-btn {
    top: 50%;
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.partner-card {
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.partner-logo {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
.download-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 32px 0;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 12px;
    color: var(--color-text-primary);
    transition: all var(--transition-medium);
    max-width: 220px;
}

.btn-store:hover {
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
    color: var(--color-text-primary);
}

.store-text {
    display: flex;
    flex-direction: column;
}

.store-text small {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
}

.store-text strong {
    font-size: 1.125rem;
}

.qr-code {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-placeholder {
    flex-shrink: 0;
}

.qr-code span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.download-visual {
    display: flex;
    justify-content: center;
}

.dual-phone-mockup {
    position: relative;
}

.phone-left,
.phone-right {
    width: 180px;
    height: 370px;
    background: var(--glass-bg);
    border: 2px solid var(--color-border-glow);
    border-radius: 28px;
}

.phone-left {
    transform: rotate(-5deg);
}

.phone-right {
    transform: rotate(5deg);
    margin-left: -40px;
    margin-top: -20px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    /* This rule did not exist. The section fell through to the base
       `section { padding: var(--section-padding) }` and picked up a full
       100px top, which stacked with .waitlist's 100px bottom into ~200px
       of dead space. All four sides set explicitly. */
    padding: var(--section-pad-y-tight) 0 var(--section-pad-y) 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
    /* Capped so the form does not sprawl across the full 1200px container.
       980px -> info card ~376px, form ~564px. */
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-card {
    padding: 32px;
}

.contact-info-card h3 {
    margin-bottom: 20px;
}

.contact-details {
    list-style: none;
    margin-bottom: 24px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
}

.contact-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: rgba(46, 204, 64, 0.1);
    color: var(--color-primary);
}

/* Form */
.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 64, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: none;
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--color-error);
}

.form-group.error .form-error {
    display: block;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(46, 204, 64, 0.08);
    border: 1px solid rgba(46, 204, 64, 0.2);
    border-radius: 8px;
    color: var(--color-success);
    margin-top: 16px;
}

.form-error-global {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(255, 68, 68, 0.08);
    border: 1px solid rgba(255, 68, 68, 0.2);
    border-radius: 8px;
    color: var(--color-error);
    margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 80px 0 32px;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-tagline {
    margin: 16px 0 20px;
    font-size: 0.9375rem;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social .social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.copyright {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

.footer-made-in {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
}

.legal-content {
    padding: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 8px;
}

.last-updated {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

.legal-content section {
    padding: 0;
    margin-bottom: 32px;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.error-content {
    padding: 60px 40px;
    text-align: center;
}

.error-icon {
    margin-bottom: 24px;
}

.error-content h1 {
    margin-bottom: 12px;
}

.error-subtitle {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.error-description {
    font-size: 1rem;
    color: var(--color-secondary);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
/* ============================================================
   AI DEMO
   ============================================================ */
.ai-demo {
    margin-top: 32px;
    padding: 28px;
}

.ai-demo-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--color-text-primary);
}

.ai-demo-subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.ai-demo-upload-area {
    position: relative;
    margin-bottom: 16px;
}

.ai-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ai-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 2px dashed rgba(46, 204, 64, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-medium);
    background: rgba(46, 204, 64, 0.02);
    gap: 8px;
}

.ai-upload-label:hover {
    border-color: var(--color-primary);
    background: rgba(46, 204, 64, 0.05);
    box-shadow: var(--glow-primary);
}

.ai-upload-icon {
    opacity: 0.7;
}

.ai-upload-text {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.ai-upload-hint {
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.ai-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border-glow);
}

.ai-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.ai-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.ai-preview-remove:hover {
    background: rgba(255, 68, 68, 0.8);
}

.ai-demo-crop-select {
    margin-bottom: 16px;
}

.ai-demo-crop-select label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.ai-demo-crop-select select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%232ECC40' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.ai-demo-crop-select select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46, 204, 64, 0.1);
}

.ai-demo-crop-select select option {
    background: var(--color-bg);
    color: var(--color-text-primary);
}

/* AI Result */
.ai-result {
    margin-top: 24px;
    animation: fadeIn 0.5s ease;
}

.ai-result-header {
    text-align: center;
    margin-bottom: 20px;
}

.ai-result-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-danger {
    background: rgba(255, 68, 68, 0.15);
    color: #FF4444;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.badge-warning {
    background: rgba(255, 165, 0, 0.15);
    color: #FFA500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.badge-success {
    background: rgba(46, 204, 64, 0.15);
    color: #2ECC40;
    border: 1px solid rgba(46, 204, 64, 0.3);
}

.ai-result-header h3 {
    font-size: 1.125rem;
    color: var(--color-text-primary);
    margin: 0;
}

.ai-result-body {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-result-stat {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-result-stat-label {
    display: block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.ai-result-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.ai-result-section {
    margin-bottom: 16px;
}

.ai-result-section h4 {
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.ai-result-section ul {
    padding-left: 18px;
    margin: 0;
}

.ai-result-section li {
    color: var(--color-text-secondary);
    font-size: 0.8125rem;
    margin-bottom: 4px;
    line-height: 1.5;
}

.ai-result-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 165, 0, 0.06);
    border: 1px solid rgba(255, 165, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 16px;
}

.ai-result-disclaimer span {
    font-size: 0.75rem;
    color: #FFA500;
}

#ai-reset-btn {
    margin-top: 8px;
}

/* --- Feature detail pages ---------------------------------------- */
.feature-detail {
    padding: 140px 0 80px;
}

.feature-back {
    display: inline-block;
    margin-bottom: 28px;
    color: var(--color-text-tertiary, #94A3B8);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-back:hover {
    color: var(--color-primary);
}

.feature-detail-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

.feature-detail-title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.feature-detail-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.feature-detail-para {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 18px;
}

.feature-detail-cta {
    margin-top: 12px;
}

.feature-detail-shot {
    margin: 0;
    display: flex;
    justify-content: center;
}

/* Large enough that the app UI is finally readable */
.feature-detail-shot-img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 700px;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.feature-caps,
.feature-others {
    margin-bottom: 48px;
    padding: 0;   /* <section> inherits section{padding:100px 0} */
}

.feature-caps-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-text-primary);
}

.feature-caps-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-cap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.feature-cap svg {
    flex-shrink: 0;
}

.feature-others-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.feature-other {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-other:hover {
    transform: translateY(-3px);
    border-color: var(--color-border-glow);
}

.feature-other-icon {
    font-size: 1.5rem;
}

.feature-other-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: 1.35;
}

/* Grid card -> link */
.feature-card {
    text-decoration: none;
}

.feature-card-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
}


/* --- Waitlist ---------------------------------------------------- */
.waitlist {
    /* All four sides set explicitly. `section { padding: var(--section-padding) }`
       hits EVERY <section>; setting only one side silently leaves the full
       100px on the others. Bottom is tight because .contact follows. */
    padding: var(--section-pad-y) 0 var(--section-pad-y-tight) 0;
}

.waitlist-card {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px;
    border-radius: var(--glass-radius);
    background: var(--glass-bg);
    border: 1px solid var(--color-border-glow);
}

.waitlist-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}

.waitlist-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--color-text-tertiary, #94A3B8);
    text-align: center;
}

.section-subtitle--wide {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.contact-company {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.contact-company-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-tertiary, #94A3B8);
    margin-bottom: 20px;
}

.contact-details a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--color-primary);
}

.footer-company {
    margin-top: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-tertiary, #94A3B8);
}


/* --- About / mission page ---------------------------------------- */
.about-page {
    padding: 140px 0 80px;
}

.about-hero {
    max-width: 820px;
    margin: 0 auto 72px;
    text-align: center;
}

.about-title {
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 12px;
    color: var(--color-text-primary);
}

.about-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.about-lead {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.about-section {
    max-width: 820px;
    margin: 0 auto 28px;
    /* NB: .about-section is a <section>, which inherits section{padding:100px 0}.
       Set all four sides here or a ~100px gap reappears above every heading. */
    padding: 0 0 28px;
    border-bottom: 1px solid var(--color-border);
}

.about-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: var(--color-text-primary);
}

.about-section-tagline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 12px;
    line-height: 1.6;
}

.about-section-para {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin: 0 0 12px;
}

.about-section-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.about-section-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.about-section-list svg {
    flex-shrink: 0;
}

.about-expansion {
    max-width: 820px;
    margin: 0 auto 48px;
    padding: 0;
}

.about-countries {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-countries li {
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--glass-bg);
    border: 1px solid var(--color-border-glow);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.about-cta {
    max-width: 820px;
    margin: 0 auto;
    padding: 44px 32px;
    border-radius: var(--glass-radius);
    background: var(--glass-bg);
    border: 1px solid var(--color-border-glow);
}

.about-cta .about-section-title {
    justify-content: center;
}

.about-cta .about-section-para {
    margin-bottom: 24px;
}

.africa-more {
    margin-top: 44px;
}