/* ============================================================
   NEUROLAYER LABS — COMPANY HUB
   Brand v2 design system (PRD §2.1)
   OLED black · glassmorphism · one accent per surface
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    /* Canvas */
    --bg: #09090B;

    /* Accent system — one accent per surface */
    --cyan: #00F0FF;        /* Neurolayer Labs (company layer) */
    --purple: #967CC4;      /* NeuroBrowse */
    --pink: #D184AE;        /* NeuroNotes */
    --yellow: #FDC752;      /* NeuroLearn */
    --orange: #FB9E58;      /* NeuroFit */

    --cyan-rgb: 0, 240, 255;
    --purple-rgb: 150, 124, 196;
    --pink-rgb: 209, 132, 174;
    --yellow-rgb: 253, 199, 82;
    --orange-rgb: 251, 158, 88;

    /* Current surface accent (overridden per page via body[data-accent]) */
    --accent: var(--cyan);
    --accent-rgb: var(--cyan-rgb);

    /* Text */
    --white: #FAFAFA;
    --gray: #A1A1AA;
    --gray-dim: #8A8A94; /* was #71717A — lifted to ≥4.5:1 on OLED black (WCAG AA, a11y pass) */

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-strong: rgba(9, 9, 11, 0.72);
    --glass-border: rgba(var(--accent-rgb), 0.18);
    --glass-border-hover: rgba(var(--accent-rgb), 0.5);
    --radius: 20px;

    /* Type */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

    /* Rhythm */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-24: 6rem;

    --container: 1180px;
    --nav-h: 72px;

    --transition: 240ms cubic-bezier(0.33, 1, 0.68, 1);
    --spring: 550ms cubic-bezier(0.22, 1, 0.36, 1);
    --glow: 0 0 40px rgba(var(--accent-rgb), 0.18), 0 0 90px rgba(var(--accent-rgb), 0.07);
    --glow-strong: 0 0 30px rgba(var(--accent-rgb), 0.35), 0 0 70px rgba(var(--accent-rgb), 0.12);
}

/* Per-surface accent override */
body[data-accent="purple"] { --accent: var(--purple); --accent-rgb: var(--purple-rgb); }
body[data-accent="pink"]   { --accent: var(--pink);   --accent-rgb: var(--pink-rgb); }
body[data-accent="yellow"] { --accent: var(--yellow); --accent-rgb: var(--yellow-rgb); }
body[data-accent="orange"] { --accent: var(--orange); --accent-rgb: var(--orange-rgb); }

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { color: var(--gray); }

::selection { background: rgba(var(--accent-rgb), 0.35); color: var(--white); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

section { padding: var(--space-24) 0; position: relative; }

/* ---------- Accessibility: skip link + visible keyboard focus (Phase 3 §9) ---------- */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 300;
    transform: translateY(-72px);
    background: var(--accent);
    color: #0B0B0E;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
/* accent-filled controls need a non-accent ring to stay visible */
.btn-primary:focus-visible, .nav-cta:focus-visible, .skip-link:focus-visible {
    outline-color: var(--white);
}

/* screen-reader-only text (used for structural headings the design omits) */
.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;
}

/* inline links inside body copy need a non-color cue (WCAG link-in-text-block) */
main p a, main li a, main dd a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(var(--accent-rgb), 0.55);
}
main p a:hover, main li a:hover, main dd a:hover { text-decoration-color: var(--accent); }

/* ---------- Utilities ---------- */
.mono-kicker {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}
.mono-kicker::before {
    content: "";
    width: 24px; height: 1px;
    background: var(--accent);
    opacity: 0.7;
}

.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .mono-kicker { justify-content: center; }
.section-head p { margin-top: var(--space-4); font-size: 1.08rem; }

.accent-text { color: var(--accent); }

/* Glass card — liquid glass: refractive tint, bevel highlights,
   depth shadow, and a pointer-tracked light spotlight (--mx/--my
   set by js/main.js; falls back to a static top sheen without JS). */
.glass {
    position: relative;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.065) 0%,
        rgba(255, 255, 255, 0.018) 42%,
        rgba(var(--accent-rgb), 0.045) 100%);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03),
        inset 0 0 32px rgba(var(--accent-rgb), 0.025),
        0 18px 44px -18px rgba(0, 0, 0, 0.55);
    transition: border-color var(--transition), transform var(--spring), box-shadow var(--transition), background var(--transition);
}
.glass::before {
    /* light source that follows the cursor */
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -20%),
        rgba(var(--accent-rgb), 0.13),
        rgba(255, 255, 255, 0.04) 42%,
        transparent 68%);
    opacity: 0;
    transition: opacity 0.45s ease;
}
.glass:hover::before { opacity: 1; }
.glass:hover {
    border-color: var(--glass-border-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 24px 56px -18px rgba(0, 0, 0, 0.65),
        0 0 44px -6px rgba(var(--accent-rgb), 0.22);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #0B0B0E;
    box-shadow: var(--glow-strong);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.5), 0 0 90px rgba(var(--accent-rgb), 0.18); }
