/* ==========================================================================
   ShelfAtlas Landing Page — styles.css
   Design tokens from design-manual.md
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --primary:        #2563EB;
    --primary-dark:   #1D4ED8;
    --primary-light:  #EFF6FF;
    --secondary:      #0891B2;
    --secondary-light:#E0F2FE;
    --accent:         #F97316;
    --accent-dark:    #EA6B00;
    --success:        #22C55E;
    --warning:        #EAB308;
    --error:          #EF4444;
    --purple:         #8B5CF6;

    /* Backgrounds */
    --bg:             #F8FAFC;
    --bg-dark:        #0F172A;
    --bg-dark-2:      #1E293B;
    --surface:        #FFFFFF;
    --surface-dark:   #1E293B;

    /* Text */
    --text-primary:   #1E293B;
    --text-secondary: #64748B;
    --text-muted:     #94A3B8;
    --text-light:     #F8FAFC;
    --text-dark-sec:  #94A3B8;

    /* Border */
    --border:         #E2E8F0;
    --border-dark:    #334155;

    /* Shadows */
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl:      0 16px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.08);
    --shadow-blue:    0 8px 32px rgba(37,99,235,0.25);
    --shadow-orange:  0 8px 32px rgba(249,115,22,0.35);

    /* 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;
    --space-5xl: 128px;

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

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

ul, ol { list-style: none; }

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

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

/* Accessibility: skip link */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

@media (min-width: 640px) {
    .container { padding: 0 var(--space-xl); }
}

@media (min-width: 1024px) {
    .container { padding: 0 var(--space-3xl); }
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
h4 { font-size: 0.9375rem; font-weight: 600; }

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-tag-light {
    color: var(--text-light);
    background: rgba(255,255,255,0.15);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 { margin-bottom: var(--space-md); }

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Main CTA — orange */
.btn-cta {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-orange);
    font-size: 1rem;
    padding: 16px 32px;
}

.btn-cta:hover {
    background: var(--accent-dark);
    box-shadow: 0 12px 40px rgba(249,115,22,0.45);
}

.btn-pulse {
    animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 8px 32px rgba(249,115,22,0.35); }
    50%       { box-shadow: 0 8px 48px rgba(249,115,22,0.55), 0 0 0 8px rgba(249,115,22,0.1); }
}

/* Nav CTA */
.btn-nav-cta {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3);
}

.btn-nav-cta:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
}

/* Ghost hero btn */
.btn-ghost-hero {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
    font-size: 0.9375rem;
}

.btn-ghost-hero:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Pricing outline */
.btn-outline-plan {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
    width: 100%;
    padding: 14px 24px;
}

.btn-outline-plan:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* Signup btn (inside input) */
.btn-signup {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(249,115,22,0.3);
    border: 2px solid transparent;
}

.btn-signup:hover {
    background: var(--accent-dark);
    transform: none;
}

/* Mobile CTA */
.btn-cta-mobile {
    background: var(--accent);
    color: white;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-md);
    margin-top: var(--space-sm);
}

/* Problem CTA */
.btn-cta.btn-cta-problem {
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.header.scrolled {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
    background: rgba(248, 250, 252, 0.95);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-icon {
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.mobile-menu-btn:hover { background: var(--bg); }

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu dropdown */
.mobile-menu {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md);
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu li a {
    display: block;
    padding: 12px var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu li a:hover { background: var(--bg); }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-4xl);
    overflow: hidden;
    background: linear-gradient(160deg, #F8FAFC 0%, #EFF6FF 50%, #F0FDFF 100%);
}

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

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
}

.hero-circle-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    right: -150px;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    bottom: 0;
    left: -100px;
    opacity: 0.08;
}

.hero-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: 30%;
    right: 30%;
    opacity: 0.08;
}

.hero-dots {
    position: absolute;
    top: 80px;
    left: 60px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, var(--primary) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.07;
}

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

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 420px;
        gap: var(--space-4xl);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(37,99,235,0.15);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--success);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50%       { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}

