/* ==========================================================================
   NEUROSYNC+ 4.0 — BRAIN.FM DESIGN SYSTEM & VISUAL ARCHITECTURE
   Inspired by Brain.fm's premium, editorial, high-contrast aesthetic.
   Crafted with:
     - Deep night obsidian canvas (#09080E)
     - High-contrast typography (Outfit & Plus Jakarta Sans)
     - Brain.fm signature text-highlight gradient marker
     - Generous whitespace and editorial Z-pattern layout
     - Tactile pill-shaped high-contrast CTA buttons
     - Subtle atmospheric aura glows & glassmorphism (backdrop-filter)
   ========================================================================== */

:root {
    /* Palette Tokens */
    --bg-canvas:          #09080E;
    --bg-surface:         rgba(255, 255, 255, 0.035);
    --bg-surface-hover:   rgba(255, 255, 255, 0.065);
    --bg-card-elevated:   rgba(18, 17, 26, 0.85);
    
    --border-glass:       rgba(255, 255, 255, 0.09);
    --border-hover:       rgba(255, 255, 255, 0.22);
    --border-active:      #38BDF8;
    
    --text-white:         #FFFFFF;
    --text-primary:       #EAE9F5;
    --text-secondary:     #B4B2C8;
    --text-muted:         #7C7A90;
    
    --accent-blue:        #2837D2;
    --accent-cyan:        #16A6F8;
    --accent-glow:        linear-gradient(90deg, #2837D2 0%, #16A6F8 100%);
    --accent-purple:      #7928CA;
    
    /* Typography Tokens */
    --font-display:       'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:          'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:          'JetBrains Mono', monospace;
    
    /* Geometry & Timing */
    --radius-pill:        9999px;
    --radius-panel:       28px;
    --radius-card:        20px;
    --radius-sm:          12px;
    
    --ease-spring:        cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-top: 72px;
}

/* Subtle Ambient Noise Texture (Brain.fm Signature) */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
}

/* Container */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

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

/* Sections */
.section {
    padding: 130px 0;
    position: relative;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hero-title {
    font-size: clamp(1.85rem, 3.4vw, 3.6rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    letter-spacing: -0.035em;
    line-height: 1.06;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 680px;
    font-weight: 400;
}

/* Brain.fm Signature Highlight Marker */
.text-highlight {
    position: relative;
    display: inline-block;
    color: var(--text-white);
    z-index: 1;
}

@media (max-width: 768px) {
    .text-highlight {
        display: inline;
        white-space: normal;
    }
}

.text-highlight::before {
    content: '';
    position: absolute;
    left: -2%;
    bottom: 12%;
    width: 104%;
    height: 38%;
    background: var(--accent-glow);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.9;
}

/* Meta Kicker Badge */
.meta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.meta-kicker-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================================================
   BUTTONS (BRAIN.FM HIGH-CONTRAST TACTILE PILLS)
   ========================================================================== */
.btn-pill-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #FFFFFF;
    color: #09080E;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 20px 42px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.22);
    transition: transform 200ms var(--ease-spring), box-shadow 200ms ease, background 200ms ease;
}

.btn-pill-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.38);
    background: #FFFFFF;
}

.btn-pill-primary:active {
    transform: scale(0.97);
}

.btn-pill-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 19px 36px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms var(--ease-spring);
}

.btn-pill-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
    color: #FFFFFF;
}

.btn-pill-secondary:active {
    transform: scale(0.97);
}

/* ==========================================================================
   NAVIGATION (BRAIN.FM STYLE TRANSLUCENT HEADER)
   ========================================================================== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(9, 8, 14, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    transition: all 0.3s ease;
}

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

.wordmark {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    color: var(--text-white);
    text-decoration: none;
    flex-shrink: 0;
}

.wordmark-mark {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    color: var(--accent-cyan);
}

.wordmark-name {
    display: inline-flex;
    white-space: nowrap;
}

.wordmark-name span {
    background: var(--accent-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wordmark-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-cyan);
    border: 1px solid rgba(22, 166, 248, 0.35);
    background: rgba(22, 166, 248, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.nav-cta-btn {
    padding: 10px 22px;
    font-size: 0.82rem;
    color: #FFFFFF;
    background: var(--accent-glow);
    box-shadow: 0 8px 24px rgba(40, 55, 210, 0.28);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta-btn:hover {
    color: #FFFFFF;
    background: var(--accent-glow);
    box-shadow: 0 12px 30px rgba(22, 166, 248, 0.32);
}

@media (max-width: 640px) {
    .nav-cta-btn { display: inline-flex; }
}

/* ==========================================================================
   HERO SECTION (BRAIN.FM AURA & ASYMMETRIC COMPOSITION)
   ========================================================================== */
