/* ========================================
   CSS Variables - Luxury Wellness Palette
   ======================================== */
:root {
    /* Core Brand Colors */
    --ink: #0B0F0E;
    --paper: #F6F4EF;
    --mist: #EEF3F0;
    --forest: #0F3D2E;
    --sage: #7BAF9A;
    --mineral: #2A6DF6;
    --hairline: rgba(11, 15, 14, 0.10);

    /* Score Colors (refined) */
    --score-excellent: #0F3D2E;
    --score-good: #7BAF9A;
    --score-moderate: #D4A574;
    --score-poor: #C97D60;

    /* Shadows */
    --shadow-soft: 0 20px 60px rgba(11, 15, 14, 0.10);
    --shadow-float: 0 18px 40px rgba(11, 15, 14, 0.14);
    --shadow-sm: 0 2px 8px rgba(11, 15, 14, 0.06);
    --shadow-md: 0 4px 16px rgba(11, 15, 14, 0.08);
    --shadow-lg: 0 12px 32px rgba(11, 15, 14, 0.12);
    --shadow-xl: 0 24px 64px rgba(11, 15, 14, 0.16);

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 18px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-luxury: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

/* Display Font for Headlines */
h1, h2, .display-font {
    font-family: 'Fraunces', 'Georgia', serif;
    font-weight: 400;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.05;
}

h2 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

h3 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

p {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(11, 15, 14, 0.72);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul, ol {
    list-style: none;
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ========================================
   Typography
   ======================================== */
.section-title {
    font-size: clamp(28px, 3vw, 42px);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.section-subtitle {
    font-size: 15px;
    text-align: center;
    color: rgba(11, 15, 14, 0.65);
    margin-bottom: 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-subtitle {
        margin-bottom: 48px;
    }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    border: 1px solid var(--hairline);
    outline: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--forest);
    color: var(--paper);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 24px rgba(15, 61, 46, 0.18);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 40px rgba(15, 61, 46, 0.25);
    background: #0d4a37;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: rgba(246, 244, 239, 0.2);
}

.btn-ghost:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(246, 244, 239, 0.12);
    box-shadow: 0 8px 24px rgba(246, 244, 239, 0.15);
    border-color: rgba(246, 244, 239, 0.3);
}

.btn-ghost:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-large {
    padding: 13px 26px;
    font-size: 15px;
}

.btn-download {
    background: var(--forest);
    color: var(--paper);
    padding: 13px 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 10px 24px rgba(15, 61, 46, 0.18);
    border: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(14px);
    background: rgba(246, 244, 239, 0.7);
    border-bottom: 1px solid var(--hairline);
    z-index: 1000;
    padding: 14px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-size: 18px;
    color: var(--ink);
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    color: var(--ink);
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 13px;
    color: rgba(11, 15, 14, 0.7);
    position: relative;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.nav-links a:hover {
    color: var(--ink);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--forest), var(--sage));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

/* ========================================
   Hero Section - Luxury Wellness
   ======================================== */
.hero {
    padding: 100px 0 80px;
    background: var(--mist);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

/* Cinematic hero variant */
.hero.cinema-hero {
    position: relative;
    min-height: 90vh;
    overflow: hidden;
    background: radial-gradient(1200px 700px at 50% 40%, rgba(15, 19, 18, 0.98) 0%, rgba(5, 6, 6, 0.95) 60%, rgba(0, 0, 0, 0.92) 100%);
    color: var(--paper);
    display: flex;
    align-items: center;
    padding: 0;
}

/* Canvas background */
#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0.9;
    z-index: 1;
}

/* Vignette overlay */
.vignette {
    position: absolute;
    inset: -20%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.75) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Film grain texture */
.grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.10;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
    #bg-canvas {
        display: none;
    }
    
    .grain {
        display: none;
    }
}


.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 4;
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px;
}

.cinema-hero .hero-content {
    z-index: 4;
    opacity: 1 !important;
}

.cinema-hero .hero-content * {
    opacity: 1 !important;
}

.hero-left {
    max-width: 540px;
    opacity: 1 !important;
}

.hero-left * {
    opacity: 1 !important;
}

.hero-title,
.hero-subtitle,
.sub,
.kicker,
.hero-cta,
.hero-stats {
    opacity: 1 !important;
}

.device {
    position: relative;
    z-index: 4;
}

.cinema-hero .device {
    z-index: 4;
}

.cinema-hero .hero-left {
    z-index: 4;
    position: relative;
}

.hero-title {
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--paper);
}

.hero-title .highlight {
    color: var(--sage);
}

.hero .sub {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(246, 244, 239, 0.72);
    margin-top: 12px;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(246, 244, 239, 0.65);
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.hero-credibility {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.credibility-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font-size: 12px;
    color: rgba(11, 15, 14, 0.7);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
}

.stat {
    text-align: left;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: var(--paper);
    margin-bottom: 2px;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    display: inline-block;
    transition: transform 0.3s ease;
}

.stat:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 12px;
    color: rgba(246, 244, 239, 0.7);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
    transition: color 0.3s ease;
}

.stat:hover .stat-label {
    color: rgba(246, 244, 239, 0.9);
}

/* Premium Phone Mockup */
.phone-mockup {
    max-width: 260px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    /* Removed float animation - phone should be static */
    filter: drop-shadow(0 20px 60px rgba(15, 61, 46, 0.15));
}

.phone-mockup::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(15, 61, 46, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
    animation: phoneGlow 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(1deg); }
    50% { transform: translateY(-12px) rotate(0deg); }
    75% { transform: translateY(-6px) rotate(-1deg); }
}

@keyframes phoneGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.phone-screen {
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 36px;
    padding: 8px;
    box-shadow: 0 24px 60px rgba(11, 15, 14, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    aspect-ratio: 9/19.5;
    position: relative;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 20px;
    background: #000;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.app-preview {
    background: var(--paper);
    border-radius: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    overflow: hidden;
}

.app-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(246, 244, 239, 0.95), transparent);
    z-index: 1;
}

.score-display {
    text-align: center;
    position: relative;
    z-index: 2;
}

.score-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    background: transparent;
}

.score-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 8px rgba(15, 61, 46, 0.3));
}

.score-circle circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.score-circle .bg-circle {
    stroke: rgba(15, 61, 46, 0.15);
    r: 65;
}

.score-circle .progress-circle {
    stroke: var(--forest);
    r: 65;
    /* Circumference: 2 * π * 65 ≈ 408.41, for 87%: offset = 408.41 * 0.13 ≈ 53.09 */
    stroke-dasharray: 408.41;
    stroke-dashoffset: 408.41;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scorePulse 3s ease-in-out infinite;
}

.score-circle.score-good .progress-circle {
    stroke: var(--forest);
    stroke-dashoffset: 53.09; /* 87% complete */
}

@keyframes scorePulse {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(15, 61, 46, 0.3));
    }
    50% { 
        filter: drop-shadow(0 0 16px rgba(15, 61, 46, 0.5));
    }
}

.score-number {
    font-size: 36px;
    font-weight: 400;
    color: var(--ink);
    font-family: 'Fraunces', serif;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
    display: inline-block;
    animation: scoreNumberPop 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes scoreNumberPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }
    50% {
        transform: scale(1.1) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.score-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(11, 15, 14, 0.7);
    margin-top: 6px;
}

/* Glass card overlays */
.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(15, 61, 46, 0.15);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 8px 32px rgba(11, 15, 14, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    z-index: 50 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center;
    pointer-events: auto;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 48px rgba(11, 15, 14, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(15, 61, 46, 0.2);
}

.glass-card.ingredients {
    top: 5%;
    right: -35px;
    width: 120px;
    /* Static position - no floating */
}

.glass-card.sources {
    top: 42%;
    left: -35px;
    width: 130px;
    /* Static position - no floating */
}

.glass-card.calories {
    top: 60%;
    right: -35px;
    width: 125px;
    /* Static position - no floating */
}

.glass-card.nutritionist {
    top: 12%;
    left: -35px;
    width: 130px;
    /* Static position - no floating */
}

.glass-card.water {
    bottom: 5%;
    right: -35px;
    width: 125px;
    /* Static position - no floating */
}

@keyframes glassFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% { 
        transform: translateY(-6px) translateX(2px) scale(1);
    }
    50% { 
        transform: translateY(-8px) translateX(0px) scale(1);
    }
    75% { 
        transform: translateY(-4px) translateX(-2px) scale(1);
    }
}

