/* Edge Lab public-page design system.
 *
 * Extracted verbatim from the inline <style> block templates/landing.html used
 * to carry alone. It lived there because the landing page is the only public
 * page that does not extend base.html, and so was the only one that could look
 * like this. templates/how_it_works.html now loads the same file: two pages one
 * nav item apart were rendering in two different type stacks and two different
 * component vocabularies, which is what made the explainer read as a lesser
 * copy of the index rather than the same product.
 *
 * Pair with static/js/lab.js, which drives .reveal, [data-motion-scene],
 * [data-count] and [data-workflow]. Every element it looks for is optional.
 */
:root {
    --neo-bg: #050b16;
    --neo-surface: #0a1628;
    --neo-surface-glass: rgba(10, 22, 40, .84);
    --neo-border: rgba(125, 211, 252, .16);
    --neo-accent: #38bdf8;
    --neo-accent-strong: #7dd3fc;
    --neo-text: #f1f7fb;
    --neo-text-muted: #94a8b8;
    --ink: #050b16;
    --paper: #f3f8fb;
    --lime: #38bdf8;
    --lime-soft: rgba(56, 189, 248, .12);
    --mint: #67e8f9;
    --coral: #ff8066;
    --line: rgba(186, 230, 253, .14);
    /* Secondary text on the dark surfaces. Both clear 4.5:1 against the
       darkest panel (#0a1628); the small mono chrome used to sit near
       3:1, which is why the page read as washed out. */
    --muted-1: #93a9bd;
    --muted-2: #8397ab;
    --muted-warm: #ad9088;
    --muted-cool: #8ba396;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'DM Sans', system-ui, sans-serif;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.2, .8, .2, 1.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--neo-text);
    background: var(--neo-bg);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 10%, rgba(56, 189, 248, .12), transparent 34rem),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, 72px 72px, 72px 72px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
body::after {
    content: '';
    position: fixed;
    inset: -25%;
    z-index: -3;
    pointer-events: none;
    opacity: .55;
    background:
        radial-gradient(circle at 18% 24%, rgba(14, 165, 233, .1), transparent 24%),
        radial-gradient(circle at 82% 60%, rgba(103, 232, 249, .07), transparent 22%);
    filter: blur(16px);
    animation: ambientDrift 18s ease-in-out infinite alternate;
}
@keyframes ambientDrift { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--ink); background: var(--lime); }

.landing-main { overflow: clip; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.mono { font-family: var(--mono); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--lime);
    font: 600 11px/1 var(--mono);
    letter-spacing: .13em;
    text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; }
