/* ============================================
   BANDPILOT MARKETING SITE
   Dark, confident, stage-ready
   Mobile-first responsive design
   ============================================ */

/* CSS Variables - Brand Colors */
:root {
    /* Core palette */
    --bg-dark: #1F1F1F;
    --bg-darker: #0F0F0F;
    --bg-surface: #2A2A2A;
    --bg-elevated: #333333;

    --primary: #FF5722;
    --primary-hover: #E64A19;
    --primary-glow: rgba(255, 87, 34, 0.3);

    --secondary: #2196F3;

    --text-primary: #F5F5F5;
    --text-secondary: #B0B0B0;
    --text-muted: #707070;

    --border: #404040;
    --border-subtle: #333333;

    --success: #66BB6A;
    --warning: #FFA726;
    --danger: #EF5350;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;

    /* Spacing - mobile default */
    --container-width: 1200px;
    --section-padding: 4.5rem;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Subpage typography scale - mobile defaults */
    --type-page-title: 2rem;
    --type-h2: 1.25rem;
    --type-h3: 1.1rem;
    --type-h4: 1rem;
    --type-body: 1rem;
    --type-small: 0.875rem;
    --type-label: 0.75rem;
}

@media (min-width: 640px) {
    :root {
        --type-page-title: 2.5rem;
        --type-h2: 1.5rem;
        --type-h3: 1.25rem;
        --type-h4: 1.1rem;
        --type-body: 1.05rem;
        --type-small: 0.9rem;
        --type-label: 0.85rem;
    }
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Container - mobile first */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Typography */
.accent {
    color: var(--primary);
}

.nav-logo .accent {
    color: var(--primary);
}

/* ============================================
   LOADER
   ============================================ */

.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .loader-inner {
        font-size: 3.5rem;
    }
}

.loader-text {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1rem 0;
    transition: background var(--transition-base), backdrop-filter var(--transition-base), transform var(--transition-base);
    transform: translateY(-100%);
}

.nav.visible {
    transform: translateY(0);
}

.nav.scrolled {
    background: rgba(31, 31, 31, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .nav-inner {
        padding: 0 1.5rem;
        gap: 2rem;
    }
}

.nav-logo {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
    display: inline-block;
    color: var(--text-primary);
    filter: drop-shadow(2px 2px 1px #111);
}

@media (min-width: 640px) {
    .nav-logo {
        font-size: 1.5rem;
    }
}

/* Desktop nav links - hidden on mobile */
.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition-base) ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Desktop CTA buttons - hidden on mobile */
.nav-cta {
    display: none;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
    }
}

/* Nav auth links */
.nav-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-cta a:hover {
    color: var(--text-primary);
}

.nav-cta .nav-separator {
    color: var(--border);
    font-weight: 300;
    margin: 0 0.25rem;
    user-select: none;
}

.nav-cta .nav-signup {
    color: var(--primary);
}

.nav-cta .nav-signup:hover {
    color: var(--primary-hover);
}

.nav-cta a svg,
.mobile-menu-cta a svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.nav-cta .nav-app-link:hover svg,
.mobile-menu-cta .nav-app-link:hover svg {
    transform: translateX(3px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu-inner a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu-cta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.mobile-menu-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu-cta a:hover {
    color: var(--text-primary);
}

.mobile-menu-cta .nav-signup {
    color: var(--primary);
}

.mobile-menu-cta .nav-signup:hover {
    color: var(--primary-hover);
}

/* ============================================
   BUTTONS - Mobile first with 44px touch targets
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 44px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.2);
}

.btn-ghost {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: none;
}

.btn-ghost:hover {
    background: var(--bg-elevated);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.3);
}

/* Button icons */
.btn svg {
    flex-shrink: 0;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-surface);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

@media (min-width: 640px) {
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
}

.btn-block {
    width: 100%;
}

/* ============================================
   HERO SECTION - Mobile first
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .hero {
        padding: 6rem 1.5rem 4rem;
    }
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--primary-glow), transparent 70%);
    opacity: 0.5;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@media (min-width: 640px) {
    .hero-grid {
        background-size: 60px 60px;
    }
}

.hero-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

/* Bokeh orbs - concert light effect */
.hero-bokeh {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.bokeh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
}

.bokeh-orb:nth-child(1) {
    width: 250px;
    height: 250px;
    background: var(--primary);
    top: 5%;
    left: 5%;
    animation: bokehFloat1 12s ease-in-out infinite;
}

.bokeh-orb:nth-child(2) {
    width: 250px;
    height: 250px;
    background: #FF8A65;
    top: 50%;
    right: 10%;
    animation: bokehFloat2 10s ease-in-out infinite;
}

.bokeh-orb:nth-child(3) {
    width: 300px;
    height: 300px;
    background: #FFAB91;
    bottom: 10%;
    left: 25%;
    animation: bokehFloat3 14s ease-in-out infinite;
}

.bokeh-orb:nth-child(4) {
    width: 200px;
    height: 200px;
    background: var(--secondary);
    top: 25%;
    right: 30%;
    animation: bokehFloat4 11s ease-in-out infinite;
    opacity: 0.15;
}

.bokeh-orb:nth-child(5) {
    width: 280px;
    height: 280px;
    background: #FF7043;
    top: 60%;
    left: 50%;
    animation: bokehFloat5 13s ease-in-out infinite;
}

.bokeh-orb:nth-child(6) {
    width: 180px;
    height: 180px;
    background: #FFE0B2;
    top: 10%;
    right: 15%;
    animation: bokehFloat6 9s ease-in-out infinite;
    opacity: 0.12;
}

@keyframes bokehFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, 50px) scale(1.3); }
    66% { transform: translate(-50px, 100px) scale(0.8); }
}

@keyframes bokehFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-80px, -60px) scale(1.2); }
    50% { transform: translate(-120px, 40px) scale(0.9); }
    75% { transform: translate(-40px, -80px) scale(1.1); }
}

@keyframes bokehFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    20% { transform: translate(60px, -80px) scale(1.15); }
    40% { transform: translate(120px, -40px) scale(0.85); }
    60% { transform: translate(80px, 60px) scale(1.25); }
    80% { transform: translate(-20px, 40px) scale(0.95); }
}

@keyframes bokehFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 80px) scale(1.4); }
}

@keyframes bokehFloat5 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(-80px, -100px) scale(1.2); }
    70% { transform: translate(60px, -60px) scale(0.8); }
}

@keyframes bokehFloat6 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 70px) scale(1.3); }
    50% { transform: translate(-30px, 120px) scale(0.9); }
    75% { transform: translate(-70px, 50px) scale(1.15); }
}

/* Light beams */
.hero-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.light-beam {
    position: absolute;
    top: -20%;
    width: 150px;
    height: 120%;
    transform-origin: top center;
    filter: blur(20px);
}

.light-beam:nth-child(1) {
    left: 15%;
    transform: rotate(-15deg);
    animation: beamSway1 8s ease-in-out infinite;
    background: linear-gradient(
        180deg,
        rgba(33, 150, 243, 0.15) 0%,
        rgba(33, 150, 243, 0.05) 50%,
        transparent 100%
    );
}