.hero-content h1 {
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 560px;
}

.break-lg { display: none; }

@media (min-width: 1024px) {
    .break-lg { display: block; }
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

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

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-item svg { opacity: 0.6; }

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

/* --------------------------------------------------------------------------
   8. Phone Mockup (Hero)
   -------------------------------------------------------------------------- */
.hero-phone {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-outer {
    position: relative;
    z-index: 1;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #1C1C1E;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 24px 80px rgba(0,0,0,0.4);
    position: relative;
}

.phone-notch {
    width: 100px;
    height: 28px;
    background: #1C1C1E;
    border-radius: 0 0 18px 18px;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-notch::after {
    content: '';
    display: block;
    width: 48px;
    height: 6px;
    background: #2C2C2E;
    border-radius: 3px;
    margin: 10px auto 0;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #F8FAFC;
    border-radius: 36px;
    overflow: hidden;
}

.phone-home-bar {
    width: 100px;
    height: 4px;
    background: white;
    border-radius: 2px;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

/* App UI inside phone */
.app-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #F8FAFC;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 44px 16px 10px;
    background: white;
}

.app-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.app-search-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-camera {
    flex: 1;
    background: #2C3A4A;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.camera-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #1e3a5f 0%, #2d4a6e 40%, #1a2f40 100%);
}

/* Shelf items in camera */
.step-shelf-items {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

/* AI bounding boxes in hero phone */
.ai-box {
    position: absolute;
    border: 1.5px dashed rgba(37,99,235,0.9);
    border-radius: 6px;
    background: rgba(37,99,235,0.06);
    animation: aiBoxPop 0.4s ease-out forwards;
}

.ai-label {
    position: absolute;
    top: -1px;
    left: 0;
    background: var(--primary);
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px 4px 4px 0;
    transform: translateY(-100%);
    white-space: nowrap;
}

.ai-box-1 {
    width: 52px;
    height: 48px;
    top: 18%;
    left: 20%;
    animation-delay: 0.2s;
    opacity: 0;
}

.ai-box-2 {
    width: 60px;
    height: 44px;
    top: 30%;
    left: 45%;
    animation-delay: 0.5s;
    opacity: 0;
}

.ai-box-3 {
    width: 44px;
    height: 50px;
    top: 50%;
    left: 28%;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes aiBoxPop {
    0%   { opacity: 0; transform: scale(0.85); }
    70%  { transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

.ai-chip {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ai-pulse-dot {
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

.capture-btn-phone {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}

.app-tags {
    background: white;
    padding: 8px 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.tag-blue {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37,99,235,0.2);
}

.tag-muted {
    background: #F1F5F9;
    color: var(--text-muted);
    border: 1px dashed var(--border);
}

.app-location {
    background: white;
    padding: 5px 12px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.app-tabs {
    display: flex;
    align-items: flex-end;
    background: white;
    border-top: 1px solid var(--border);
    padding: 6px 0 10px;
    margin-top: auto;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 7px;
    color: var(--text-muted);
    padding-top: 4px;
}

.tab-active { color: var(--primary); }

.tab-capture-btn {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    margin-bottom: 2px;
    box-shadow: 0 3px 8px rgba(249,115,22,0.4);
}

.phone-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.18) 0%, transparent 70%);
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   9. Social Proof Bar
   -------------------------------------------------------------------------- */
.proof-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg) 0;
}

.proof-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.proof-waitlist {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.proof-waitlist strong { color: var(--text-primary); }

.waitlist-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--surface);
    margin-left: -8px;
}

.avatar:first-child { margin-left: 0; }

.av-1 { background: var(--primary); }
.av-2 { background: var(--secondary); }
.av-3 { background: var(--accent); }
.av-4 { background: var(--success); }
.av-5 { background: var(--text-secondary); font-size: 0.625rem; }

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

@media (min-width: 640px) {
    .proof-divider { display: block; }
}

.proof-badges {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.store-badge-soon {
    opacity: 0.7;
    color: var(--text-secondary);
}

.store-badge .badge-small {
    display: block;
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-badge strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   10. Problem Section
   -------------------------------------------------------------------------- */
.problem {
    background: var(--bg-dark);
    padding: var(--space-5xl) 0;
}

.problem .section-tag { color: #F87171; background: rgba(239,68,68,0.12); }
.problem .section-header h2 { color: var(--text-light); }
.problem .section-header p { color: var(--text-dark-sec); }

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
    .problem-grid { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
    background: var(--bg-dark-2);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform 0.2s, border-color 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    border-color: rgba(239,68,68,0.3);
}

.problem-icon {
    width: 56px;
    height: 56px;
    background: rgba(239,68,68,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F87171;
    margin-bottom: var(--space-lg);
}

.problem-card h3 {
    color: var(--text-light);
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
}

.problem-card p {
    color: var(--text-dark-sec);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.problem-cta {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.problem-stat {
    font-size: 1.0625rem;
    color: var(--text-dark-sec);
}

.problem-stat strong {
    color: #F87171;
    font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   11. Solution / Steps Section
   -------------------------------------------------------------------------- */
.solution {
    padding: var(--space-5xl) 0;
    background: var(--surface);
}

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

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
}

/* Mini phone mockup in steps */
.step-phone {
    width: 160px;
    height: 280px;
    background: #1C1C1E;
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.25);
    position: relative;
    flex-shrink: 0;
}

.step-phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
}

.step-screen-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-md);
}

/* Step 1 — camera viewfinder */
.step-screen-1 { background: #1E3A5F; }

.step-camera-frame {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: var(--space-md);
}

.viewfinder-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: white;
    border-style: solid;
}

.viewfinder-corner.tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.viewfinder-corner.tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.viewfinder-corner.bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.viewfinder-corner.br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.shelf-item {
    width: 28px;
    height: 48px;
    border-radius: 4px;
}

.si-1 { background: #4A90B8; }
.si-2 { background: #7BC8A4; height: 60px; }
.si-3 { background: #E88B4A; }

.step-capture-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-capture-inner {
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
}

/* Step 2 — AI analysis */
.step-screen-2 { background: var(--surface); }

.step-ai-wave { width: 100%; }

.ai-shimmer {
    height: 6px;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: 200% 100%;
    border-radius: 3px;
    margin-bottom: var(--space-md);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.ai-items-list { margin-bottom: var(--space-sm); }

.ai-item-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    animation: fadeInRow 0.5s ease-out forwards;
    opacity: 0;
    animation-delay: var(--delay, 0s);
}

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

.ai-item-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-item-text {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.ai-item-text-short { flex: 0 0 60%; }
.ai-item-text-medium { flex: 0 0 80%; }

.ai-check {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}

.ai-tags-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ai-mini-tag {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(37,99,235,0.15);
}

/* Step 3 — Search */
.step-screen-3 { background: var(--bg); }

.step-search-demo { width: 100%; }

.search-bar-phone {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    margin-bottom: 8px;
}

.search-typing {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-primary);
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    margin-bottom: 4px;
}

.result-thumb {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    flex-shrink: 0;
}

.result-thumb-blue  { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.result-thumb-orange { background: linear-gradient(135deg, var(--accent), #FBBF24); }

.result-info { flex: 1; min-width: 0; }

.result-name {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.result-loc {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 7px;
    color: var(--text-secondary);
}

.step-content { max-width: 280px; }

.step-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: var(--space-sm);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. Features Grid
   -------------------------------------------------------------------------- */
.features {
    padding: var(--space-5xl) 0;
    background: var(--bg);
}

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

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37,99,235,0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.feature-icon-blue   { background: #EFF6FF; color: var(--primary); }
.feature-icon-cyan   { background: #E0F2FE; color: var(--secondary); }
.feature-icon-green  { background: #DCFCE7; color: #16A34A; }
.feature-icon-orange { background: #FFF7ED; color: var(--accent); }
.feature-icon-purple { background: #F3E8FF; color: var(--purple); }
.feature-icon-red    { background: #FEF2F2; color: var(--error); }

.feature-card h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}

.feature-badge {
    display: inline-flex;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: var(--bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   13. How It Works
   -------------------------------------------------------------------------- */
.how-it-works {
    padding: var(--space-5xl) 0;
    background: linear-gradient(160deg, #0F172A 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
}

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

.hiw-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.hiw-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.hiw-blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
}

.how-it-works .section-header h2 { color: white; }
.how-it-works .section-header p  { color: var(--text-dark-sec); }

.hiw-flow {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hiw-flow {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0;
    }
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    flex: 1;
    max-width: 240px;
}

@media (max-width: 1023px) {
    .hiw-step { max-width: 100%; }
}

.hiw-step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hiw-icon-orange { background: linear-gradient(135deg, var(--accent), #FBBF24); }
.hiw-icon-cyan   { background: linear-gradient(135deg, var(--secondary), #06B6D4); }
.hiw-icon-green  { background: linear-gradient(135deg, var(--success), #16A34A); }

.hiw-step-num {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hiw-step-content h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.hiw-step-content p {
    font-size: 0.875rem;
    color: var(--text-dark-sec);
    line-height: 1.65;
}

.hiw-arrow {
    display: none;
    flex-shrink: 0;
    padding: 0 var(--space-md);
    opacity: 0.4;
}

@media (min-width: 1024px) {
    .hiw-arrow { display: flex; align-items: center; }
}

/* --------------------------------------------------------------------------
   14. Pricing
   -------------------------------------------------------------------------- */
.pricing {
    padding: var(--space-5xl) 0;
    background: var(--bg);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-3xl);
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.savings-badge {
    background: #DCFCE7;
    color: #16A34A;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.toggle-switch {
    position: relative;
    width: 48px;
    height: 28px;
    background: var(--border);
    border-radius: var(--radius-full);
    transition: background 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch[aria-checked="true"] { background: var(--primary); }

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.toggle-switch[aria-checked="true"] .toggle-thumb { transform: translateX(20px); }

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

@media (min-width: 768px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
    transform: scale(1.02);
}

@media (min-width: 768px) {
    .pricing-card-featured { transform: scale(1.04); }
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card-featured:hover { box-shadow: 0 12px 40px rgba(37,99,235,0.3); }

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.pricing-card-header { margin-bottom: var(--space-xl); }

.pricing-card-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.price-annual-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-muted);
}

.plan-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--space-sm);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.feature-muted {
    color: var(--text-muted) !important;
}

.check-icon,
.x-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 0;
}

.check-icon {
    background: #DCFCE7;
}

.check-icon::after {
    content: '';
    display: block;
    width: 10px;
    height: 6px;
    border-left: 2px solid #16A34A;
    border-bottom: 2px solid #16A34A;
    transform: rotate(-45deg) translateY(-1px);
}

.x-icon {
    background: #FEF2F2;
}

.x-icon::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6M7 1L1 7' stroke='%23EF4444' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pricing-card .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
}

.plan-trial {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

.pricing-note {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.9375rem;
    color: var(--text-secondary);
    padding: var(--space-md);
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 1px solid rgba(37,99,235,0.12);
}

/* --------------------------------------------------------------------------
   15. Testimonials
   -------------------------------------------------------------------------- */
.testimonials {
    padding: var(--space-5xl) 0;
    background: var(--surface);
}

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

@media (min-width: 768px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform 0.2s, box-shadow 0.2s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stars {
    color: var(--warning);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.testimonial-card blockquote p {
    font-size: 0.9375rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--space-lg);
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.author-avatar-orange { background: var(--accent); }
.author-avatar-cyan   { background: var(--secondary); }

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

.author-title {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq {
    padding: var(--space-5xl) 0;
    background: var(--bg);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(37,99,235,0.2); }

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--primary); }

.faq-item.open .faq-question { color: var(--primary); }

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.2s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 var(--space-xl) var(--space-lg);
    border-top: 1px solid var(--border);
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: var(--space-md);
}

/* --------------------------------------------------------------------------
   17. CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    position: relative;
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

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

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.cta-circle-1 {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -100px;
}

.cta-circle-2 {
    width: 350px;
    height: 350px;
    bottom: -150px;
    left: -100px;
}

.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-icon {
    display: inline-flex;
    margin-bottom: var(--space-xl);
}

.cta-inner h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: var(--space-lg);
}

.cta-inner > p {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

/* Email form */
.email-signup { margin-bottom: var(--space-xl); }

.signup-input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

@media (min-width: 540px) {
    .signup-input-group {
        flex-direction: row;
        background: white;
        border-radius: var(--radius-md);
        padding: 6px;
        box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    }

    .signup-input-group input {
        border: none !important;
        box-shadow: none !important;
        padding: 10px 16px !important;
    }

    .signup-input-group .btn-signup { border-radius: var(--radius-sm) !important; }
}

.signup-input-group input {
    flex: 1;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    outline: none;
    min-width: 0;
    transition: border-color 0.2s;
}

.signup-input-group input::placeholder { color: var(--text-muted); }
.signup-input-group input:focus { border-color: rgba(37,99,235,0.3); }

.signup-note {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
}

.signup-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: var(--radius-md);
    color: #A7F3D0;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-md) var(--space-xl);
}

.cta-feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-dark);
}

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

@media (min-width: 768px) {
    .footer-top {
        grid-template-columns: 280px 1fr;
        gap: var(--space-3xl);
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-tagline {
    font-size: 0.9375rem;
    color: var(--text-dark-sec);
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark-sec);
    transition: background 0.2s, color 0.2s;
}

.social-link:hover {
    background: rgba(255,255,255,0.12);
    color: white;
}

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

@media (min-width: 480px) {
    .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.footer-col a {
    font-size: 0.875rem;
    color: var(--text-dark-sec);
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-link-muted {
    font-size: 0.875rem;
    color: rgba(148,163,184,0.4);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-dark-sec);
}

.footer-bottom a {
    color: var(--text-dark-sec);
    text-decoration: underline;
}

.footer-bottom a:hover { color: white; }

.footer-legal { color: var(--text-muted) !important; }

/* --------------------------------------------------------------------------
   19. Scroll Animation (Reveal)
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .btn-pulse       { animation: none; }
    .ai-box          { animation: none; opacity: 1; }
    .badge-dot       { animation: none; }
    .pulseDot        { animation: none; }
    .ai-shimmer      { animation: none; }
    .ai-item-row     { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   20. Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    :root {
        --bg:           #0F172A;
        --surface:      #1E293B;
        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        --text-muted:   #64748B;
        --border:       #334155;
        --primary-light: rgba(37,99,235,0.15);
        --secondary-light: rgba(8,145,178,0.15);
    }

    .header {
        background: rgba(15,23,42,0.85);
    }

    .header.scrolled {
        background: rgba(15,23,42,0.95);
    }

    .hero {
        background: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #0C2A3E 100%);
    }

    .proof-bar,
    .solution,
    .testimonials {
        background: #1E293B;
    }

    .features,
    .pricing,
    .faq {
        background: #0F172A;
    }

    .feature-card,
    .testimonial-card,
    .faq-item,
    .pricing-card,
    .problem-cta {
        background: #1E293B;
    }

    .step-phone-screen.step-screen-2 { background: #1E293B; }
    .step-phone-screen.step-screen-3 { background: #0F172A; }

    .search-bar-phone,
    .search-result-card { background: #2C3B4E; border-color: #334155; }

    .app-header,
    .app-tags,
    .app-location,
    .app-tabs { background: #1E293B; }

    .phone-screen { background: #1E293B; }
    .app-screen   { background: #0F172A; }

    .mobile-menu { background: #1E293B; border-color: #334155; }
    .mobile-menu li a:hover { background: #0F172A; }

    .store-badge { background: #1E293B; }
    .feature-badge { background: #0F172A; }
}

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.text-primary { color: var(--primary); }

/* Smooth scrolling padding for anchor links */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}