.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    border-color: rgba(var(--accent-rgb), 0.35);
    color: var(--white);
}
.btn-secondary:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.08rem; }

/* Status badges */
.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.badge-live { color: #34D399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px #34D399; }
.badge-dev { color: var(--gray); border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); }
.badge-accent { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.08); }

/* Scroll reveal — rises, sharpens, and settles with a spring.
   Sections are visible by default (no-JS safe); js/main.js adds .sr-anim to
   <html> to arm the hidden state — same approach as the timeline's .tl-anim. */
.sr-anim .scroll-reveal {
    opacity: 0;
    transform: translateY(36px) scale(0.985);
    filter: blur(10px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1), filter 0.85s ease;
}
.sr-anim .scroll-reveal.revealed { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
    .sr-anim .scroll-reveal { opacity: 1; transform: none; filter: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Timeline (About) — vertical line with node markers.
   Entries are visible by default; js/main.js adds .tl-anim to enable the
   per-entry reveal, so the section reads fully without JS. */
.timeline { position: relative; max-width: 680px; margin: 0 auto; }
.timeline::before {
    content: "";
    position: absolute;
    top: 6px; bottom: 6px; left: 5px;
    width: 2px;
    background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.55), rgba(var(--accent-rgb), 0.1));
}
.timeline-entry { position: relative; padding-left: var(--space-8); }
.timeline-entry + .timeline-entry { margin-top: var(--space-8); }
.timeline-entry::before {
    /* node marker */
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}
.timeline-date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-3);
}
.timeline-card { padding: var(--space-6); }
.timeline-card h3 { font-size: 1.12rem; margin-bottom: var(--space-2); }
.timeline-card p { font-size: 0.98rem; }

.tl-anim .timeline-entry {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.tl-anim .timeline-entry.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .tl-anim .timeline-entry { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   NAVBAR — sticky, glass, OLED black, cyan accent (PRD §4.1)
   Nav accent stays cyan (company layer) on every page.
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(9, 9, 11, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--cyan-rgb), 0.12);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.nav-logo { display: flex; align-items: center; gap: var(--space-3); }
.nav-logo img {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
}
.nav-logo span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
}
.nav-logo span em { font-style: normal; color: var(--cyan); }

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}
.nav-links > li { position: relative; }
.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--white); }
.nav-cta {
    background: var(--cyan);
    color: #0B0B0E !important;
    font-family: var(--font-display);
    font-weight: 600 !important;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    box-shadow: 0 0 24px rgba(var(--cyan-rgb), 0.3);
    transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 34px rgba(var(--cyan-rgb), 0.5); }

/* Products dropdown */
.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--gray);
    transition: color var(--transition);
    padding: 0;
}
.nav-drop-btn:hover { color: var(--white); }
.nav-drop-btn svg { width: 12px; height: 12px; transition: transform var(--transition); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }

.nav-drop-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 250px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--cyan-rgb), 0.14);
    border-radius: var(--radius);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-drop.open .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
@media (hover: hover) {
    .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
}
.nav-drop-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.92rem;
}
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.05); }
.nav-drop-menu img { width: 30px; height: 30px; object-fit: contain; }
.nav-drop-menu .drop-name { color: var(--white); font-weight: 600; display: block; line-height: 1.2; }
.nav-drop-menu .drop-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.drop-tag.live { color: #34D399; }
.drop-tag.dev { color: var(--gray-dim); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: none;
    border: none;
    padding: 8px;
}
.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO (shared patterns)
   ============================================================ */
.hero {
    padding-top: calc(var(--nav-h) + var(--space-16));
    padding-bottom: var(--space-16);
    min-height: 88vh;
    display: flex;
    align-items: center;
}
.hero::before {
    /* ambient accent glow behind hero */
    content: "";
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.10), transparent 65%);
    pointer-events: none;
}
.hero .container { position: relative; }

.hero-banner {
    border-radius: var(--radius);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    box-shadow: var(--glow);
    overflow: hidden;
}
.hero-banner img { width: 100%; object-fit: cover; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
    align-items: center;
}
.hero h1 .tagline-accent { color: var(--accent); display: block; }
.hero-sub {
    margin-top: var(--space-6);
    font-size: 1.14rem;
    max-width: 560px;
}
.hero-ctas {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}
.hero-note {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
}

/* Big floating 3D logo */
.hero-logo-3d { position: relative; display: flex; justify-content: center; }
.hero-logo-3d img {
    width: min(420px, 80%);
    filter: drop-shadow(0 0 50px rgba(var(--accent-rgb), 0.35));
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-18px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .hero-logo-3d img { animation: none; } }

