/* ─────────────────────────────────────────────────────────────
   Openbell — marketing site
   Dark trader-themed landing page; single stylesheet.
   Palette: navy/slate background, cyan-blue accent, emerald gain,
   crimson loss, violet for "edge" elements.
   ───────────────────────────────────────────────────────────── */

:root {
    --bg:        #0b1020;
    --bg-soft:   #111933;
    --bg-card:   #141d3a;
    --bg-card-2: #1a2347;
    --line:      rgba(148, 163, 184, 0.12);
    --line-2:    rgba(148, 163, 184, 0.20);

    --text:      #e9eef7;
    /* Contrast measured against --bg-card (#141d3a), the darkest surface
       these sit on. The previous --text-dim (#64748b) was 3.48:1 — below the
       WCAG AA floor of 4.5 — and it was used for labels, timestamps, hints
       and fine print, which is why the page read as text fading into its own
       background. Both now clear AAA (7:1) on card AND page backgrounds.
       Raise, never lower, without re-measuring. */
    --text-mute: #a3b0c4;   /* 7.55:1 on card · 8.62:1 on page */
    --text-dim:  #adb9cc;   /* 8.36:1 on card · 9.55:1 on page */

    --accent:        #38bdf8;
    --accent-2:      #2563eb;
    --accent-glow:   rgba(56, 189, 248, 0.35);

    --green:  #22c55e;
    --red:    #ef4444;
    --amber:  #f59e0b;
    --purple: #a78bfa;
    --cyan:   #22d3ee;

    --radius:   14px;
    --radius-2: 22px;

    --max-w: 1180px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
            "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

/* The base colour lives on <html>, not <body>, so the fixed backdrop
   canvas (z-index -1) has something to paint over. A negative z-index
   child sits above the root element's background but below every
   normal-flow element — if <body> kept an opaque background it would
   cover the canvas completely. See .bg-canvas below. */
html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    font-family: var(--font);
    background: transparent;
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── AMBIENT BACKDROP ───────────────────────────────────────────
   Drawn by bg-ambient.js. Fixed rather than absolute so it behaves
   like a parallax plate the page scrolls over, instead of a banner
   that leaves after the first screen.

   It shows through wherever a section is transparent (hero,
   features, strategies, proof, faq) and is hidden behind the ones
   that set an opaque background (stats, how, cta, footer). That
   alternation is intentional — it gives the page a rhythm of open
   and closed bands rather than one unbroken light show. */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Fades the canvas out toward the bottom of the viewport so the
       glows never crowd whatever content is currently centred. */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.55) 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0,0,0,0.55) 100%);
}

/* Film grain over the backdrop. Wide, low-contrast gradients on a
   near-black page band badly on 8-bit panels — visible as concentric
   rings in the glows. A little noise dithers the steps away. Static
   SVG turbulence, so it costs one paint and nothing per frame. */
.bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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)'/%3E%3C/svg%3E");
}

/* The canvas already stops animating under this setting; drop the
   grain's blend cost too and leave a clean static field. */
@media (prefers-reduced-motion: reduce) {
    .bg-grain { opacity: 0.03; }
}

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

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 16, 32, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
/* Company mark: bell + rising arrow, drawn as inline SVG.
   Inline rather than an <img> so it inherits the page's knockout colour and
   costs no extra request; a filled silhouette rather than an outline because
   a 2px stroke vanishes at the 26px nav size.
   --logo-knockout is the gap the arrow punches through the bell so it reads
   as passing in front — it must match whatever surface the logo sits on. */
:root { --logo-knockout: var(--bg); }
.logo-mark {
    width: 28px; height: 28px;
    display: block; flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.30));
}
/* The account nav is a translucent bar (rgba(8,13,29,.86)) over the page, so
   an exact match is impossible; this sits between the two and the gap is
   sub-pixel at 28px either way. */
