/* ============================================
   ROUTLYS LANDING PAGE — PREMIUM EDITION
   Aesthetic: Precision Engineering / Cartographic
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Core palette */
    --emerald: #10B981;
    --emerald-dark: #059669;
    --emerald-light: #34D399;
    --emerald-glow: rgba(16, 185, 129, 0.4);

    --brass: #D4A574;
    --brass-dark: #B8956A;

    --navy: #0F172A;
    --navy-light: #1E293B;
    --slate: #334155;
    --slate-light: #475569;

    --sky: #0EA5E9;
    --violet: #8B5CF6;
    --rose: #F43F5E;
    --amber: #F59E0B;

    /* Dark Mode (Default) */
    --bg-base: #030712;
    --bg-elevated: #0F172A;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-solid: #111827;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: rgba(148, 163, 184, 0.1);
    --border-hover: rgba(148, 163, 184, 0.2);
    --header-bg: rgba(3, 7, 18, 0.8);
    --noise-opacity: 0.015;
    --cta-text: var(--navy);
    --modal-bg: var(--bg-elevated);

    /* Typography */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'Geist Mono', 'SF Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Layout */
    --container: 1200px;
    --container-tight: 800px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

/* ---------- Light Mode ---------- */
[data-theme="light"] {
    --bg-base: #FFFFFF;
    --bg-elevated: #F8FAFC;
    --bg-card: rgba(241, 245, 249, 0.8);
    --bg-card-solid: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --header-bg: rgba(255, 255, 255, 0.9);
    --noise-opacity: 0.02;
    --emerald-glow: rgba(16, 185, 129, 0.25);
    --cta-text: #FFFFFF;
    --modal-bg: #FFFFFF;
}

/* Light mode specific overrides */
[data-theme="light"] .noise-overlay {
    opacity: var(--noise-opacity);
}

[data-theme="light"] .header {
    background: var(--header-bg);
}

[data-theme="light"] .topo-lines {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50 Q25 40 50 50 T100 50' fill='none' stroke='rgba(16,185,129,0.12)' stroke-width='1'/%3E%3Cpath d='M0 30 Q25 20 50 30 T100 30' fill='none' stroke='rgba(16,185,129,0.08)' stroke-width='1'/%3E%3Cpath d='M0 70 Q25 80 50 70 T100 70' fill='none' stroke='rgba(16,185,129,0.08)' stroke-width='1'/%3E%3C/svg%3E");
}