/* ============================================================
   HOMEPAGE
   ============================================================ */

/* Home hero: banner featured large under the headline */
.home-hero-banner { margin-top: var(--space-12); }

/* Problem section */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.problem-card { padding: var(--space-8); }
.problem-card .p-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    margin-bottom: var(--space-4);
}
.problem-card .p-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.problem-card h3 { margin-bottom: var(--space-2); }
.problem-card p { font-size: 0.96rem; }

/* Answer section */
.answer-panel {
    padding: var(--space-12);
    text-align: center;
    background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.06), rgba(255, 255, 255, 0.02));
}
.answer-panel h2 { max-width: 760px; margin: 0 auto var(--space-4); }
.answer-panel > p { max-width: 640px; margin: 0 auto; font-size: 1.1rem; }
.answer-pills {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}
.answer-pills span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.06);
}

/* Product grid — each card carries its own product accent */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}
.product-card {
    --accent: var(--p-accent);
    --accent-rgb: var(--p-accent-rgb);
    display: flex;
    flex-direction: column;
    padding: var(--space-8);
    position: relative;
    overflow: hidden;
}
.product-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% -30%;
    height: 70%;
    background: radial-gradient(ellipse at center, rgba(var(--p-accent-rgb), 0.13), transparent 70%);
    pointer-events: none;
    transition: opacity var(--transition);
    opacity: 0.6;
}
.product-card:hover::after { opacity: 1; }
.product-card.accent-purple { --p-accent: var(--purple); --p-accent-rgb: var(--purple-rgb); }
.product-card.accent-pink   { --p-accent: var(--pink);   --p-accent-rgb: var(--pink-rgb); }
.product-card.accent-yellow { --p-accent: var(--yellow); --p-accent-rgb: var(--yellow-rgb); }
.product-card.accent-orange { --p-accent: var(--orange); --p-accent-rgb: var(--orange-rgb); }

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}
.product-card-logo img {
    width: 96px; height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(var(--p-accent-rgb), 0.4));
    transition: transform var(--transition);
}
.product-card:hover .product-card-logo img { transform: scale(1.06) rotate(-2deg); }
.product-card h3 { font-size: 1.5rem; margin-bottom: var(--space-1); }
.product-card .product-tagline {
    color: var(--p-accent);
    font-weight: 500;
    margin-bottom: var(--space-3);
}
.product-card .product-desc { font-size: 0.96rem; flex: 1; }
.product-card .product-link {
    margin-top: var(--space-6);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--p-accent);
    transition: gap var(--transition);
}
.product-card .product-link:hover { gap: var(--space-3); }

/* Why different — pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}
.pillar { padding: var(--space-6); text-align: left; }
.pillar .pillar-num {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: var(--space-3);
}
.pillar h3 { font-size: 1.08rem; margin-bottom: var(--space-2); }
.pillar p { font-size: 0.9rem; }

/* Founder slice */
.founder-slice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-12);
    align-items: center;
    padding: var(--space-12);
}
.founder-photo {
    width: 190px; height: 190px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(var(--cyan-rgb), 0.5);
    box-shadow: 0 0 35px rgba(var(--cyan-rgb), 0.28), 0 0 80px rgba(var(--cyan-rgb), 0.1);
}
.founder-slice h2 { margin-bottom: var(--space-3); }
.founder-slice p { max-width: 600px; }

/* Pricing peek / pricing page cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    align-items: stretch;
}
.price-card {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    text-align: center;
}
.price-card.featured {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: var(--glow);
}
.price-card .price-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-4);
}
.price-card .price {
    font-family: var(--font-display);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1;
}
.price-card .price span { font-size: 1rem; color: var(--gray); font-weight: 500; }
.price-card ul {
    margin: var(--space-6) 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-align: left;
}
.price-card ul li {
    color: var(--gray);
    font-size: 0.94rem;
    padding-left: 1.5rem;
    position: relative;
}
.price-card ul li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent);
}
.byok-note {
    margin-top: var(--space-8);
    padding: var(--space-6);
    text-align: center;
}
/* Auto-renewal disclosure — must stay adjacent to the subscribe buttons */
.renewal-disclosure {
    margin: var(--space-6) auto 0;
    max-width: 680px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray);
}
.renewal-disclosure strong { color: var(--white); }
.byok-note p { font-size: 0.95rem; max-width: 680px; margin: 0 auto; }
.byok-note strong { color: var(--white); }