.light-beam:nth-child(2) {
    left: 45%;
    transform: rotate(5deg);
    animation: beamSway2 10s ease-in-out infinite;
    background: linear-gradient(
        180deg,
        rgba(0, 188, 212, 0.15) 0%,
        rgba(0, 188, 212, 0.05) 50%,
        transparent 100%
    );
}

.light-beam:nth-child(3) {
    right: 20%;
    transform: rotate(12deg);
    animation: beamSway3 9s ease-in-out infinite;
    background: linear-gradient(
        180deg,
        rgba(156, 39, 176, 0.15) 0%,
        rgba(156, 39, 176, 0.05) 50%,
        transparent 100%
    );
}

@keyframes beamSway1 {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(-5deg); }
}

@keyframes beamSway2 {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(-8deg); }
}

@keyframes beamSway3 {
    0%, 100% { transform: rotate(12deg); }
    50% { transform: rotate(20deg); }
}

/* Mobile adjustments for stage effects */
@media (max-width: 639px) {
    .bokeh-orb {
        filter: blur(40px);
        opacity: 0.15;
    }

    .bokeh-orb:nth-child(1) {
        width: 200px;
        height: 200px;
    }

    .bokeh-orb:nth-child(2) {
        width: 150px;
        height: 150px;
    }

    .bokeh-orb:nth-child(3) {
        width: 180px;
        height: 180px;
    }

    .bokeh-orb:nth-child(4),
    .bokeh-orb:nth-child(5),
    .bokeh-orb:nth-child(6) {
        display: none;
    }

    .light-beam {
        width: 100px;
        filter: blur(15px);
    }

    .light-beam:nth-child(1) {
        left: 5%;
    }

    .light-beam:nth-child(2) {
        left: 40%;
    }

    .light-beam:nth-child(3) {
        right: 5%;
    }

    .hero-spotlight {
        width: 400px;
        height: 400px;
        opacity: 0.3;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-shadow: 1px 1px 2px black;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-eyebrow {
        gap: 1rem;
    }
}

.eyebrow-line {
    width: 20px;
    height: 1px;
    background: var(--border);
}

@media (min-width: 640px) {
    .eyebrow-line {
        width: 40px;
    }
}

.eyebrow-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .eyebrow-text {
        font-size: 0.85rem;
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 5.5rem);
    }
}

.title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.1em;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    line-height: 1.7;
}

.hero-subtitle br {
    display: none;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-subtitle br {
        display: block;
    }
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.hero-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-mono);
}

@media (min-width: 640px) {
    .stat-value {
        font-size: 2rem;
    }
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
}

@media (min-width: 640px) {
    .stat-divider {
        width: 1px;
        height: 40px;
    }
}


/* ============================================
   SECTION TITLES - Mobile first
   ============================================ */

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
}

.section-title.center {
    text-align: center;
}

.title-accent {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .title-accent {
        font-size: 0.9rem;
    }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================
   PROBLEM/SOLUTION SECTION - Mobile first
   ============================================ */

.problem-section {
    padding: var(--section-padding) 0;
    background: var(--bg-darker);
    position: relative;
}

/* Hidden until ScrollTrigger reveals */
.problem-text,
.switch-up-demo {
    opacity: 0;
}

.problem-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-darker));
    pointer-events: none;
}


@media (min-width: 768px) {
    :root {
        --section-padding: clamp(4rem, 10vw, 8rem);
    }
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 900px) {
    .problem-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.problem-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

@media (min-width: 640px) {
    .problem-description {
        font-size: 1.1rem;
    }
}

.problem-description.highlight {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

@media (min-width: 640px) {
    .problem-description.highlight {
        font-size: 1.25rem;
    }
}

/* Switch-Up Demo */
.switch-up-demo {
    position: relative;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: visible; /* Allow typo-helper to overflow */
}

@media (min-width: 640px) {
    .switch-up-demo {
        border-radius: 16px;
    }
}

.demo-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
    .demo-header {
        padding: 1rem 1.5rem;
    }
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.demo-badge svg {
    flex-shrink: 0;
}

.demo-content {
    padding: 1rem;
}

@media (min-width: 640px) {
    .demo-content {
        padding: 1.5rem;
    }
}

.demo-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-radius: 8px;
    color: var(--text-secondary);
    min-height: 52px;
    margin-bottom: 1rem;
}

.typing-wrapper {
    display: inline-flex;
    align-items: center;
}

.typing-text {
    font-family: var(--font-mono);
    white-space: nowrap;
}

.typing-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Typo helper - arrow starts from text center, curves down to search bar */
.typo-helper {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 20;
    transition: opacity 0.4s ease-out;
}

.typo-helper.visible {
    opacity: 1;
    visibility: visible;
}

.typo-helper.fading {
    opacity: 0;
}

.typo-helper-text {
    font-family: 'Caveat', cursive;
    font-size: 2.4rem;
    color: white;
    font-weight: 500;
    white-space: nowrap;
    transform: rotate(-2deg);
    text-shadow: 0 0 2px #000, 0 2px 10px rgba(0, 0, 0, 0.6);
    /* Fixed width so text writes in from left naturally */
    width: 320px;
    text-align: left;
    /* Fixed height prevents layout shift when text scribes in */
    height: 3rem;
    line-height: 3rem;
}

.typo-arrow {
    width: 60px;
    height: 100px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    /* Arrow hangs below text, overlaying the box */
    margin-top: 8px;
}

.typo-arrow-line {
    stroke-dasharray: 120;
    stroke-dashoffset: 120;
}

.typo-arrow-head {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

/* Arrow draws first, then text scribes */
.typo-helper.arrow-drawn .typo-arrow-line {
    animation: drawArrow 0.5s ease-out forwards;
}

.typo-helper.arrow-drawn .typo-arrow-head {
    animation: drawArrow 0.2s ease-out 0.4s forwards;
}

@keyframes drawArrow {
    to {
        stroke-dashoffset: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .typo-helper {
        top: -40px;
    }

    .typo-helper-text {
        font-size: 1.4rem;
        min-width: 240px;
    }

    .typo-arrow {
        width: 50px;
        height: 75px;
    }
}

.demo-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 87, 34, 0.1);
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    min-height: 72px;
}

.song-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
}

.song-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.demo-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 8px;
}

.demo-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* ============================================
   FEATURES HORIZONTAL SCROLL - Mobile first
   ============================================ */

