/* ============================================
   RESALENT — Landing Page Styles v3
   Total black + white accent, wave motif
   10 conversion hypotheses implemented
   ============================================ */

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

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: rgba(255, 255, 255, 0.95);
    --gray-200: rgba(255, 255, 255, 0.7);
    --gray-300: rgba(255, 255, 255, 0.6);
    --gray-400: rgba(255, 255, 255, 0.25);
    --gray-500: rgba(255, 255, 255, 0.12);
    --gray-600: rgba(255, 255, 255, 0.06);
    --glow: rgba(255, 255, 255, 0.08);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

    --container: 1200px;
    --section-pad: clamp(80px, 12vh, 160px);
}

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

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Grain --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 128px 128px;
    transform: translateZ(0);
}

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

.cursor-glow.visible { opacity: 1; }

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

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }

.text-secondary {
    color: var(--gray-200);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

em { font-style: italic; color: var(--white); }

.strikethrough {
    text-decoration: line-through;
    color: var(--gray-300);
}

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

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--white);
    color: var(--black);
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.3s var(--ease-out-expo);
}

.skip-link:focus {
    top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vh, 80px);
}

.section-header p { margin-top: 16px; }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 16px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--white);
    color: var(--black);
    border: none;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-400);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-secondary:hover {
    border-color: var(--gray-200);
    background: var(--gray-600);
}

/* --- App Store Badge --- */
.app-store-badge {
    display: inline-block;
    transition: transform 0.3s var(--ease-out-expo), filter 0.3s;
}

.app-store-badge img {
    display: block;
    height: 54px;
    width: auto;
}

.app-store-badge:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-600);
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

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

.nav-links a {
    color: var(--gray-200);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.nav-links .nav-cta {
    padding: 10px 24px;
    background: var(--gray-600);
    border: 1px solid var(--gray-500);
    border-radius: 100px;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-links .nav-cta:hover {
    background: var(--gray-500);
    border-color: var(--gray-400);
}

.nav-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-burger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s;
}

.mobile-menu {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
}

/* ============================================
   HERO
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#heroCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, transparent 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--gray-500);
    border-radius: 100px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--gray-200);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--white), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    margin-top: 24px;
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    color: var(--gray-200);
    line-height: 1.7;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-social-proof {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray-300);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
}

/* ============================================
   PROBLEM + DAY TIMELINE + PHONE DATA
   ============================================ */
#problem {
    padding: var(--section-pad) 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.problem-text h2 { margin-bottom: 24px; }
.problem-text p { margin-bottom: 16px; }

/* --- Day Timeline --- */
.day-timeline {
    margin-bottom: 24px;
}

.timeline-hours {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--gray-400);
    margin-bottom: 10px;
    padding: 0 2px;
}

.timeline-track {
    height: 2px;
    background: var(--gray-600);
    border-radius: 1px;
    position: relative;
}

/* Track draw-in animation */
.timeline-track::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gray-400);
    border-radius: 1px;
    transition: width 1.2s var(--ease-out-expo);
}

.problem-visual.active .timeline-track::before {
    width: 100%;
}

.timeline-pulse {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.5s var(--ease-out-expo);
}

.timeline-pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.timeline-pulse.dead::before {
    background: var(--gray-400);
    opacity: 0.5;
}

.timeline-pulse.alive::before {
    background: var(--white);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.pulse-ring {
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* Timeline pulse staggered reveal */
.problem-visual.active .timeline-pulse:nth-child(1) {
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.4s;
}
.problem-visual.active .timeline-pulse:nth-child(2) {
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.6s;
}
.problem-visual.active .timeline-pulse:nth-child(3) {
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.8s;
}
.problem-visual.active .timeline-pulse:nth-child(4) {
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 1.1s;
}

/* --- Animated Notification Stack --- */
.notification-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fake-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--gray-600);
    border: 1px solid var(--gray-500);
    /* Start hidden for animation */
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s var(--ease-out-expo);
}

/* Staggered notification reveal */
.problem-visual.active .fake-notification:nth-child(1) {
    transition-delay: 0.2s;
}
.problem-visual.active .fake-notification:nth-child(2) {
    transition-delay: 0.5s;
}
.problem-visual.active .fake-notification:nth-child(3) {
    transition-delay: 0.8s;
}
.problem-visual.active .fake-notification:nth-child(4) {
    transition-delay: 1.2s;
}

.problem-visual.active .fake-notification.dead {
    opacity: 0.4;
    transform: translateX(0);
}