/* Newsletter */
.newsletter-panel {
    padding: var(--space-12);
    text-align: center;
    background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.07), rgba(255, 255, 255, 0.02));
}
.newsletter-form {
    margin-top: var(--space-6);
    display: flex;
    gap: var(--space-3);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.45); /* ≥3:1 component boundary (a11y pass) */
    border-radius: 999px;
    padding: 0.85rem 1.4rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: var(--gray-dim); }
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-msg {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    min-height: 1.2em;
}
.newsletter-sub { font-size: 0.92rem; margin-top: var(--space-2); }

/* Final CTA */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 700px; margin: 0 auto var(--space-6); }
.final-cta .hero-ctas { justify-content: center; }

/* ============================================================
   PRODUCT PAGES
   ============================================================ */

/* Feature bento */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: var(--space-6);
}
.feature-card { padding: var(--space-6); }
.feature-card .feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    margin-bottom: var(--space-4);
}
.feature-card .feature-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.feature-card p { font-size: 0.9rem; }

/* How it works steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.step { padding: var(--space-8); text-align: center; }
.step-number {
    width: 52px; height: 52px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    background: rgba(var(--accent-rgb), 0.07);
    box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.15);
}
.step h3 { margin-bottom: var(--space-2); }
.step p { font-size: 0.94rem; }

/* Cost calculator */
.calc-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}
.calc-card { padding: var(--space-8); }
.calc-card.calc-them { border-color: rgba(255, 255, 255, 0.1); }
.calc-card.calc-us { border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--glow); }
.calc-card h3 { margin-bottom: var(--space-6); display: flex; align-items: center; gap: var(--space-2); }
.calc-card.calc-them h3 svg { stroke: var(--gray-dim); }
.calc-card.calc-us h3 svg { stroke: var(--accent); }
.calc-line {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-2) 0;
    color: var(--gray);
    font-size: 0.95rem;
}
.calc-line span:last-child { color: var(--white); font-weight: 500; white-space: nowrap; }
.calc-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: var(--space-4) 0; }
.calc-total {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}
.calc-total-amount { font-size: 1.5rem; }
.calc-them .calc-total-amount { color: var(--gray); }
.calc-us .calc-total-amount { color: var(--accent); }
.calc-yearly { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray-dim); margin-top: var(--space-2); }

.calc-slider-section { max-width: 560px; margin: 0 auto var(--space-8); text-align: center; }
.calc-slider-label { font-size: 0.98rem; color: var(--gray); display: block; margin-bottom: var(--space-4); }
.calc-slider-label strong { color: var(--accent); font-size: 1.15rem; }
.calc-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-rgb), 0.15));
    outline: none;
}
.calc-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6);
    cursor: pointer;
}
.calc-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.6);
    cursor: pointer;
}
.calc-slider-range {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gray-dim);
    margin-top: var(--space-2);
}
.calc-savings { text-align: center; }
.calc-savings p { font-size: 1.12rem; color: var(--white); }
.savings-amount {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
    display: inline-block;
}
@keyframes savingsPop { 0% { transform: scale(1); } 50% { transform: scale(1.14); } 100% { transform: scale(1); } }
.savings-pop { animation: savingsPop 0.3s ease; }
.calc-footnote {
    text-align: center;
    margin-top: var(--space-6);
    font-size: 0.85rem;
    color: var(--gray-dim);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Cost table */
.cost-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.cost-table td {
    padding: var(--space-3) var(--space-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--gray);
}
.cost-table td:last-child { text-align: right; color: var(--white); font-family: var(--font-mono); font-size: 0.84rem; }
.cost-table tr:last-child td { border-bottom: none; }

/* Getting-started provider grid (imported from neurobrowse-landing) */
.api-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
}
.api-provider { padding: var(--space-6); display: flex; flex-direction: column; }
.api-provider h3 { font-size: 1.02rem; margin-bottom: var(--space-2); }
.api-provider .api-best { font-size: 0.9rem; flex: 1; }
.api-provider .api-cost {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: var(--space-3);
}
.api-provider > a {
    margin-top: var(--space-3);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
}
.api-provider > a:hover { text-decoration: underline; }

/* FAQ (imported from neurobrowse-landing) */
.faq-list {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}
.faq-item { padding: var(--space-8); }
.faq-item h3 { margin-bottom: var(--space-3); }
.faq-item p { font-size: 0.98rem; margin-bottom: var(--space-3); }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}
.faq-item li { color: var(--gray); font-size: 0.96rem; }
.faq-item strong { color: var(--white); }
.faq-item a { color: var(--accent); }
.faq-item a:hover { text-decoration: underline; }