.glass-card:hover {
    transform: translateY(-4px) scale(1.05) !important;
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0 80px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 56px;
    }

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

    .hero-title {
        font-size: clamp(36px, 8vw, 56px);
    }

    .hero-value-prop {
        font-size: 20px;
        margin-bottom: 32px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 32px;
        align-items: flex-start;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .glass-card {
        display: none;
    }
}

/* ========================================
   What It Scans Section
   ======================================== */
.what-it-scans {
    padding: 64px 0;
    background: var(--paper);
}

.scan-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.scan-category {
    text-align: center;
    padding: 28px 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--hairline);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.scan-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.scan-category:hover::before {
    left: 100%;
}

.scan-category:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(11, 15, 14, 0.15);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 61, 46, 0.15);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.scan-category:hover .category-icon {
    transform: scale(1.15) rotate(5deg);
}

.scan-category h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.scan-category p {
    color: rgba(11, 15, 14, 0.65);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .what-it-scans {
        padding: 60px 0;
    }

    .scan-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ========================================
   Features Carousel Section
   ======================================== */
/* ===== STACKED CAROUSEL (collision-proof) ===== */
.yam-stack {
    padding: 56px 0;
    background: linear-gradient(180deg, rgba(238, 243, 240, 0.9), rgba(246, 244, 239, 0.95));
}

.yam-stack__head {
    text-align: center;
    margin-bottom: 36px;
}

.yam-stack__eyebrow {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(11, 15, 14, 0.55);
    margin-bottom: 8px;
    font-weight: 600;
}

.yam-stack__title {
    margin: 8px 0 0;
    font-size: clamp(26px, 2.8vw, 42px);
    letter-spacing: -0.03em;
    font-weight: 400;
    color: var(--ink);
}

.yam-stack__wrap {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    height: min(400px, 48vw);
    display: grid;
    place-items: center;
    isolation: isolate; /* IMPORTANT: isolates z-index stacking */
}

.yam-stack__stage {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}

.yam-stack__item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(380px, 52vw);
    height: min(280px, 38vw);
    transform: translate(-50%, -50%);
    border-radius: 20px;
    overflow: hidden;

    /* default hidden: prevents "ghost text" */
    opacity: 0;
    filter: blur(10px);
    pointer-events: none;

    box-shadow: 0 24px 70px rgba(11, 15, 14, 0.18);
    will-change: transform, opacity, filter;
    transition: transform 700ms cubic-bezier(.16, 1, .3, 1),
                opacity 700ms cubic-bezier(.16, 1, .3, 1),
                filter 700ms cubic-bezier(.16, 1, .3, 1);
}

.yam-stack__item.is-active {
    pointer-events: auto; /* only center slide interactive */
}

.yam-stack__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(11, 15, 14, 0.14);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px rgba(11, 15, 14, 0.18);
    cursor: pointer;
    z-index: 999; /* IMPORTANT: always above slides */
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    font-size: 18px;
    line-height: 1;
    color: rgba(11, 15, 14, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.yam-stack__btn:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(11, 15, 14, 0.25);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(15, 61, 46, 0.2);
}

.yam-stack__btn:active {
    transform: translateY(-50%) scale(1.05);
}

.yam-stack__btn--prev {
    left: 10px;
}

.yam-stack__btn--next {
    right: 10px;
}

.yam-stack__dots {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.yam-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(11, 15, 14, 0.25);
    border: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yam-dot:hover {
    transform: scale(1.4);
    background: rgba(11, 15, 14, 0.4);
}

.yam-dot.is-active {
    background: rgba(15, 61, 46, 0.95);
    width: 24px;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(15, 61, 46, 0.4);
}

/* Feature card styling (inside yam-stack__item) */
.yam-stack__item .feature-card {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 24px 22px 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 15, 14, 0.10);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.yam-stack__item.is-active .feature-card {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 61, 46, 0.15);
    box-shadow: 0 8px 32px rgba(11, 15, 14, 0.1);
}

.yam-stack__item .feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(15, 61, 46, 0.08);
    border: 1px solid rgba(15, 61, 46, 0.16);
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yam-stack__item.is-active .feature-icon {
    background: rgba(15, 61, 46, 0.12);
    transform: scale(1.1);
}

.yam-stack__item .feature-icon svg {
    width: 18px;
    height: 18px;
    color: var(--forest);
    stroke-width: 2;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.yam-stack__item.is-active .feature-icon svg {
    transform: rotate(5deg) scale(1.1);
}

.yam-stack__item .feature-card h3 {
    font-size: 16px;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--ink);
}

.yam-stack__item .feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.yam-stack__item .feature-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: rgba(11, 15, 14, 0.72);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.yam-stack__item.is-active .feature-list li {
    opacity: 1;
    transform: translateX(2px);
}

.yam-stack__item.is-active .feature-list li:nth-child(1) { transition-delay: 0.05s; }
.yam-stack__item.is-active .feature-list li:nth-child(2) { transition-delay: 0.1s; }
.yam-stack__item.is-active .feature-list li:nth-child(3) { transition-delay: 0.15s; }
.yam-stack__item.is-active .feature-list li:nth-child(4) { transition-delay: 0.2s; }
    font-size: 13px;
    line-height: 1.5;
}

.yam-stack__item .feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--forest);
    font-weight: 600;
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .yam-stack__item {
        transition: none;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 64px 0;
    background: var(--paper);
}

.steps {
    max-width: 780px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 28px;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    width: 1px;
    height: calc(100% - 28px);
    background: var(--hairline);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Fraunces', serif;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.step-content p {
    color: rgba(11, 15, 14, 0.65);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 60px 0;
    }

    .step {
        grid-template-columns: 60px 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .step:not(:last-child)::after {
        left: 29px;
        top: 60px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .step-content h3 {
        font-size: 1.25rem;
    }

    .step-content p {
        font-size: 1rem;
    }
}

/* ========================================
   Score System Section
   ======================================== */
.score-system {
    padding: 64px 0;
    background: var(--paper);
}

.score-ranges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.score-range {
    background: rgba(255, 255, 255, 0.7);
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--hairline);
    border-top: 3px solid;
    transition: all var(--transition-luxury);
    backdrop-filter: blur(10px);
}

.score-range:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    background: rgba(255, 255, 255, 0.9);
}

.score-range-excellent {
    border-top-color: var(--forest);
}

.score-range-moderate {
    border-top-color: var(--score-moderate);
}

.score-range-poor {
    border-top-color: var(--score-poor);
}

.range-header {
    margin-bottom: 16px;
}

.range-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 18px;
    font-weight: 400;
    color: var(--paper);
    font-family: 'Fraunces', serif;
    letter-spacing: -0.02em;
}

.score-range-excellent .range-circle {
    background: var(--forest);
}

.score-range-moderate .range-circle {
    background: var(--score-moderate);
}

.score-range-poor .range-circle {
    background: var(--score-poor);
}

.score-range h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.range-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.range-badge.encourage {
    background-color: rgba(15, 61, 46, 0.1);
    color: var(--forest);
}

.range-badge.moderate {
    background-color: rgba(212, 165, 116, 0.15);
    color: var(--score-moderate);
}

.range-badge.minimize {
    background-color: rgba(201, 125, 96, 0.15);
    color: var(--score-poor);
}

.score-range p:last-child {
    color: rgba(11, 15, 14, 0.65);
    line-height: 1.5;
    font-size: 13px;
}

@media (max-width: 768px) {
    .score-system {
        padding: 60px 0;
    }

    .score-ranges {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ========================================
   Health Domains Section
   ======================================== */
.health-domains {
    padding: 64px 0;
    background: var(--mist);
}

/* Health Domains Carousel */
.domains-carousel-wrapper {
    margin-top: 48px;
}

.domains-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.domains-stage {
    position: relative;
    height: 420px;
    perspective: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(380px, 35vw);
    min-height: 380px;
    transform: translate(-50%, -50%);
    border-radius: 24px;
    padding: 32px 28px;
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Slower, smoother transition */
    will-change: transform, opacity, filter;
    pointer-events: none;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-left: 3px solid var(--forest);
    backdrop-filter: blur(10px);
}

.domain-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 15, 14, 0.75) 0%, rgba(11, 15, 14, 0.55) 50%, rgba(11, 15, 14, 0.65) 100%);
    z-index: 1;
    border-radius: var(--radius-xl);
    transition: opacity 0.4s ease;
}

