/* ═══════════════════════════════════════════════════════════════════
   NeuroWave One — homepage styles
   ═══════════════════════════════════════════════════════════════════ */

/* ── Custom properties ─────────────────────────────────────────── */
:root {
    --nw-delta:  #6366f1;   /* indigo  */
    --nw-theta:  #8b5cf6;   /* violet  */
    --nw-alpha:  #06b6d4;   /* cyan    */
    --nw-beta:   #10b981;   /* emerald */
    --nw-gamma:  #f59e0b;   /* amber   */
    --nw-dark:   #0f172a;
    --nw-radius: var(--radius-4);
}

/* ── HERO ──────────────────────────────────────────────────────── */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    gap: clamp(var(--size-5), 4vw, var(--size-7));
    padding: clamp(var(--size-6), 5vw, var(--size-8)) clamp(var(--size-5), 4vw, var(--size-7));
    background:
        radial-gradient(circle at top left, rgba(103, 232, 249, 0.14), transparent 34%),
        radial-gradient(circle at right center, rgba(99, 102, 241, 0.2), transparent 30%),
        linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0c1a2e 100%);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.32);
    color: #f8fafc;
    overflow: hidden;
}

.hero-copy,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: grid;
    gap: var(--size-5);
    align-content: start;
}

.hero-text {
    max-width: 38rem;
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.hero-orb-a {
    width: 17rem;
    height: 17rem;
    top: -6rem;
    left: -4rem;
    background: radial-gradient(circle, rgba(103, 232, 249, 0.34), transparent 68%);
}

.hero-orb-b {
    width: 20rem;
    height: 20rem;
    right: -7rem;
    bottom: -8rem;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
}

.hero-heading {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 0.97;
    background: linear-gradient(120deg, #e0e7ff 0%, #a5b4fc 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .lede {
    color: rgba(248, 250, 252, 0.75);
    max-width: 56ch;
}

.hero .eyebrow {
    color: #a5b4fc;
}

.hero-actions {
    align-items: stretch;
}

.hero-proof {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--size-4);
    padding: var(--size-4);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.hero-proof strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    color: #ffffff;
}

.hero-proof span {
    display: block;
    color: rgba(248, 250, 252, 0.7);
    line-height: 1.65;
    font-size: 0.9rem;
}

.trust-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--size-3);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    color: rgba(248, 250, 252, 0.72);
}

.trust-pills li {
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-3);
    background: rgba(255, 255, 255, 0.04);
    line-height: 1.5;
}

/* ── BRAINWAVE DISPLAY ─────────────────────────────────────────── */
.hero-visual {
    display: grid;
    gap: var(--size-3);
}

.brainwave-display {
    position: relative;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-4);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
        rgba(15, 23, 42, 0.76);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.3);
    overflow: hidden;
    padding: var(--size-4) var(--size-4) var(--size-3);
}

.wave-svg {
    display: block;
    width: 100%;
    height: 160px;
}