/* Bundle callout (reciprocal NeuroBrowse ↔ NeuroNotes) */
.bundle-callout {
    --b-accent-rgb: var(--accent-rgb);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8) var(--space-12);
}
.bundle-callout.toward-pink { --b-accent-rgb: var(--pink-rgb); border-color: rgba(var(--pink-rgb), 0.3); }
.bundle-callout.toward-purple { --b-accent-rgb: var(--purple-rgb); border-color: rgba(var(--purple-rgb), 0.3); }
.bundle-callout img {
    width: 110px; height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 28px rgba(var(--b-accent-rgb), 0.45));
}
.bundle-badge {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--b-accent-rgb));
    border: 1px solid rgba(var(--b-accent-rgb), 0.45);
    background: rgba(var(--b-accent-rgb), 0.08);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    display: inline-block;
    margin-bottom: var(--space-3);
}
.bundle-callout h3 { font-size: 1.4rem; margin-bottom: var(--space-2); }
.bundle-callout p { font-size: 0.96rem; max-width: 520px; }

/* ============================================================
   DEV-TREATMENT PAGES (NeuroLearn / NeuroFit) — PRD §6.3/6.4
   ============================================================ */

/* Fixed ribbon that fades in once the visitor scrolls past the hero */
.dev-ribbon {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    box-shadow: var(--glow);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
}
.dev-ribbon.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.dev-ribbon .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

/* In-flow dev badge for the hero */
.dev-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.45);
    background: rgba(var(--accent-rgb), 0.08);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    margin-bottom: var(--space-6);
}
.dev-hero-badge .pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 1.8s ease-in-out infinite;
}

/* Teaser cards: real branding, lightly veiled */
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.teaser-card { padding: var(--space-8); position: relative; overflow: hidden; }
.teaser-card .teaser-stripe {
    position: absolute;
    top: 14px; right: -42px;
    transform: rotate(38deg);
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #0B0B0E;
    background: var(--accent);
    padding: 0.22rem 3rem;
    opacity: 0.9;
}
.teaser-card h3 { margin-bottom: var(--space-2); }
.teaser-card p { font-size: 0.92rem; }

/* Follow-along social block */
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}
.social-row a {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.social-row a:hover { color: var(--white); border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-2px); }
.social-row svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ============================================================
   ABOUT
   ============================================================ */
/* Circle version — kept for easy revert (restore this block, delete the
   portrait block below):
.about-hero-photo {
    width: 230px; height: 230px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid rgba(var(--cyan-rgb), 0.55);
    box-shadow: 0 0 40px rgba(var(--cyan-rgb), 0.3), 0 0 100px rgba(var(--cyan-rgb), 0.12);
    margin: 0 auto;
}
*/
.about-hero-photo {
    display: block;
    width: min(360px, 85vw);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid rgba(var(--cyan-rgb), 0.45);
    box-shadow: 0 0 40px rgba(var(--cyan-rgb), 0.3), 0 0 100px rgba(var(--cyan-rgb), 0.12);
    margin: 0 auto;
}
.about-story { max-width: 720px; margin: 0 auto; }
.about-story p { margin-bottom: var(--space-4); font-size: 1.05rem; }
.about-story p strong { color: var(--white); }

/* ============================================================
   NEUROLEARN ENRICHMENT (flywheel capture + app shots strip)
   ============================================================ */
.flywheel-frame {
    max-width: 860px;
    margin: var(--space-12) auto 0;
    padding: var(--space-4);
}
.flywheel-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 8px);
}
.section-note {
    margin-top: var(--space-8);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--gray-dim);
}
.shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.shot-card { padding: var(--space-4); margin: 0; }
.shot-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 8px);
}
.shot-card figcaption {
    margin-top: var(--space-3);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-12);
}
.blog-filter {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    transition: all var(--transition);
}
.blog-filter:hover, .blog-filter.active {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(var(--accent-rgb), 0.07);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}
.blog-card { overflow: hidden; display: flex; flex-direction: column; }
.blog-card-thumb {
    aspect-ratio: 16 / 9;
    background: linear-gradient(140deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: var(--space-6); flex: 1; display: flex; flex-direction: column; }
.blog-cat {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-2);
}
.blog-card h3 { font-size: 1.12rem; margin-bottom: var(--space-2); }
.blog-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--gray-dim); margin-bottom: var(--space-3); }
.blog-excerpt {
    font-size: 0.92rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-readmore {
    margin-top: var(--space-4);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
}
.blog-empty {
    text-align: center;
    padding: var(--space-16) var(--space-8);
}
.blog-empty p { max-width: 480px; margin: var(--space-3) auto 0; }

/* Blog post template */
.post-header { max-width: 760px; margin: 0 auto; text-align: center; }
.post-body { max-width: 720px; margin: var(--space-12) auto 0; }
.post-body h2 { font-size: 1.5rem; margin: var(--space-8) 0 var(--space-3); }
.post-body p { margin-bottom: var(--space-4); font-size: 1.02rem; }

/* ============================================================
   LEGAL (privacy / terms)
   ============================================================ */
.legal-wrap { max-width: 780px; margin: 0 auto; }
.legal-wrap .legal-updated {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gray-dim);
    margin-bottom: var(--space-12);
}
.legal-section { margin-bottom: var(--space-12); }
.legal-section h2 { font-size: 1.4rem; margin-bottom: var(--space-4); }
.legal-section h3 { font-size: 1.05rem; margin: var(--space-6) 0 var(--space-2); color: var(--white); }
.legal-section p, .legal-section li { font-size: 0.98rem; margin-bottom: var(--space-3); color: var(--gray); }
.legal-section ul { padding-left: var(--space-6); list-style: disc; }
.product-callout {
    padding: var(--space-6);
    margin: var(--space-4) 0;
    border-left: 3px solid var(--p-accent, var(--cyan));
}
.product-callout.accent-purple { --p-accent: var(--purple); }
.product-callout.accent-pink { --p-accent: var(--pink); }
.product-callout h3 { margin-top: 0 !important; }