.domain-card > * {
    position: relative;
    z-index: 2;
}

.domain-card.is-active {
    pointer-events: auto;
    z-index: 10;
}

.domain-card:hover {
    transform: translate(-50%, -50%) translateY(-4px) scale(1.02);
    box-shadow: 0 24px 70px rgba(11, 15, 14, 0.2);
}

.domain-card:hover::before {
    opacity: 0.85;
}

/* Domain carousel navigation */
.domain-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(11, 15, 14, 0.14);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 48px rgba(11, 15, 14, 0.15);
    cursor: pointer;
    z-index: 100;
    font-size: 24px;
    line-height: 1;
    color: rgba(11, 15, 14, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.domain-nav:hover {
    transform: translateY(-50%) scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 60px rgba(11, 15, 14, 0.2);
    border-color: rgba(15, 61, 46, 0.2);
}

.domain-nav--prev {
    left: 0;
}

.domain-nav--next {
    right: 0;
}

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

.domain-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(11, 15, 14, 0.25);
    border: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.domain-dot:hover {
    transform: scale(1.3);
    background: rgba(11, 15, 14, 0.4);
}

.domain-dot.is-active {
    background: rgba(15, 61, 46, 0.95);
    width: 32px;
    transform: scale(1);
    box-shadow: 0 0 12px rgba(15, 61, 46, 0.4);
}

/* Background images for each domain */
.domain-card--nutrient {
    background-image: url('image/blueberries-1326154.jpg');
}

.domain-card--metabolic {
    background-image: url('image/apples-1873078.jpg');
}

.domain-card--processing {
    background-image: url('image/spaghetti-6639970.jpg');
}

.domain-card--additives {
    background-image: url('image/fabric-3506846.jpg');
}

.domain-card--microbiome {
    background-image: url('image/lemons-8544478.jpg');
}

.domain-card--personal {
    background-image: url('image/apples-1872997.jpg');
}

.domain-card--environmental {
    background-image: url('image/lake-1681485.jpg');
}

.domain-card--category {
    background-image: url('image/landscape-8060760.jpg');
}

.domain-card--cosmetic {
    background-image: url('image/lime-2133091.jpg');
}

.domain-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.domain-card h3 {
    font-size: 17px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--paper);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.domain-card p {
    color: rgba(246, 244, 239, 0.95);
    font-size: 13px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.domain-card .domain-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.domain-card .domain-icon svg {
    color: var(--paper);
}

@media (max-width: 768px) {
    .health-domains {
        padding: 60px 0;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Research & Data Sources Section
   ======================================== */
.data-sources {
    padding: 72px 0;
    background: var(--paper);
}

.data-sources .section-head {
    max-width: 1080px;
    margin: 0 auto 48px;
    padding: 0 24px;
    text-align: center;
}

.data-sources .eyebrow {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(11, 15, 14, 0.55);
    margin-bottom: 8px;
    font-weight: 600;
}

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

.data-sources .section-subtitle {
    margin-bottom: 0;
    max-width: 700px;
}

.sources-categories {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.source-category {
    margin-bottom: 48px;
}

.source-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 22px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--hairline);
    font-family: 'Fraunces', serif;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.source-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 22px 20px;
    border-radius: var(--radius-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--hairline);
    transition: all var(--transition-luxury);
    backdrop-filter: blur(10px);
}

.source-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--forest);
}

.source-card h4 {
    font-size: 15px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--forest);
    letter-spacing: -0.01em;
}

.source-card p {
    color: rgba(11, 15, 14, 0.65);
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .data-sources {
        padding: 80px 0;
    }
    
    .data-sources .section-head {
        margin-bottom: 48px;
    }

    .source-category {
        margin-bottom: 48px;
    }
    
    .category-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .sources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .source-card {
        padding: 28px 24px;
    }
}

/* ========================================
   Pain Points / Solutions Section
   ======================================== */
.pain-points {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
}

.pain-points .section-head {
    text-align: center;
    margin-bottom: 56px;
}

.pain-points .eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--score-poor);
    margin-bottom: 12px;
    font-weight: 600;
}

.problems-solutions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.problem-solution-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.problem-solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    background: rgba(255, 255, 255, 0.95);
}

.problem-side,
.solution-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.problem-side {
    text-align: right;
}

.solution-side {
    text-align: left;
}

.problem-icon,
.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 4px;
}

.problem-side .problem-icon {
    margin-left: auto;
    background: rgba(201, 125, 96, 0.12);
}

.problem-side .problem-icon svg {
    width: 20px;
    height: 20px;
    color: var(--score-poor);
}

.solution-side .solution-icon {
    background: rgba(15, 61, 46, 0.1);
}

.solution-side .solution-icon svg {
    width: 20px;
    height: 20px;
    color: var(--forest);
}

.problem-side h3,
.solution-side h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.problem-side p,
.solution-side p {
    font-size: 13px;
    color: rgba(11, 15, 14, 0.65);
    margin: 0;
    line-height: 1.5;
}

.solution-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(15, 61, 46, 0.25);
    transition: transform 0.3s ease;
}

.problem-solution-card:hover .solution-arrow {
    transform: scale(1.1);
}

.solution-arrow svg {
    width: 18px;
    height: 18px;
    color: var(--paper);
}

@media (max-width: 768px) {
    .pain-points {
        padding: 60px 0;
    }

    .problem-solution-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .problem-side,
    .solution-side {
        text-align: center;
    }

    .problem-side .problem-icon,
    .solution-side .solution-icon {
        margin: 0 auto 8px;
    }

    .solution-arrow {
        margin: 8px auto;
        transform: rotate(90deg);
    }

    .problem-solution-card:hover .solution-arrow {
        transform: rotate(90deg) scale(1.1);
    }
}

/* ========================================
   Interactive Demo Section
   ======================================== */
.interactive-demo {
    padding: 80px 0;
    background: var(--mist);
}

.interactive-demo .section-head {
    text-align: center;
    margin-bottom: 48px;
}

.interactive-demo .eyebrow {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Demo Tabs */
.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    color: rgba(11, 15, 14, 0.7);
}

.demo-tab svg {
    width: 16px;
    height: 16px;
}

.demo-tab:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.demo-tab.active {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--paper);
    box-shadow: 0 4px 16px rgba(15, 61, 46, 0.25);
}

.demo-tab.active svg {
    color: var(--paper);
}

/* Tab Content */
.demo-tab-content {
    display: none;
    animation: tabFadeIn 0.4s ease;
}

.demo-tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Shared button styles for all tabs */
.meal-btn, .question-btn, .water-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.meal-btn:hover, .question-btn:hover, .water-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.meal-btn.active, .question-btn.active, .water-btn.active {
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: 0 4px 16px rgba(15, 61, 46, 0.25);
}

.meal-btn.active .product-name,
.question-btn.active .product-name,
.water-btn.active .product-name {
    color: var(--paper);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-products h4,
.demo-insights h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.product-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.product-btn.active {
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: 0 4px 16px rgba(15, 61, 46, 0.25);
}

.product-btn.active .product-name {
    color: var(--paper);
}

.product-emoji {
    font-size: 24px;
}

.product-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.3s ease;
}

/* Demo Phone */
.demo-phone {
    display: flex;
    justify-content: center;
}

.demo-phone-frame {
    width: 260px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2a2a2a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(11, 15, 14, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.demo-phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 0 0 14px 14px;
    z-index: 10;
}

.demo-phone-screen {
    background: var(--paper);
    border-radius: 32px;
    height: 480px;
    overflow: hidden;
    position: relative;
}

/* Demo States */
.demo-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 24px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-scanning {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.demo-scanning.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.demo-result {
    opacity: 1;
    transform: scale(1);
    justify-content: flex-start;
    overflow-y: auto;
}

.demo-result.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Scanning Animation */
.scan-animation {
    width: 120px;
    height: 120px;
    border: 2px solid var(--hairline);
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.scan-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--forest), transparent);
    animation: scanMove 1.5s ease-in-out infinite;
}

