:root {
    --ink: #07110f;
    --ink-soft: #0d1d19;
    --panel: #10231e;
    --paper: #f2f0e8;
    --paper-deep: #e6e3d8;
    --white: #fbfcf8;
    --mint: #82e6b6;
    --mint-bright: #b8f2d3;
    --blue: #75a7ff;
    --amber: #e8bd6a;
    --line-dark: rgba(255, 255, 255, .12);
    --line-light: rgba(7, 17, 15, .14);
    --muted-dark: #9db2aa;
    --muted-light: #5c6965;
    --font-display: "Manrope", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --font-mono: "DM Mono", monospace;
    --shell: min(1320px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.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;
}
.skip-link {
    position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px;
    color: var(--ink); background: var(--mint); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.scroll-progress {
    position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 2px;
    background: rgba(255,255,255,.06);
}
.scroll-progress span { display: block; width: 100%; height: 100%; background: var(--mint); transform: scaleX(0); transform-origin: left; }

.lab-header {
    position: fixed; z-index: 50; top: 0; left: 0; display: flex; align-items: center;
    justify-content: space-between; width: 100%; height: 84px; padding: 0 40px;
    color: var(--white); border-bottom: 1px solid transparent; transition: height .3s, background .3s, border-color .3s;
}
.lab-header.is-scrolled { height: 70px; background: rgba(7,17,15,.9); border-color: var(--line-dark); backdrop-filter: blur(18px); }
.lab-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    display: grid; place-items: center; width: 40px; height: 40px; color: var(--mint-bright);
    border: 1px solid rgba(130,230,182,.42); font: 500 12px var(--font-mono); letter-spacing: .08em;
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font: 600 13px var(--font-display); letter-spacing: .02em; }
.brand-copy small { margin-top: 4px; color: var(--muted-dark); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.lab-nav { display: flex; align-items: center; gap: 30px; }
.lab-nav > a { color: #d4ddd9; font-size: 13px; }
.lab-nav > a:hover, .lab-nav > a:focus-visible { color: var(--mint-bright); }
.lab-nav .nav-home { padding-left: 30px; border-left: 1px solid var(--line-dark); }
.nav-signin {
    padding: 10px 17px; color: var(--ink); background: var(--mint); border: 1px solid var(--mint);
    cursor: pointer; transition: transform .2s, background .2s;
}
.nav-signin:hover { background: var(--mint-bright); transform: translateY(-1px); }
.menu-toggle { display: none; width: 42px; height: 42px; color: white; background: none; border: 1px solid var(--line-dark); }
.menu-toggle > span:not(.sr-only) { display: block; width: 17px; height: 1px; margin: 5px auto; background: currentColor; }

.lab-hero {
    position: relative; display: grid; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr);
    gap: clamp(48px, 7vw, 110px); align-items: center; min-height: 100svh; padding: 140px max(40px, calc((100vw - 1320px)/2)) 90px;
    overflow: hidden; color: var(--white); background: var(--ink);
}
.hero-grid {
    position: absolute; inset: 0; opacity: .32; pointer-events: none;
    background-image: linear-gradient(rgba(130,230,182,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(130,230,182,.055) 1px, transparent 1px);
    background-size: 76px 76px; mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.hero-glow { position: absolute; width: 700px; height: 700px; right: -200px; top: -200px; border: 1px solid rgba(130,230,182,.1); border-radius: 50%; box-shadow: 0 0 150px rgba(130,230,182,.05) inset; }
.hero-copy, .market-visual { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: #497064; font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow > span:not(.live-dot) { color: #82a197; }
.hero-copy .eyebrow { color: var(--mint-bright); }
.live-dot { width: 7px; height: 7px; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 6px rgba(130,230,182,.08); }
.hero-copy h1 {
    max-width: 760px; margin: 0; font: 500 clamp(50px, 6.1vw, 94px)/.98 var(--font-display);
    letter-spacing: -.055em;
}
.hero-copy h1 em { color: var(--mint); font-style: normal; }
.hero-lede { max-width: 610px; margin: 30px 0 0; color: #afc0ba; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px;
    border: 1px solid transparent; font: 600 13px var(--font-body); cursor: pointer; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary { gap: 18px; color: var(--ink); background: var(--mint); }
.button-primary:hover { background: var(--mint-bright); }
.button-secondary { color: var(--white); background: transparent; border-color: var(--line-dark); }
.button-secondary:hover { border-color: rgba(130,230,182,.55); color: var(--mint-bright); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #18372e; }
.hero-signals { display: flex; gap: 0; margin: 62px 0 0; }
.hero-signals div { min-width: 116px; padding: 0 24px; border-left: 1px solid var(--line-dark); }
.hero-signals div:first-child { padding-left: 0; border-left: 0; }
.hero-signals dt { color: #527468; font: 10px var(--font-mono); }
.hero-signals dd { margin: 8px 0 0; color: #c7d4cf; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }

.market-visual { min-width: 0; padding: 18px; border: 1px solid rgba(130,230,182,.22); background: rgba(13,29,25,.72); box-shadow: 0 50px 100px rgba(0,0,0,.3); }
.market-visual::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.035); pointer-events: none; }
.visual-header, .visual-readout { display: flex; align-items: center; justify-content: space-between; }
.visual-header { padding: 3px 2px 17px; color: #a8bbb4; font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .13em; }
.visual-status { display: flex; align-items: center; gap: 8px; color: var(--mint); }
.visual-status i { width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.market-chart { display: block; width: 100%; color: #9bb3aa; border: 1px solid rgba(255,255,255,.05); background: #091612; }
.price-path { fill: none; stroke: var(--mint); stroke-width: 3; vector-effect: non-scaling-stroke; }
.candles path { stroke: rgba(117,167,255,.75); stroke-width: 1.5; }
.candles rect { fill: rgba(117,167,255,.2); stroke: rgba(117,167,255,.75); }
.candles g:nth-child(3n) path { stroke: rgba(232,189,106,.8); }
.candles g:nth-child(3n) rect { fill: rgba(232,189,106,.15); stroke: rgba(232,189,106,.8); }
.ai-network path { fill: none; stroke: rgba(130,230,182,.27); stroke-width: 1; }
.ai-network circle { fill: #0f2b22; stroke: var(--mint); stroke-width: 1.5; }
.ai-network circle:nth-of-type(3) { fill: var(--mint); filter: drop-shadow(0 0 8px rgba(130,230,182,.7)); }
.visual-readout { gap: 8px; padding-top: 15px; }
.visual-readout span { flex: 1; display: grid; gap: 6px; padding: 10px 12px; border-left: 1px solid var(--line-dark); }
.visual-readout span:first-child { border-left: 0; }
.visual-readout small { color: #6f8880; font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; }
.visual-readout strong { color: #d5dfdb; font-size: 11px; font-weight: 500; }
.scroll-cue { position: absolute; z-index: 2; bottom: 28px; left: 50%; display: flex; align-items: center; gap: 10px; color: #71877f; font: 10px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue span { width: 32px; height: 1px; background: currentColor; }

.section-shell { width: var(--shell); margin-inline: auto; }
.tools-section { padding: 140px 0 110px; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: .55fr 1fr; column-gap: 80px; align-items: start; margin-bottom: 70px; }
.section-heading .eyebrow { grid-row: span 2; margin-top: 12px; }
.section-heading h2, .method-copy h2, .access-panel h2 { margin: 0; font: 500 clamp(38px, 4.5vw, 68px)/1.07 var(--font-display); letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 670px; margin: 22px 0 0; color: var(--muted-light); font-size: 17px; line-height: 1.7; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.tool-card { position: relative; display: flex; flex-direction: column; min-height: 600px; padding: 30px; overflow: hidden; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); background: rgba(255,255,255,.14); }
.tool-card::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--line-light); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.tool-card-live::after { background: var(--mint); }
.tool-card-live:hover::after { transform: scaleX(1); }
.tool-card-live { transition: background .3s, transform .3s, box-shadow .3s; }
.tool-card-live:hover { z-index: 2; background: var(--white); transform: translateY(-8px); box-shadow: 0 25px 60px rgba(7,17,15,.09); }
.tool-topline { display: flex; align-items: center; justify-content: space-between; }
.tool-number { color: #86938f; font: 11px var(--font-mono); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; color: #6d7975; border: 1px solid var(--line-light); font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .09em; }
.status-live { color: #126544; border-color: rgba(18,101,68,.25); background: rgba(130,230,182,.12); }
.status-live i { width: 5px; height: 5px; background: #2bb878; border-radius: 50%; }
.tool-icon { display: grid; place-items: center; width: 90px; height: 90px; margin: 64px 0 46px; color: #6b7c76; border: 1px solid var(--line-light); }
.tool-icon svg { width: 54px; height: 54px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tool-icon-momentum { color: #187b55; background: rgba(130,230,182,.12); border-color: rgba(18,101,68,.24); }
.tool-icon-ipo { color: #5778a9; background: rgba(117,167,255,.08); }
.tool-icon-arbitrage { color: #8f6c30; background: rgba(232,189,106,.08); }
.tool-category { margin: 0 0 12px !important; color: #76837e !important; font: 10px var(--font-mono) !important; letter-spacing: .12em; text-transform: uppercase; }
.tool-card h3 { margin: 0; font: 500 clamp(25px, 2.2vw, 34px)/1.15 var(--font-display); letter-spacing: -.03em; }
.tool-card > p { margin: 18px 0 0; color: var(--muted-light); font-size: 15px; line-height: 1.65; }
.tool-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 25px 0 36px; padding: 0; list-style: none; }
.tool-card li { padding: 6px 9px; color: #687570; border: 1px solid var(--line-light); font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .07em; }
.tool-link { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 13px; font-weight: 600; }
.tool-card-live .tool-link { color: #116a47; }
.tool-link-muted { color: #88928e; font-weight: 500; }
.tool-disclaimer { max-width: 760px; margin: 36px 0 0; color: #7a8581; font-size: 12px; line-height: 1.6; }

.method-section { padding: 140px 0; color: var(--white); background: var(--ink-soft); }
.method-grid { display: grid; grid-template-columns: .84fr 1.16fr; gap: clamp(70px, 10vw, 160px); align-items: start; }
.eyebrow-light { color: var(--mint); }
.method-copy { position: sticky; top: 130px; }
.method-copy p:last-child { max-width: 530px; margin: 28px 0 0; color: #9bb0a8; font-size: 17px; line-height: 1.75; }
.method-flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-dark); }
.method-step { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 22px; padding: 34px 0; opacity: .42; border-bottom: 1px solid var(--line-dark); transition: opacity .4s; }
.method-step::after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .6s; }
.method-step.is-active { opacity: 1; }
.method-step.is-active::after { transform: scaleX(1); }
.method-step > span { color: var(--mint); font: 11px var(--font-mono); }
.method-step div { display: grid; grid-template-columns: .62fr 1fr; gap: 16px 28px; }
.method-step small { grid-column: 1; color: #748c83; font: 9px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.method-step strong { grid-column: 1; font: 500 21px var(--font-display); }
.method-step p { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; color: #9bb0a8; font-size: 14px; line-height: 1.6; }

.access-section { padding: 100px 0; background: var(--mint); }
.access-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.access-panel .eyebrow { color: #285c49; }
.access-panel h2 { max-width: 820px; }
.access-panel > div:first-child > p:last-child { max-width: 740px; margin: 24px 0 0; color: #285444; font-size: 17px; line-height: 1.65; }
.access-actions { display: grid; justify-items: start; gap: 16px; }
.access-actions p { display: flex; align-items: center; gap: 9px; margin: 0; color: #315e4e; font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.access-actions p span { width: 6px; height: 6px; background: #198157; border-radius: 50%; }

.lab-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 55px; align-items: center; min-height: 145px; padding: 30px 40px; color: #a8b9b2; background: var(--ink); }
.lab-footer p { margin: 0; font-size: 11px; }

.access-dialog { width: min(560px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 0; background: var(--paper); box-shadow: 0 40px 120px rgba(0,0,0,.45); }
.access-dialog::backdrop { background: rgba(3,9,7,.76); backdrop-filter: blur(7px); }
.access-dialog form { position: relative; padding: 48px; }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; color: #5b6863; background: transparent; border: 1px solid var(--line-light); font-size: 22px; cursor: pointer; }
.dialog-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 36px; color: #176c4a; background: rgba(130,230,182,.22); }
.dialog-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.access-dialog .eyebrow { margin-bottom: 15px; }
.access-dialog h2 { margin: 0; font: 500 34px/1.1 var(--font-display); letter-spacing: -.035em; }
.access-dialog h2 + p { margin: 20px 0 0; color: var(--muted-light); font-size: 15px; line-height: 1.65; }
.dialog-preview { display: grid; gap: 0; margin: 28px 0; border-top: 1px solid var(--line-light); }
.dialog-preview span { padding: 12px 0; color: #64716c; border-bottom: 1px solid var(--line-light); font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .08em; }
.access-dialog .button { width: 100%; }
.dialog-text-button { width: 100%; margin-top: 14px; padding: 10px; color: #687570; background: none; border: 0; cursor: pointer; font-size: 12px; }

.js [data-hero-reveal], .js [data-market-visual] { opacity: 0; }
.js .reveal { opacity: 0; transform: translateY(35px); }
.no-js [data-hero-reveal], .no-js [data-market-visual], .no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 1080px) {
    :root { --shell: min(100% - 48px, 1320px); }
    .lab-hero { grid-template-columns: 1fr; min-height: auto; padding: 150px 48px 100px; }
    .hero-copy { max-width: 850px; }
    .market-visual { width: min(820px, 100%); }
    .scroll-cue { display: none; }
    .tool-grid { grid-template-columns: 1fr 1fr; }
    .tool-card:nth-child(3) { grid-column: span 2; min-height: 480px; }
    .method-grid { gap: 70px; }
    .access-panel { gap: 50px; }
}

@media (max-width: 780px) {
    :root { --shell: calc(100% - 36px); }
    .lab-header { height: 70px; padding: 0 18px; }
    .brand-copy strong { font-size: 12px; }
    .menu-toggle { display: block; }
    .lab-nav {
        position: fixed; inset: 70px 0 auto; display: grid; gap: 0; padding: 12px 18px 24px;
        background: rgba(7,17,15,.98); border-bottom: 1px solid var(--line-dark);
        visibility: hidden; opacity: 0; transform: translateY(-10px); transition: .25s;
    }
    .lab-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .lab-nav > a { padding: 15px 0; border-bottom: 1px solid var(--line-dark); }
    .lab-nav .nav-home { padding-left: 0; border-left: 0; }
    .nav-signin { margin-top: 15px; }
    .lab-hero { padding: 125px 18px 80px; gap: 60px; }
    .hero-copy h1 { font-size: clamp(46px, 14vw, 68px); }
    .hero-lede { font-size: 17px; }
    .hero-signals { margin-top: 44px; }
    .hero-signals div { min-width: 0; flex: 1; padding: 0 13px; }
    .hero-signals dd { font-size: 9px; }
    .market-visual { padding: 10px; }
    .visual-readout { display: grid; grid-template-columns: 1fr; }
    .visual-readout span, .visual-readout span:first-child { border-left: 0; border-top: 1px solid var(--line-dark); }
    .tools-section, .method-section { padding: 90px 0; }
    .section-heading { grid-template-columns: 1fr; margin-bottom: 48px; }
    .section-heading .eyebrow { grid-row: auto; margin-top: 0; }
    .section-heading h2, .method-copy h2, .access-panel h2 { font-size: clamp(36px, 10vw, 52px); }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-card, .tool-card:nth-child(3) { grid-column: auto; min-height: 540px; padding: 24px; }
    .tool-icon { margin: 48px 0 38px; }
    .method-grid { grid-template-columns: 1fr; gap: 55px; }
    .method-copy { position: static; }
    .method-step { grid-template-columns: 45px 1fr; }
    .method-step div { grid-template-columns: 1fr; gap: 8px; }
    .method-step p { grid-column: 1; grid-row: auto; }
    .access-section { padding: 80px 0; }
    .access-panel { grid-template-columns: 1fr; gap: 38px; }
    .lab-footer { grid-template-columns: 1fr; gap: 22px; padding: 40px 18px; }
    .access-dialog form { padding: 42px 25px 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .js [data-hero-reveal], .js [data-market-visual], .js .reveal { opacity: 1 !important; transform: none !important; }
}