/* ============================================================
   ACCOUNT (/account — Phase 3 §4)
   ============================================================ */
.account-wrap { max-width: 560px; margin: 0 auto; }
.account-card { padding: var(--space-8); }
.account-card h2 { margin-bottom: var(--space-6); }
.account-form { display: flex; flex-direction: column; gap: var(--space-4); }
.account-form .field { display: flex; flex-direction: column; gap: var(--space-2); }
.account-form label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
}
.account-form input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(var(--accent-rgb), 0.45); /* ≥3:1 component boundary (a11y pass) */
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.account-form input:focus { border-color: var(--accent); box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.2); }
.account-form .btn { margin-top: var(--space-2); }
.google-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}
.google-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.account-divider {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-4) 0;
    color: var(--gray);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.account-divider::before,
.account-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.account-msg {
    margin-top: var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    min-height: 1.2em;
}
.account-note { margin-top: var(--space-6); font-size: 0.88rem; }
.account-note a { color: var(--accent); }
.account-status { display: flex; flex-direction: column; gap: var(--space-3); }
.account-status > div {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.account-status dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    align-self: center;
}
.account-status dd { color: var(--white); font-weight: 500; text-align: right; }
.account-actions {
    margin-top: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

/* ============================================================
   FOOTER — multi-column glass (PRD §4.2)
   ============================================================ */
footer {
    margin-top: var(--space-16);
    border-top: 1px solid rgba(var(--cyan-rgb), 0.1);
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 0.8fr 1.2fr;
    gap: var(--space-8);
}
.footer-brand img { width: 56px; height: 56px; border-radius: 12px; margin-bottom: var(--space-4); }
.footer-brand .footer-tagline {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-2);
}
.footer-brand p { font-size: 0.88rem; }
.footer-col .footer-h {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray-dim);
    margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
    font-size: 0.92rem;
    color: var(--gray);
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}
.footer-col a:hover { color: var(--white); }
.footer-col .f-dev-tag {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-dim);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.08rem 0.35rem;
}
.footer-social { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--gray);
    transition: all var(--transition);
}
.footer-social a:hover {
    color: var(--cyan);
    border-color: rgba(var(--cyan-rgb), 0.5);
    transform: translateY(-2px);
}
.footer-social svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }
.footer-bottom {
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}
.footer-bottom p { font-size: 0.82rem; color: var(--gray-dim); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .pillar-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(9, 9, 11, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(var(--cyan-rgb), 0.15);
        padding: var(--space-4) var(--space-6) var(--space-8);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links > li { padding: var(--space-3) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
    .nav-links > li:last-child { border-bottom: none; padding-top: var(--space-6); }
    .nav-links a, .nav-drop-btn { font-size: 1.05rem; min-height: 44px; display: flex; align-items: center; }
    .nav-cta { justify-content: center; }
    .hamburger { display: flex; }

    .nav-drop-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: hidden;
        display: none;
        border: none;
        background: transparent;
        padding: 0 0 0 var(--space-4);
        min-width: 0;
    }
    .nav-drop.open .nav-drop-menu { display: block; visibility: visible; transform: none; }

    .hero { min-height: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-logo-3d { order: -1; }
    .hero-logo-3d img { width: min(290px, 70%); }

    .problem-grid, .steps, .teaser-grid, .shots-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .calc-cards { grid-template-columns: 1fr; }
    .founder-slice { grid-template-columns: 1fr; text-align: center; gap: var(--space-6); }
    .founder-photo { margin: 0 auto; }
    .bundle-callout { grid-template-columns: 1fr; text-align: center; gap: var(--space-6); }
    .bundle-callout img { margin: 0 auto; }
    .bundle-callout p { margin: 0 auto; }
    .blog-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form .btn { width: 100%; }

    section { padding: var(--space-16) 0; }
    .answer-panel, .newsletter-panel, .founder-slice { padding: var(--space-8); }
}

@media (max-width: 520px) {
    .pillar-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-ctas .btn { width: 100%; }
    .dev-ribbon { font-size: 0.62rem; padding: 0.6rem 1rem; max-width: calc(100vw - 32px); }
}

/* ============================================================
   DESIGN + INTERACTION PASS v2
   Ambient atmosphere · liquid glass depth · banner backdrops ·
   magnetic / cursor / tilt motion (JS hooks in js/main.js)
   ============================================================ */

/* ---------- Ambient accent aurora behind every page ---------- */
body::before {
    content: "";
    position: fixed;
    inset: -22%;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(42% 36% at 16% 10%, rgba(var(--accent-rgb), 0.085), transparent 70%),
        radial-gradient(34% 32% at 86% 16%, rgba(var(--accent-rgb), 0.055), transparent 70%),
        radial-gradient(52% 44% at 68% 94%, rgba(var(--accent-rgb), 0.065), transparent 72%);
    animation: aurora-drift 28s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
    0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    100% { transform: translate3d(1.5%, 2.5%, 0) scale(1.07); }
}

/* faint dot lattice — gives the OLED void a sense of surface */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 25%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 25%, transparent 78%);
}