@keyframes scanMove {
    0%, 100% { top: 20%; opacity: 0.5; }
    50% { top: 80%; opacity: 1; }
}

.barcode-icon svg {
    width: 48px;
    height: 48px;
    color: rgba(11, 15, 14, 0.3);
}

.scan-text {
    font-size: 14px;
    color: rgba(11, 15, 14, 0.6);
    animation: pulse 1s ease-in-out infinite;
}

/* Demo Result Content */
.demo-product-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.demo-product-emoji {
    font-size: 36px;
}

.demo-product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
}

.demo-product-info p {
    font-size: 12px;
    color: rgba(11, 15, 14, 0.5);
    margin: 0;
}

.demo-score-circle {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 8px 0;
}

.demo-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.demo-score-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.demo-bg-circle {
    stroke: rgba(15, 61, 46, 0.12);
}

.demo-progress-circle {
    stroke: var(--forest);
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.demo-score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 400;
    font-family: 'Fraunces', serif;
    color: var(--ink);
}

.demo-score-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--forest);
    margin: 0 0 16px;
}

.demo-breakdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.demo-domain {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain-name {
    font-size: 11px;
    color: rgba(11, 15, 14, 0.6);
    width: 100px;
    flex-shrink: 0;
}

.domain-bar {
    flex: 1;
    height: 6px;
    background: rgba(15, 61, 46, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.domain-fill {
    height: 100%;
    background: var(--forest);
    border-radius: 3px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-ingredients {
    width: 100%;
    margin-bottom: 16px;
}

.demo-ingredients h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.ingredient-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ing-tag {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.ing-tag.good {
    background: rgba(15, 61, 46, 0.1);
    color: var(--forest);
}

.ing-tag.moderate {
    background: rgba(212, 165, 116, 0.15);
    color: var(--score-moderate);
}

.ing-tag.bad {
    background: rgba(201, 125, 96, 0.15);
    color: var(--score-poor);
}

.demo-action {
    width: 100%;
}

.demo-alt-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--forest);
    color: var(--paper);
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-alt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 61, 46, 0.25);
}

/* Demo Insights */
.insight-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.insight-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-card.positive .insight-icon {
    background: rgba(15, 61, 46, 0.1);
}

.insight-card.positive .insight-icon svg {
    width: 14px;
    height: 14px;
    color: var(--forest);
}

.insight-card.caution .insight-icon {
    background: rgba(212, 165, 116, 0.15);
}

.insight-card.caution .insight-icon svg {
    width: 14px;
    height: 14px;
    color: var(--score-moderate);
}

.insight-card.negative .insight-icon {
    background: rgba(201, 125, 96, 0.15);
}

.insight-card.negative .insight-icon svg {
    width: 14px;
    height: 14px;
    color: var(--score-poor);
}

.insight-card p {
    font-size: 13px;
    color: rgba(11, 15, 14, 0.75);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .demo-products {
        order: 1;
    }

    .demo-phone {
        order: 2;
    }

    .demo-insights {
        order: 3;
    }

    .product-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .product-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .interactive-demo {
        padding: 60px 0;
    }

    .product-btn {
        flex: 1 1 100%;
    }

    .demo-tabs {
        gap: 6px;
    }

    .demo-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    .demo-tab span {
        display: none;
    }
}

/* ========================================
   AI Calories Demo Screen
   ======================================== */
.demo-ai-scanning {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.demo-ai-scanning.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ai-scan-animation {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(15, 61, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
}

.ai-scan-circle {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--forest);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

.ai-scan-animation > svg {
    width: 40px;
    height: 40px;
    color: var(--forest);
}

.demo-calories-result {
    opacity: 1;
    transform: scale(1);
    justify-content: flex-start;
    overflow-y: auto;
}

.demo-calories-result.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.calories-meal-photo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: rgba(15, 61, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.meal-emoji-large {
    font-size: 48px;
}

.meal-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 12px;
}

.calories-hero {
    text-align: center;
    margin-bottom: 16px;
}

.calories-number {
    font-size: 48px;
    font-weight: 400;
    font-family: 'Fraunces', serif;
    color: var(--forest);
    line-height: 1;
}

.calories-unit {
    font-size: 13px;
    color: rgba(11, 15, 14, 0.6);
    margin-top: 4px;
}

.macros-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

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

.macro-circle {
    width: 52px;
    height: 52px;
    position: relative;
    margin-bottom: 4px;
}

.macro-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.macro-circle circle {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
}

.macro-bg {
    stroke: rgba(15, 61, 46, 0.1);
}

.macro-fill {
    stroke: var(--forest);
    stroke-dasharray: 100.53;
    stroke-dashoffset: 25;
    transition: stroke-dashoffset 0.8s ease;
}

.macro-item.protein .macro-fill { stroke: #4A90A4; }
.macro-item.carbs .macro-fill { stroke: #E8B44C; }
.macro-item.fat .macro-fill { stroke: #C97D60; }

.macro-circle span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
}

.macro-label {
    font-size: 10px;
    color: rgba(11, 15, 14, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ai-detected {
    width: 100%;
    margin-bottom: 16px;
}

.ai-detected h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.detected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.detected-item {
    padding: 4px 10px;
    background: rgba(15, 61, 46, 0.08);
    border-radius: 999px;
    font-size: 11px;
    color: var(--forest);
}

/* ========================================
   AI Nutritionist Chat Demo Screen
   ======================================== */
.demo-chat-screen {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 44px 16px 12px;
    background: var(--forest);
    color: var(--paper);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-header-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--paper);
}

.online-status {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--paper);
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.5;
}

.chat-message p {
    margin: 0;
    font-size: 12px;
    color: inherit;
}

.chat-message.bot {
    background: rgba(15, 61, 46, 0.08);
    color: var(--ink);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    background: var(--forest);
    color: var(--paper);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-message.user p {
    color: var(--paper);
}

.chat-message.typing {
    padding: 14px 18px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--forest);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.chat-suggestions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.suggestion-item {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--hairline);
    border-radius: 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-item span {
    font-size: 14px;
}

.bot-tip {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(11, 15, 14, 0.6);
    font-style: italic;
}

.chat-input {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.9);
}

.chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: var(--forest);
}

.chat-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--forest);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chat-input button:hover {
    transform: scale(1.1);
}

.chat-input button svg {
    width: 16px;
    height: 16px;
    color: var(--paper);
}

/* ========================================
   Water Quality Demo Screen
   ======================================== */
.demo-water-scanning {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.demo-water-scanning.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.water-scan-animation {
    width: 80px;
    height: 80px;
    background: rgba(42, 109, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: waterPulse 1.5s ease-in-out infinite;
    margin-bottom: 16px;
}

.water-scan-animation svg {
    width: 36px;
    height: 36px;
    color: var(--mineral);
}

@keyframes waterPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.demo-water-result {
    opacity: 1;
    transform: scale(1);
    justify-content: flex-start;
    overflow-y: auto;
}

.demo-water-result.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.water-header {
    text-align: center;
    margin-bottom: 16px;
}

.water-icon-large {
    font-size: 40px;
    margin-bottom: 8px;
}

.water-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
}

.water-header p {
    font-size: 12px;
    color: rgba(11, 15, 14, 0.6);
    margin: 0;
}

.water-score-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(15, 61, 46, 0.08);
    border-radius: 12px;
    margin-bottom: 16px;
}

.water-score-badge.poor {
    background: rgba(201, 125, 96, 0.12);
}

.water-grade {
    font-size: 28px;
    font-weight: 400;
    font-family: 'Fraunces', serif;
    color: var(--forest);
}

.water-score-badge.poor .water-grade {
    color: var(--score-poor);
}

.water-status {
    font-size: 13px;
    font-weight: 500;
    color: var(--forest);
}

.water-score-badge.poor .water-status {
    color: var(--score-poor);
}

.contaminants-section {
    width: 100%;
    margin-bottom: 16px;
}

.contaminants-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 10px;
}

.contaminant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contaminant-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--hairline);
    border-radius: 8px;
    font-size: 12px;
}

.contaminant-name {
    flex: 1;
    color: var(--ink);
}

.contaminant-level {
    color: rgba(11, 15, 14, 0.6);
    font-size: 11px;
}

.contaminant-status svg {
    width: 16px;
    height: 16px;
}

.contaminant-item.safe .contaminant-status svg {
    color: var(--forest);
}

.contaminant-item.warning .contaminant-status svg {
    color: var(--score-moderate);
}

.contaminant-item.danger .contaminant-status svg {
    color: var(--score-poor);
}

.water-recommendation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(15, 61, 46, 0.08);
    border-radius: 10px;
    width: 100%;
}