.features-section {
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.features-intro {
    text-align: center;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .features-intro {
        padding: 0 1.5rem;
        margin-bottom: 3rem;
    }
}

.features-horizontal {
    overflow: hidden;
}

.features-wrapper {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 1rem;
    width: fit-content;
}

@media (min-width: 640px) {
    .features-wrapper {
        gap: 1.5rem;
        padding: 2rem 5vw;
    }
}

@media (min-width: 900px) {
    .features-wrapper {
        gap: 2rem;
        padding: 2rem 10vw;
    }
}

.feature-card {
    flex-shrink: 0;
    width: 280px;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: transform var(--transition-base), border-color var(--transition-base);
}

@media (min-width: 640px) {
    .feature-card {
        width: 300px;
        padding: 1.5rem;
        border-radius: 16px;
    }
}

@media (min-width: 900px) {
    .feature-card {
        width: 350px;
        padding: 2rem;
    }
}

@media (hover: hover) {
    .feature-card:hover {
        transform: translateY(-4px);
        border-color: var(--primary);
    }
}

.feature-card-highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-surface), rgba(255, 87, 34, 0.05));
}

.feature-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

@media (min-width: 640px) {
    .feature-badge {
        right: 1.5rem;
    }
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (min-width: 640px) {
    .feature-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

@media (min-width: 640px) {
    .feature-icon svg {
        width: 48px;
        height: 48px;
    }
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .feature-title {
        font-size: 1.25rem;
    }
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .feature-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .feature-list li {
        font-size: 0.9rem;
    }
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.features-progress {
    max-width: 200px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 1.5rem auto 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .features-progress {
        margin: 2rem auto 0;
    }
}

.features-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    border-radius: 2px;
}

/* ============================================
   STAGE MODE PREVIEW V2 - Mobile first
   Dark vignette background, hotspot zoom interaction
   ============================================ */

.stage-preview-v2 {
    --mock-bg: #000000;
    --mock-surface: #0A0A0C;
    --mock-text: #FFFFFF;
    --mock-text-muted: rgba(255, 255, 255, 0.6);
    --mock-primary: #FF5722;
    --mock-primary-glow: rgba(255, 87, 34, 0.3);
    --mock-border: rgba(255, 255, 255, 0.1);

    position: relative;
    padding: var(--section-padding) 1rem;
    overflow: hidden;
    background: #08080A;
    /* Radial vignette — soft spotlight behind the card */
    background: radial-gradient(ellipse 60% 50% at 50% 45%, #141418 0%, #08080A 70%);
}

@media (min-width: 640px) {
    .stage-preview-v2 {
        padding: var(--section-padding) 1.5rem;
    }
}

/* ---- Background Sparks ---- */
.stage-sparks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.spark {
    position: absolute;
    border-radius: 50%;
    background: var(--mock-primary);
    opacity: 0;
    animation: sparkFloat linear infinite;
    /* Start immediately on page load — no trigger needed */
    animation-fill-mode: both;
}

/* Vary sizes: most are 3px, some 4px for depth */
.spark:nth-child(odd)  { width: 3px; height: 3px; }
.spark:nth-child(even) { width: 4px; height: 4px; }
.spark:nth-child(3n)   { width: 2px; height: 2px; } /* a few tiny ones for variety */

/* Stagger positions and timing — 40 sparks */
.spark:nth-child(1)  { left: 3%;   animation-duration: 7s;  animation-delay: 0s;   }
.spark:nth-child(2)  { left: 8%;   animation-duration: 9s;  animation-delay: 1.2s; }
.spark:nth-child(3)  { left: 13%;  animation-duration: 8s;  animation-delay: 0.4s; }
.spark:nth-child(4)  { left: 18%;  animation-duration: 10s; animation-delay: 2.5s; }
.spark:nth-child(5)  { left: 23%;  animation-duration: 7s;  animation-delay: 4s;   }
.spark:nth-child(6)  { left: 28%;  animation-duration: 9s;  animation-delay: 0.8s; }
.spark:nth-child(7)  { left: 33%;  animation-duration: 8s;  animation-delay: 3s;   }
.spark:nth-child(8)  { left: 38%;  animation-duration: 11s; animation-delay: 1.5s; }
.spark:nth-child(9)  { left: 43%;  animation-duration: 7s;  animation-delay: 5s;   }
.spark:nth-child(10) { left: 48%;  animation-duration: 9s;  animation-delay: 0.3s; }
.spark:nth-child(11) { left: 53%;  animation-duration: 8s;  animation-delay: 2s;   }
.spark:nth-child(12) { left: 58%;  animation-duration: 10s; animation-delay: 3.5s; }
.spark:nth-child(13) { left: 63%;  animation-duration: 7s;  animation-delay: 1s;   }
.spark:nth-child(14) { left: 68%;  animation-duration: 9s;  animation-delay: 4.5s; }
.spark:nth-child(15) { left: 73%;  animation-duration: 11s; animation-delay: 6s;   }
.spark:nth-child(16) { left: 78%;  animation-duration: 8s;  animation-delay: 0.6s; }
.spark:nth-child(17) { left: 83%;  animation-duration: 10s; animation-delay: 2.8s; }
.spark:nth-child(18) { left: 88%;  animation-duration: 7s;  animation-delay: 5.5s; }
.spark:nth-child(19) { left: 93%;  animation-duration: 9s;  animation-delay: 3.2s; }
.spark:nth-child(20) { left: 97%;  animation-duration: 8s;  animation-delay: 1.8s; }
/* Second wave — offset positions for density */
.spark:nth-child(21) { left: 5%;   animation-duration: 10s; animation-delay: 2s;   }
.spark:nth-child(22) { left: 11%;  animation-duration: 7s;  animation-delay: 4.2s; }
.spark:nth-child(23) { left: 16%;  animation-duration: 9s;  animation-delay: 0.2s; }
.spark:nth-child(24) { left: 21%;  animation-duration: 8s;  animation-delay: 3.8s; }
.spark:nth-child(25) { left: 26%;  animation-duration: 11s; animation-delay: 1.6s; }
.spark:nth-child(26) { left: 31%;  animation-duration: 7s;  animation-delay: 5.2s; }
.spark:nth-child(27) { left: 36%;  animation-duration: 9s;  animation-delay: 0.9s; }
.spark:nth-child(28) { left: 41%;  animation-duration: 10s; animation-delay: 3.3s; }
.spark:nth-child(29) { left: 46%;  animation-duration: 8s;  animation-delay: 6.5s; }
.spark:nth-child(30) { left: 51%;  animation-duration: 7s;  animation-delay: 2.4s; }
.spark:nth-child(31) { left: 56%;  animation-duration: 9s;  animation-delay: 4.8s; }
.spark:nth-child(32) { left: 61%;  animation-duration: 11s; animation-delay: 0.5s; }
.spark:nth-child(33) { left: 66%;  animation-duration: 8s;  animation-delay: 3.6s; }
.spark:nth-child(34) { left: 71%;  animation-duration: 10s; animation-delay: 1.1s; }
.spark:nth-child(35) { left: 76%;  animation-duration: 7s;  animation-delay: 5.8s; }
.spark:nth-child(36) { left: 81%;  animation-duration: 9s;  animation-delay: 2.2s; }
.spark:nth-child(37) { left: 86%;  animation-duration: 8s;  animation-delay: 4.4s; }
.spark:nth-child(38) { left: 91%;  animation-duration: 11s; animation-delay: 0.7s; }
.spark:nth-child(39) { left: 95%;  animation-duration: 7s;  animation-delay: 3.1s; }
.spark:nth-child(40) { left: 1%;   animation-duration: 9s;  animation-delay: 5.9s; }

@keyframes sparkFloat {
    0%   { bottom: -4%; opacity: 0; transform: translateX(0); }
    8%   { opacity: 0.8; }
    30%  { opacity: 0.5; transform: translateX(12px); }
    60%  { opacity: 0.7; transform: translateX(-8px); }
    85%  { opacity: 0.4; }
    100% { bottom: 105%; opacity: 0; transform: translateX(5px); }
}

/* Showcase container — wide enough for card + side panel */
.stage-showcase {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 420px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .stage-showcase {
        max-width: 900px;
    }
}

@media (min-width: 1024px) {
    .stage-showcase {
        max-width: 1300px;
    }
}

/* Space between section heading and tablet */
.stage-showcase .section-title {
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .stage-showcase .section-title {
        margin-bottom: 3.5rem;
    }
}

/* ---- Portrait Tablet Frame ---- */
.tablet-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

@media (min-width: 768px) {
    .tablet-frame {
        max-width: 480px;
    }
}

.tablet-bezel {
    background: #1A1A1E;
    border-radius: 20px;
    padding: 10px 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 60px var(--mock-primary-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

@media (min-width: 640px) {
    .tablet-bezel {
        border-radius: 28px;
        padding: 14px 12px 16px;
    }
}

@media (min-width: 768px) {
    .tablet-bezel {
        border-radius: 32px;
        padding: 18px 16px 20px;
    }
}

/* Camera dot centered at top (portrait orientation) */
.tablet-camera {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2A2A30;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 auto 4px;
}

@media (min-width: 640px) {
    .tablet-camera {
        width: 8px;
        height: 8px;
        margin: 0 auto 6px;
    }
}

.tablet-screen {
    background: var(--mock-bg);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--mock-border);
    display: flex;
    flex-direction: column;
    aspect-ratio: 3 / 4;
    position: relative;
}

@media (min-width: 640px) {
    .tablet-screen {
        border-radius: 6px;
    }
}

/* ---- Header (tablet/desktop layout) ---- */
.stage-mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
    background: var(--mock-surface);
    border-bottom: 1px solid var(--mock-border);
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .stage-mock-header {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
}

.stage-mock-header-left {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

/* header-center removed — counter moved to bottom nav */

.stage-mock-header-right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .stage-mock-header-right {
        gap: 0.4rem;
    }
}

.stage-mock-setlist {
    font-size: 0.65rem;
    color: var(--mock-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 640px) {
    .stage-mock-setlist {
        font-size: 0.75rem;
    }
}

.stage-mock-counter {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
}

@media (min-width: 640px) {
    .stage-mock-counter {
        font-size: 0.7rem;
    }
}

/* Header icon buttons */
.stage-mock-header-btn {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem;
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.stage-mock-header-btn.is-active {
    color: var(--mock-primary);
    background: rgba(255, 87, 34, 0.15);
}

/* Sync icon styles removed — using WifiOff (dimmed) instead */

.stage-mock-header-count {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.5);
}

.stage-mock-icon-exit {
    color: rgba(255, 255, 255, 0.6);
}

/* Font size group (inline in header) */
.stage-mock-font-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.stage-mock-font-minus,
.stage-mock-font-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.stage-mock-font-display {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 0.15rem;
    font-weight: 500;
}

/* Lyrics toggle button */
.stage-mock-lyrics-toggle {
    font-size: 0.55rem;
    font-weight: 500;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

.stage-mock-lyrics-toggle.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Song display */
.stage-mock-song {
    padding: 0.6rem 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 640px) {
    .stage-mock-song {
        padding: 0.75rem 1rem 0.6rem;
    }
}

.stage-mock-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--mock-text);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .stage-mock-title {
        font-size: 1.2rem;
    }
}

.stage-mock-artist {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.4rem;
}

/* Badges */
.stage-mock-badges {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
}

.stage-mock-badge {
    padding: 0.2rem 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 640px) {
    .stage-mock-badge {
        padding: 0.25rem 0.55rem;
        font-size: 0.65rem;
    }
}

.stage-mock-key {
    background: rgba(255, 87, 34, 0.2);
    color: var(--mock-primary);
    font-weight: 600;
}

/* Lyrics wrapper (flex child, contains scrollable lyrics + sticky fade) */
.stage-mock-lyrics-wrap {
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    overflow: hidden;
}

/* Lyrics */
.stage-mock-lyrics {
    padding: 1rem 1.25rem;
    height: 100%;
    position: relative;
    overflow-y: auto;
    scrollbar-width: none;
}

@media (min-width: 640px) {
    .stage-mock-lyrics {
        padding: 1.5rem 3rem;
    }
}

.stage-mock-lyrics::-webkit-scrollbar {
    display: none;
}

/* Sticky bottom fade — separate element so it doesn't scroll with lyrics */
.stage-mock-lyrics-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, var(--mock-bg));
    pointer-events: none;
    z-index: 3;
}

.stage-mock-lyrics p {
    font-size: 0.72rem;
    line-height: 1.6;
    color: var(--mock-text);
    text-align: center;
    margin: 0;
    opacity: 0.9;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .stage-mock-lyrics p {
        font-size: 0.8rem;
    }
}

/* Inline chord annotations */
.stage-mock-lyrics .chord {
    color: var(--mock-primary);
    font-weight: 500;
    font-size: 0.8em;
}

/* Scroll FABs */
.stage-mock-scroll-fabs {
    position: absolute;
    right: 0.5rem;
    bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 5;
}

.stage-mock-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
}

.stage-mock-fab:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Bottom nav */
.stage-mock-nav {
    background: var(--mock-surface);
    border-top: 1px solid var(--mock-border);
}

.stage-mock-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.stage-mock-progress-fill {
    height: 100%;
    width: 33%;
    background: var(--mock-primary);
    border-radius: 1px;
}

.stage-mock-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.6rem;
}