.hero-stage {
    padding-top: 60px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

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

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
    margin-bottom: 36px;
}

.hero-proof-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
    border-top: 1px solid var(--border-glass);
}

.proof-stars {
    color: #F59E0B;
    font-size: 1rem;
    letter-spacing: 2px;
}

.proof-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

/* ==========================================================================
   HERO SPECTRUM VISUAL STAGE (LUMINOUS FLUID MOTION & MULTI-LAYER DEPTH)
   ========================================================================== */
.hero-visual-wrapper.hero-spectrum-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-aura-bloom {
    position: absolute;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 55, 210, 0.32) 0%, rgba(121, 40, 202, 0.18) 40%, rgba(22, 166, 248, 0.08) 60%, transparent 72%);
    filter: blur(65px);
    z-index: 0;
    pointer-events: none;
    animation: auraBreath 8s ease-in-out infinite alternate;
}

@keyframes auraBreath {
    0% {
        transform: scale(0.96);
        opacity: 0.75;
    }
    100% {
        transform: scale(1.06);
        opacity: 1;
    }
}

.spectrum-visual-card {
    position: relative;
    width: 100%;
    max-width: 530px;
    aspect-ratio: 1 / 1;
    border-radius: 32px;
    background: #09080E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 25px 60px -10px rgba(0, 0, 0, 0.85),
        0 0 50px -10px rgba(40, 55, 210, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spectrum-base-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.02);
    filter: contrast(1.08) brightness(1.02);
}

.spectrum-visual-card::before {
    content: '';
    position: absolute;
    z-index: 2;
    top: -25%;
    bottom: -25%;
    left: -55%;
    width: 42%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(22, 166, 248, 0.18), rgba(255, 255, 255, 0.12), transparent);
    mix-blend-mode: screen;
    transform: skewX(-16deg);
    animation: spectrumSweep 7.5s ease-in-out infinite;
}

@keyframes spectrumSweep {
    0%, 12% { transform: translate3d(-30%, 0, 0) skewX(-16deg); opacity: 0; }
    28% { opacity: 0.8; }
    76%, 100% { transform: translate3d(390%, 0, 0) skewX(-16deg); opacity: 0; }
}

.spectrum-interactive-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: screen;
}

.spectrum-ambient-vignette {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    box-shadow: inset 0 0 60px 20px #09080E;
    border-radius: 32px;
    background: radial-gradient(circle at center, transparent 55%, rgba(9, 8, 14, 0.4) 80%, rgba(9, 8, 14, 0.88) 100%);
}

@media (prefers-reduced-motion: reduce) {
    .hero-aura-bloom {
        animation: none;
        opacity: 0.8;
    }
    .spectrum-visual-card::before {
        animation: none;
        opacity: 0;
    }
}

/* ==========================================================================
   STATE TICKER STRIP (BRAIN.FM HORIZONTAL BADGES)
   ========================================================================== */
.ticker-strip {
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    background: rgba(255, 255, 255, 0.02);
    padding: 22px 0;
    overflow-x: hidden;
    width: 100%;
}

.ticker-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .ticker-strip {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .ticker-strip::-webkit-scrollbar {
        display: none;
    }
    .ticker-strip .container {
        padding: 0 16px;
    }
    .ticker-flex {
        width: max-content;
    }
}


.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ticker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

/* ==========================================================================
   EDITORIAL Z-PATTERN FEATURE BLOCKS (BRAIN.FM SIGNATURE SHOWCASE)
   ========================================================================== */