.water-recommendation.warning {
    background: rgba(201, 125, 96, 0.12);
}

.water-recommendation svg {
    width: 20px;
    height: 20px;
    color: var(--forest);
    flex-shrink: 0;
}

.water-recommendation.warning svg {
    color: var(--score-poor);
}

.water-recommendation p {
    font-size: 12px;
    color: var(--ink);
    margin: 0;
    line-height: 1.4;
}

/* ========================================
   Health Analytics Demo Screen
   ======================================== */
.analytics-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.analytics-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.analytics-btn.active {
    background: var(--forest);
    border-color: var(--forest);
    box-shadow: 0 4px 16px rgba(15, 61, 46, 0.25);
}

.analytics-btn.active .product-name {
    color: var(--paper);
}

.demo-analytics-loading {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.demo-analytics-loading.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.analytics-load-animation {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.analytics-load-animation svg {
    width: 40px;
    height: 40px;
    color: var(--forest);
    animation: spin 1s linear infinite;
}

.demo-analytics-result {
    opacity: 1;
    transform: scale(1);
    justify-content: flex-start;
    overflow-y: auto;
    padding: 44px 16px 16px !important;
}

.demo-analytics-result.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.analytics-header {
    text-align: center;
    margin-bottom: 12px;
}

.analytics-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 2px;
}

.analytics-date {
    font-size: 11px;
    color: rgba(11, 15, 14, 0.5);
}

.analytics-score-card {
    background: linear-gradient(135deg, var(--forest) 0%, #1a5a42 100%);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    margin-bottom: 12px;
    color: var(--paper);
}

.analytics-big-number {
    font-size: 42px;
    font-weight: 400;
    font-family: 'Fraunces', serif;
    line-height: 1;
}

.analytics-big-label {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.analytics-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    font-size: 11px;
}

.analytics-trend svg {
    width: 14px;
    height: 14px;
}

.analytics-trend.positive { color: #7FE5A0; }
.analytics-trend.negative { color: #FFB4A2; }

.analytics-chart {
    margin-bottom: 10px;
}

.mini-chart {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 60px;
    padding: 0 8px;
    gap: 6px;
}

.chart-bar {
    flex: 1;
    background: rgba(15, 61, 46, 0.15);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 20px;
}

.chart-bar.active {
    background: var(--forest);
}

.chart-bar span {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: rgba(11, 15, 14, 0.5);
}

.chart-bar.active span {
    color: var(--forest);
    font-weight: 600;
}

.analytics-stats {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 10px;
    margin-top: 16px;
}

.analytics-stat-item {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    background: rgba(15, 61, 46, 0.06);
    border-radius: 10px;
}

.stat-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--forest);
    font-family: 'Fraunces', serif;
}

.stat-name {
    font-size: 8px;
    color: rgba(11, 15, 14, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.analytics-highlights {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
}

.highlight-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.highlight-item.good {
    background: rgba(15, 61, 46, 0.08);
    color: var(--forest);
}

.highlight-item.caution {
    background: rgba(212, 165, 116, 0.12);
    color: var(--score-moderate);
}

.highlight-item.bad {
    background: rgba(201, 125, 96, 0.12);
    color: var(--score-poor);
}

/* ========================================
   Privacy Section
   ======================================== */
.privacy {
    padding: 64px 0;
    background: var(--mist);
}

.privacy-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}

.privacy-item {
    text-align: center;
    padding: 24px 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    transition: all var(--transition-luxury);
}

.privacy-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.8);
}

.privacy-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.privacy-item h3 {
    font-size: 15px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.privacy-item p {
    color: rgba(11, 15, 14, 0.65);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .privacy {
        padding: 60px 0;
    }

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

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
    padding: 72px 0;
    background: var(--paper);
}

.pricing .section-head {
    text-align: center;
    margin-bottom: 48px;
}

.pricing .section-title {
    margin-bottom: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-luxury);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-float);
    background: rgba(255, 255, 255, 0.95);
}

.pricing-card--featured {
    border-color: var(--forest);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.pricing-card--featured:hover {
    box-shadow: var(--shadow-float);
}

.pricing-card-inner {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--forest);
    color: var(--paper);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 12px;
}

.pricing-card--featured .pricing-card-inner {
    padding-top: 44px;
}

.pricing-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

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

.pricing-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin-right: 2px;
}

.pricing-amount {
    font-size: 36px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1;
}

.pricing-period {
    font-size: 13px;
    color: rgba(11, 15, 14, 0.6);
    margin-bottom: 20px;
}

.pricing-annual {
    display: block;
    margin-top: 4px;
    font-weight: 500;
    color: var(--forest);
}

.pricing-note {
    text-align: center;
    font-size: 13px;
    color: rgba(11, 15, 14, 0.6);
    max-width: 560px;
    margin: 32px auto 0;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 24px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 10px;
    line-height: 1.4;
}

.pricing-features li i {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--forest);
}

.pricing-exclude {
    color: rgba(11, 15, 14, 0.5) !important;
}

.pricing-exclude i {
    color: rgba(11, 15, 14, 0.4) !important;
}

.pricing-card .btn-block {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 60px 0;
    }

    .pricing .section-head {
        margin-bottom: 36px;
    }
}

/* ========================================
   Download Section
   ======================================== */
.download {
    padding: 72px 0;
    background: var(--forest);
    color: var(--paper);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: drift 30s ease-in-out infinite;
}

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

.download-content h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin-bottom: 14px;
    color: var(--paper);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.download-content p {
    font-size: 16px;
    margin-bottom: 28px;
    opacity: 0.9;
    color: rgba(246, 244, 239, 0.9);
    line-height: 1.6;
}

.download-buttons {
    margin-bottom: 12px;
}

.download-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .download {
        padding: 60px 0;
    }

    .download-content h2 {
        font-size: 2rem;
    }

    .download-content p {
        font-size: 1.125rem;
    }
}

/* ========================================
   Support Section
   ======================================== */
.support {
    padding: 56px 0;
    background: var(--mist);
    text-align: center;
}

.support-content h2 {
    font-size: clamp(26px, 2.5vw, 36px);
    margin-bottom: 12px;
    color: var(--ink);
}

.support-content p {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--ink);
    opacity: 0.9;
}

.support-contact {
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}

.support-contact a {
    color: var(--forest);
    text-decoration: none;
}

.support-contact a:hover {
    text-decoration: underline;
}

.support-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .support {
        padding: 44px 0;
    }
}

/* ========================================
   Legal / Privacy Page
   ======================================== */
.legal-page {
    padding: 48px 0 72px;
    background: var(--paper);
}

.legal-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--hairline);
}

.legal-header h1 {
    font-size: clamp(28px, 3vw, 38px);
    margin-bottom: 8px;
    color: var(--ink);
}

.legal-meta {
    font-size: 0.9375rem;
    color: var(--ink);
    opacity: 0.7;
}

.legal-content {
    max-width: 720px;
    margin: 0 auto;
}

.legal-intro {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 16px;
    margin-top: 0;
}

.legal-section h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin: 20px 0 10px;
}

.legal-section p,
.legal-section ul {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 12px;
}

.legal-section ul {
    padding-left: 1.5rem;
    margin-bottom: 16px;
}

.legal-section li {
    margin-bottom: 6px;
}