@media (min-width: 640px) {
    .stage-mock-controls {
        padding: 0.5rem 0.75rem;
    }
}

.stage-mock-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.stage-mock-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
    .stage-mock-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }
}

.stage-mock-btn-next {
    background: var(--mock-primary);
    color: white;
    font-weight: 600;
}

/* ---- Demo Modals (Sync + Switch-Up overlays) ---- */
.stage-mock-modal {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 1rem;
}

.stage-mock-modal.is-open {
    display: flex;
}

.stage-mock-modal-card {
    background: #1A1A1E;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    width: 85%;
    max-width: 260px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.stage-mock-modal-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--mock-text);
    margin-bottom: 0.75rem;
    text-align: center;
}

.stage-mock-modal-body {
    margin-bottom: 0.75rem;
}

.stage-mock-modal-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stage-mock-modal-status:last-child {
    border-bottom: none;
}

.stage-mock-modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stage-mock-modal-dot.is-connected {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

.stage-mock-modal-role {
    margin-left: auto;
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.4);
}

.stage-mock-modal-search {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.stage-mock-modal-item {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.35rem 0.4rem;
    border-radius: 4px;
    cursor: default;
}

.stage-mock-modal-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.stage-mock-modal-close {
    display: block;
    width: 100%;
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--mock-primary);
    background: none;
    border: 1px solid rgba(255, 87, 34, 0.3);
    border-radius: 6px;
    padding: 0.35rem;
    cursor: pointer;
    text-align: center;
}