.editorial-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 120px;
}

.editorial-row:last-child {
    margin-bottom: 0;
}

.editorial-row.reversed {
    direction: rtl;
}

.editorial-row.reversed > * {
    direction: ltr;
}

@media (max-width: 960px) {
    .editorial-row, .editorial-row.reversed {
        grid-template-columns: 1fr;
        gap: 40px;
        direction: ltr;
        margin-bottom: 80px;
    }
}

.editorial-text-col {
    display: flex;
    flex-direction: column;
}

.editorial-heading {
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 18px;
}

.editorial-paragraph {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.editorial-check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.editorial-check-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.check-bullet {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(22, 166, 248, 0.15);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.editorial-media-col {
    position: relative;
    border-radius: var(--radius-panel);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-surface);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transition: transform 300ms var(--ease-spring), border-color 300ms ease;
}

.editorial-media-col:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.editorial-media-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* ==========================================================================
   SOLFEGGIO FREQUENCIES (SPECIFICATION INDEX)
   ========================================================================== */
.solfeggio-section {
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

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

@media (max-width: 990px) {
    .solfeggio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .solfeggio-grid {
        grid-template-columns: 1fr;
    }
}

.solf-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    transition: transform 200ms var(--ease-spring), border-color 200ms ease;
}

.solf-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 166, 248, 0.4);
}

.solf-hz-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.solf-hz-num span {
    font-size: 1rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.solf-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.solf-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   SCIENCE STEPS (3 HORIZONTAL CARDS)
   ========================================================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

@media (max-width: 860px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15);
    margin-bottom: 20px;
}

.step-title {
    font-size: 1.35rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   COMPARISON TABLE (BRAIN.FM VS NEUROSYNC)
   ========================================================================== */
.comparison-container {
    max-width: 960px;
    margin: 50px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

@media (max-width: 768px) {
    .comparison-container {
        grid-template-columns: 1fr;
    }
}

.comp-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-panel);
    padding: 44px 36px;
    display: flex;
    flex-direction: column;
}

.comp-box.featured {
    border-color: rgba(22, 166, 248, 0.5);
    background: linear-gradient(180deg, rgba(40, 55, 210, 0.12) 0%, rgba(22, 166, 248, 0.05) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
}

.comp-badge-pill {
    position: absolute;
    top: -14px;
    left: 36px;
    background: var(--accent-glow);
    color: #FFFFFF;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
}

.comp-title {
    font-size: 1.5rem;
    color: var(--text-white);
    margin-bottom: 6px;
}

.comp-price {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.03em;
    margin: 16px 0 4px;
}

.comp-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-glass);
}

.comp-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    flex: 1;
}

.comp-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.ico-good {
    color: #10B981;
    font-weight: 900;
    flex-shrink: 0;
}

.ico-bad {
    color: #EF4444;
    font-weight: 900;
    flex-shrink: 0;
}

/* ==========================================================================
   PRICING STAGE
   ========================================================================== */
.pricing-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card-elevated);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-panel);
    padding: 64px 48px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    position: relative;
}

@media (max-width: 600px) {
    .pricing-card {
        padding: 40px 24px;
    }
}

.price-big-num {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 20px 0 8px;
}

.price-big-num span {
    font-size: 1.6rem;
    color: var(--accent-cyan);
    font-weight: 700;
}

.pricing-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
    margin: 36px 0;
    padding: 24px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.pricing-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.98rem;
    color: var(--text-primary);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-container {
    max-width: 820px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: border-color 200ms ease;
}

.faq-item.open {
    border-color: rgba(22, 166, 248, 0.4);
}

.faq-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
}

.faq-cross {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: transform 250ms var(--ease-spring), color 200ms ease;
}

.faq-item.open .faq-cross {
    transform: rotate(45deg);
    color: var(--accent-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms var(--ease-spring), padding 200ms ease;
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 28px;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px;
}

/* ==========================================================================
   FOOTER & LEGAL MODALS
   ========================================================================== */
.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-glass);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-nav-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 150ms ease;
}

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

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #111019;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-panel);
    padding: 44px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-white);
}