.problem-visual.active .fake-notification.alive {
    opacity: 1;
    transform: translateX(0);
    background: var(--glow);
    border-color: var(--gray-400);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

.notif-icon { font-size: 1.2rem; flex-shrink: 0; }

.notif-text { flex: 1; min-width: 0; }

.notif-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-text span {
    font-size: 0.8rem;
    color: var(--gray-200);
}

.notif-time {
    font-size: 0.75rem;
    color: var(--gray-300);
    flex-shrink: 0;
}

/* --- "Your Phone Already Knows" Data Section --- */
.phone-data-section {
    margin-top: clamp(64px, 8vh, 120px);
    text-align: center;
}

.phone-data-title {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    margin-bottom: clamp(32px, 4vh, 48px);
    color: var(--gray-200);
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.data-point {
    padding: 28px 20px;
    border-radius: 20px;
    border: 1px solid var(--gray-600);
    background: linear-gradient(180deg, var(--gray-600) 0%, transparent 100%);
    transition: all 0.4s var(--ease-out-expo);
}

.data-point:hover {
    border-color: var(--gray-500);
    transform: translateY(-2px);
}

.data-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 16px;
    color: var(--gray-300);
}

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

.data-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.data-label {
    font-size: 0.8rem;
    color: var(--gray-300);
    line-height: 1.4;
}

.data-cta {
    margin-top: clamp(24px, 3vh, 40px);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
    color: var(--gray-200);
}

/* ============================================
   RESONANCE DEMO
   ============================================ */
#resonance-demo {
    padding: var(--section-pad) 0;
}

.demo-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    border: 1px solid var(--gray-500);
    background: var(--gray-600);
    overflow: hidden;
    transition: border-color 0.6s, box-shadow 0.6s;
}

.demo-wrapper.resonating {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.06), 0 0 160px rgba(255, 255, 255, 0.03);
}

#demoCanvas {
    width: 100%;
    height: 340px;
    display: block;
}

.demo-controls {
    padding: 32px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Giant percentage — the visual anchor */
.demo-percent {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    transition: all 0.3s;
    color: var(--white);
}

.demo-percent.resonating {
    text-shadow: 0 0 60px rgba(255, 255, 255, 0.5), 0 0 120px rgba(255, 255, 255, 0.2);
}

.demo-percent-sign {
    font-size: 0.4em;
    font-weight: 500;
    color: var(--gray-300);
    vertical-align: super;
    margin-left: 2px;
}

.demo-label {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    transition: all 0.3s;
}

.demo-label.in-resonance {
    color: var(--white);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.demo-hint {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin-bottom: 16px;
    transition: color 0.3s;
    min-height: 1.4em;
}

.demo-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 500px;
}

.demo-slider-label {
    font-size: 0.7rem;
    color: var(--gray-400);
    white-space: nowrap;
    min-width: 70px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.demo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-500);
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s, transform 0.2s;
}

.demo-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.demo-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
#how-it-works {
    padding: var(--section-pad) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    position: relative;
    padding: 36px 28px;
    border-radius: 24px;
    border: 1px solid var(--gray-600);
    background: linear-gradient(180deg, var(--gray-600) 0%, transparent 100%);
    transition: all 0.4s var(--ease-out-expo);
}

.step:hover {
    border-color: var(--gray-500);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Horizontal chevron connector between steps (desktop) */
.step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: none;
    border-right: 1.5px solid var(--gray-500);
    border-bottom: 1.5px solid var(--gray-500);
    transform: translateY(-50%) rotate(-45deg);
}

/* Progressive step number brightness */
.step-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--gray-400);
    margin-bottom: 20px;
    font-weight: 600;
}

.step:nth-child(2) .step-number { color: var(--gray-300); }
.step:nth-child(3) .step-number { color: var(--gray-200); }

.step-icon {
    width: 48px;
    height: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

.step-icon svg { width: 100%; height: 100%; }
.step h3 { margin-bottom: 10px; }

.step p {
    color: var(--gray-200);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.step-tags span {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    background: var(--gray-600);
    color: var(--gray-300);
    border: none;
    cursor: default;
}

/* ============================================
   SOCIAL PROOF — Counter + Comparison + Reviews
   ============================================ */
#reviews {
    padding: var(--section-pad) 0;
}

/* --- Live Counter --- */
.live-counter {
    text-align: center;
    margin-bottom: clamp(64px, 8vh, 100px);
}

.counter-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, var(--white), var(--gray-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    display: block;
    margin-top: 12px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--gray-300);
    letter-spacing: 0.02em;
}

/* --- Tagline (replaces live counter) --- */
.counter-label.tagline {
    margin-top: 0;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--gray-200);
    font-style: italic;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* --- Comparison Story --- */