.display {
    margin: 0;
    max-width: 880px;
    color: var(--paper);
    font-size: clamp(42px, 6.1vw, 82px);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.055em;
}
.display em { color: var(--lime); font-style: normal; }
.section-title {
    margin: 0;
    color: var(--paper);
    font-size: clamp(34px, 4.4vw, 60px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.045em;
}
.section-copy {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--neo-text-muted);
    font-size: 17px;
    line-height: 1.7;
}
.section-head { margin-bottom: 52px; }
.section-head--split { display: flex; align-items: end; justify-content: space-between; gap: 40px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.lab-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.lab-btn:hover { transform: translateY(-2px); }
.lab-btn--primary { color: var(--ink); background: var(--lime); }
.lab-btn--primary:hover { background: #7dd3fc; }
.lab-btn--ghost { color: var(--paper); border-color: var(--line); background: rgba(255,255,255,.025); }
.lab-btn--ghost:hover { border-color: rgba(56,189,248,.48); background: var(--lime-soft); }
.arrow { transition: transform .2s ease; }
.lab-btn:hover .arrow { transform: translateX(4px); }
.lab-btn:focus-visible, .stage-button:focus-visible {
    outline: 2px solid var(--neo-accent-strong);
    outline-offset: 4px;
}

/* Hero */
.hero { position: relative; padding: 158px 0 92px; perspective: 1400px; }
.hero::before {
    content: '';
    position: absolute;
    width: min(52vw, 760px);
    aspect-ratio: 1;
    right: -15%;
    top: -18%;
    pointer-events: none;
    border: 1px solid rgba(125,211,252,.08);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(125,211,252,.018), 0 0 0 180px rgba(125,211,252,.012);
    animation: orbitDrift 14s ease-in-out infinite alternate;
}
@keyframes orbitDrift { to { transform: translate3d(-28px, 34px, 0) rotate(8deg); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(520px, 1.07fr); gap: 70px; align-items: center; }
.hero-copy .display { font-size: clamp(48px, 5.3vw, 75px); }
.hero-copy > p {
    max-width: 590px;
    margin: 28px 0 32px;
    color: #a9bac8;
    font-size: 18px;
    line-height: 1.68;
}
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #71879a; font: 500 11px/1.5 var(--mono); }
.hero-note svg { flex: 0 0 auto; color: var(--mint); }

.lab-window {
    position: relative;
    min-height: 598px;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, .2);
    border-radius: 10px;
    background: #081426;
    box-shadow: 0 40px 90px rgba(0,0,0,.38), 0 0 0 1px rgba(0,0,0,.2);
    transform-style: preserve-3d;
    transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
    transition: transform .7s var(--ease-out), border-color .35s ease, box-shadow .35s ease;
    will-change: transform;
}
.lab-window:hover { border-color: rgba(125,211,252,.36); box-shadow: 0 48px 110px rgba(0,0,0,.46), 0 0 50px rgba(56,189,248,.08); }
.lab-window::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.035) 48%, transparent 65%);
}
.window-bar { position: relative; height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.window-dot { width: 6px; height: 6px; border-radius: 50%; background: #3b4c5f; }
.window-title { margin-left: auto; color: var(--muted-2); font: 500 9px/1 var(--mono); letter-spacing: .13em; }
/* Status pill. The three states are stacked and cross-faded on the same 9s
   loop as the chart, so the window narrates sync → reconcile → analysed. */
.window-live { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; min-width: 152px; height: 20px; padding: 0 9px 0 8px; border: 1px solid rgba(103,232,249,.22); border-radius: 999px; background: rgba(103,232,249,.05); color: #8fa8bb; font: 500 8px/1 var(--mono); letter-spacing: .08em; }
.window-live::before { content: ''; flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(103,232,249,.35); animation: livePulse 2.2s ease-out infinite; }
.window-live b { position: absolute; left: 21px; right: 9px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; animation: 9s linear infinite; }
.window-live b:nth-of-type(1) { animation-name: statusOne; }
.window-live b:nth-of-type(2) { animation-name: statusTwo; }
.window-live b:nth-of-type(3) { animation-name: statusThree; color: var(--mint); }
@keyframes statusOne { 0%,20% { opacity: 1; } 26%,100% { opacity: 0; } }
@keyframes statusTwo { 0%,26% { opacity: 0; } 32%,56% { opacity: 1; } 62%,100% { opacity: 0; } }
@keyframes statusThree { 0%,62% { opacity: 0; } 68%,100% { opacity: 1; } }
.window-progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--lime), var(--mint)); animation: barLoad 9s linear infinite; }
@keyframes barLoad { 0% { transform: scaleX(0); opacity: 1; } 62% { transform: scaleX(1); opacity: 1; } 78%,100% { transform: scaleX(1); opacity: 0; } }
@keyframes livePulse { 70%,100% { box-shadow: 0 0 0 7px rgba(103,232,249,0); } }
.lab-layout { display: grid; grid-template-columns: 52px 1fr; min-height: 556px; }
.mini-nav { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 16px; border-right: 1px solid var(--line); }
.mini-nav span { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; color: var(--muted-2); transition: color .25s ease, background .25s ease; }
.mini-nav svg { width: 15px; height: 15px; }
.mini-nav span:first-child { color: var(--lime); background: var(--lime-soft); }
.mini-nav span:first-child::before { content: ''; position: absolute; left: -11px; top: 7px; bottom: 7px; width: 2px; border-radius: 0 2px 2px 0; background: var(--lime); }
.lab-window:hover .mini-nav span:not(:first-child) { color: #6c8aa5; }
.lab-screen { padding: 22px 22px 20px; }
.lab-screen-head { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }
.lab-screen-label { margin: 0 0 6px; color: var(--muted-1); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.lab-screen-title { margin: 0; color: #edf6fb; font-size: 18px; font-weight: 600; }
.verified { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid rgba(103,232,249,.24); border-radius: 999px; background: rgba(103,232,249,.05); color: var(--mint); font: 500 9px/1 var(--mono); }
.verified::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(103,232,249,.12); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.metric { position: relative; overflow: hidden; padding: 13px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.018); }
.metric-delta { display: block; margin-top: 7px; color: var(--muted-2); font: 500 8px/1 var(--mono); letter-spacing: .05em; }
.metric-delta b { color: #6fbf9a; font-weight: 500; }
.metric-delta b.down { color: var(--coral); }
.metric::after { content: ''; position: absolute; left: 0; bottom: 0; width: var(--metric-fill, 64%); height: 1px; background: linear-gradient(90deg, var(--lime), transparent); transform: scaleX(0); transform-origin: left; }
.is-playing .metric::after { animation: metricLoad 1s var(--ease-out) forwards; }
.metric:nth-child(2) { --metric-fill: 52%; }
.metric:nth-child(3) { --metric-fill: 78%; }
@keyframes metricLoad { to { transform: scaleX(1); } }
.metric small { display: block; margin-bottom: 9px; color: var(--muted-1); font: 500 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.metric strong { color: #edf6fb; font: 500 16px/1 var(--mono); }
.metric strong.positive { color: var(--lime); }
.curve-card { position: relative; height: 176px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: rgba(0,0,0,.12); }
.curve-grid { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 44px, 78px 100%; }
.curve-label { position: absolute; top: 12px; left: 14px; z-index: 2; color: var(--muted-1); font: 500 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
/* Axis ticks. Static labels, so the curve reads as a chart rather than a shape. */
.curve-y { position: absolute; z-index: 2; top: 30px; bottom: 20px; left: 10px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted-2); font: 500 7px/1 var(--mono); letter-spacing: .06em; }
.curve-x { position: absolute; z-index: 2; left: 44px; right: 12px; bottom: 6px; display: flex; justify-content: space-between; color: var(--muted-2); font: 500 7px/1 var(--mono); letter-spacing: .06em; }
.equity-svg { position: absolute; inset: 28px 16px 20px 42px; width: calc(100% - 58px); height: calc(100% - 48px); overflow: visible; }
.equity-area { opacity: .12; }
.equity-path { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawEquity 9s cubic-bezier(.22,.7,.2,1) infinite; }
.trade-marker { fill: #081426; stroke: var(--lime); stroke-width: 2; opacity: 0; animation: markerIn 9s ease infinite; }
.trade-marker.m2 { animation-delay: .4s; }
.trade-marker.m3 { animation-delay: .8s; }
.trade-marker.m4 { animation-delay: 1.2s; stroke: var(--coral); }
/* The head of the curve: lands once the line has finished drawing. */
.equity-head { fill: var(--mint); opacity: 0; animation: headIn 9s ease infinite; }
.equity-head-halo { fill: none; stroke: var(--mint); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: headHalo 9s ease-out infinite; }
.scan-line { position: absolute; z-index: 3; top: 0; bottom: 0; width: 1px; opacity: 0; background: linear-gradient(transparent, var(--lime), transparent); box-shadow: 0 0 18px var(--lime); animation: scanChart 9s ease-in-out infinite; }

/* Trade tape. Rows land one after another while the curve draws, which is what
   makes the panel read as a live account rather than a static screenshot. */
.tape { margin-top: 10px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.014); }
.tape-head { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--muted-1); font: 500 8px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.tape-count { color: var(--muted-2); }
.tape-row { display: grid; grid-template-columns: 42px 66px 1fr 56px; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid rgba(186,230,253,.07); color: #90a5b8; font: 500 9px/1 var(--mono); opacity: 0; transform: translateX(-6px); animation: tapeIn 9s ease infinite; }
.tape-row:nth-child(2) { border-top: 0; }
.tape-row:nth-child(3) { animation-delay: .55s; }
.tape-row:nth-child(4) { animation-delay: 1.1s; }
.tape-sym { color: #dceaf4; letter-spacing: .04em; }
.tape-side { justify-self: start; padding: 3px 6px; border-radius: 3px; font-size: 8px; letter-spacing: .08em; color: #6fbf9a; background: rgba(111,191,154,.1); }
.tape-side.sell { color: var(--coral); background: rgba(255,128,102,.1); }
.tape-r { justify-self: end; color: #6fbf9a; }
.tape-r.down { color: var(--coral); }

.finding-card { position: relative; z-index: 5; margin-top: 10px; padding: 13px 14px; border: 1px solid rgba(255,128,102,.35); border-radius: 5px; background: rgba(255,128,102,.045); opacity: 0; transform: translateY(10px); animation: revealFinding 9s ease infinite; }
.finding-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #7d91a3; font: 500 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.finding-status { color: var(--coral); }
.finding-card h3 { margin: 0 0 7px; color: #eef7fc; font-size: 13px; line-height: 1.35; }
.finding-card p { margin: 0; color: #8397a9; font: 400 9px/1.5 var(--mono); }
.finding-card p span { color: var(--coral); }

@keyframes drawEquity { 0%,10% { stroke-dashoffset: 600; } 48%,88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -20; } }
@keyframes markerIn { 0%,30% { opacity: 0; transform: scale(.5); } 42%,88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes headIn { 0%,46% { opacity: 0; } 52%,90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes headHalo { 0%,46% { opacity: 0; transform: scale(.5); } 54% { opacity: .5; } 66%,100% { opacity: 0; transform: scale(2.6); } }
@keyframes tapeIn { 0%,26% { opacity: 0; transform: translateX(-6px); } 34%,92% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; } }
@keyframes scanChart { 0%,42% { left: 8%; opacity: 0; } 48% { opacity: .85; } 68% { left: 93%; opacity: .85; } 72%,100% { left: 93%; opacity: 0; } }
@keyframes revealFinding { 0%,66% { opacity: 0; transform: translateY(10px); } 74%,92% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-5px); } }
[data-motion-scene]:not(.is-playing) .equity-path,
[data-motion-scene]:not(.is-playing) .trade-marker,
[data-motion-scene]:not(.is-playing) .equity-head,
[data-motion-scene]:not(.is-playing) .equity-head-halo,
[data-motion-scene]:not(.is-playing) .tape-row,
[data-motion-scene]:not(.is-playing) .window-live b,
[data-motion-scene]:not(.is-playing) .window-progress,
[data-motion-scene]:not(.is-playing) .scan-line,
[data-motion-scene]:not(.is-playing) .finding-card { animation-play-state: paused; }

.proof-bar { border-block: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: 1.05fr 1fr 1fr 1.6fr; }
.proof-item { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-value { margin-bottom: 8px; color: var(--lime); font: 500 26px/1 var(--mono); }
.proof-label { color: #d9e6ee; font-size: 13px; font-weight: 600; }
.proof-sub { margin-top: 5px; color: var(--muted-1); font-size: 11px; line-height: 1.45; }
.proof-item { position: relative; overflow: hidden; transition: background .3s ease; }
.proof-item::after { content: ''; position: absolute; left: 28px; right: 28px; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--lime), transparent); transform: scaleX(0); transition: transform .5s var(--ease-out); }
.proof-item:hover { background: rgba(56,189,248,.025); }
.proof-item:hover::after { transform: scaleX(1); }

/* Workflow */
.workflow { padding: 132px 0; }
.workflow-stage { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; min-height: 550px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: rgba(5,11,22,.78); }
.workflow-copy { display: flex; flex-direction: column; justify-content: center; padding: 44px 44px; border-right: 1px solid var(--line); }
.stage-list { margin-top: 0; }
.stage-button { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 16px; width: 100%; padding: 20px 0; color: #7d92a6; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; transition: color .25s ease; }
.stage-button:last-child { border-bottom: 1px solid var(--line); }
.stage-button::after { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--lime); transition: width .35s ease; }
.stage-button.is-active { color: #eef7fc; }
.stage-button.is-active .stage-index { color: var(--lime); }
.stage-button.is-active::after { width: 100%; animation: stageTrace 6s linear; }
@keyframes stageTrace { from { width: 0; } to { width: 100%; } }
.stage-index { padding-top: 3px; color: var(--muted-2); font: 500 10px/1 var(--mono); transition: color .25s ease; }
.stage-button strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.stage-desc { display: grid; grid-template-rows: 0fr; margin-top: 0; opacity: 0; color: #7e93a6; font-size: 13px; line-height: 1.55; transition: grid-template-rows .35s var(--ease-out), opacity .25s ease, margin-top .35s var(--ease-out); }
.stage-desc > span { overflow: hidden; }
.stage-button.is-active .stage-desc { grid-template-rows: 1fr; margin-top: 7px; opacity: 1; }
.workflow-visual { position: relative; min-height: 550px; background: #071224; }
.flow-panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 50px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease, visibility .35s; }
.flow-panel.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.flow-card { width: min(100%, 540px); border: 1px solid var(--line); border-radius: 7px; background: #0b192d; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.flow-card-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); color: #758b9f; font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.dropzone { margin: 26px; padding: 44px 20px; border: 1px dashed rgba(56,189,248,.34); border-radius: 6px; text-align: center; background: var(--lime-soft); }
.drop-icon { width: 44px; height: 44px; display: grid; place-items: center; margin: 0 auto 14px; border: 1px solid rgba(56,189,248,.4); border-radius: 50%; color: var(--lime); }
.dropzone h3 { margin: 0 0 7px; font-size: 15px; }
.dropzone p { margin: 0; color: #72889b; font: 400 10px/1.5 var(--mono); }
.format-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.format-row span { padding: 6px 8px; color: #9fb1c0; border: 1px solid var(--line); border-radius: 3px; background: rgba(0,0,0,.15); font: 500 8px/1 var(--mono); }
.trade-table { padding: 8px 18px 20px; }
.trade-row { position: relative; display: grid; grid-template-columns: .9fr 1.15fr .8fr .8fr; gap: 10px; padding: 13px 6px; border-bottom: 1px solid rgba(255,255,255,.06); color: #91a29b; font: 400 9px/1 var(--mono); overflow: hidden; }
.trade-row:first-child { color: var(--muted-cool); font-size: 8px; text-transform: uppercase; }
.trade-row span:last-child { text-align: right; }
.trade-row .win { color: var(--mint); }
.trade-row .loss { color: var(--coral); }
.flow-panel.is-active .trade-row:not(:first-child)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(56,189,248,.12), transparent); transform: translateX(-100%); animation: rowAudit 2.8s ease forwards; }
.flow-panel.is-active .trade-row:nth-child(3)::after { animation-delay: .18s; }
.flow-panel.is-active .trade-row:nth-child(4)::after { animation-delay: .36s; }
.flow-panel.is-active .trade-row:nth-child(5)::after { animation-delay: .54s; }
@keyframes rowAudit { to { transform: translateX(100%); } }
.recon-wrap { padding: 22px; }
.recon-score { display: flex; align-items: center; gap: 15px; padding: 18px; margin-bottom: 14px; border: 1px solid rgba(103,232,249,.25); border-radius: 5px; background: rgba(56,189,248,.07); }
.check-ring { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--mint); border-radius: 50%; color: var(--mint); }
.recon-score strong { display: block; color: #e9f2ee; font-size: 14px; }
.recon-score small { color: #71857d; font: 400 9px/1.5 var(--mono); }
.recon-line { display: grid; grid-template-columns: 1.3fr 1fr 1fr .55fr; gap: 8px; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06); color: #8b9d96; font: 400 9px/1 var(--mono); }
.recon-line:first-of-type { color: var(--muted-cool); text-transform: uppercase; font-size: 8px; }
.recon-line span:last-child { color: var(--mint); text-align: right; }
.evidence-wrap { padding: 25px; }
.evidence-chip { display: inline-flex; padding: 6px 8px; color: var(--coral); border: 1px solid rgba(255,128,102,.25); border-radius: 3px; background: rgba(255,128,102,.06); font: 500 8px/1 var(--mono); text-transform: uppercase; }
.evidence-wrap h3 { max-width: 370px; margin: 18px 0 8px; font-size: 22px; line-height: 1.2; }
.evidence-wrap > p { color: #7b8e87; font-size: 12px; line-height: 1.6; }
.impact-bars { display: grid; gap: 12px; margin: 24px 0; }
.impact-line { display: grid; grid-template-columns: 92px 1fr 55px; align-items: center; gap: 12px; color: #8b9d96; font: 400 9px/1 var(--mono); }
.impact-track { height: 5px; overflow: hidden; background: rgba(255,255,255,.07); }
.impact-fill { height: 100%; transform-origin: left; background: var(--coral); }
.flow-panel.is-active .impact-fill { animation: growBar .8s .2s both; }
.impact-line:nth-child(2) .impact-fill { width: 42%; background: #536b83; }
.impact-line:first-child .impact-fill { width: 82%; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.evidence-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.evidence-stat { padding: 11px; border: 1px solid var(--line); border-radius: 4px; }
.evidence-stat small { display: block; color: var(--muted-cool); font: 500 7px/1 var(--mono); text-transform: uppercase; }
.evidence-stat strong { display: block; margin-top: 8px; color: #dce7e2; font: 500 12px/1 var(--mono); }

/* Capability cards */
.capabilities { padding: 16px 0 132px; }
.cap-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.cap-card { position: relative; display: flex; flex-direction: column; gap: 22px; min-height: 340px; overflow: hidden; padding: 32px; border: 1px solid var(--line); border-radius: 7px; background: #081426; transition: transform .5s var(--ease-out), border-color .35s ease, box-shadow .35s ease; }
.cap-card--wide { grid-column: span 7; }
.cap-card--narrow { grid-column: span 5; }
.cap-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--spot-x, 85%) var(--spot-y, 0), rgba(56,189,248,.15), transparent 38%); opacity: .7; transition: opacity .35s ease; }
.cap-card:hover { transform: translateY(-7px); border-color: rgba(125,211,252,.3); box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.cap-card:hover::before { opacity: 1; }
.cap-number { color: var(--muted-cool); font: 500 9px/1 var(--mono); }
/* Decorative panels stay in flow so they can never collide with the heading. */
.journal-strip, .experiment, .playbook-lines, .guard-panel { align-self: flex-end; }
.cap-card h3 { max-width: 390px; margin: auto 0 -10px; color: #ecf4f0; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.cap-card > p { position: relative; z-index: 2; max-width: 480px; margin: 0; color: #7f918a; font-size: 14px; line-height: 1.65; }
.journal-strip { width: min(100%, 290px); border: 1px solid var(--line); border-radius: 5px; background: #0c1b31; box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.journal-entry { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); color: #8ca1b3; font: 400 8px/1 var(--mono); opacity: .35; transform: translateX(8px); }
.cap-card.is-visible .journal-entry { animation: auditEntry .55s ease-out forwards; }
.cap-card.is-visible .journal-entry:nth-child(2) { animation-delay: .16s; }
.cap-card.is-visible .journal-entry:nth-child(3) { animation-delay: .32s; }
.journal-entry i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.journal-entry:nth-child(2) i { background: var(--coral); }
.journal-entry:nth-child(3) i { background: #e6c866; }
.journal-entry b { color: #dceaf3; font-weight: 500; }
.experiment { width: min(100%, 230px); padding: 16px; border: 1px solid var(--line); border-radius: 5px; background: #0c1b31; }
.experiment small { color: var(--muted-1); font: 500 7px/1 var(--mono); text-transform: uppercase; }
.experiment strong { display: block; margin: 8px 0 14px; color: #e5f0f7; font-size: 11px; }
.progress { height: 5px; overflow: hidden; background: rgba(255,255,255,.07); }
.progress span { display: block; width: 68%; height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.cap-card.is-visible .progress span { animation: collectProgress 1.1s .3s cubic-bezier(.2,.7,.2,1) forwards; }
.experiment p { margin: 10px 0 0; color: #71879b; font: 400 8px/1 var(--mono); }
.playbook-lines { width: min(100%, 250px); }
.rule { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; margin-bottom: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #0c1b31; color: #8fa3b5; font: 400 8px/1.45 var(--mono); opacity: .25; transform: translateY(6px); }
.cap-card.is-visible .rule { animation: approveRule .45s ease-out forwards; }
.cap-card.is-visible .rule:nth-child(2) { animation-delay: .17s; }
.cap-card.is-visible .rule:nth-child(3) { animation-delay: .34s; }
.rule span:first-child { color: var(--lime); }
.guard-panel { width: min(100%, 240px); padding: 16px; border: 1px solid rgba(255,128,102,.24); border-radius: 5px; background: rgba(255,128,102,.045); }
.guard-panel small { color: var(--muted-warm); font: 500 7px/1 var(--mono); text-transform: uppercase; }
.guard-meter { display: flex; gap: 4px; margin: 13px 0; }
.guard-meter span { height: 5px; flex: 1; background: rgba(255,255,255,.08); transform: scaleX(0); transform-origin: left; }
.guard-meter span:nth-child(-n+3) { background: var(--coral); }
.guard-panel strong { color: #efdad5; font-size: 12px; }
.cap-card.is-visible .guard-meter span { animation: buildGuard .32s ease-out forwards; }
.cap-card.is-visible .guard-meter span:nth-child(2) { animation-delay: .1s; }
.cap-card.is-visible .guard-meter span:nth-child(3) { animation-delay: .2s; }
.cap-card.is-visible .guard-meter span:nth-child(4) { animation-delay: .3s; }
.cap-card.is-visible .guard-meter span:nth-child(5) { animation-delay: .4s; }
@keyframes auditEntry { to { opacity: 1; transform: translateX(0); } }
@keyframes collectProgress { to { transform: scaleX(1); } }
@keyframes approveRule { to { opacity: 1; transform: translateY(0); } }
@keyframes buildGuard { to { transform: scaleX(1); } }

/* Integrations wall — grid of supported-platform tiles. Shared markup lives in
   templates/partials/_integrations_wall.html; the same class names are
   redefined in neo-os.css for the Edge Lab app shell, which does not load this
   sheet. Keep the two in sync when this block changes. */
.integrations { padding: 16px 0 92px; }
.int-wall { display: flex; flex-direction: column; gap: 26px; margin-top: 8px; }
.int-wall__label { margin: 0 0 12px; color: var(--muted-cool); font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.int-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.int-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #081426; transition: border-color .25s ease, transform .25s ease; }
.int-tile:hover { border-color: rgba(125,211,252,.3); transform: translateY(-2px); }
.int-tile--planned { opacity: .55; }
.int-tile__mark { width: 22px; height: 22px; color: var(--muted-1); background: currentColor; -webkit-mask: var(--int-mark) center/contain no-repeat; mask: var(--int-mark) center/contain no-repeat; }
.int-tile__mark--mono { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 4px; background: var(--lime-soft); color: var(--lime); font: 600 8px/1 var(--mono); }
.int-tile__body { display: flex; flex-direction: column; gap: 6px; }
.int-tile__name { color: #ecf4f0; font-size: 12px; font-weight: 500; }
.int-tile__note { color: #7f918a; font-size: 10px; line-height: 1.4; }
.int-tile__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.int-tile__badge { color: var(--muted-1); font: 500 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.int-tile__pill { padding: 2px 6px; border-radius: 999px; font: 500 8px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.int-tile__pill--beta { background: rgba(230, 200, 102, .16); color: #e6c866; }
.int-tile__pill--soon { background: var(--line); color: var(--muted-1); }
.int-fallback { margin: 20px 0 0; color: var(--muted-2); font-size: 12px; }

/* Inside the lab — bento showcase of the four surfaces the hero and
   capability cards don't show: process score, calendar, coach, guard. */
.inside-lab { padding: 0 0 132px; }
.il-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.il-card { --il-accent: var(--lime); --il-accent-soft: rgba(56,189,248,.16); position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #081426; transition: transform .5s var(--ease-out), border-color .35s ease, box-shadow .35s ease; }
.il-card:nth-child(2) { --il-accent: var(--mint); --il-accent-soft: rgba(103,232,249,.14); }
.il-card:nth-child(3) { --il-accent: var(--neo-accent-strong); --il-accent-soft: rgba(125,211,252,.14); }
.il-card:nth-child(4) { --il-accent: var(--coral); --il-accent-soft: rgba(255,128,102,.13); }
.il-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--spot-x, 85%) var(--spot-y, 0), var(--il-accent-soft), transparent 40%); opacity: .6; transition: opacity .35s ease; }
.il-card::after { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--il-accent), transparent); opacity: .5; }
.il-card:hover { transform: translateY(-6px); border-color: rgba(125,211,252,.3); box-shadow: 0 28px 70px rgba(0,0,0,.24); }
.il-card:hover::before { opacity: 1; }
.il-card--wide { grid-column: span 7; }
.il-card--narrow { grid-column: span 5; }
.il-card .window-bar { flex: 0 0 auto; }
.il-inner { display: flex; flex: 1; flex-direction: column; gap: 18px; padding: 24px 26px 28px; }
.il-inner h3 { margin: auto 0 0; color: #ecf4f0; font-size: 19px; line-height: 1.22; letter-spacing: -.02em; }
.il-inner > p { margin: 0; color: #7f918a; font-size: 13px; line-height: 1.65; }

/* Card 1: process-score gauge */
.il-gauge { position: relative; width: min(100%, 220px); margin: 0 auto; }
.il-gauge-svg { display: block; width: 100%; height: auto; }
.il-gauge-track { fill: none; stroke: rgba(148,168,184,.16); stroke-width: 10; stroke-linecap: round; }
/* Single flat accent, no glow — mirrors the product gauge ("a low score
   is not red, it is a short arc"). */
.il-gauge-arc { fill: none; stroke: url(#ilGaugeGrad); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 169.65; stroke-dashoffset: 169.65; transition: stroke-dashoffset 1.3s var(--ease-out); }
[data-motion-scene].is-playing .il-gauge-arc { stroke-dashoffset: 37.3; }
.il-gauge-readout { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; line-height: 1; }
.il-gauge-score { font-size: 32px; font-weight: 650; letter-spacing: -.02em; color: #f8fafc; font-variant-numeric: tabular-nums; }
.il-gauge-scale { margin-left: 4px; color: var(--muted-1); font-size: 11px; }
.il-gauge-delta { display: block; margin: -4px auto 0; width: fit-content; color: var(--muted-1); font-size: 11px; text-align: center; opacity: 0; transform: translateY(6px); transition: opacity .5s ease 1.2s, transform .5s var(--ease-out) 1.2s; }
[data-motion-scene].is-playing .il-gauge-delta { opacity: 1; transform: none; }
.il-checklist { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; color: #9fb2c2; font: 400 11px/1.4 var(--mono); }
.il-checklist li { display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateX(-8px); transition: opacity .45s ease, transform .45s var(--ease-out); }
.il-checklist li:nth-child(1) { transition-delay: .55s; }
.il-checklist li:nth-child(2) { transition-delay: .75s; }
.il-checklist li:nth-child(3) { transition-delay: .95s; }
[data-motion-scene].is-playing .il-checklist li { opacity: 1; transform: none; }
.il-checklist span { color: var(--lime); }

/* Card 2: P&L calendar heatmap. Loss cells carry a redundant bottom
   notch so sign never depends on hue alone (fails under deuteranopia). */
.il-cal { width: min(100%, 420px); margin: 0 auto; }
.il-cal-head, .il-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.il-cal-head { margin-bottom: 6px; }
.il-cal-head span { text-align: center; color: var(--muted-2); font: 500 8px/1 var(--mono); text-transform: uppercase; }
.il-cal-head span:nth-child(n+6) { opacity: .4; }
.il-cal-grid { position: relative; }
.il-cal-grid::after { content: ''; position: absolute; top: -2px; bottom: -2px; left: 0; width: calc(100% / 7); pointer-events: none; border-radius: 4px; background: linear-gradient(180deg, transparent, rgba(56,189,248,.1), transparent); opacity: 0; animation: ilCalScan 7s ease-in-out infinite 1.8s; }
@keyframes ilCalScan { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 42% { left: calc(100% * 6 / 7); opacity: 1; } 50%, 100% { left: calc(100% * 6 / 7); opacity: 0; } }
.il-cal-cell { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 3px; background: transparent; color: #b8cbd9; font: 500 8px/1 var(--mono); letter-spacing: -.02em; opacity: 0; transform: scale(.75); transition: opacity .4s ease, transform .4s ease; transition-delay: calc(var(--i, 0) * 14ms); }
.il-cal-cell::before { content: attr(data-d); position: absolute; top: 3px; left: 4px; color: var(--muted-2); font-size: 7px; opacity: .7; }
.il-cal-cell--loss, .il-cal-cell--loss-strong { color: #e0b3a8; }
.il-cal-cell:hover { transition-delay: 0s; transform: scale(1.12) !important; z-index: 2; }
[data-motion-scene].is-playing .il-cal-cell { opacity: 1; transform: none; }
.il-is-streak { animation: ilStreakRing 2.8s ease-in-out infinite 2s; }
@keyframes ilStreakRing { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,128,102,0); } 50% { box-shadow: 0 0 0 3px rgba(255,128,102,.3); } }
.il-cal-streak-chip { position: absolute; bottom: calc(100% + 7px); left: 50%; z-index: 3; white-space: nowrap; padding: 4px 9px; border: 1px solid rgba(255,128,102,.45); border-radius: 4px; background: #0d1526; color: var(--coral); font-size: 8px; text-transform: uppercase; letter-spacing: .07em; opacity: 0; transform: translate(-50%, 5px); transition: opacity .45s ease 1.5s, transform .45s var(--ease-spring) 1.5s; }
.il-cal-streak-chip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 4px solid transparent; border-top-color: rgba(255,128,102,.45); }
[data-motion-scene].is-playing .il-cal-streak-chip { opacity: 1; transform: translate(-50%, 0); }
.il-cal-cell--profit { background: rgba(56,189,248,.16); border-color: rgba(56,189,248,.3); }
.il-cal-cell--profit-strong { background: rgba(56,189,248,.32); border-color: rgba(56,189,248,.5); }
.il-cal-cell--loss, .il-cal-cell--loss-strong { background: rgba(255,128,102,.12); border-color: rgba(255,128,102,.3); }
.il-cal-cell--loss-strong { background: rgba(255,128,102,.24); border-color: rgba(255,128,102,.45); }
.il-cal-cell--loss::after, .il-cal-cell--loss-strong::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 1px; height: 2px; border-radius: 1px; background: var(--coral); }
.il-cal-legend { display: flex; gap: 16px; margin-top: 12px; color: var(--muted-1); font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.il-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.il-cal-legend span::before { content: ''; width: 10px; height: 10px; border-radius: 2px; border: 1px solid var(--line); }
.il-legend-profit::before { background: rgba(56,189,248,.32); border-color: rgba(56,189,248,.5); }
.il-legend-loss::before { background: rgba(255,128,102,.2); border-color: rgba(255,128,102,.45); box-shadow: inset 0 -2px 0 var(--coral); }
.il-legend-flat::before { background: transparent; }

/* Card 3: coach chat mock — looping conversation: ask, typing, cited reply */
.il-chat { display: flex; flex-direction: column; gap: 10px; }
.il-bubble { max-width: 88%; padding: 11px 14px; border-radius: 10px; font-size: 13px; line-height: 1.55; }
.il-bubble--user { align-self: flex-end; border: 1px solid rgba(56,189,248,.25); border-bottom-right-radius: 3px; background: rgba(56,189,248,.1); color: #dceaf6; animation: ilChatUser 11s ease infinite; }
/* Activity trail — one chip per tool call, spinner settles into an icon,
   mirroring the product coach's live trail. */
.il-trail { display: flex; flex-wrap: wrap; gap: 6px; }
.il-tool-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(148,163,184,.2); border-radius: 999px; background: rgba(30,41,59,.55); font: 500 10px/1 var(--sans); color: #9fb2c2; animation: ilTrail1 11s ease infinite; }
.il-tool-chip--2 { animation-name: ilTrail2; }
.il-tool-state { display: grid; width: 10px; height: 10px; }
.il-tool-state > * { grid-area: 1 / 1; }
.il-tool-spin { width: 9px; height: 9px; border: 1.5px solid rgba(148,168,184,.3); border-top-color: var(--neo-accent-strong); border-radius: 50%; animation: ilSpin .7s linear infinite, ilSettleOut1 11s step-end infinite; }
.il-tool-done { color: var(--mint); font-size: 10px; line-height: 10px; animation: ilSettleIn1 11s step-end infinite; }
.il-tool-chip--2 .il-tool-spin { animation-name: ilSpin, ilSettleOut2; }
.il-tool-chip--2 .il-tool-done { animation-name: ilSettleIn2; }
.il-tool-args { color: var(--muted-2); font-size: 9px; }
/* Tool result rendered as a visual, like the product coach: bar length is
   magnitude, the signed value carries the sign. */
.il-result { display: grid; gap: 8px; max-width: 88%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #0c1b31; animation: ilResultIn 11s ease infinite; }
.il-result-title { color: var(--muted-2); font-size: 8px; letter-spacing: .08em; }
.il-result-row { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; font-size: 10px; color: #9fb2c2; }
.il-result-track { position: relative; height: 5px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.il-result-bar { position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: 3px; background: var(--lime); transform-origin: left; animation: ilBarGrow 11s var(--ease-out) infinite; }
.il-result-bar--loss { background: var(--coral); }
.il-result-val { color: var(--mint); font-size: 9px; }
.il-result-val--loss { color: var(--coral); }
@keyframes ilResultIn { 0%, 29% { opacity: 0; transform: translateY(8px); } 33%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes ilBarGrow { 0%, 32% { transform: scaleX(0); } 42%, 100% { transform: scaleX(1); } }
.il-bubble--coach { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 3px; background: #0c1b31; color: #c8d7e0; animation: ilChatCoach 11s ease infinite; }
.il-chip, .il-verified { animation: ilPop 11s var(--ease-spring) infinite; }
.il-chip:nth-child(2) { animation-name: ilPop2; }
.il-chip:nth-child(3) { animation-name: ilPop3; }
.il-verified { animation-name: ilPop4; }
@keyframes ilChatUser { 0%, 2% { opacity: 0; transform: translateY(10px); } 7%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ilSpin { to { transform: rotate(360deg); } }
@keyframes ilTrail1 { 0%, 9% { opacity: 0; transform: translateY(6px); } 13%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes ilTrail2 { 0%, 14% { opacity: 0; transform: translateY(6px); } 18%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes ilSettleOut1 { 0%, 21% { opacity: 1; } 22%, 100% { opacity: 0; } }
@keyframes ilSettleIn1  { 0%, 21% { opacity: 0; } 22%, 100% { opacity: 1; } }
@keyframes ilSettleOut2 { 0%, 27% { opacity: 1; } 28%, 100% { opacity: 0; } }
@keyframes ilSettleIn2  { 0%, 27% { opacity: 0; } 28%, 100% { opacity: 1; } }
@keyframes ilChatCoach { 0%, 38% { opacity: 0; transform: translateY(10px) scale(.97); } 43%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ilPop  { 0%, 46% { opacity: 0; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.1); } 53%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ilPop2 { 0%, 50% { opacity: 0; transform: scale(.6); } 54% { opacity: 1; transform: scale(1.1); } 57%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ilPop3 { 0%, 54% { opacity: 0; transform: scale(.6); } 58% { opacity: 1; transform: scale(1.1); } 61%, 100% { opacity: 1; transform: scale(1); } }
@keyframes ilPop4 { 0%, 62% { opacity: 0; transform: scale(.7) translateY(4px); } 67% { opacity: 1; transform: scale(1.05); } 70%, 100% { opacity: 1; transform: none; } }
.il-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.il-chip { padding: 3px 7px; border: 1px solid rgba(125,211,252,.28); border-radius: 4px; background: rgba(56,189,248,.08); color: var(--mint); font-size: 11px; letter-spacing: .02em; }
.il-verified { display: inline-flex; align-items: center; gap: 5px; margin-top: 11px; padding: 4px 9px; border: 1px solid rgba(103,232,249,.25); border-radius: 20px; background: rgba(103,232,249,.06); color: var(--mint); font: 500 8px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.il-verified::before { content: '✓'; }

/* Card 4: discipline guard — looping story: bars fill, drawdown hits limit, alert fires */
.il-meters { display: grid; gap: 14px; }
.il-meter-head { display: flex; justify-content: space-between; margin-bottom: 6px; color: var(--muted-1); font: 500 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.il-meter-head .mono { color: #dceaf3; text-transform: none; }
.il-meter-track { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.06); }
.il-meter-fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(56,189,248,.55), var(--lime)); transform-origin: left; animation: ilFillDaily 9s var(--ease-out) infinite; }
.il-meter-fill--warn { background: linear-gradient(90deg, rgba(255,128,102,.5), var(--coral)); animation-name: ilFillWarn; }
.il-meter-limit { position: absolute; top: -3px; bottom: -3px; left: 88%; width: 2px; border-radius: 1px; background: rgba(255,255,255,.35); }
.il-meter:nth-child(2) .il-meter-limit { animation: ilTickFlash 9s ease infinite; }
@keyframes ilFillDaily { 0%, 3% { transform: scaleX(0); } 16%, 100% { transform: scaleX(1); } }
@keyframes ilFillWarn { 0%, 8% { transform: scaleX(0); } 24% { transform: scaleX(.7); } 30% { transform: scaleX(.72); } 44%, 100% { transform: scaleX(1); } }
@keyframes ilTickFlash { 0%, 44% { background: rgba(255,255,255,.35); box-shadow: none; } 48%, 56% { background: #fff; box-shadow: 0 0 10px 2px rgba(255,128,102,.65); } 62%, 100% { background: rgba(255,255,255,.35); box-shadow: none; } }
.il-log { display: grid; gap: 8px; }
.il-log-row:first-child { animation: ilRowIn 9s ease infinite; }
.il-log-row.is-warn { animation: ilRowInWarn 9s ease infinite; }
@keyframes ilRowIn { 0%, 20% { opacity: 0; transform: translateX(-10px); } 26%, 100% { opacity: 1; transform: none; } }
@keyframes ilRowInWarn { 0%, 50% { opacity: 0; transform: translateX(-10px); } 56%, 100% { opacity: 1; transform: none; } }
.il-log-row.is-warn i { position: relative; }
.il-log-row.is-warn i::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--coral); animation: ilPing 1.9s ease-out infinite; }
@keyframes ilPing { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.il-live-dot { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--coral); animation: ilBlink 1.6s ease-in-out infinite; }
@keyframes ilBlink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

[data-motion-scene]:not(.is-playing) .il-gauge-arc,
[data-motion-scene]:not(.is-playing) .il-cal-grid::after,
[data-motion-scene]:not(.is-playing) .il-is-streak,
[data-motion-scene]:not(.is-playing) .il-bubble--user,
[data-motion-scene]:not(.is-playing) .il-tool-chip,
[data-motion-scene]:not(.is-playing) .il-tool-spin,
[data-motion-scene]:not(.is-playing) .il-tool-done,
[data-motion-scene]:not(.is-playing) .il-result,
[data-motion-scene]:not(.is-playing) .il-result-bar,
[data-motion-scene]:not(.is-playing) .il-bubble--coach,
[data-motion-scene]:not(.is-playing) .il-chip,
[data-motion-scene]:not(.is-playing) .il-verified,
[data-motion-scene]:not(.is-playing) .il-meter-fill,
[data-motion-scene]:not(.is-playing) .il-meter-limit,
[data-motion-scene]:not(.is-playing) .il-log-row,
[data-motion-scene]:not(.is-playing) .il-live-dot { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .il-gauge-arc, .il-cal-grid::after, .il-is-streak, .il-bubble--user, .il-bubble--coach,
    .il-tool-chip, .il-tool-done, .il-result, .il-result-bar, .il-chip, .il-verified,
    .il-meter-fill, .il-meter-limit, .il-log-row, .il-log-row.is-warn i::after, .il-live-dot { animation: none; }
    .il-tool-spin { display: none; }
    .il-gauge-arc { stroke-dashoffset: 37.3; transition: none; }
    .il-cal-cell, .il-checklist li, .il-gauge-delta, .il-cal-streak-chip, .il-bubble--user,
    .il-tool-chip, .il-tool-done, .il-result, .il-bubble--coach, .il-chip, .il-verified, .il-log-row { opacity: 1; transition: none; }
    .il-result, .il-result-bar { transform: none; }
    .il-cal-cell, .il-checklist li, .il-gauge-delta, .il-log-row { transform: none; }
    .il-cal-streak-chip { transform: translate(-50%, 0); }
    .il-meter-fill { transform: scaleX(1); }
}
.il-log-row { display: grid; grid-template-columns: 6px auto 1fr; gap: 9px; align-items: center; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: #0c1b31; color: #8fa3b5; font-size: 11px; line-height: 1.4; }
.il-log-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.il-log-row .mono { color: var(--muted-2); font-size: 10px; }
.il-log-row.is-warn { border-color: rgba(255,128,102,.28); color: #c9b3ac; }
.il-log-row.is-warn i { background: var(--coral); }

/* Evidence lifecycle */
.evidence-lab { padding: 0 0 132px; }
.evidence-lab-grid { display: grid; grid-template-columns: 1.14fr .86fr; gap: 14px; }
.evidence-story { position: relative; min-height: 570px; overflow: hidden; padding: 42px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(145deg, #0b1a2f, #071225 72%); }
.evidence-story::before { content: ''; position: absolute; width: 380px; height: 380px; right: -170px; top: -170px; border: 1px solid rgba(103,232,249,.12); border-radius: 50%; box-shadow: 0 0 0 46px rgba(103,232,249,.018), 0 0 0 92px rgba(103,232,249,.012); }
.evidence-story h3, .feature-tile h3 { position: relative; margin: 14px 0 10px; color: #edf6fb; font-size: 24px; letter-spacing: -.025em; }
.evidence-story > p, .feature-tile > p { position: relative; max-width: 600px; margin: 0; color: #8297a9; font-size: 14px; line-height: 1.65; }
.evidence-pipeline { position: relative; display: grid; gap: 9px; margin-top: 42px; }
.evidence-step { position: relative; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; min-height: 65px; padding: 12px 16px; border: 1px solid rgba(186,230,253,.11); border-radius: 5px; background: rgba(4,12,25,.62); opacity: .35; transform: translateX(-12px); }
.evidence-step::before { content: ''; position: absolute; left: 34px; top: 100%; width: 1px; height: 10px; background: rgba(125,211,252,.2); }
.evidence-step:last-child::before { display: none; }
.evidence-story.is-visible .evidence-step { animation: evidenceStep .55s var(--ease-out) forwards; }
.evidence-story.is-visible .evidence-step:nth-child(2) { animation-delay: .18s; }
.evidence-story.is-visible .evidence-step:nth-child(3) { animation-delay: .36s; }
.evidence-story.is-visible .evidence-step:nth-child(4) { animation-delay: .54s; }
@keyframes evidenceStep { to { opacity: 1; transform: none; } }
.evidence-icon { width: 30px; height: 30px; display: grid; place-items: center; color: var(--lime); border: 1px solid rgba(56,189,248,.3); border-radius: 50%; font: 600 9px/1 var(--mono); }
.evidence-step strong { display: block; color: #dfeaf1; font-size: 12px; }
.evidence-step small { display: block; margin-top: 4px; color: var(--muted-1); font: 400 8px/1.35 var(--mono); }
.evidence-result { padding: 5px 7px; color: var(--mint); border: 1px solid rgba(103,232,249,.22); border-radius: 3px; font: 500 8px/1 var(--mono); text-transform: uppercase; }
.feature-stack { display: grid; gap: 14px; }
.feature-tile { position: relative; min-height: 278px; overflow: hidden; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #081426; transition: transform .45s var(--ease-out), border-color .35s ease; }
.feature-tile:hover { transform: translateX(5px); border-color: rgba(125,211,252,.28); }
.compare-bars { display: grid; gap: 8px; margin-top: 26px; }
.compare-row { display: grid; grid-template-columns: 72px 1fr 46px; gap: 10px; align-items: center; color: #7990a4; font: 500 8px/1 var(--mono); }
.compare-track { height: 5px; background: rgba(255,255,255,.06); }
.compare-track span { display: block; width: var(--bar); height: 100%; background: var(--lime); transform: scaleX(0); transform-origin: left; }
.feature-tile.is-visible .compare-track span { animation: compareGrow .8s .2s var(--ease-out) forwards; }
@keyframes compareGrow { to { transform: scaleX(1); } }
.context-timeline { position: relative; display: flex; justify-content: space-between; margin-top: 30px; padding-top: 17px; border-top: 1px solid rgba(125,211,252,.18); }
.context-timeline::after { content: ''; position: absolute; left: 18%; right: 20%; top: -1px; height: 1px; background: var(--coral); transform: scaleX(0); transform-origin: left; }
.feature-tile.is-visible .context-timeline::after { animation: compareGrow 1s .2s var(--ease-out) forwards; }
.context-event { position: relative; color: #71899d; font: 500 8px/1.4 var(--mono); text-align: center; }
.context-event::before { content: ''; position: absolute; width: 7px; height: 7px; left: 50%; top: -21px; border-radius: 50%; border: 2px solid #081426; background: var(--lime); transform: translateX(-50%); box-shadow: 0 0 0 1px var(--lime); }
.context-event.is-alert::before { background: var(--coral); box-shadow: 0 0 0 1px var(--coral), 0 0 12px rgba(255,128,102,.45); }

/* Market desk — the narrative engine's daily analysis, rendered as a
   live terminal: ticker tape, tabbed asset classes, sentiment gauge,
   streaming text. All server-rendered; JS only animates what is there. */
.market-desk { position: relative; padding: 120px 0; }
.market-desk::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(56,189,248,.05), transparent 42%),
        repeating-linear-gradient(90deg, rgba(186,230,253,.05) 0 1px, transparent 1px 132px);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 82%, transparent);
}

/* Ticker tape of live sentiment scores */
.pulse-tape { position: relative; margin-bottom: 34px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.pulse-tape::before, .pulse-tape::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none; }
.pulse-tape::before { left: 0; background: linear-gradient(90deg, var(--neo-bg), transparent); }
.pulse-tape::after { right: 0; background: linear-gradient(270deg, var(--neo-bg), transparent); }
.pulse-tape-track { display: flex; width: max-content; animation: tapeScroll 42s linear infinite; }
.pulse-tape:hover .pulse-tape-track { animation-play-state: paused; }
@keyframes tapeScroll { to { transform: translateX(-50%); } }
.pulse-tape-group { display: flex; gap: 38px; padding-right: 38px; }
.pulse-chip { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--paper); font: 500 10px/1 var(--mono); letter-spacing: .08em; }
.pulse-chip b, .pulse-chip i { font-style: normal; font-weight: 600; }
.pulse-chip--bullish b, .pulse-chip--bullish i { color: var(--mint); }
.pulse-chip--bearish b, .pulse-chip--bearish i { color: var(--coral); }
.pulse-chip--neutral b, .pulse-chip--neutral i { color: var(--muted-1); }

/* App window: a faithful mock of the product's Daily AI Recap view.
   The cards use the dashboard's own Tailwind utility classes, so this
   section looks exactly like the screen a subscriber gets. */
.desk-window { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(180deg, #0d1420, #0a0f1a 60%); box-shadow: 0 30px 90px rgba(2,8,20,.55); }
.desk-app { padding: 24px 26px 26px; }
.recap-card { transition: transform .25s ease, border-color .25s ease; }
.recap-card:hover { transform: translateY(-2px); border-color: rgba(56,189,248,.35); }
.recap-reveal { animation: recapIn .55s var(--ease-out) both; }
@keyframes recapIn { from { opacity: 0; transform: translateY(14px); } }

/* Window footer */
.desk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 14px 30px; border-top: 1px solid var(--line); background: rgba(5,12,24,.6); }
.desk-live { display: inline-flex; align-items: center; gap: 9px; color: var(--muted-2); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.desk-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(103,232,249,.35); animation: livePulse 2.2s ease-out infinite; }
.desk-link { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--lime); font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.desk-link:hover { color: var(--neo-accent-strong); }
.desk-link:hover .arrow { transform: translateX(4px); }
.desk-note { max-width: 720px; margin: 24px 0 0; color: var(--muted-1); font-size: 13px; line-height: 1.6; }

@media (max-width: 860px) {
    .desk-app { padding: 18px 16px 20px; }
    .desk-foot { padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .pulse-tape-track { animation: none; }
}

/* Principles */
.principles { padding: 120px 0; color: var(--ink); background: var(--paper); }
.principles .eyebrow { color: #075985; }
.principles .section-title { color: var(--ink); }
.principles .section-copy { color: #5b6863; }
.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 58px; border-top: 1px solid rgba(5,11,22,.18); }
.principle { min-height: 300px; padding: 30px 30px 0 0; border-right: 1px solid rgba(5,11,22,.18); }
.principle + .principle { padding-left: 30px; }
.principle:last-child { border-right: 0; }
.principle-value { color: #0369a1; font: 600 40px/1 var(--mono); letter-spacing: -.05em; }
.principle h3 { margin: 68px 0 12px; font-size: 20px; }
.principle p { margin: 0; color: #5e6b66; font-size: 14px; line-height: 1.65; }
.principle-note { display: block; margin-top: 14px; color: #5f6c67; font: 400 9px/1.5 var(--mono); }

.final-cta { position: relative; padding: 132px 0; text-align: center; }
.final-cta::before { content: ''; position: absolute; width: 580px; height: 300px; left: 50%; top: 48%; transform: translate(-50%,-50%); z-index: -1; background: radial-gradient(ellipse, rgba(56,189,248,.14), transparent 68%); filter: blur(20px); }
.final-cta .section-title { max-width: 760px; margin-inline: auto; }
.final-cta .section-copy { margin: 20px auto 30px; }
.final-cta .btn-row { justify-content: center; }
.disclaimer { max-width: 720px; margin: 22px auto 0; color: var(--muted-cool); font: 400 9px/1.6 var(--mono); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 1000; width: var(--scroll-progress, 0%); height: 2px; pointer-events: none; background: linear-gradient(90deg, #0ea5e9, var(--mint)); box-shadow: 0 0 12px rgba(56,189,248,.6); }

@media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; gap: 58px; }
    .hero-copy { max-width: 760px; }
    .lab-window { width: min(100%, 680px); }
    .proof-grid { grid-template-columns: repeat(2,1fr); }
    .proof-item:nth-child(2) { border-right: 0; }
    .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .proof-item:nth-child(3) { padding-left: 0; }
    .workflow-stage { grid-template-columns: 1fr; }
    .workflow-copy { border-right: 0; border-bottom: 1px solid var(--line); }
    .workflow-visual { min-height: 520px; }
    .cap-card--wide, .cap-card--narrow { grid-column: span 12; }
    .il-card--wide, .il-card--narrow { grid-column: span 12; }
    .evidence-lab-grid { grid-template-columns: 1fr; }
    .feature-stack { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .shell { width: min(100% - 28px, 1180px); }
    .hero { padding: 126px 0 66px; }
    .hero-copy .display { font-size: clamp(43px, 13.2vw, 62px); }
    .hero-copy > p { font-size: 16px; }
    .lab-window { min-height: 0; }
    .lab-layout { grid-template-columns: 1fr; min-height: 0; }
    .mini-nav { display: none; }
    .window-title { font-size: 8px; }
    .window-live { min-width: 132px; padding: 0 7px 0 7px; }
    .window-live b { left: 19px; right: 7px; font-size: 6.5px; letter-spacing: .05em; }
    .lab-screen { padding: 18px 14px; }
    .metric { padding: 10px; }
    .metric strong { font-size: 13px; }
    .metric-delta { display: none; }
    .curve-card { height: 152px; }
    .tape-row:nth-child(4) { display: none; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-item { min-height: 94px; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .proof-item:nth-child(3) { padding-left: 0; }
    .proof-item:last-child { border-bottom: 0; }
    .workflow { padding: 92px 0; }
    .section-head--split { display: block; }
    .workflow-copy { padding: 36px 24px; }
    .workflow-visual { min-height: 450px; }
    .flow-panel { padding: 20px 12px; }
    .flow-card { width: 100%; }
    .trade-row { grid-template-columns: .8fr 1.1fr .8fr; }
    .trade-row span:nth-child(3) { display: none; }
    .capabilities { padding-bottom: 92px; }
    .cap-card { min-height: 390px; padding: 24px; }
    .cap-card h3 { margin-top: 185px; }
    .journal-strip, .experiment, .playbook-lines, .guard-panel { top: 30px; right: 20px; }
    .inside-lab { padding-bottom: 92px; }
    .il-inner { padding: 20px 20px 24px; }
    .principles { padding: 90px 0; }
    .principle-grid { grid-template-columns: 1fr; }
    .principle { min-height: auto; padding: 28px 0 36px !important; border-right: 0; border-bottom: 1px solid rgba(5,11,22,.18); }
    .principle h3 { margin-top: 34px; }
    .final-cta { padding: 96px 0; }
    .evidence-lab { padding-bottom: 92px; }
    .evidence-story { min-height: auto; padding: 28px 22px; }
    .feature-stack { grid-template-columns: 1fr; }
    .feature-tile { min-height: 260px; padding: 24px; }
}
@media (max-width: 430px) {
    .btn-row { flex-direction: column; }
    .lab-btn { width: 100%; }
    .metric-row { grid-template-columns: repeat(2,1fr); }
    .metric:last-child { display: none; }
    .evidence-stats { grid-template-columns: 1fr; }
    .evidence-stat:nth-child(n+2) { display: none; }
    .recon-line { grid-template-columns: 1.2fr 1fr .5fr; }
    .recon-line span:nth-child(3) { display: none; }
    .evidence-step { grid-template-columns: 32px 1fr; }
    .evidence-result { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .equity-path { stroke-dashoffset: 0; }
    .trade-marker, .finding-card, .tape-row, .equity-head { opacity: 1; transform: none; }
    .equity-head-halo { display: none; }
    .window-progress { animation: none; transform: scaleX(1); opacity: 1; }
    .window-live b:nth-of-type(-n+2) { display: none; }
    .window-live b:nth-of-type(3) { opacity: 1; }
    .scan-line { display: none; }
    body::after, .hero::before, .window-live::before { animation: none; }
    .lab-window { transform: none !important; }
}