/* ---------- Hero banner as atmospheric backdrop ---------- */
.hero { overflow: hidden; }
.hero .container { z-index: 1; }
.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 32%;
    opacity: 0.34;
    filter: blur(5px) saturate(1.35) brightness(0.85);
    transform: scale(1.12);
    animation: backdrop-drift 36s ease-in-out infinite alternate;
}
@keyframes backdrop-drift {
    0%   { transform: scale(1.12) translateY(0); }
    100% { transform: scale(1.2) translateY(-2.5%); }
}
.hero-backdrop::after {
    /* vignette that melts the banner into the OLED canvas */
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(110% 85% at 50% 38%, transparent 30%, rgba(9, 9, 11, 0.55) 78%, var(--bg) 100%),
        linear-gradient(180deg, rgba(9, 9, 11, 0.62) 0%, rgba(9, 9, 11, 0.12) 30%, rgba(9, 9, 11, 0.3) 70%, var(--bg) 100%);
}
.hero-backdrop.subtle img { opacity: 0.16; filter: blur(10px) saturate(1.2) brightness(0.8); }

/* ---------- Headline + interactive glow ---------- */
.accent-text { text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.5), 0 0 80px rgba(var(--accent-rgb), 0.25); }

.nav-links a:hover, .nav-links a[aria-current="page"] { text-shadow: 0 0 16px rgba(var(--cyan-rgb), 0.55); }
.nav-cta { text-shadow: none !important; }
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 24px rgba(var(--cyan-rgb), 0.06); }

.btn-secondary:hover { box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.25), inset 0 0 18px rgba(var(--accent-rgb), 0.07); }
.blog-filter:hover, .blog-filter.active { box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.18); }
.footer-social a:hover { box-shadow: 0 0 20px rgba(var(--cyan-rgb), 0.28); }
.social-row a:hover { box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.22); }
.newsletter-form input:focus { box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.2); }
.product-card .product-link { text-shadow: 0 0 18px rgba(var(--p-accent-rgb), 0.0); transition: gap var(--transition), text-shadow var(--transition); }
.product-card:hover .product-link { text-shadow: 0 0 18px rgba(var(--p-accent-rgb), 0.55); }
.calc-slider::-webkit-slider-thumb { transition: transform 160ms ease, box-shadow 160ms ease; }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.25); box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.85); }

/* ---------- Buttons: specular shine sweep + breathing primary ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: -160%;
    width: 55%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
}
.btn:hover::after { left: 170%; transition: left 0.65s ease; }
.btn-primary { animation: btn-breathe 3.6s ease-in-out infinite; }
@keyframes btn-breathe {
    0%, 100% { box-shadow: 0 0 26px rgba(var(--accent-rgb), 0.32), 0 0 64px rgba(var(--accent-rgb), 0.1); }
    50%      { box-shadow: 0 0 38px rgba(var(--accent-rgb), 0.5), 0 0 90px rgba(var(--accent-rgb), 0.18); }
}
.btn-primary:hover { animation: none; }

/* ---------- Navbar: glass deepens after scrolling (.scrolled via JS) ---------- */
.navbar { transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.navbar.scrolled {
    background: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border-bottom-color: rgba(var(--cyan-rgb), 0.22);
    box-shadow: 0 14px 44px -18px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(var(--cyan-rgb), 0.05);
}

/* ---------- Footer: glowing seam ---------- */
footer { position: relative; }
footer::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), 0.45), transparent);
    pointer-events: none;
}