.legal-section a {
    color: var(--forest);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-ack {
    font-size: 0.9375rem;
    color: var(--ink);
    opacity: 0.85;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 32px 0 56px;
    }
    .legal-header {
        margin-bottom: 32px;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--ink);
    color: var(--paper);
    padding: 56px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-family: 'Fraunces', serif;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 13px;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-section a {
    font-size: 13px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ========================================
   Motion Tokens & Utilities
   ======================================== */
:root {
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-soft: cubic-bezier(.2, .8, .2, 1);
}

/* Section reveal base (for GSAP) - Start visible, GSAP will animate if available */
.fx-reveal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

/* Only apply blur if JS hasn't initialized (fallback for no-JS) */
.fx-reveal[data-gsap-ready="false"] {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
}

/* Soft hover (expensive, not bouncy) */
.fx-hover {
    transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow .5s cubic-bezier(0.4, 0, 0.2, 1),
                background .3s ease;
}

.fx-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 28px 70px rgba(11, 15, 14, .18);
}

/* Floating device */
.fx-float {
    animation: floaty 7s var(--ease-soft) infinite;
}

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

/* Background "mist/orbs" for cinematic depth */
.hero-bg {
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        radial-gradient(600px 380px at 30% 30%, rgba(15, 61, 46, .10), transparent 55%),
        radial-gradient(520px 340px at 70% 40%, rgba(42, 109, 246, .08), transparent 60%),
        radial-gradient(720px 520px at 55% 75%, rgba(123, 175, 154, .10), transparent 60%);
    filter: blur(14px);
    transform: translateZ(0);
}

/* Icon styling */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--forest);
}

.icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.category-icon,
.feature-icon,
.domain-icon,
.privacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg,
.feature-icon svg,
.domain-icon svg,
.privacy-icon svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
    color: var(--forest);
    transition: transform 0.4s var(--ease-out);
}

.fx-hover:hover .category-icon svg,
.fx-hover:hover .feature-icon svg {
    transform: rotate(5deg) scale(1.05);
}

/* Legacy reveal (for backward compatibility) */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    .reveal,
    .fx-reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }
    
    .fx-float {
        animation: none;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

/* ========================================
   MOTION+ SYSTEM STYLES
   Premium scroll choreography elements
   ======================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--forest), var(--sage));
    transform-origin: left center;
    transform: scaleX(0);
    z-index: 9999;
    pointer-events: none;
}

/* Text Splitting Styles */
.word {
    display: inline-block;
    overflow: hidden;
}

.char {
    display: inline-block;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.space {
    display: inline-block;
    width: 0.3em;
}

/* Kicker (small label above headline) */
.kicker {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(246, 244, 239, 0.6);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(246, 244, 239, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--paper);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
}

/* Horizontal Scroll Section */
.horizontal-scroll-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.horizontal-track {
    display: flex;
    gap: 40px;
    padding: 0 10vw;
    height: 100%;
    align-items: center;
    will-change: transform;
}

.horizontal-item {
    flex-shrink: 0;
    width: 400px;
    height: 500px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pinned Features Showcase */
.pinned-features {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pinned-feature-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px;
}

/* Enhanced Card Hover (for 3D tilt) */
/* Note: domain-card excluded to not interfere with carousel transforms */
.feature-card,
.scan-category {
    transform-style: preserve-3d;
    will-change: transform;
}

.feature-card > *,
.scan-category > * {
    transform: translateZ(20px);
}

/* Stagger animation helper classes */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
}

[data-stagger].is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth image reveals */
.img-reveal {
    overflow: hidden;
}

.img-reveal img {
    transform: scale(1.2);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal.is-visible img {
    transform: scale(1);
}

/* Blur-up loading effect */
.blur-load {
    filter: blur(20px);
    transition: filter 0.8s ease;
}

.blur-load.loaded {
    filter: blur(0);
}

/* Magnetic button enhancement */
.btn {
    will-change: transform;
    transform-style: preserve-3d;
}

/* Glass morphism enhancement */
.glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Section divider with gradient fade */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        var(--hairline) 20%,
        var(--hairline) 80%,
        transparent
    );
    margin: 0 auto;
    max-width: 800px;
}

/* Floating elements subtle shadow */
.float-shadow {
    filter: drop-shadow(0 30px 60px rgba(11, 15, 14, 0.15));
}

/* Glow effect for important elements */
.glow {
    box-shadow:
        0 0 20px rgba(15, 61, 46, 0.1),
        0 0 40px rgba(15, 61, 46, 0.05),
        0 0 60px rgba(15, 61, 46, 0.025);
}

/* Animated gradient background */
.gradient-animate {
    background: linear-gradient(-45deg, var(--mist), var(--paper), #E8F5F0, var(--mist));
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Subtle pulse for CTAs */
.pulse {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        box-shadow: 0 10px 24px rgba(15, 61, 46, 0.18);
    }
    50% {
        box-shadow: 0 14px 32px rgba(15, 61, 46, 0.25);
    }
}

/* Stagger delay utilities */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Performance optimization for animated elements */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Reduced motion - disable all motion+ effects */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress {
        display: none;
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }

    .char,
    .word {
        transform: none !important;
        opacity: 1 !important;
    }

    .horizontal-track {
        transform: none !important;
    }

    .gradient-animate {
        animation: none;
    }

    .pulse {
        animation: none;
    }
}

/* No GSAP fallback */
.no-gsap .fx-reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

.no-gsap .char,
.no-gsap .word {
    transform: none;
    opacity: 1;
}

/* Ensure smooth scrolling feels native */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

/* ========================================
   Additional Premium Animations
   ======================================== */

/* Shimmer effect for loading states */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--mist) 0%,
        rgba(255, 255, 255, 0.8) 50%,
        var(--mist) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Bounce in animation */
@keyframes bounce-in {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.bounce-in {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Slide up reveal */
@keyframes slide-up-reveal {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Rotate in */
@keyframes rotate-in {
    0% {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

/* Clip path reveal */
@keyframes clip-reveal {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.clip-reveal {
    animation: clip-reveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Counter number styling */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ========================================
   Enhanced Interactive Animations
   ======================================== */

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(-25px) translateX(0);
    }
    75% {
        transform: translateY(-15px) translateX(-5px);
    }
}

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

.float {
    animation: float 6s ease-in-out infinite;
}

.float-slow {
    animation: float-slow 8s ease-in-out infinite;
}

.float-reverse {
    animation: float-reverse 5s ease-in-out infinite;
}

/* Glow pulse animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(15, 61, 46, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(15, 61, 46, 0.4), 0 0 60px rgba(15, 61, 46, 0.2);
    }
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Gradient shift animation */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-shift {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* Morphing blob animation */
@keyframes morph {
    0%, 100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }
    75% {
        border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
    }
}

.morph-blob {
    animation: morph 15s ease-in-out infinite;
}

/* Enhanced card hover effects */
.scan-category,
.feature-card,
.problem-solution-card {
    position: relative;
    overflow: hidden;
}

.scan-category::before,
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
    z-index: 10;
}

.scan-category:hover::before,
.feature-card:hover::before {
    left: 100%;
}

/* Ripple effect on buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.btn:active::after {
    transform: scale(2);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* Demo tab enhanced animations */
.demo-tab {
    position: relative;
    overflow: hidden;
}

.demo-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--forest);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-tab:hover::before {
    width: 60%;
}

.demo-tab.active::before {
    width: 100%;
    background: linear-gradient(90deg, var(--sage), var(--forest));
}

/* Staggered reveal for lists */
.feature-list li,
.insight-cards .insight-card {
    opacity: 0;
    transform: translateX(-10px);
    animation: slide-in-list 0.4s ease forwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.1s; }
.feature-list li:nth-child(2) { animation-delay: 0.15s; }
.feature-list li:nth-child(3) { animation-delay: 0.2s; }
.feature-list li:nth-child(4) { animation-delay: 0.25s; }

.insight-cards .insight-card:nth-child(1) { animation-delay: 0.3s; }
.insight-cards .insight-card:nth-child(2) { animation-delay: 0.4s; }
.insight-cards .insight-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes slide-in-list {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Score circle pulse on result */
.demo-score-circle {
    position: relative;
}

.demo-score-circle::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 61, 46, 0.1) 0%, transparent 70%);
    animation: score-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes score-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

/* Enhanced problem-solution card animations */
.problem-solution-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(11, 15, 14, 0.15);
}

.problem-solution-card:hover .solution-arrow {
    transform: translateX(4px);
}

.solution-arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-solution-card:hover .problem-icon,
.problem-solution-card:hover .solution-icon {
    transform: scale(1.1) rotate(5deg);
}

.problem-icon,
.solution-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Step number bounce on scroll */
.step-number {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step:hover .step-number {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 10px 30px rgba(15, 61, 46, 0.3);
}

/* Category icon spin on hover */
.category-icon {
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scan-category:hover .category-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Glass card floating effect enhancement */
.glass-card {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.device:hover .glass-card.ingredients {
    transform: translate(-50%, 0) scale(1.05);
}

.device:hover .glass-card.sources {
    transform: translate(-50%, 0) scale(1.05);
}

.device:hover .glass-card.calories {
    transform: translate(50%, 0) scale(1.05);
}

.device:hover .glass-card.nutritionist {
    transform: translate(50%, 0) scale(1.05);
}

.device:hover .glass-card.water {
    transform: translate(50%, 0) scale(1.05);
}

/* Navbar link hover animation */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--forest);
    transition: width 0.3s ease;
}

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

.nav-links a {
    position: relative;
}

/* Phone mockup breathe animation */
@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.phone-mockup {
    animation: breathe 4s ease-in-out infinite;
}

/* Demo product buttons enhanced hover */
.product-btn {
    position: relative;
    overflow: hidden;
}

.product-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 61, 46, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-btn:hover::before {
    opacity: 1;
}

.product-btn .product-emoji {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-btn:hover .product-emoji {
    transform: scale(1.2) rotate(-10deg);
}

/* Water quality wave animation */
@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-5px) translateY(-3px);
    }
    50% {
        transform: translateX(0) translateY(-5px);
    }
    75% {
        transform: translateX(5px) translateY(-3px);
    }
}