.account-nav { --logo-knockout: #0a0f1f; }
.logo-text { font-size: 17px; }
.logo-text span { color: var(--accent); font-weight: 600; }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
    color: var(--text-mute);
    font-size: 14px;
    transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px var(--accent-glow);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 100px 24px 120px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37, 99, 235, 0.18), transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 30%, rgba(168, 85, 247, 0.10), transparent 60%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    max-width: 920px; margin: 0 auto; text-align: center;
}
.hero-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--green);
    font-size: 12px; font-weight: 600;
    border-radius: 999px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.hero-pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(36px, 6.5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    font-weight: 800;
    margin: 0 0 22px;
    color: #f1f5f9;
}
.grad {
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-mute);
    max-width: 720px; margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 64px;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600; font-size: 15px;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
                background 0.15s ease, border-color 0.15s ease;
    cursor: pointer; border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #061021;
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--accent); }

.hero-marquee {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px 16px;
    color: var(--text-dim);
    font-size: 13px;
    font-family: var(--mono);
    letter-spacing: 0.4px;
}
.hero-marquee .dot { color: var(--accent); }

/* ── SECTIONS ───────────────────────────────────────────────── */
section { padding: 100px 24px; position: relative; }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-eyebrow.light { color: rgba(255,255,255,0.85); }

.section-title {
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: #f8fafc;
}
.section-sub {
    color: var(--text-mute);
    font-size: 16px;
    margin: 0 0 50px;
    max-width: 700px;
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats { background: var(--bg-soft); border-block: 1px solid var(--line); }
.stats-asof {
    display: inline-block;
    margin-left: 8px;
    color: var(--text-dim);
    font-family: var(--mono);
    font-size: 12px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 22px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.stat-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat-value {
    font-family: var(--mono);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
    line-height: 1.1;
}
.stat-label { color: var(--text-mute); font-size: 13px; letter-spacing: 0.2px; }
.pnl-pos { color: var(--green); }
.pnl-neg { color: var(--red); }

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

/* ── FEATURES ───────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px 22px;
    transition: transform 0.18s ease, border-color 0.18s ease,
                box-shadow 0.18s ease;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 14px 42px rgba(56, 189, 248, 0.10);
}
.feature h3 {
    margin: 14px 0 8px;
    font-size: 17px;
    color: #f1f5f9;
    font-weight: 700;
}
.feature p {
    margin: 0;
    color: var(--text-mute);
    font-size: 13.5px;
    line-height: 1.55;
}
.feature-icon {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    font-size: 18px; font-weight: 700;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent);
}
.icon-blue   { background: rgba(56, 189, 248, 0.12); color: var(--accent); }
.icon-green  { background: rgba(34, 197, 94, 0.12);  color: var(--green); }
.icon-red    { background: rgba(239, 68, 68, 0.12);  color: var(--red); }
.icon-amber  { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.icon-purple { background: rgba(167, 139, 250, 0.14); color: var(--purple); }
.icon-cyan   { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }

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

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how { background:
    radial-gradient(ellipse at top, rgba(168, 85, 247, 0.06), transparent 60%);
}
.flow {
    list-style: none;
    counter-reset: step;
    padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.flow li {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 18px;
    position: relative;
}
.flow-num {
    display: inline-flex;
    width: 28px; height: 28px; border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #061021;
    font-family: var(--mono);
    font-weight: 700;
    align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.flow h3 { margin: 0 0 6px; font-size: 15px; color: #f1f5f9; }
.flow p { margin: 0; font-size: 13px; color: var(--text-mute); line-height: 1.55; }

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

/* ── STRATEGIES ─────────────────────────────────────────────── */
.strat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.strat-card {
    background: var(--bg-card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-2);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.strat-card::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at top right, rgba(56, 189, 248, 0.08), transparent 50%);
    pointer-events: none;
}
.strat-tag {
    display: inline-block;
    font-family: var(--mono);
    font-size: 11px; letter-spacing: 1px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.strat-long  .strat-tag { background: rgba(34, 197, 94, 0.14); color: var(--green); border: 1px solid rgba(34, 197, 94, 0.35); }
.strat-short .strat-tag { background: rgba(239, 68, 68, 0.14); color: var(--red);   border: 1px solid rgba(239, 68, 68, 0.35); }

.strat-card h3 { margin: 0 0 10px; font-size: 22px; color: #f8fafc; font-weight: 700; }
.strat-card p  { color: var(--text-mute); margin: 0 0 18px; }
.strat-rules { list-style: none; padding: 0; margin: 0; }
.strat-rules li {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    padding: 6px 0;
    border-top: 1px solid var(--line);
}
.strat-rules li::before {
    content: "▸ "; color: var(--accent); margin-right: 6px;
}

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

/* ── PROOF QUOTES ───────────────────────────────────────────── */
.proof {
    background: var(--bg-soft);
    border-block: 1px solid var(--line);
}
.proof .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.quote {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    margin: 0;
}
.quote blockquote {
    margin: 0 0 12px;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #f1f5f9;
    line-height: 1.5;
    font-style: italic;
}
.quote figcaption { color: var(--text-dim); font-size: 13px; }

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

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 4px;
    cursor: pointer;
}
.faq-item summary {
    list-style: none;
    color: #f1f5f9;
    font-weight: 600;
    font-size: 16px;
    display: flex; justify-content: space-between; align-items: center;
    transition: color 0.15s ease;
}
.faq-item summary::after {
    content: "+";
    color: var(--accent);
    font-size: 22px; font-weight: 300;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
    margin: 14px 0 4px;
    color: var(--text-mute);
    font-size: 14.5px;
}
.faq-item code {
    font-family: var(--mono);
    background: rgba(56, 189, 248, 0.10);
    padding: 1px 6px; border-radius: 4px;
    color: var(--accent);
    font-size: 12.5px;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
    background: linear-gradient(135deg, var(--accent-2) 0%, #1e3a8a 60%, #312e81 100%);
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.30), transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(56, 189, 248, 0.25), transparent 50%);
    pointer-events: none;
}
.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; gap: 40px;
}
.cta h2 { color: #fff; font-size: clamp(28px, 3vw, 38px); margin: 0 0 8px; }
.cta p  { color: rgba(255,255,255,0.85); margin: 0; }
.cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.btn-signup {
    min-width: 220px;
    justify-content: space-between;
    gap: 36px;
    background: #fff;
    color: var(--accent-2);
    box-shadow: 0 12px 32px rgba(0,0,0,0.20);
}
.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.28);
}
.cta-action > span {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

@media (max-width: 760px) { .cta-inner { grid-template-columns: 1fr; } }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
    background: #06091a;
    padding: 60px 24px 30px;
    border-top: 1px solid var(--line);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-blurb { color: var(--text-mute); font-size: 13.5px; max-width: 360px; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.footer-cols h4 {
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0 0 14px;
}
.footer-cols a {
    display: block;
    color: var(--text-mute);
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--accent); }
.footer-foot {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--text-dim);
    font-size: 12.5px;
    text-align: center;
}
.logo-footer { margin-bottom: 14px; }