[data-theme="light"] .grid-iso {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .gradient-orb-1 {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
}

[data-theme="light"] .gradient-orb-2 {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .btn-primary {
    color: #FFFFFF;
}

[data-theme="light"] .btn-white {
    background: var(--navy);
    color: #FFFFFF;
}

[data-theme="light"] .btn-white:hover {
    background: var(--navy-light);
}

[data-theme="light"] .cta-box {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
}

[data-theme="light"] .cta-content h2,
[data-theme="light"] .cta-content p {
    color: #FFFFFF;
}

[data-theme="light"] .savings-badge {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .route-svg pattern path {
    stroke: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .float-card {
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .tech-badge {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bento-card {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bento-card::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
}

[data-theme="light"] .algo-card {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .algo-card-featured {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #FFFFFF 100%);
}

[data-theme="light"] .metric-card {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .faq-item {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .eco-card-main {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #FFFFFF 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .eco-metric {
    background: var(--bg-elevated);
}

[data-theme="light"] .step-demo {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .step-marker {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .pipeline-box {
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .pipe-step {
    background: var(--bg-elevated);
}

[data-theme="light"] .driver-mode-demo,
[data-theme="light"] .driver-mini-preview {
    background: var(--bg-elevated);
}

[data-theme="light"] .driver-demo-map {
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
}

[data-theme="light"] .progress-bar {
    background: #E2E8F0;
}

[data-theme="light"] .comp-track {
    background: #E2E8F0;
}

[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .modal {
    background: var(--modal-bg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: var(--bg-elevated);
}

[data-theme="light"] .mobile-menu {
    background: var(--bg-base);
}

/* Theme transition helpers */
.header,
.bento-card,
.algo-card,
.metric-card,
.faq-item,
.step-demo,
.pipeline-box,
.float-card,
.tech-badge,
.modal,
.eco-card-main,
.eco-metric {
    transition: background-color var(--duration-slow) ease,
                border-color var(--duration-slow) ease,
                box-shadow var(--duration-slow) ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
    overflow-x: hidden;
    transition: background-color var(--duration-slow) ease, color var(--duration-slow) ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ---------- Noise & Effects ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    transition: opacity var(--duration-base) ease;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--bg-card-solid);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: all var(--duration-base) var(--ease-spring);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
    color: var(--text-secondary);
}

.theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

/* ---------- Container ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ---------- Typography ---------- */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.title-gradient {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-gradient-green {
    background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald);
    margin-bottom: var(--space-lg);
}

.section-tag-green {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--emerald);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--emerald-glow);
}

.btn-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
}

.btn-primary:hover .btn-shine {
    animation: shine 0.6s ease forwards;
}

@keyframes shine {
    to { transform: translateX(100%); }
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--emerald);
}

.btn-white {
    background: var(--text-primary);
    color: var(--navy);
}

.btn-white:hover {
    background: #E2E8F0;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration-base) ease;
}

.header.scrolled {
    border-bottom-color: var(--border);
}

.nav {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-mark {
    width: 32px;
    height: 32px;
    color: var(--emerald);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--emerald);
    transition: width var(--duration-base) var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-end {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-base) var(--ease-out);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-base);
    z-index: 99;
    padding: var(--space-xl);
}

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

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-link {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-lg);
}

.mobile-theme-toggle span {
    font-size: 16px;
    color: var(--text-secondary);
}

.mobile-actions {
    margin-top: var(--space-xl);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.topo-lines {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 50 Q25 40 50 50 T100 50' fill='none' stroke='rgba(16,185,129,0.05)' stroke-width='1'/%3E%3Cpath d='M0 30 Q25 20 50 30 T100 30' fill='none' stroke='rgba(16,185,129,0.03)' stroke-width='1'/%3E%3Cpath d='M0 70 Q25 80 50 70 T100 70' fill='none' stroke='rgba(16,185,129,0.03)' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.6;
}

.grid-iso {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 30% 50%, black 0%, transparent 70%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    bottom: 0;
    right: 10%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--emerald-glow); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s var(--ease-out) forwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-accent {
    background: linear-gradient(135deg, var(--emerald) 0%, var(--brass) 50%, var(--sky) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 0.4s forwards;
}

.hero-subtitle em {
    color: var(--emerald);
    font-style: normal;
    font-weight: 500;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 0.5s forwards;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out) 0.6s forwards;
}

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

.proof-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.proof-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.7s forwards;
}

.route-canvas {
    position: relative;
    aspect-ratio: 5/4;
}

.route-svg {
    width: 100%;
    height: 100%;
}

.route-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 3s var(--ease-out) forwards infinite;
}

.route-1 { animation-delay: 0s; }
.route-2 { animation-delay: 0.3s; }
.route-3 { animation-delay: 0.6s; }

@keyframes drawPath {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    10% { opacity: 1; }
    50% { stroke-dashoffset: 0; opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0.3; }
}

.node-pulse {
    animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.6; r: 6; }
    50% { opacity: 1; r: 8; }
}

.moving-dot {
    filter: drop-shadow(0 0 6px var(--emerald));
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    animation: floatCard 4s ease-in-out infinite;
}

.float-card-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.float-card-2 {
    bottom: 30%;
    left: 5%;
    animation-delay: 1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float-icon {
    font-size: 20px;
}

.float-content {
    display: flex;
    flex-direction: column;
}

.float-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--emerald);
}

.float-label {
    font-size: 11px;
    color: var(--text-muted);
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; height: 40px; }
    50% { opacity: 0.5; height: 30px; }
}

/* ============================================
   LOGOS
   ============================================ */
.logos-section {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
}

.logos-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.logos-track {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.logos-slide {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.tech-badge {
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--duration-base) ease;
}

.tech-badge:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

/* ============================================
   FEATURES (Bento Grid)
   ============================================ */
.features-section {
    padding: var(--space-4xl) 0;
}

.section-intro {
    margin-bottom: var(--space-3xl);
}

.section-intro-center {
    text-align: center;
    max-width: var(--container-tight);
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: var(--space-md);
}

.features-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.bento-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-base) ease;
}

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

.bento-card:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    color: var(--emerald);
    margin-bottom: var(--space-lg);
}

.bento-icon svg {
    width: 22px;
    height: 22px;
}

.bento-icon-blue { background: rgba(14, 165, 233, 0.1); color: var(--sky); }
.bento-icon-purple { background: rgba(139, 92, 246, 0.1); color: var(--violet); }
.bento-icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.bento-icon-rose { background: rgba(244, 63, 94, 0.1); color: var(--rose); }
.bento-icon-green { background: rgba(16, 185, 129, 0.15); color: var(--emerald-light); }
.bento-icon-cyan { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }
.bento-icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald); }
.bento-icon-indigo { background: rgba(99, 102, 241, 0.1); color: #6366F1; }
.bento-icon-orange { background: rgba(249, 115, 22, 0.1); color: #F97316; }

/* New feature badge */
.bento-card-new {
    position: relative;
    border-color: rgba(16, 185, 129, 0.3);
}

.bento-card-new::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.bento-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 10px;
    background: var(--emerald);
    color: var(--navy);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
}

/* Driver Mode Demo */
.driver-mode-demo {
    margin-top: var(--space-lg);
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.driver-demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(16, 185, 129, 0.1);
    border-bottom: 1px solid var(--border);
}

.driver-demo-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--emerald);
}