/* Mobile layout tuned for narrow screens and the compact Brain.fm-style header. */
@media (max-width: 768px) {
    body {
        padding-top: 62px;
    }

    html {
        scroll-padding-top: 64px;
    }

    .container {
        padding-inline: 20px;
    }

    .site-nav {
        padding: 9px 0;
    }

    .site-nav .container {
        padding-inline: 16px;
    }

    .nav-wrapper {
        gap: 8px;
        min-width: 0;
    }

    .nav-actions {
        gap: 6px;
    }

    .wordmark {
        min-width: 0;
        gap: 6px;
        font-size: 1rem;
    }

    .wordmark-mark {
        width: 24px;
        height: 24px;
    }

    .wordmark-badge {
        display: none;
    }

    .nav-cta-btn {
        display: inline-flex;
        max-width: 180px;
        padding: 9px 16px;
        white-space: normal;
        text-align: center;
        line-height: 1.15;
        font-size: 0.68rem;
        letter-spacing: 0.025em;
    }

    .hero-stage {
        padding-top: 34px;
        padding-bottom: 60px;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .hero-grid > *,
    .container > *,
    .editorial-row > *,
    .comparison-container > *,
    .steps-grid > * {
        min-width: 0;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
    }

    .meta-kicker {
        display: flex;
        flex-wrap: wrap;
        max-width: 100%;
        font-size: 0.68rem;
        line-height: 1.45;
        letter-spacing: 0.09em;
        margin-bottom: 16px;
    }

    .hero-title {
        max-width: 100%;
        font-size: clamp(2.05rem, 8.2vw, 2.8rem);
        line-height: 1.06;
        margin-bottom: 18px;
        overflow-wrap: break-word;
    }

    .section-subtitle {
        max-width: 100%;
        font-size: 1.05rem;
        line-height: 1.55;
        overflow-wrap: break-word;
    }

    .hero-cta-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        gap: 12px;
        margin: 26px 0;
    }

    .hero-cta-group > a {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 15px 18px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        font-size: 0.8rem;
        letter-spacing: 0.025em;
    }

    .hero-proof-bar {
        align-items: flex-start;
        gap: 12px;
    }

    .proof-stars {
        flex: 0 0 auto;
        font-size: 0.88rem;
        letter-spacing: 1px;
    }

    .proof-text {
        min-width: 0;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .hero-visual-wrapper {
        min-width: 0;
    }

    .spectrum-visual-card {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 1.45 / 1;
        border-radius: 24px;
    }

    .spectrum-ambient-vignette {
        border-radius: 24px;
    }

    .hero-aura-bloom {
        filter: blur(44px);
    }

    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        overflow-wrap: break-word;
    }

    .editorial-row,
    .editorial-row.reversed {
        gap: 28px;
        margin-bottom: 64px;
    }

    .editorial-heading {
        font-size: clamp(1.75rem, 7vw, 2.4rem);
        overflow-wrap: break-word;
    }

    .editorial-media-col,
    .editorial-media-img {
        width: 100%;
        min-width: 0;
        height: auto;
    }

    .solf-card {
        padding: 24px 20px;
    }

    .comp-box {
        padding: 32px 22px;
    }

    .pricing-card {
        padding: 34px 20px;
    }

    .modal-box {
        padding: 32px 20px;
    }
}

@media (max-width: 380px) {
    body {
        padding-top: 60px;
    }

    html {
        scroll-padding-top: 62px;
    }

    .site-nav .container {
        padding-inline: 12px;
    }

    .wordmark {
        gap: 4px;
        font-size: 0.9rem;
    }

    .wordmark-mark {
        width: 22px;
        height: 22px;
    }

    .nav-cta-btn {
        max-width: 138px;
        padding: 7px 10px;
        font-size: 0.6rem;
    }

    .hero-cta-group > a {
        padding-inline: 14px;
        font-size: 0.74rem;
    }

    .comp-box {
        padding-inline: 18px;
    }
}

/* Scroll reveals for the marketing page; content remains visible without JS. */
.motion-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease-out, transform 600ms var(--ease-spring);
}

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

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