.water-quality-demo .water-score-badge {
    animation: wave 4s ease-in-out infinite;
}

/* Chat bubble typing animation */
@keyframes typing-dots {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.typing-indicator span {
    animation: typing-dots 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Analytics mini chart bar animation */
.chart-bar {
    transform-origin: bottom;
    animation: grow-bar 0.8s ease-out forwards;
}

@keyframes grow-bar {
    from {
        transform: scaleY(0);
    }
    to {
        transform: scaleY(1);
    }
}

.chart-bar:nth-child(1) { animation-delay: 0.1s; }
.chart-bar:nth-child(2) { animation-delay: 0.15s; }
.chart-bar:nth-child(3) { animation-delay: 0.2s; }
.chart-bar:nth-child(4) { animation-delay: 0.25s; }
.chart-bar:nth-child(5) { animation-delay: 0.3s; }
.chart-bar:nth-child(6) { animation-delay: 0.35s; }
.chart-bar:nth-child(7) { animation-delay: 0.4s; }

/* Credibility chip shimmer effect */
.credibility-chip {
    position: relative;
    overflow: hidden;
}

.credibility-chip::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: chip-shimmer 3s infinite;
}

@keyframes chip-shimmer {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.credibility-chip:nth-child(2)::after {
    animation-delay: 1s;
}

.credibility-chip:nth-child(3)::after {
    animation-delay: 2s;
}

/* Section title gradient text animation */
.section-title {
    background: linear-gradient(135deg, var(--ink) 0%, var(--forest) 50%, var(--ink) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-text 5s ease-in-out infinite;
}

@keyframes gradient-text {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Hero highlight text glow */
.hero-title .highlight {
    text-shadow: 0 0 40px rgba(123, 175, 154, 0.3);
    transition: text-shadow 0.5s ease;
}

.hero-title:hover .highlight {
    text-shadow: 0 0 60px rgba(123, 175, 154, 0.5), 0 0 100px rgba(123, 175, 154, 0.3);
}

/* Scroll hint animation */
@keyframes scroll-hint {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(10px);
        opacity: 0.5;
    }
}

/* Interactive focus states */
.btn:focus-visible,
.demo-tab:focus-visible,
.product-btn:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
}

/* Smooth page transitions */
.demo-tab-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.demo-tab-content:not(.active) {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.demo-tab-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;
}

/* Enhanced loading state for demo */
@keyframes demo-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.demo-scanning.active .scan-text {
    animation: demo-pulse 1.5s ease-in-out infinite;
}

/* Smooth score number change */
.demo-score-number {
    transition: transform 0.3s ease;
}

.demo-score-circle:hover .demo-score-number {
    transform: scale(1.1);
}

/* Enhanced insight card stagger on tab show */
.demo-tab-content.active .insight-card {
    opacity: 0;
    transform: translateX(-10px);
    animation: insight-slide-in 0.4s ease forwards;
}

.demo-tab-content.active .insight-card:nth-child(1) { animation-delay: 0.2s; }
.demo-tab-content.active .insight-card:nth-child(2) { animation-delay: 0.3s; }
.demo-tab-content.active .insight-card:nth-child(3) { animation-delay: 0.4s; }

@keyframes insight-slide-in {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth icon transitions throughout */
svg[class*="lucide"] {
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn:hover svg,
.demo-tab:hover svg,
.scan-category:hover svg {
    transform: scale(1.1);
}

/* Final polish: subtle body background animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at 20% 50%,
        rgba(123, 175, 154, 0.03) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    animation: bg-shift 20s ease-in-out infinite;
}

@keyframes bg-shift {
    0%, 100% {
        opacity: 1;
        transform: translate(0, 0);
    }
    50% {
        opacity: 0.7;
        transform: translate(5%, -5%);
    }
}

/* ========================================
   Interactive Product Comparison
   ======================================== */
.product-compare {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%);
    position: relative;
    overflow: hidden;
}

.product-compare::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(123, 175, 154, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.compare-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.compare-column {
    flex: 1;
    min-width: 320px;
    max-width: 400px;
}

.compare-selector {
    margin-bottom: 24px;
}

.compare-selector h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(11, 15, 14, 0.5);
    margin-bottom: 12px;
}

.compare-products {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compare-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    transition: all 0.3s ease;
}

.compare-btn:hover {
    border-color: var(--sage);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.compare-btn.active {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

.compare-btn .product-emoji {
    font-size: 18px;
}

.compare-result {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.compare-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--forest));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-result:hover::before {
    opacity: 1;
}

.compare-result:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.compare-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.compare-emoji {
    font-size: 48px;
}

.compare-product-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.compare-product-info span {
    font-size: 13px;
    color: rgba(11, 15, 14, 0.5);
}

.compare-score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
}

.compare-score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.compare-bg-ring {
    fill: none;
    stroke: var(--mist);
    stroke-width: 8;
}

.compare-progress-ring {
    fill: none;
    stroke: var(--sage);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

.compare-progress-ring.good {
    stroke: var(--sage);
}

.compare-progress-ring.moderate {
    stroke: var(--score-moderate);
}

.compare-progress-ring.poor {
    stroke: var(--score-poor);
}

.compare-score-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: 700;
    font-family: 'Fraunces', serif;
    color: var(--ink);
}

.compare-label {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--sage);
    margin-bottom: 24px;
}

.compare-label.poor {
    color: var(--score-poor);
}

.compare-label.moderate {
    color: var(--score-moderate);
}

.compare-domains {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.compare-domain {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-domain span {
    font-size: 12px;
    color: rgba(11, 15, 14, 0.6);
    min-width: 110px;
}

.compare-bar {
    flex: 1;
    height: 8px;
    background: var(--mist);
    border-radius: 4px;
    overflow: hidden;
}

.compare-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage), var(--forest));
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.compare-fill.moderate {
    background: linear-gradient(90deg, #e8c078, var(--score-moderate));
}

.compare-fill.poor {
    background: linear-gradient(90deg, #e8a090, var(--score-poor));
}

.compare-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.highlight-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-tag.good {
    background: rgba(123, 175, 154, 0.15);
    color: var(--forest);
}

.highlight-tag.moderate {
    background: rgba(212, 165, 116, 0.15);
    color: #9a7340;
}

.highlight-tag.bad {
    background: rgba(201, 125, 96, 0.15);
    color: #a15a40;
}

/* VS Divider */
.compare-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 140px;
}

.vs-circle {
    width: 60px;
    height: 60px;
    background: var(--forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.vs-line {
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, var(--forest), transparent);
    margin-top: -10px;
}

/* Comparison Summary */
.compare-summary {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}

.summary-winner {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding-right: 40px;
    border-right: 1px solid var(--hairline);
}

.winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #ffd700, #ffb700);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6b5300;
    margin-bottom: 16px;
}

.winner-badge svg {
    width: 16px;
    height: 16px;
}

.summary-winner h4 {
    font-size: 24px;
    font-family: 'Fraunces', serif;
    margin-bottom: 8px;
}

.summary-winner p {
    font-size: 14px;
    color: rgba(11, 15, 14, 0.6);
}

.summary-tips {
    flex: 1;
    min-width: 280px;
}

.summary-tips h5 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(11, 15, 14, 0.5);
    margin-bottom: 16px;
}

.summary-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-tips li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(11, 15, 14, 0.7);
}

.summary-tips li svg {
    width: 18px;
    height: 18px;
    color: var(--sage);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .compare-container {
        flex-direction: column;
        align-items: center;
    }
    
    .compare-vs {
        flex-direction: row;
        padding: 20px 0;
    }
    
    .vs-line {
        width: 100px;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--forest), transparent);
        margin: 0 -10px;
    }
    
    .summary-winner {
        border-right: none;
        border-bottom: 1px solid var(--hairline);
        padding-right: 0;
        padding-bottom: 30px;
    }
}