.comparison-story {
    max-width: 600px;
    margin: 0 auto clamp(40px, 5vh, 64px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.story-time {
    flex-shrink: 0;
    width: 72px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--gray-400);
    padding-top: 14px;
    text-align: right;
}

.story-app {
    flex: 1;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid var(--gray-600);
    transition: all 0.3s ease;
}

.story-app strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.story-app p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.story-app.dead {
    opacity: 0.5;
}

.story-app.dead strong {
    color: var(--gray-400);
}

.story-app.dead p {
    color: var(--gray-300);
}

.story-app.alive {
    border-color: var(--gray-400);
}

.story-app.alive strong {
    color: var(--gray-200);
}

.story-app.alive p {
    color: var(--gray-100);
}

.story-app.alive.glow {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.06), inset 0 0 20px rgba(255, 255, 255, 0.03);
}

.story-app.alive.glow strong {
    color: var(--white);
}

.story-app.alive.glow p {
    color: var(--white);
}

/* --- Comparison Table --- */
.comparison-section {
    margin-bottom: clamp(64px, 8vh, 100px);
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--gray-600);
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--gray-300);
    border-bottom: 1px solid var(--gray-600);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table thead th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    padding: 14px 20px;
    background: var(--gray-600);
}

.comparison-table th[scope="row"] {
    text-align: left;
    color: var(--gray-200);
    font-size: 0.85rem;
    font-weight: 400;
}

.comparison-table th:first-child {
    width: 40%;
}

.comparison-highlight {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table thead .comparison-highlight {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.comparison-table .comparison-yes {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
}

.comparison-table tbody td {
    color: var(--gray-400);
}

/* --- Reviews --- */
.reviews-header {
    margin-top: clamp(60px, 8vh, 100px);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial {
    padding: 36px 28px;
    border-radius: 24px;
    border: 1px solid var(--gray-600);
    background: var(--gray-600);
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

@media (hover: hover) {
    .testimonial:hover {
        border-color: var(--gray-500);
        transform: translateY(-2px);
    }
}

/* Large opening quote mark as visual anchor */
.testimonial-quote {
    position: relative;
    font-size: 0.95rem;
    color: var(--gray-200);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: normal;
    flex: 1;
    padding-top: 8px;
}

.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    top: -18px;
    left: -4px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1;
    color: var(--gray-400);
    font-style: normal;
}

/* Highlight key phrase inside quote */
.testimonial-quote em {
    font-style: normal;
    color: var(--white);
}

/* Author — separator + larger presence */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-500);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-200);
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-300);
}

/* ============================================
   FINAL CTA / DOWNLOAD
   ============================================ */
#download {
    position: relative;
    padding: var(--section-pad) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#finalCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.download-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.download-content h2 { margin-bottom: 20px; }

.download-sub {
    margin: 0 auto 40px;
    text-align: center;
}


/* ============================================
   FOOTER
   ============================================ */
footer {
    border-top: 1px solid var(--gray-600);
    padding: 48px 0 32px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--gray-300);
    font-weight: 400;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 24px;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-500);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
    /* Hidden on desktop */
    display: none;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    color: var(--black);
    border-radius: 100px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s;
}

.sticky-cta-btn:active {
    transform: scale(0.97);
}

.sticky-cta-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.sticky-cta-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Switch to vertical connector on mobile */
    .step:not(:last-child)::after {
        right: auto;
        top: auto;
        bottom: -14px;
        left: 36px;
        width: 1px;
        height: 8px;
        border: none;
        background: var(--gray-500);
        transform: none;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .demo-slider-wrap {
        flex-direction: column;
        gap: 8px;
    }

    .demo-slider-label { min-width: auto; }

    #demoCanvas {
        height: 240px;
    }

    .demo-controls {
        padding: 24px 20px 32px;
    }

    .footer-grid {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links { flex-wrap: wrap; }

    /* Comparison table horizontal scroll on mobile */
    .comparison-section {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 500px;
    }

    /* Show sticky CTA on mobile */
    .sticky-cta {
        display: block;
    }

    /* Extra bottom padding for sticky CTA */
    footer {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    .hero-sub br { display: none; }

    .story-time {
        width: 56px;
        font-size: 0.7rem;
    }

    .story-app {
        padding: 12px 14px;
    }

    .story-app p {
        font-size: 0.82rem;
    }

    .data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .data-point {
        padding: 20px 16px;
    }

    .data-value {
        font-size: 1.2rem;
    }
}

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

    .scroll-line { animation: none; }
    .pulse-ring { animation: none; }

    .fake-notification {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .fake-notification.dead { opacity: 0.4 !important; }

    .timeline-pulse {
        transform: translate(-50%, -50%) scale(1) !important;
        transition: none !important;
    }

    .timeline-track::before {
        width: 100% !important;
        transition: none !important;
    }
}