/* ---------- Cursor glow + comet trail (elements built by JS) ---------- */
.cursor-glow {
    position: fixed;
    left: 0; top: 0;
    width: 540px; height: 540px;
    margin: -270px 0 0 -270px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(var(--cg, var(--accent-rgb)), 0.11),
        rgba(var(--cg, var(--accent-rgb)), 0.045) 38%,
        transparent 66%);
    pointer-events: none;
    z-index: 9990;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.cursor-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9991;
    mix-blend-mode: screen;
}

/* ---------- Motion guards ---------- */
@media (hover: none), (pointer: coarse) {
    .cursor-glow, .cursor-trail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body::before { animation: none; }
    .hero-backdrop img { animation: none; transform: scale(1.08); }
    .btn-primary { animation: none; }
    .btn::after { display: none; }
    .cursor-glow, .cursor-trail { display: none; }
    .dev-ribbon .pulse, .dev-hero-badge .pulse { animation: none; }
    .savings-pop { animation: none; }
    .skip-link { transition: none; }
}

/* ============================================================
   DESIGN ENRICHMENT PASS
   Neural synaptic field · ecosystem pipeline · grain + seams
   (JS hooks in js/main.js)
   ============================================================ */

/* Generic accent utilities (match the .product-card modifiers) */
.accent-purple { --p-accent: var(--purple); --p-accent-rgb: var(--purple-rgb); }
.accent-pink   { --p-accent: var(--pink);   --p-accent-rgb: var(--pink-rgb); }
.accent-yellow { --p-accent: var(--yellow); --p-accent-rgb: var(--yellow-rgb); }
.accent-orange { --p-accent: var(--orange); --p-accent-rgb: var(--orange-rgb); }

/* ---------- Neural synaptic field (canvas built by JS) ----------
   Drifting nodes + synapse pulses in the page accent, behind all
   content. Animated only on fine-pointer hover devices; renders a
   single static frame everywhere else. */
.neural-field {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
}

/* ---------- Film grain over everything (static texture) ---------- */
html::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9989;
    pointer-events: none;
    mix-blend-mode: overlay;
    opacity: 0.5;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.4'/></svg>");
    background-size: 160px 160px;
}

/* ---------- Glowing seams between major sections ----------
   Extends the footer's cyan-seam language; resolves to the page
   accent (so product pages seam in their own color). */
section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 82%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
    pointer-events: none;
}

/* ---------- Ecosystem flow visualization (homepage) ---------- */
.flow-panel { padding: var(--space-12) var(--space-8); overflow: hidden; }
.flow-pipeline {
    position: relative;
    display: flex;
    align-items: stretch;
}
.flow-node {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border-radius: var(--radius);
    transition: transform var(--spring), background var(--transition);
}
.flow-node:hover { background: rgba(var(--p-accent-rgb), 0.06); }
.flow-node img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(var(--p-accent-rgb), 0.5));
    transition: transform var(--spring), filter var(--transition);
}
.flow-node:hover img {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 0 34px rgba(var(--p-accent-rgb), 0.75));
}
.flow-step {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgb(var(--p-accent-rgb));
}
.flow-node h3 { font-size: 1.08rem; }
.flow-node p { font-size: 0.86rem; }

/* The continuous accent track running behind the four logos */
.flow-track {
    position: absolute;
    z-index: 0;
    top: 58px; /* logo center: node padding (16) + half logo (42) */
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--purple-rgb), 0.65) 5%,
        rgba(var(--pink-rgb), 0.65) 35%,
        rgba(var(--yellow-rgb), 0.65) 65%,
        rgba(var(--orange-rgb), 0.65) 95%,
        transparent);
    pointer-events: none;
}
.flow-track::before {
    /* soft bloom under the track */
    content: "";
    position: absolute;
    inset: -5px 0;
    background: inherit;
    filter: blur(9px);
    opacity: 0.8;
}
.flow-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 14px 3px rgba(255, 255, 255, 0.65);
    opacity: 0;
}
@keyframes flow-travel {
    0%   { left: 0%; opacity: 0; }
    7%   { opacity: 1; }
    93%  { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
    .flow-dot { animation: flow-travel 4.8s linear infinite; }
    .flow-dot:nth-child(2) { animation-delay: 1.6s; }
    .flow-dot:nth-child(3) { animation-delay: 3.2s; }
}

@media (max-width: 860px) {
    .flow-panel { padding: var(--space-8) var(--space-6); }
    .flow-pipeline { flex-direction: column; gap: var(--space-2); }
    .flow-track { display: none; }
    .flow-node + .flow-node::before {
        content: "";
        width: 2px;
        height: 28px;
        margin-bottom: var(--space-2);
        border-radius: 2px;
        background: linear-gradient(180deg, transparent, rgba(var(--p-accent-rgb), 0.55));
    }
}

/* ---------- Enrichment motion guards ---------- */
@media (prefers-reduced-motion: reduce) {
    .flow-dot { animation: none; opacity: 0; }
}