.stage-mock-modal-close:hover {
    background: rgba(255, 87, 34, 0.1);
}

/* ---- Hotspot Dots ---- */
.stage-dot {
    position: absolute;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Center the visual dot via ::before */
    display: flex;
    align-items: center;
    justify-content: center;
    /* Offset so the visual dot stays at the edge */
    margin: -15px;
}

.stage-dot::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mock-primary);
    border: 2px solid rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Dot positions (relative to .tablet-frame) — right edge for header/badges, left for lyrics/nav */
.stage-dot[data-dot="header"]  { top: 22px;    right: -7px; }
.stage-dot[data-dot="badges"]  { top: 105px;   right: -7px; }
.stage-dot[data-dot="lyrics"]  { top: 55%;     left: -7px; }
.stage-dot[data-dot="nav"]     { bottom: 30px;  left: -7px; }

@media (min-width: 640px) {
    .stage-dot[data-dot="header"]  { top: 30px;    right: -7px; }
    .stage-dot[data-dot="badges"]  { top: 120px;   right: -7px; }
    .stage-dot[data-dot="lyrics"]  { top: 55%;     left: -7px; }
    .stage-dot[data-dot="nav"]     { bottom: 38px;  left: -7px; }
}

/* Pulse ring */
.stage-dot-ping {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mock-primary);
    opacity: 0;
    animation: dotPulse 2.4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes dotPulse {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    30%  { opacity: 0.6; }
    70%  { opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.8); opacity: 0; }
}

/* + icon inside dot on hover (positioned over the ::before visual dot) */
.stage-dot::after {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    line-height: 1;
    z-index: 1;
}

@media (hover: hover) {
    .stage-dot:hover::after {
        opacity: 1;
    }

    .stage-dot:hover::before {
        transform: scale(1.3);
        box-shadow: 0 0 12px var(--mock-primary-glow);
    }

    .stage-dot:hover .stage-dot-ping {
        visibility: hidden;
    }
}

.stage-dot.is-active::before {
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--mock-primary-glow);
}

.stage-dot.is-active::after {
    content: '\00d7';
    opacity: 1;
    font-size: 14px;
}

.stage-dot.is-active .stage-dot-ping {
    visibility: hidden;
    opacity: 0;
}

/* ---- Leader Line SVG Overlay (child of .stage-showcase) ---- */
/* z-index: 1 keeps lines BEHIND the tablet-frame (z:2) so they go under hotspot dots */
.stage-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.stage-line {
    stroke: var(--mock-primary);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.8;
}

.stage-line-glow {
    stroke: var(--mock-primary);
    stroke-width: 6;
    fill: none;
    opacity: 0.2;
}

/* ---- Side Panel (slides out when a hotspot is clicked) ---- */
/* Panels are children of .stage-showcase (position: relative) */
.stage-panel {
    position: absolute;
    z-index: 20;
    top: 0;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    display: none; /* Hidden until activated by JS */
}

.stage-panel.is-left {
    left: 0;
}

.stage-panel.is-right {
    right: 0;
}

.stage-panel,
.stage-panel * {
    user-select: none;
    -webkit-user-select: none;
}

.stage-panel-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
    opacity: 0;
    box-sizing: border-box;
}

.stage-panel.is-left .stage-panel-inner {
    /* Right-align text for left panel */
    align-items: flex-end;
    text-align: right;
    padding-right: 5rem;
    padding-left: 3rem;
}

.stage-panel.is-right .stage-panel-inner {
    align-items: flex-start;
    text-align: left;
    padding-left: 5rem;
    padding-right: 3rem;
}

/* Vertical border drawn via SVG — see stage-preview.js */

.stage-panel-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mock-primary);
    margin-bottom: 0.5rem;
}

.stage-panel strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mock-text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.stage-panel p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0 0 0.6rem;
}

.stage-panel p:last-child {
    margin-bottom: 0;
}

.stage-panel em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.75);
}

@media (min-width: 1024px) {
    .stage-panel-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .stage-panel-label {
        font-size: 0.7rem;
    }

    .stage-panel strong {
        font-size: 1.3rem;
    }

    .stage-panel p {
        font-size: 0.95rem;
    }
}

/* ---- Old labels hidden, replaced by side panels ---- */
.stage-label {
    display: none;
}

/* Mobile: stack panels below the card instead */
@media (max-width: 639px) {
    .stage-panel {
        position: relative;
        width: 100% !important;
        height: auto;
        left: auto !important;
        right: auto !important;
        max-width: 420px;
        margin: 0 auto;
    }

    .stage-panel-inner {
        width: 100%;
        padding: 1rem;
        text-align: center !important;
        align-items: center !important;
    }

    .stage-panel-border {
        display: none;
    }

    .stage-lines {
        display: none;
    }

    .stage-dot {
        display: none;
    }
}

/* ---- Caption ---- */
.stage-caption {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 0 0.5rem;
}

@media (min-width: 640px) {
    .stage-caption {
        margin-top: 2rem;
        font-size: 0.95rem;
    }
}

.stage-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--mock-primary);
    text-align: center;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

@media (min-width: 640px) {
    .stage-hint {
        font-size: 0.85rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .stage-dot-ping {
        animation: none !important;
        opacity: 0.3;
    }
}

/* ============================================
   PRICING SECTION - Mobile first
   ============================================ */

.pricing-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.pricing-section > .container {
    position: relative;
    z-index: 1;
}

.pricing-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black, transparent);
    pointer-events: none;
}

@media (min-width: 640px) {
    .pricing-grid-bg {
        background-size: 60px 60px;
    }
}

/* Pricing period toggle (pill style) */
.pricing-period-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 2rem;
    margin-bottom: 7rem;
    position: relative;
    z-index: 2;
    background: transparent;
    border-radius: 14px;
    padding: 6px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

/* Opaque background layer — covers the save badge as it slides behind, casts shadow onto it */
.pricing-period-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.period-option {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0.6rem 1.25rem;
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color var(--transition-fast);
    user-select: none;
}

.period-option.active {
    color: white;
}

.period-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: var(--primary);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.pricing-period-toggle[data-active="annual"] .period-slider {
    transform: translateX(100%);
}

/* Save badge — rectangular tab that slides down from behind the toggle */
.pricing-toggle-save {
    position: absolute;
    right: 6px;
    left: auto;
    top: 100%;
    z-index: -1;
    transform: translateY(-100%);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    background: var(--success);
    width: calc(50% - 6px);
    padding: 0.45rem 0 0.35rem;
    text-align: center;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.35s ease-out, transform 0.35s ease-out;
    pointer-events: none;
}