@media (max-width: 760px) {
    .footer-inner   { grid-template-columns: 1fr; }
    .footer-cols    { grid-template-columns: repeat(3, 1fr); }
    /* Hide the section anchors on mobile, but NOT the auth links: with
       only "Sign up" visible, a returning member had no way to sign in
       from a phone. .nav-auth survives the session-aware JS, which
       rewrites the href to /account without touching the class. */
    .nav-links a:not(.nav-cta):not(.nav-auth) { display: none; }
    .nav-links { gap: 14px; }
    .nav-auth  { font-size: 13px; white-space: nowrap; }
    .nav-cta   { padding: 7px 13px; font-size: 13px; white-space: nowrap; }
}

/* Narrow phones: the logo wordmark is the first thing that can go, so the
   two auth actions always stay reachable. */
@media (max-width: 380px) {
    .logo-text { display: none; }
    .nav-links { gap: 10px; }
    .nav-auth  { font-size: 12.5px; }
    .nav-cta   { padding: 6px 11px; font-size: 12.5px; }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ══════════════════════════════════════════════════════════════════
   HERO COCKPIT — the product visual
   ══════════════════════════════════════════════════════════════════
   The page had no graphics at all, which for a trading product is the
   thing a visitor notices first: six sections of text in bordered boxes,
   and nothing that looks like the software. This is a hand-built SVG
   panel rather than a screenshot, so it never goes stale against a UI
   that has changed, stays crisp at any DPI, and costs no image bytes.
   ══════════════════════════════════════════════════════════════════ */

/* Hero becomes two columns once there is room for the panel beside the
   copy; below that the panel drops underneath and the text re-centres. */
@media (min-width: 1040px) {
    .hero-inner {
        max-width: 1200px;
        display: grid;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        column-gap: 56px;
        /* No row-gap: each copy element keeps its own margin, so the vertical
           rhythm stays the one the single-column layout already had. With a
           row-gap (or align-items: center) the grid distributes slack between
           every row and the copy drifts apart. */
        row-gap: 0;
        align-content: center;
        /* Children size to content instead of filling the column — otherwise
           the inline-flex pill stretches into a full-width bar. */
        justify-items: start;
        text-align: left;
    }
    .hero-inner > .hero-pill,
    .hero-inner > .hero-title,
    .hero-inner > .hero-sub,
    .hero-inner > .hero-ctas { grid-column: 1; }
    .hero-inner > .hero-sub { margin-left: 0; margin-right: 0; }
    .hero-inner > .hero-ctas { justify-content: flex-start; }
    /* Panel spans the rows of the copy block on the right, and unlike the
       copy it DOES fill its column. */
    .cockpit {
        grid-column: 2; grid-row: 1 / span 4;
        justify-self: stretch; align-self: center; max-width: none;
    }
    /* Marquee runs full width beneath both columns. */
    .hero-marquee { grid-column: 1 / -1; justify-self: stretch; }
}

.cockpit {
    position: relative;
    border-radius: 14px;
    background: linear-gradient(160deg, #101a35 0%, #0c1329 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 30px 70px -20px rgba(0, 0, 0, 0.7),
        0 0 90px -30px rgba(56, 189, 248, 0.35);
    overflow: hidden;
    margin: 34px auto 0;
    max-width: 560px;
    /* Slight lift so it reads as a panel sitting above the page. */
    transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cockpit:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
@media (min-width: 1040px) { .cockpit { margin-top: 0; } }

.cockpit-chrome {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.028);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
.cockpit-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(148, 163, 184, 0.30);
}
.cockpit-dot:first-child { background: rgba(239, 68, 68, 0.55); }
.cockpit-dot:nth-child(2) { background: rgba(251, 191, 36, 0.55); }
.cockpit-dot:nth-child(3) { background: rgba(52, 211, 153, 0.55); }
.cockpit-title {
    margin-left: 8px;
    font-family: var(--mono); font-size: 11px; color: var(--text-dim);
    letter-spacing: 0.3px;
}
.cockpit-live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono); font-size: 10px; font-weight: 700;
    color: var(--green); letter-spacing: 1px;
}
.cockpit-live i {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green);
    animation: ckPulse 2s ease-in-out infinite;
}
@keyframes ckPulse {
    0%, 100% { opacity: 1;   box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    50%      { opacity: 0.5; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.cockpit-body { padding: 16px 16px 14px; }

.cockpit-readout {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 14px;
}
.ro {
    padding: 9px 11px; border-radius: 9px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.10);
}
.ro-label {
    display: block; font-size: 9.5px; letter-spacing: 0.9px;
    text-transform: uppercase; color: var(--text-dim);
    font-family: var(--mono); margin-bottom: 3px;
}
.ro-value {
    display: block; font-size: 15px; font-weight: 700; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.ro-value.neg { color: #f87171; }

.cockpit-chart { display: block; width: 100%; height: 150px; }
.ck-grid line { stroke: rgba(148, 163, 184, 0.09); stroke-width: 1; }

/* The line draws itself once on load — motion that says "live data"
   without an animation loop burning CPU forever. */
.ck-line {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: ckDraw 2.2s cubic-bezier(0.3, 0.7, 0.3, 1) 0.25s forwards;
    filter: drop-shadow(0 0 7px rgba(56, 189, 248, 0.45));
}
@keyframes ckDraw { to { stroke-dashoffset: 0; } }
.ck-area { opacity: 0; animation: ckFade 1.2s ease 1.5s forwards; }
@keyframes ckFade { to { opacity: 1; } }
.ck-head {
    fill: #34d399; opacity: 0;
    animation: ckFade 0.4s ease 2.3s forwards, ckBlip 2.4s ease-in-out 2.6s infinite;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.9));
}
@keyframes ckBlip { 0%,100% { r: 4; } 50% { r: 5.5; } }

.cockpit-tape { margin-top: 12px; display: grid; gap: 5px; }
.tape-row {
    display: grid;
    grid-template-columns: 50px 58px 1fr auto;
    align-items: center; gap: 8px;
    padding: 7px 9px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(148, 163, 184, 0.08);
    font-size: 11px;
    opacity: 0;
    animation: tapeIn 0.5s ease forwards;
}
/* Rows arrive in sequence, like fills printing. */
.tape-row:nth-child(1) { animation-delay: 0.7s; }
.tape-row:nth-child(2) { animation-delay: 0.95s; }
.tape-row:nth-child(3) { animation-delay: 1.2s; }
.tape-row:nth-child(4) { animation-delay: 1.45s; }
@keyframes tapeIn { from { opacity: 0; transform: translateX(10px); }
                    to   { opacity: 1; transform: none; } }
.tape-tag {
    font-family: var(--mono); font-size: 8.5px; font-weight: 700;
    letter-spacing: 0.6px; text-align: center;
    padding: 2.5px 0; border-radius: 4px;
}
.tape-tag.long  { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.tape-tag.short { background: rgba(248, 113, 113, 0.14); color: #f87171; }
.tape-sym {
    font-weight: 700; color: var(--text); font-family: var(--mono);
    font-size: 11.5px;
}
.tape-strat {
    font-family: var(--mono); font-size: 10px; color: var(--text-dim);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tape-pnl {
    font-family: var(--mono); font-weight: 700; font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.tape-pnl.pos { color: #34d399; }
.tape-pnl.neg { color: #f87171; }

.cockpit-foot {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}
.ck-chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--mono); font-size: 9.5px; color: var(--text-mute);
    padding: 4px 8px; border-radius: 999px;
    background: rgba(52, 211, 153, 0.07);
    border: 1px solid rgba(52, 211, 153, 0.18);
}
.ck-ok {
    width: 4px; height: 4px; border-radius: 50%; background: var(--green);
}

/* Anyone who has asked the OS to calm down gets a static panel. */
@media (prefers-reduced-motion: reduce) {
    .ck-line { animation: none; stroke-dashoffset: 0; }
    .ck-area, .ck-head, .tape-row { animation: none; opacity: 1; }
    .cockpit-live i { animation: none; }
    .cockpit { transform: none; }
}

@media (max-width: 560px) {
    .cockpit-readout { grid-template-columns: 1fr 1fr; }
    .cockpit-readout .ro:last-child { display: none; }
    .tape-row { grid-template-columns: 46px 52px 1fr auto; font-size: 10.5px; }
    .tape-strat { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   TRACK RECORD CHARTS
   The section was called "Numbers, not narratives" and consisted of
   eight numbers in boxes. For a trading product the SHAPE of the curve
   is the claim — a visitor wants to see whether it grinds up or gaps
   around. Both charts read the same /api/stats payload as the cards.
   ══════════════════════════════════════════════════════════════════ */
.tr-charts {
    display: grid; gap: 18px; margin-bottom: 22px;
}
@media (min-width: 940px) {
    .tr-charts { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
}
.tr-chart {
    margin: 0; padding: 16px 18px 14px;
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
    border: 1px solid rgba(148, 163, 184, 0.14);
}
.tr-chart figcaption {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.tr-chart-title {
    font-size: 13px; font-weight: 700; color: var(--text);
    letter-spacing: 0.2px;
}
.tr-chart-note {
    font-family: var(--mono); font-size: 10.5px; color: var(--text-dim);
}

.tr-plot { position: relative; }
#curve-svg { display: block; width: 100%; height: 210px; }
.curve-zero {
    stroke: rgba(148, 163, 184, 0.28); stroke-width: 1; stroke-dasharray: 4 4;
}
.curve-line {
    stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.35));
    stroke-dasharray: 3000; stroke-dashoffset: 3000;
    animation: curveDraw 1.8s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}
@keyframes curveDraw { to { stroke-dashoffset: 0; } }
.curve-area { opacity: 0; animation: curveFade 1s ease 1.1s forwards; }
@keyframes curveFade { to { opacity: 1; } }
.curve-head { opacity: 0; animation: curveFade 0.4s ease 1.7s forwards; }

.tr-axis {
    display: flex; justify-content: space-between;
    font-family: var(--mono); font-size: 10px; color: var(--text-dim);
    margin-top: 6px;
}

/* Horizontal bars: one row per strategy. Grid keeps the name column, the
   track and the value aligned across rows regardless of name length. */
.strat-bars { display: grid; gap: 11px; }
.sb-row {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 58px;
    grid-template-areas: "name track val" ".  meta  meta";
    align-items: center; column-gap: 10px; row-gap: 3px;
}
.sb-name {
    grid-area: name;
    font-family: var(--mono); font-size: 11px; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sb-track {
    grid-area: track;
    height: 9px; border-radius: 999px;
    background: rgba(148, 163, 184, 0.10);
    overflow: hidden;
}
.sb-fill {
    display: block; height: 100%; border-radius: 999px;
    /* Grow from zero on first paint. */
    animation: sbGrow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: left center;
}
@keyframes sbGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sb-fill.pos { background: linear-gradient(90deg, #2563eb, #34d399); }
.sb-fill.neg { background: linear-gradient(90deg, #b45309, #f87171); }
.sb-val {
    grid-area: val; text-align: right;
    font-family: var(--mono); font-size: 11.5px; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.sb-val.pos { color: #34d399; }
.sb-val.neg { color: #f87171; }
.sb-meta {
    grid-area: meta;
    font-family: var(--mono); font-size: 9.5px; color: var(--text-dim);
}
.sb-wr { margin-left: 8px; }

/* Visually hidden but announced — the curve is an SVG path, which reads as
   nothing at all without a text equivalent. */
.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;
}

@media (prefers-reduced-motion: reduce) {
    .curve-line { animation: none; stroke-dashoffset: 0; }
    .curve-area, .curve-head { animation: none; opacity: 1; }
    .sb-fill { animation: none; }
}

@media (max-width: 520px) {
    .sb-row { grid-template-columns: 84px minmax(0, 1fr) 52px; }
    #curve-svg { height: 170px; }
}

/* ── Hero cockpit: sample-data labelling ───────────────────────────
   The mock-up carried a pulsing green "LIVE" chip while showing invented
   equity and a winning tape. On a trading site that reads as a performance
   claim, so the chip is now a neutral, non-pulsing "SAMPLE DATA" badge and
   the figure carries a visible caption pointing at the real numbers. */
.cockpit-figure { margin: 0; }

.cockpit-live.is-sample {
    color: var(--muted, #8b8fa3);
    border: 1px solid rgba(139, 143, 163, 0.35);
    border-radius: 999px;
    padding: 2px 8px;
    letter-spacing: 0.8px;
}

.cockpit-caption {
    margin: 10px 2px 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--muted, #8b8fa3);
}
.cockpit-caption a { color: inherit; text-decoration: underline; }
.cockpit-caption a:hover { color: #fff; }

/* ══ LANDING PAGE IDENTITY ═════════════════════════════════════════
   Everything here is scoped to body.lp. styles.css is shared with signup,
   login, confirm and account, so retheming :root would drag the whole product
   along with the marketing page — these overrides stop at the landing page. */
body.lp {
    --accent:      #9ae65c;
    --accent-2:    #6fbf3a;
    --accent-glow: rgba(154, 230, 92, 0.30);
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
body.lp .hero-title,
body.lp .section-title,
body.lp .flow h3,
body.lp .scan h3,
body.lp .faq-item summary,
body.lp .stat-value {
    font-family: var(--mono);
    letter-spacing: -0.5px;
}
body.lp .hero-title { font-weight: 700; }
body.lp .hero-title .grad {
    background: none; -webkit-text-fill-color: currentColor; color: #f8fafc;
}
body.lp .tick { color: var(--accent); }
body.lp .section-eyebrow,
body.lp .hero-pill { font-family: var(--mono); letter-spacing: 2px; }
body.lp .btn-primary {
    background: var(--accent); color: #0b1020; border-color: var(--accent);
    font-family: var(--mono); letter-spacing: 1px; box-shadow: none;
}
body.lp .btn-primary:hover { background: #aef06e; }
body.lp .btn-ghost { font-family: var(--mono); letter-spacing: 1px; }

/* ── Terminal session ── */
.term {
    margin-top: 34px; border-radius: var(--radius);
    background: #080d18; border: 1px solid var(--line-2); overflow: hidden;
}
.term-chrome {
    display: flex; align-items: center; gap: 7px;
    padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.term-title {
    margin-left: 6px; font-family: var(--mono); font-size: 11px;
    color: var(--text-dim); letter-spacing: 0.5px;
}
.term-flag {
    margin-left: auto; padding: 2px 8px; border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-family: var(--mono); font-size: 10px; letter-spacing: 1px;
    color: var(--text-dim);
}
/* Horizontal scroll rather than wrapping: a wrapped fill line stops looking
   like a log and starts looking like broken prose. */
.term-log {
    margin: 0; padding: 16px 18px; overflow-x: auto;
    font-family: var(--mono); font-size: 12.5px; line-height: 1.85;
    color: #93a3bd; white-space: pre;
}
.term-log b { color: var(--accent); font-weight: 700; }
.term-log s { color: var(--accent); text-decoration: none; }
.term-log o { color: #6ee7a8; }
.term-log w { color: var(--amber); }

/* ── Risk tiles ── */
.tiles { border-block: 1px solid var(--line); background: rgba(255,255,255,0.015); }
.tiles-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { padding: 26px 22px; border-left: 1px solid var(--line); }
.tile:first-child { border-left: 0; }
.tile-v {
    display: block; font-family: var(--mono); font-size: 21px;
    color: #f8fafc; letter-spacing: -0.5px;
}
.tile-l {
    display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px;
    letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-dim);
}

/* ── Scanner grid ── */
.scan-grid {
    display: grid; gap: 0; margin-top: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}
.scan { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.scan:nth-child(odd) { border-right: 1px solid var(--line); }
.scan-code {
    font-family: var(--mono); font-size: 11px; color: var(--accent);
    letter-spacing: 1px; margin-right: 9px;
}
.scan h3 { display: inline; font-size: 15px; color: #f8fafc; }
.scan p { margin: 9px 0 0; font-size: 13.5px; color: var(--text-mute); line-height: 1.6; }

/* ── Assistant ── */
.asst { border-top: 1px solid var(--line); }
.asst-grid {
    display: grid; gap: 44px; align-items: start;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.asst-lede { margin: 14px 0 22px; font-size: 16px; line-height: 1.7; color: var(--text-mute); }
.asst-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.asst-list li {
    position: relative; padding: 13px 0 13px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 14px; color: var(--text); font-family: var(--mono);
}
.asst-list li::before { content: "›"; position: absolute; left: 2px; color: var(--accent); }
.asst-note { margin-top: 18px; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

.asst-demo {
    border: 1px solid var(--line-2); border-radius: var(--radius);
    background: #080d18; overflow: hidden;
}
.asst-head {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 15px; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px;
    text-transform: uppercase; color: var(--text-mute);
}
.asst-head i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}
.asst-thread { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.asst-q, .asst-a {
    margin: 0; padding: 11px 13px; border-radius: 10px;
    font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
}
.asst-q {
    align-self: flex-end; max-width: 82%;
    background: var(--accent); color: #0b1020; font-weight: 600;
}
.asst-a {
    align-self: flex-start; max-width: 94%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line); color: #cbd5e1;
}
.asst-input {
    margin: 0 16px 16px; padding: 11px 13px; border-radius: 10px;
    border: 1px solid var(--line-2); color: var(--text-dim);
    font-family: var(--mono); font-size: 12.5px;
}

@media (max-width: 900px) {
    .asst-grid { grid-template-columns: 1fr; gap: 30px; }
    .tiles-grid { grid-template-columns: repeat(2, 1fr); }
    .tile:nth-child(3) { border-left: 0; }
    .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
    .scan-grid { grid-template-columns: 1fr; }
    .scan:nth-child(odd) { border-right: 0; }
}