/* ========================================
   Enhanced Scroll Animations
   ======================================== */

/* Parallax layers for depth */
.parallax-layer {
    will-change: transform;
}

/* Staggered fade-in for lists */
.stagger-reveal > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-reveal.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-reveal.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-reveal.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-reveal.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-reveal.revealed > *:nth-child(5) { transition-delay: 0.5s; }

.stagger-reveal.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Scale-in reveal */
.scale-reveal {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-reveal.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Slide-in from sides */
.slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.revealed,
.slide-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Blur reveal */
.blur-reveal {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(40px);
    transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Rotate reveal */
.rotate-reveal {
    opacity: 0;
    transform: perspective(1000px) rotateX(15deg) translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.rotate-reveal.revealed {
    opacity: 1;
    transform: perspective(1000px) rotateX(0) translateY(0);
}

/* Floating animation for ambient movement */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

@keyframes float-delayed {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.float-animation-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Pulse glow effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(123, 175, 154, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(123, 175, 154, 0.4);
    }
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Scroll-triggered color shift */
.color-shift-bg {
    transition: background-color 0.8s ease;
}

/* Enhanced section transitions */
section {
    position: relative;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 1000px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

section:last-of-type::after {
    display: none;
}

/* Interactive hover lift for all cards */
.interactive-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.interactive-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

/* Ripple effect on click */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(123, 175, 154, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
}

.ripple-effect:active::after {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0s;
}

/* Smooth scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-indicator-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--ink);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator-wheel {
    width: 4px;
    height: 8px;
    background: var(--ink);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.3;
    }
}

/* ========================================
   Interactive Pain Points (Flip Cards)
   ======================================== */
.pain-points-interactive {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--paper) 0%, rgba(123, 175, 154, 0.08) 50%, var(--paper) 100%);
    position: relative;
    overflow: hidden;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    perspective: 1200px;
}

@media (max-width: 1024px) {
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .pain-grid {
        grid-template-columns: 1fr;
    }
}

.pain-card {
    height: 320px;
    cursor: pointer;
    perspective: 1000px;
}

.pain-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.pain-card.flipped .pain-card-inner {
    transform: rotateY(180deg);
}

.pain-front,
.pain-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.pain-front {
    background: white;
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-sm);
}

.pain-card:hover .pain-front {
    box-shadow: var(--shadow-lg);
}

.pain-back {
    background: linear-gradient(135deg, var(--forest) 0%, #1a5a42 100%);
    color: white;
    transform: rotateY(180deg);
    box-shadow: var(--shadow-xl);
}

.pain-icon,
.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pain-icon {
    background: linear-gradient(135deg, rgba(201, 125, 96, 0.15) 0%, rgba(201, 125, 96, 0.08) 100%);
    color: var(--score-poor);
}

.pain-card:hover .pain-icon {
    transform: scale(1.1) rotate(-5deg);
}

.solution-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pain-icon svg,
.solution-icon svg {
    width: 28px;
    height: 28px;
}

.pain-front h3,
.pain-back h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    font-family: 'Fraunces', serif;
}

.pain-front p {
    color: rgba(11, 15, 14, 0.6);
    font-size: 14px;
    line-height: 1.6;
    flex-grow: 1;
}

.pain-back p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
}

.flip-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--sage);
    font-weight: 500;
    margin-top: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flip-hint svg {
    width: 14px;
    height: 14px;
    animation: rotate-hint 2s ease-in-out infinite;
}

@keyframes rotate-hint {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.pain-card:hover .flip-hint {
    opacity: 1;
}

/* Solution demos inside flipped cards */
.solution-demo {
    margin-top: auto;
    padding-top: 16px;
}

.mini-score {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Fraunces', serif;
}

.mini-score.good {
    background: rgba(123, 175, 154, 0.3);
    color: #a8e6cf;
    border: 2px solid rgba(123, 175, 154, 0.5);
}

.alert-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.alert-tag.bad {
    background: rgba(201, 125, 96, 0.3);
    color: #ffb3a0;
}

.alert-tag.moderate {
    background: rgba(212, 165, 116, 0.3);
    color: #ffe0b8;
}

.pref-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-right: 8px;
    margin-bottom: 8px;
}

.scan-animation-mini {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.scan-line-mini {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: scan-mini 1.5s ease-in-out infinite;
}

@keyframes scan-mini {
    0%, 100% { top: 0; }
    50% { top: calc(100% - 2px); }
}

.app-icons-mini {
    display: flex;
    gap: 12px;
}

.app-icons-mini span {
    font-size: 24px;
    animation: float-icon 2s ease-in-out infinite;
}

.app-icons-mini span:nth-child(2) { animation-delay: 0.2s; }
.app-icons-mini span:nth-child(3) { animation-delay: 0.4s; }
.app-icons-mini span:nth-child(4) { animation-delay: 0.6s; }

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

/* CTA Card (doesn't flip) */
.cta-card {
    cursor: default;
}

.cta-card .pain-card-inner {
    transform: none !important;
}

.cta-front {
    background: linear-gradient(135deg, var(--forest) 0%, #1a5a42 100%);
    color: white;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.cta-front h3 {
    color: white;
}

.cta-front p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.cta-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: bounce-cta 2s ease-in-out infinite;
}

.cta-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

@keyframes bounce-cta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cta-front .btn {
    background: white;
    color: var(--forest);
}

.cta-front .btn:hover {
    background: var(--paper);
    transform: translateY(-2px);
}

/* Pain cards stagger reveal animation */
.pain-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pain-points-interactive.is-in .pain-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pain-points-interactive.is-in .pain-card:nth-child(1) { transition-delay: 0.1s; }
.pain-points-interactive.is-in .pain-card:nth-child(2) { transition-delay: 0.2s; }
.pain-points-interactive.is-in .pain-card:nth-child(3) { transition-delay: 0.3s; }
.pain-points-interactive.is-in .pain-card:nth-child(4) { transition-delay: 0.4s; }
.pain-points-interactive.is-in .pain-card:nth-child(5) { transition-delay: 0.5s; }
.pain-points-interactive.is-in .pain-card:nth-child(6) { transition-delay: 0.6s; }

/* Features list on flip card back */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.feature-row:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.feature-row span {
    font-size: 14px;
}

/* Make scattered tools card taller to fit content */
.pain-card[data-pain="scattered"] {
    height: 420px;
}

.pain-card[data-pain="scattered"] .pain-back {
    padding: 20px;
}

.pain-card[data-pain="scattered"] .pain-back .solution-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
}

.pain-card[data-pain="scattered"] .pain-back h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.pain-card[data-pain="scattered"] .pain-back p {
    font-size: 12px;
    margin-bottom: 8px;
}

.pain-card[data-pain="scattered"] .features-list {
    gap: 4px;
}

.pain-card[data-pain="scattered"] .feature-row {
    padding: 3px 6px;
    font-size: 11px;
}

.pain-card[data-pain="scattered"] .feature-row span {
    font-size: 12px;
}