.pricing-toggle-save.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Confetti particles — burst from save badge area */
.confetti-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    bottom: -1rem;
    right: calc(25% - 2px);
    left: auto;
}

.confetti-particle:nth-child(4) { background: #FF5722; }
.confetti-particle:nth-child(5) { background: #66BB6A; }
.confetti-particle:nth-child(6) { background: #42A5F5; }
.confetti-particle:nth-child(7) { background: #FFB74D; }
.confetti-particle:nth-child(8) { background: #FF5722; }
.confetti-particle:nth-child(9) { background: #AB47BC; }
.confetti-particle:nth-child(10) { background: #66BB6A; }
.confetti-particle:nth-child(11) { background: #42A5F5; }

.confetti-particle.burst {
    animation: confetti-burst 0.6s ease-out forwards;
}

.confetti-particle:nth-child(4).burst  { --tx: -30px; --ty: -25px; animation-delay: 0.02s; }
.confetti-particle:nth-child(5).burst  { --tx: 25px;  --ty: -28px; animation-delay: 0.05s; }
.confetti-particle:nth-child(6).burst  { --tx: -35px; --ty: 5px;   animation-delay: 0.01s; }
.confetti-particle:nth-child(7).burst  { --tx: 32px;  --ty: 8px;   animation-delay: 0.06s; }
.confetti-particle:nth-child(8).burst  { --tx: 0px;   --ty: -32px; animation-delay: 0.03s; }
.confetti-particle:nth-child(9).burst  { --tx: -20px; --ty: 20px;  animation-delay: 0.07s; }
.confetti-particle:nth-child(10).burst { --tx: 22px;  --ty: 18px;  animation-delay: 0.04s; }
.confetti-particle:nth-child(11).burst { --tx: -8px;  --ty: -30px; animation-delay: 0.08s; }

@keyframes confetti-burst {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.5); }
}

.pricing-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Mobile Tab Switcher */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2.5rem;
    background: var(--bg-surface);
    border-radius: 12px;
    padding: 4px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-subtle);
}

.pricing-tab {
    flex: 1;
    padding: 0.6rem 1rem;
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.pricing-tab-active {
    background: var(--primary);
    color: white;
}

@media (min-width: 900px) {
    .pricing-tabs {
        display: none;
    }
}

/* Pricing Grid */
.pricing-grid {
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile: only active tab card visible */
.pricing-card {
    padding: 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    position: relative;
    display: none;
    flex-direction: column;
}

.pricing-card.pricing-card-visible {
    display: flex;
}

@media (min-width: 900px) {
    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
        gap: 0;
        max-width: none;
        margin-top: 4rem;
    }

    /* All cards visible on desktop */
    .pricing-card {
        display: flex;
        padding: 2rem;
    }

    /* Side cards: overlapped by center */
    .pricing-card:first-child {
        border-radius: 16px 0 0 16px;
        border-right: none;
    }

    .pricing-card:last-child {
        border-radius: 0 16px 16px 0;
        border-left: none;
    }
}

.pricing-card-featured {
    border-color: var(--primary);
    background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(255, 87, 34, 0.06) 100%);
}

@media (min-width: 900px) {
    .pricing-card-featured {
        z-index: 2;
        border-radius: 16px;
        border: 2px solid var(--primary);
        padding: 2.5rem 2rem 2.5rem;
        transform: scale(1.05);
        background: linear-gradient(180deg, var(--bg-surface) 0%, #2d2420 100%);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 87, 34, 0.1);
    }
}

@media (hover: hover) {
    .pricing-card:hover {
        border-color: var(--text-muted);
    }
    .pricing-card-featured:hover {
        border-color: var(--primary);
    }
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

@media (min-width: 640px) {
    .price-amount {
        font-size: 2.5rem;
    }
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.price-monthly {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pricing-description {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.pricing-features li {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (min-width: 640px) {
    .pricing-features li {
        font-size: 0.95rem;
    }
}

.pricing-features li svg {
    display: inline-block;
    vertical-align: middle;
    color: var(--success);
    margin-right: 0.6rem;
    position: relative;
    top: -1px;
}

.pricing-features li strong {
    color: var(--text-primary);
}

.pricing-includes {
    color: var(--primary) !important;
    font-weight: 500;
}

.pricing-includes svg {
    color: var(--primary) !important;
}

/* ============================================
   FAQ SECTION - Mobile first
   ============================================ */

.faq-section {
    padding: var(--section-padding) 0;
    padding-bottom: 0;
    background: var(--bg-darker);
}

/* Hidden until ScrollTrigger reveals */
.faq-section .section-title {
    opacity: 0;
}


.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-top: 3rem;
    }
}

.faq-item {
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--transition-base);
    /* Hidden until ScrollTrigger reveals them */
    opacity: 0;
}

@media (min-width: 640px) {
    .faq-item {
        padding: 1.5rem;
    }
}

@media (hover: hover) {
    .faq-item:hover {
        border-color: var(--primary);
    }
}

.faq-question {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

@media (min-width: 640px) {
    .faq-question {
        font-size: 1.05rem;
    }
}

.faq-answer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

@media (min-width: 640px) {
    .faq-answer {
        font-size: 0.95rem;
    }
}

/* ============================================
   CTA SECTION - Mobile first
   ============================================ */

.cta-section {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--bg-surface), rgba(255, 87, 34, 0.1));
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

.cta-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .cta-subtitle {
        font-size: 1.1rem;
    }
}

/* ============================================
   PRE-FOOTER CTA
   ============================================ */

.prefooter {
    position: relative;
    padding: 12rem 1rem 8rem;
    text-align: center;
    overflow: hidden;
    background: var(--bg-darker);
}

.prefooter-from-dark {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 40%);
}

/* Canvas sound wave — layered audio visualization */
.prefooter-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.prefooter-content {
    position: relative;
    z-index: 1;
}

.prefooter-label {
    font-size: var(--type-small);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.prefooter-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.prefooter-cta {
    font-size: 1.1rem;
    padding: 0.875rem 2.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 3rem 0 2rem;
    background: var(--bg-darker);
}

@media (min-width: 640px) {
    .footer {
        padding: 3.5rem 0 2rem;
    }
}

/* Top row: logo + social */
.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* Social icons */
.footer-social {
    display: flex;
    gap: 0.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.footer-social-link:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}

/* Nav groups */
.footer-nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-nav {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
        gap: 3rem;
    }
}

.footer-nav-group h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-nav-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    transition: color var(--transition-fast);
}

@media (max-width: 639px) {
    .footer-nav-group a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.footer-nav-group a:hover {
    color: var(--primary);
}

/* Bottom row */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   SUBPAGE SHARED COMPONENTS
   ============================================ */

/* Static nav for subpages — visible immediately, smooth bg on scroll */
.nav.nav-static {
    transform: translateY(0);
    transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

/* Page hero - compact header for subpages */
.page-hero {
    position: relative;
    padding: calc(var(--section-padding) + 60px) 0 calc(var(--section-padding) + 1rem);
    background: var(--bg-darker);
    text-align: center;
    overflow: hidden;
}

@media (min-width: 640px) {
    .page-hero {
        padding: calc(var(--section-padding) + 80px) 0 calc(var(--section-padding) + 2rem);
    }
}

/* Static stage light beams — same colors as homepage .light-beam, no animation */
.page-hero-beams {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.page-hero-beams .beam {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 400px;
    margin-left: -200px;
    height: 140%;
    filter: blur(50px);
}

.page-hero-beams .beam:nth-child(1) {
    background: linear-gradient(180deg, rgba(33, 150, 243, 0.3) 0%, rgba(33, 150, 243, 0.08) 50%, transparent 100%);
}

.page-hero-beams .beam:nth-child(2) {
    background: linear-gradient(180deg, rgba(0, 188, 212, 0.25) 0%, rgba(0, 188, 212, 0.07) 50%, transparent 100%);
}

.page-hero-beams .beam:nth-child(3) {
    background: linear-gradient(180deg, rgba(156, 39, 176, 0.3) 0%, rgba(156, 39, 176, 0.08) 50%, transparent 100%);
}

/* Beam drift animation — colors slide left/right and blend */
.page-hero-beams .beam:nth-child(1) { animation: beamDrift1 12s ease-in-out infinite; }
.page-hero-beams .beam:nth-child(2) { animation: beamDrift2 12s ease-in-out infinite; }
.page-hero-beams .beam:nth-child(3) { animation: beamDrift3 12s ease-in-out infinite; }

@keyframes beamDrift1 {
    0%, 100% { transform: translateX(-80px); opacity: 0.8; }
    50% { transform: translateX(80px); opacity: 0.5; }
}
@keyframes beamDrift2 {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(0); opacity: 1; }
}
@keyframes beamDrift3 {
    0%, 100% { transform: translateX(80px); opacity: 0.8; }
    50% { transform: translateX(-80px); opacity: 0.5; }
}

/* Mobile: narrower beam + smaller drift range */
@media (max-width: 639px) {
    .page-hero-beams .beam {
        width: 250px;
        margin-left: -125px;
        filter: blur(35px);
    }
    @keyframes beamDrift1 {
        0%, 100% { transform: translateX(-40px); opacity: 0.8; }
        50% { transform: translateX(40px); opacity: 0.5; }
    }
    @keyframes beamDrift3 {
        0%, 100% { transform: translateX(40px); opacity: 0.8; }
        50% { transform: translateX(-40px); opacity: 0.5; }
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.12;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: var(--type-page-title);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.page-hero .subtitle {
    font-size: var(--type-body);
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-hero .meta {
    font-size: var(--type-small);
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Narrow content container for subpages */
.content-narrow {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: calc(var(--section-padding) + 1rem) 1rem 0;
}

@media (min-width: 640px) {
    .content-narrow {
        padding: calc(var(--section-padding) + 2rem) 1.5rem 0;
    }
}

/* Prose - long-form content styling */
.prose h2 {
    font-size: var(--type-h2);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 3rem 0 1.25rem;
}

.prose h3 {
    font-size: var(--type-h3);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 3rem 0 1rem;
}

.prose h4 {
    font-size: var(--type-h4);
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.prose p {
    font-size: var(--type-body);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
    color: var(--text-secondary);
    margin: 0 0 1rem 1.5rem;
    line-height: 1.7;
}

.prose li {
    margin-bottom: 0.25rem;
}

.prose li strong {
    color: var(--text-primary);
}

.prose a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.prose a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Callout box */
.callout {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    color: var(--text-secondary);
    font-size: var(--type-small);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.callout-warning {
    border-left: 3px solid var(--warning);
}

.callout-info {
    border-left: 3px solid var(--secondary);
}

/* Section divider */
.divider {
    border: none;
    height: 1px;
    margin: 3.5rem 0;
    background: var(--border);
}

/* Labeled divider (e.g. "Still need help?") */
.labeled-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 3.5rem 0;
    color: var(--text-secondary);
    font-size: var(--type-body);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.labeled-divider::before,
.labeled-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Scroll-triggered fade-up */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}


@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Update entry card */
.update-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.update-card .date {
    font-size: var(--type-small);
    color: var(--text-muted);
}

.update-card h3 {
    font-size: var(--type-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0.5rem 0;
}

.update-card p {
    font-size: var(--type-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.update-card ul {
    color: var(--text-secondary);
    margin: 0.5rem 0 0 1.5rem;
}

.update-card li {
    margin-bottom: 0.25rem;
}

/* Category badges */
.badge {
    display: inline-block;
    font-size: var(--type-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.badge-feature {
    background: rgba(255, 87, 34, 0.15);
    color: var(--primary);
}

.badge-improvement {
    background: rgba(33, 150, 243, 0.15);
    color: var(--secondary);
}

.badge-fix {
    background: rgba(102, 187, 106, 0.15);
    color: var(--success);
}

/* Filter pills */
.filter-pills {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-pill {
    padding: 0.5rem 1rem;
    font-size: var(--type-small);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.filter-pill:hover,
.filter-pill.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 87, 34, 0.1);
}

/* Form elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: var(--type-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--type-body);
    padding: 0.75rem 1rem;
    min-height: 44px;
    transition: border-color var(--transition-fast),
                box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
                background-color var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    color-scheme: dark;
    accent-color: var(--primary);
}

.form-group select option {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    padding: 0.5rem;
}

.form-group select option:checked {
    background: linear-gradient(0deg, var(--bg-elevated) 0%, var(--bg-elevated) 100%);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Form row (side-by-side fields on desktop) */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .form-row .form-group {
        margin-bottom: 0;
    }
}

/* Response time banner - full-width section */
.response-banner {
    position: relative;
    padding: 2.5rem 1rem;
    text-align: center;
    background: var(--bg-surface);
    overflow: hidden;
}

.response-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255, 255, 255, 0.03), transparent);
    pointer-events: none;
}

.response-banner-inner {
    position: relative;
    z-index: 1;
}

.response-banner strong {
    color: var(--text-primary);
    font-size: var(--type-h3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.response-banner strong svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.response-banner p {
    color: var(--text-muted);
    font-size: var(--type-small);
    margin-top: 0.5rem;
}

/* Wider content container for cards */
/* Quick-answer cards */
.quick-answers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .quick-answers {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.quick-answer {
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: border-color 100ms ease, box-shadow 100ms ease;
}

@media (hover: hover) {
    .quick-answer:hover {
        border-color: rgba(255, 87, 34, 0.3);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }
}

.quick-answer-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 150ms ease;
}

@media (hover: hover) {
    .quick-answer:hover .quick-answer-icon {
        color: var(--text-primary);
    }
}

.quick-answer h4 {
    font-size: var(--type-h4);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.quick-answer p {
    font-size: var(--type-small);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

/* Card-as-link: reset anchor styling */
a.quick-answer {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.quick-answer-cta {
    font-size: var(--type-small);
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap var(--transition-fast);
    align-self: center;
}

@media (hover: hover) {
    .quick-answer:hover .quick-answer-cta {
        gap: 0.5rem;
    }
}


/* Subpage section headers — eyebrow + title (matches homepage pattern) */
.subpage-section-header {
    margin-bottom: 1.5rem;
}

.subpage-section-header .section-title {
    margin-bottom: 0;
}

.support-form {
    margin-top: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
}

.support-form .btn {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    letter-spacing: 0.02em;
}

.form-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: var(--type-small);
    color: var(--text-muted);
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.form-success h3 {
    margin-top: 1.25rem;
    color: var(--text-primary);
    font-size: var(--type-h3);
}

.form-success p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

/* Docs sidebar TOC */
.docs-layout {
    display: block;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--section-padding) 1rem;
}

@media (min-width: 768px) {
    .docs-layout {
        display: grid;
        grid-template-columns: 220px 1fr;
        gap: 2.5rem;
        padding: var(--section-padding) 1.5rem;
    }
}

.docs-sidebar {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .docs-sidebar {
        margin-bottom: 0;
    }
}

.docs-sidebar h4 {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    margin-top: 1rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.docs-sidebar h4::after {
    content: '';
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.docs-sidebar h4.collapsed::after {
    transform: rotate(-45deg);
}

.docs-sidebar h4:first-child {
    margin-top: 0;
}

.docs-sidebar a {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.2rem 0 0.2rem 0.75rem;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
    min-height: 44px;
}

@media (min-width: 768px) {
    .docs-sidebar a {
        min-height: auto;
        padding: 0.2rem 0 0.2rem 0.75rem;
    }
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

.docs-content {
    max-width: none;
}

.docs-content > :first-child:not(.sr-only) {
    margin-top: 0;
}

.docs-content > .sr-only + * {
    margin-top: 0;
}

/* Docs search */
.docs-search {
    margin-bottom: 2rem;
}

.docs-search input {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--type-body);
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    min-height: 44px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23707070' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.875rem center;
}

.docs-search input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.docs-search input::placeholder {
    color: var(--text-muted);
}

/* Docs icon reference grid */
.icon-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 1.5rem;
}

.icon-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: var(--type-body);
    line-height: 1.5;
}

.icon-row:last-child {
    border-bottom: none;
}

.icon-row strong {
    color: var(--text-primary);
}

.icon-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

/* Bottom banner (e.g., "Still stuck?" on docs) */
.bottom-banner {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}

.bottom-banner h3 {
    font-size: var(--type-h3);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bottom-banner p {
    font-size: var(--type-body);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.bottom-banner .btn {
    color: white;
    text-decoration: none;
}

/* Month group header (updates timeline) */
.month-group {
    margin-bottom: 2rem;
}

.month-group h2 {
    font-size: var(--type-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* ============================================
   UTILITIES
   ============================================ */

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* 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;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
    }

    .scroll-dot {
        animation: none;
    }

    .hero-spotlight {
        animation: none;
    }

    .typing-text {
        animation: none;
        border-right-color: var(--primary);
    }
}

/* Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   FEATURES GALLERY - 3D Cover Flow
   ============================================ */

.features-section {
    padding: 5rem 1.5rem;
    position: relative;
    overflow-x: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.features-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.features-subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Gallery Container */
.gallery-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
}

.gallery-viewport {
    position: relative;
    height: 280px;
    perspective: 800px;
    perspective-origin: 50% 50%;
    margin-bottom: 1.5rem;
}

/* Gallery Cards */
.gallery-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 200px;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.gallery-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: relative;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.gallery-card-image {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--bg-dark);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    filter: contrast(1.03) saturate(1.05);
}

/* Card Reflection (hidden for now — re-enable by removing display:none) */
.gallery-card-reflection {
    display: none;
}

.gallery-card-reflection img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: blur(2px);
}

/* Center card glow + reflection */
.gallery-card.is-center .gallery-card-inner {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 80px var(--primary-glow);
}

/* .gallery-card.is-center .gallery-card-reflection { opacity: 1; } */

/* Navigation Arrows - shared styles */
.gallery-arrow {
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    box-shadow: 0 0 30px 15px rgb(31, 31, 31);
}

.gallery-arrow:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--primary);
}

.gallery-arrow:active {
    transform: scale(0.94);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Desktop arrows: overlaid on gallery */
.gallery-nav-desktop {
    display: none;
}

.gallery-arrow--prev {
    position: absolute;
    left: 1rem;
}

.gallery-arrow--next {
    position: absolute;
    right: 1rem;
}

/* Mobile arrows: below gallery */
.gallery-nav-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Feature Info */
.gallery-info {
    text-align: center;
    max-width: 520px;
    margin: 0 auto 2rem;
    min-height: 100px;
    padding: 0 1rem;
}

.gallery-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    opacity: 0;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    opacity: 0;
}

.gallery-desc {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    opacity: 0;
}

/* Dot Indicators */
.gallery-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.gallery-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.3s, transform 0.3s;
    display: block;
}

.gallery-dot.is-active::after {
    background: var(--primary);
    transform: scale(1.3);
}

.gallery-dot:hover::after {
    background: var(--text-secondary);
}

.gallery-dot.is-active:hover::after {
    background: var(--primary);
}

/* Swipe hint - mobile only */
.gallery-swipe-hint {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
    opacity: 0.7;
}

/* ── Responsive: 420px+ ── */
@media (min-width: 420px) {
    .gallery-viewport {
        height: 320px;
    }
    .gallery-card {
        width: 240px;
    }
}

/* ── Responsive: 768px+ ── */
@media (min-width: 768px) {
    .features-section {
        padding: 7rem 2rem;
    }
    .features-header {
        margin-bottom: 5rem;
    }
    .features-subtitle {
        font-size: 1.125rem;
    }
    .gallery-viewport {
        height: 460px;
        perspective: 1200px;
        margin-bottom: 3rem;
    }
    .gallery-card {
        width: 800px;
        height: 920px;
        top: -254px;
    }
    .gallery-nav-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        position: absolute;
        top: calc(50% - 160px);
        left: 0;
        right: 0;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 20;
    }
    .gallery-nav-mobile {
        display: none;
    }
    .gallery-title {
        font-size: 1.75rem;
    }
    .gallery-desc {
        font-size: 1.05rem;
    }
    .gallery-swipe-hint {
        display: none;
    }
}

/* ── Responsive: 1024px+ ── */
@media (min-width: 1024px) {
    .features-section {
        padding: 8rem 2rem;
    }
    .gallery-viewport {
        height: 520px;
    }
    .gallery-card {
        width: 920px;
        height: 1040px;
        top: -284px;
    }
    .gallery-arrow--prev {
        left: 2rem;
    }
    .gallery-arrow--next {
        right: 2rem;
    }
}