.wave {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wave-delta { stroke: var(--nw-delta); opacity: 0.55; stroke-width: 3; }
.wave-theta { stroke: var(--nw-theta); opacity: 0.65; stroke-width: 2.5; }
.wave-alpha { stroke: var(--nw-alpha); opacity: 0.75; stroke-width: 2; }
.wave-beta  { stroke: var(--nw-beta);  opacity: 0.7;  stroke-width: 1.5; }
.wave-gamma { stroke: var(--nw-gamma); opacity: 0.8;  stroke-width: 1; }

.wave-labels {
    display: flex;
    gap: var(--size-3);
    flex-wrap: wrap;
    margin-top: var(--size-3);
    padding-top: var(--size-2);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.wl {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.18em 0.55em;
    border-radius: var(--radius-round);
}

.wl-delta { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.wl-theta { background: rgba(139,92,246,0.18); color: #c4b5fd; }
.wl-alpha { background: rgba(6,182,212,0.18);  color: #67e8f9; }
.wl-beta  { background: rgba(16,185,129,0.18); color: #6ee7b7; }
.wl-gamma { background: rgba(245,158,11,0.18); color: #fcd34d; }

.visual-caption {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(248,250,252,0.4);
    text-align: center;
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1fr 480px;
        align-items: center;
    }
}

/* ── STATS BAR ─────────────────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--size-4);
    padding: clamp(var(--size-4), 4vw, var(--size-5)) clamp(var(--size-4), 4vw, var(--size-6));
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--size-1);
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--nw-delta), var(--nw-alpha));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--site-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* ── SECTION HELPERS ───────────────────────────────────────────── */
.section-block {
    display: grid;
    gap: clamp(var(--size-4), 4vw, var(--size-6));
}

.section-header {
    max-width: 68ch;
}

.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.section-lede {
    margin: 0;
    color: var(--site-text-muted);
    line-height: 1.8;
    max-width: 62ch;
}

/* ── FEATURES GRID ─────────────────────────────────────────────── */
.features-grid {
    display: grid;
    gap: var(--size-4);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    padding: var(--size-5);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-5);
}

.feat-icon {
    font-size: 2rem;
    line-height: 1;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--site-text-muted);
    line-height: 1.75;
    font-size: 0.92rem;
}

/* ── WAVE TABLE ────────────────────────────────────────────────── */
.wave-table {
    display: grid;
    gap: var(--size-2);
}

.wave-row {
    display: grid;
    grid-template-columns: 90px 130px 1fr;
    align-items: center;
    gap: var(--size-4);
    padding: var(--size-3) var(--size-5);
    border-radius: var(--radius-3);
    border: 1px solid var(--site-border);
    background: var(--site-panel);
}

.wr-badge {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 0.25em 0.6em;
    border-radius: var(--radius-round);
    text-align: center;
}

.wave-row-delta .wr-badge { background: rgba(99,102,241,0.12); color: var(--nw-delta); border: 1px solid rgba(99,102,241,0.25); }
.wave-row-theta .wr-badge { background: rgba(139,92,246,0.12); color: var(--nw-theta); border: 1px solid rgba(139,92,246,0.25); }
.wave-row-alpha .wr-badge { background: rgba(6,182,212,0.12);  color: var(--nw-alpha); border: 1px solid rgba(6,182,212,0.25); }
.wave-row-beta  .wr-badge { background: rgba(16,185,129,0.12); color: var(--nw-beta);  border: 1px solid rgba(16,185,129,0.25); }
.wave-row-gamma .wr-badge { background: rgba(245,158,11,0.12); color: var(--nw-gamma); border: 1px solid rgba(245,158,11,0.25); }

.wr-range {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--site-text-muted);
    font-family: var(--font-mono);
}

.wr-state {
    font-size: 0.9rem;
    color: var(--site-text);
    line-height: 1.5;
}

.table-cta-hint {
    margin: 0;
    text-align: right;
    font-size: 0.88rem;
}

.table-cta-hint a {
    color: var(--site-accent-strong);
    text-decoration: none;
    font-weight: 600;
}

/* ── TESTIMONIALS ──────────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    gap: var(--size-4);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial {
    padding: var(--size-5);
    display: grid;
    gap: var(--size-3);
}

.testimonial p {
    margin: 0;
    line-height: 1.8;
    font-size: 0.93rem;
    font-style: italic;
    color: var(--site-text-muted);
}

.testimonial footer {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--site-accent-strong);
}

/* ── CTA SECTION ───────────────────────────────────────────────── */
.cta-section {
    padding: var(--size-8) var(--size-7);
    text-align: center;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border-color: rgba(99, 102, 241, 0.25);
    color: #f8fafc;
}

.cta-section h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: white;
}

.cta-section .lede { color: rgba(248,250,252,0.7); margin: 0 auto; }
.cta-section .eyebrow { color: #a5b4fc; }

.cta-actions {
    display: flex;
    gap: var(--size-3);
    flex-wrap: wrap;
    justify-content: center;
}

.button-large {
    min-height: 3.4rem;
    padding: 0 2rem;
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--nw-delta), var(--nw-alpha));
    border: none;
}

.button-large:hover {
    filter: brightness(1.12);
    background: linear-gradient(135deg, var(--nw-delta), var(--nw-alpha));
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-pills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .features-grid,
    .testimonials-grid,
    .stats-bar {
        grid-template-columns: 1fr;
    }

    .wave-row {
        grid-template-columns: 1fr;
        gap: var(--size-2);
        padding: var(--size-4);
    }

    .wr-badge {
        justify-self: start;
    }

    .wr-range,
    .wr-state {
        grid-column: auto;
    }

    .hero {
        padding: var(--size-6) var(--size-4);
    }

    .hero-heading {
        font-size: clamp(2rem, 11vw, 2.9rem);
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .hero-actions .button,
    .cta-actions .button {
        width: 100%;
        justify-content: center;
    }

    .brainwave-display {
        padding: var(--size-3);
    }

    .wave-svg {
        height: 128px;
    }

    .wave-labels {
        gap: var(--size-2);
    }

    .cta-section {
        padding: var(--size-6) var(--size-4);
    }
}