.driver-demo-close {
    color: var(--text-muted);
    font-size: 14px;
}

.driver-demo-content {
    padding: var(--space-md);
}

.driver-demo-map {
    position: relative;
    height: 80px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.8));
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-sm);
    overflow: hidden;
}

.demo-route-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--brass), var(--emerald), var(--emerald), var(--brass));
    border-radius: 2px;
    transform: translateY(-50%);
}

.demo-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    background: var(--emerald);
    color: white;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.demo-marker-start {
    left: 10%;
    background: var(--brass);
    font-size: 12px;
}

.demo-marker-1 { left: 30%; }
.demo-marker-2 { left: 50%; }
.demo-marker-3 { left: 70%; }

.demo-marker-end {
    left: 90%;
    background: var(--brass);
    font-size: 12px;
}

.driver-demo-stats {
    display: flex;
    gap: var(--space-md);
}

.demo-stat {
    font-size: 11px;
    color: var(--text-muted);
}

.demo-stat span {
    color: var(--emerald);
    font-weight: 600;
}

/* Mini Driver Preview (Process Section) */
.driver-mini-preview {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.mini-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(16, 185, 129, 0.1);
    font-size: 12px;
    font-weight: 600;
}

.mini-badge {
    font-size: 9px;
    padding: 2px 6px;
    background: var(--emerald);
    color: var(--navy);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mini-stops {
    padding: var(--space-sm) var(--space-md);
}

.mini-stop {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.mini-stop:last-child {
    border-bottom: none;
}

.stop-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--emerald);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
}

.mini-stop:last-child .stop-num {
    background: var(--brass);
    font-size: 11px;
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.bento-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-list {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.bento-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding-left: var(--space-lg);
    position: relative;
}

.bento-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
}

.bento-visual {
    margin-top: var(--space-xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
}

.mini-route {
    display: flex;
    align-items: center;
    gap: 4px;
}

.route-dot {
    width: 10px;
    height: 10px;
    background: var(--slate);
    border-radius: 50%;
}

.route-start { background: var(--emerald); }
.route-end { background: var(--brass); }

.route-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--emerald), var(--sky));
    border-radius: 1px;
}

/* Progress Demo */
.progress-demo {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.progress-item {
    display: grid;
    grid-template-columns: 60px 1fr 30px;
    align-items: center;
    gap: var(--space-md);
}

.progress-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--emerald);
    border-radius: 3px;
    transition: width 1s var(--ease-out);
}

.progress-active {
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.progress-status {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--emerald);
    text-align: right;
}

/* ============================================
   PROCESS / HOW IT WORKS
   ============================================ */
.process-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    max-width: 600px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 28px;
    top: 60px;
    bottom: 60px;
    width: 2px;
    background: linear-gradient(to bottom, var(--emerald), var(--sky), var(--brass));
    opacity: 0.3;
}

.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-xl);
}

.step-marker {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: all var(--duration-base) ease;
}

.step-marker-active {
    background: var(--emerald);
    border-color: var(--emerald);
    color: var(--navy);
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.step-demo {
    padding: var(--space-lg);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.file-drop {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text-secondary);
}

.file-drop svg {
    width: 32px;
    height: 32px;
    color: var(--emerald);
}

.file-drop span {
    font-family: var(--font-mono);
    font-size: 13px;
}

.fleet-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.vehicle-chip {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.vehicle-chip-lg {
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
}

.results-chips {
    display: flex;
    gap: var(--space-md);
}

.result-chip {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    flex: 1;
}

.result-chip-green {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-chip-blue {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.chip-icon {
    font-size: 20px;
}

.chip-value {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chip-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   METRICS
   ============================================ */
.metrics-section {
    padding: var(--space-4xl) 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: start;
}

.metrics-intro {
    position: sticky;
    top: 100px;
}

.metrics-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: var(--space-lg) 0 var(--space-xl);
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.comp-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.comp-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.comp-track {
    height: 36px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.comp-fill {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: white;
    border-radius: var(--radius-sm);
    transition: width 1s var(--ease-out);
}

.comp-fill-red {
    background: linear-gradient(90deg, var(--rose), #B91C1C);
}

.comp-fill-green {
    background: linear-gradient(90deg, var(--emerald), var(--emerald-dark));
}

.savings-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    background: var(--emerald);
    border-radius: var(--radius-lg);
}

.savings-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--navy);
}

.savings-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--navy);
    opacity: 0.8;
}

.metrics-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.metric-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-base) ease;
}

.metric-card:hover {
    border-color: var(--emerald);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

.metric-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.metric-number span {
    font-size: 24px;
    color: var(--emerald);
}

.metric-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.metric-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--emerald), var(--sky));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease-out);
}

.metric-card:hover .metric-bar {
    transform: scaleX(1);
}

/* ============================================
   TECHNOLOGY / ALGORITHMS
   ============================================ */
.tech-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.algo-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.algo-card {
    padding: var(--space-xl);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) ease;
}

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

.algo-card-featured {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-base) 100%);
}

.algo-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--emerald);
    margin-bottom: var(--space-md);
}

.algo-badge-blue { background: rgba(14, 165, 233, 0.1); color: var(--sky); }
.algo-badge-purple { background: rgba(139, 92, 246, 0.1); color: var(--violet); }
.algo-badge-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }

.algo-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.algo-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.algo-stat {
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: var(--space-sm);
}

.algo-number {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--emerald);
}

.algo-unit {
    font-size: 12px;
    color: var(--text-muted);
}

/* Pipeline */
.pipeline-box {
    padding: var(--space-xl);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.pipeline-box h4 {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.pipe-step {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
}

.pipe-step-final {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--emerald);
}

.pipe-num {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.pipe-step-final .pipe-num {
    background: var(--emerald);
    color: var(--navy);
}

.pipe-name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.pipe-step-final .pipe-name {
    color: var(--emerald);
}

.pipe-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   ECO / SUSTAINABILITY
   ============================================ */
.eco-section {
    padding: var(--space-4xl) 0;
}

.eco-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.eco-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin: var(--space-lg) 0 var(--space-xl);
    line-height: 1.7;
}

.eco-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.eco-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 15px;
    color: var(--text-secondary);
}

.eco-list svg {
    width: 20px;
    height: 20px;
    color: var(--emerald);
    flex-shrink: 0;
}

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

.eco-card-main {
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, var(--bg-card) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xl);
    text-align: center;
}

.eco-globe {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-xl);
    animation: rotateGlobe 20s linear infinite;
}

@keyframes rotateGlobe {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.eco-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.eco-metric {
    padding: var(--space-lg);
    background: var(--bg-base);
    border-radius: var(--radius-md);
}

.eco-value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--emerald);
}

.eco-unit {
    font-size: 13px;
    color: var(--text-primary);
    margin-left: var(--space-xs);
}

.eco-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: var(--space-4xl) 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.faq-list {
    max-width: var(--container-tight);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration-base) ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item[open] {
    border-color: var(--emerald);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--duration-base) var(--ease-out);
}

.faq-item[open] .faq-question svg {
    transform: rotate(180deg);
    color: var(--emerald);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-lg);
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
    padding: var(--space-4xl) 0;
}

.cta-box {
    position: relative;
    padding: var(--space-4xl);
    background: var(--emerald);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.cta-grid {
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0,0,0,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.3) 1px, transparent 1px);
    background-size: 40px 40px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: 18px;
    color: var(--navy);
    opacity: 0.8;
    margin-bottom: var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-4xl) 0 var(--space-xl);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: var(--space-xs) 0;
    transition: color var(--duration-fast) ease;
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

    .features-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }

    .metrics-intro {
        position: static;
    }

    .algo-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .eco-layout {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
}

@media (max-width: 768px) {
    .nav-center, .nav-end {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .proof-divider {
        width: 100%;
        height: 1px;
    }

    .features-bento {
        grid-template-columns: 1fr;
    }

    .bento-large, .bento-wide {
        grid-column: span 1;
    }

    .metrics-cards {
        grid-template-columns: 1fr;
    }

    .algo-cards {
        grid-template-columns: 1fr;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipe-arrow {
        transform: rotate(90deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .results-chips {
        flex-direction: column;
    }

    .cta-box {
        padding: var(--space-2xl);
    }
}

/* ============================================
   CONTACT MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 440px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform var(--duration-base) var(--ease-spring);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    color: var(--emerald);
}

.modal-icon svg {
    width: 28px;
    height: 28px;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px var(--space-md);
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--duration-fast) ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

/* Submit Button Spinner */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success State */
.modal-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl) 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    color: var(--emerald);
    margin-bottom: var(--space-lg);
    animation: successPop 0.5s var(--ease-spring);
}

.success-icon svg {
    width: 36px;
    height: 36px;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.modal-success h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.modal-success p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

/* Modal Responsive */
@media (max-width: 480px) {
    .modal {
        padding: var(--space-xl);
        margin: var(--space-md);
    }

    .modal-header h2 {
        font-size: 20px;
    }
}
