@font-face { font-family: 'Geist Variable'; font-weight: 100 900; font-display: swap; src: url(fonts/geist-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Geist Mono Variable'; font-weight: 100 900; font-display: swap; src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); }

/* Tokens mirrored from MarketDataFront/src/styles/tokens.css — the page and the terminal are one product. */
:root {
  --bg-app: #0a0a0c; --bg-plot: #08080a; --bg-chrome: #141417; --bg-raised: #1c1c21;
  --fg-primary: #f4f2ed; --fg-secondary: #bcbab4; --fg-muted: #9d9b95;
  --border-subtle: #2a2a30; --border-strong: #55555e;
  --color-accent: #c4cad3; --bg-accent: #f4f2ed; --fg-on-accent: #121214;
  --status-live: #3bb08f;
  --metal: linear-gradient(135deg, #f4f2ed 0%, #c9ced6 55%, #8d949e 100%);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
  --font-ui: 'Geist Variable', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono Variable', 'SF Mono', ui-monospace, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg-app); scroll-behavior: smooth; }
body {
  background: var(--bg-app); color: var(--fg-primary); font-family: var(--font-ui);
  font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:where(a, button):focus-visible { outline: 1px solid var(--color-accent); outline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--color-accent) 32%, transparent); }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 64px;
  background: color-mix(in srgb, var(--bg-app) 70%, transparent); backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border-subtle) 70%, transparent);
}
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 40px; }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 500; letter-spacing: 0.02em; }
.wordmark img { border-radius: 2px; }
.wordmark b { font-weight: inherit; }
.wordmark span { font-weight: 300; color: var(--fg-secondary); }
.nav-cta { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.nav-cta .btn { transition: opacity 200ms var(--ease-out); }
.nav.hero-cta .nav-cta .btn:not(.nav-toggle) { opacity: 0; pointer-events: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 3px; font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: background 120ms var(--ease-out), border-color 120ms var(--ease-out);
}
.btn-solid { background: var(--bg-accent); color: var(--fg-on-accent); }
.btn-solid:hover { background: #fff; }
.btn-ghost { border: 1px solid var(--border-strong); background: color-mix(in srgb, var(--bg-app) 40%, transparent); }
.btn-ghost:hover { border-color: var(--color-accent); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-muted);
}
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; }
h2 { font-size: clamp(36px, 4.6vw, 60px); }
h3 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.metal-text { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { text-wrap: balance; }
.lede { text-wrap: pretty; font-size: clamp(17px, 1.4vw, 19px); color: var(--fg-secondary); max-width: 52ch; }
/* One rhythm: 80 px each side, so the space between any two sections is the same 160 px. */
section { padding: 80px 0; }
main > section:first-of-type { padding-top: 160px; }
/* The closing room has its own background, so it holds its space inside. */
.marble { padding: 120px 0; }
.head { display: grid; gap: 24px; margin-bottom: 72px; }

/* A framed plot, as in the terminal. */
.panel { background: var(--bg-plot); border: 1px solid var(--border-subtle); border-radius: 4px; box-shadow: var(--sheen); padding: 28px; }
.panel canvas { width: 100%; display: block; }

/* ---------- Hero: the product itself is the backdrop ---------- */
.hero { position: relative; min-height: max(680px, 100svh); display: grid; overflow: hidden; background: var(--bg-plot); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Dark where the words are, open where the data is. */
.hero .scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 50% 36%, rgba(8, 8, 10, 0.85), transparent 75%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.7) 45%, rgba(8, 8, 10, 0.12) 64%, rgba(8, 8, 10, 0.1) 82%, var(--bg-app) 100%);
}
.hero-copy {
  position: relative; align-self: start; padding-top: max(150px, 17vh);
  display: grid; justify-items: center; text-align: center; gap: 28px;
}
.hero h1 { font-size: clamp(54px, 9vw, 128px); letter-spacing: -0.04em; }
.hero .lede { text-align: center; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.hero-foot .wrap { display: flex; align-items: center; gap: 12px; }
.hero-foot .right { margin-left: auto; opacity: 0.75; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-subtle); }
.benefit { padding: 44px 32px 0 0; display: grid; gap: 14px; align-content: start; }
.benefit + .benefit { padding-left: 32px; border-left: 1px solid var(--border-subtle); }
.benefit .figure { font-size: clamp(48px, 4.6vw, 64px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; margin-bottom: 14px; }
.benefit p { color: var(--fg-muted); font-size: 15px; }

/* ---------- Five views: one candle each ---------- */
.anatomy { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.types { list-style: none; border-left: 1px solid var(--border-subtle); }
.type { position: relative; display: grid; gap: 10px; width: 100%; text-align: left; padding: 20px 0 20px 28px; }
/* The active type's dwell, drawn as the platinum rail filling down. */
.type::before { content: ''; position: absolute; left: -1px; top: 0; width: 1px; height: calc(var(--p, 0) * 100%); background: var(--color-accent); }
.type-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.type .name { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg-muted); transition: color 200ms var(--ease-out); }
.type .desc { display: block; color: var(--fg-secondary); font-size: 15px; max-width: 40ch; height: 0; opacity: 0; overflow: hidden; transition: height 450ms var(--ease-out), opacity 350ms var(--ease-out); }
.type:hover .name, .type[aria-selected='true'] .name { color: var(--fg-primary); }
.type[aria-selected='true'] .desc { height: 4.7em; opacity: 1; } /* fixed, so the list never changes size when the type changes */
#candle { height: 440px; }

/* ---------- Merge markets ---------- */
.merge-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--border-subtle); }
.legend { display: flex; gap: 20px; font-size: 13px; color: var(--fg-secondary); }
.legend i { display: inline-block; width: 9px; height: 9px; margin-right: 8px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--fg-muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-live) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
#combine { height: 400px; }

/* ---------- How: we provide the data ---------- */
#flow { height: 280px; }
.flow-captions { display: grid; grid-template-columns: 3fr 4fr 3fr; gap: 32px; margin-top: 28px; }
.flow-captions > div { display: grid; gap: 8px; align-content: start; }
.flow-captions > div:nth-child(2) { text-align: center; justify-items: center; }
.flow-captions > div:nth-child(3) { text-align: right; justify-items: end; }
.flow-captions b { font-weight: 500; font-size: 17px; }
.flow-captions p { color: var(--fg-muted); font-size: 15px; max-width: 34ch; }

/* ---------- Marble: the one light room in the house ---------- */
.marble {
  color: #151517; text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(118deg, transparent 38%, rgba(141, 148, 158, 0.10) 40%, transparent 43%, transparent 61%, rgba(141, 148, 158, 0.07) 62.5%, transparent 65%),
    linear-gradient(64deg, transparent 52%, rgba(141, 148, 158, 0.06) 53.5%, transparent 56%),
    linear-gradient(180deg, #f4f2ed 0%, #ebe9e3 100%);
}
.marble .wrap { display: grid; justify-items: center; gap: 28px; }
.marble .eyebrow { color: #5f5e5a; }
.marble .lede { color: #3c3b38; text-align: center; }
.marble .metal-text { background: linear-gradient(135deg, #2a2a30 0%, #55555e 55%, #8d949e 100%); -webkit-background-clip: text; background-clip: text; }
.marble .btn-solid { background: #151517; color: var(--fg-primary); }
.marble .btn-solid:hover { background: #000; }
.marble .btn-ghost { background: transparent; border-color: #a9aeb6; color: #151517; }
.marble .btn-ghost:hover { border-color: #151517; }
.marble small { font-size: 13px; color: #6d6c68; }

/* ---------- Apply form, on marble ---------- */
.apply { color-scheme: light; display: grid; gap: 16px; width: min(560px, 100%); text-align: left; margin-top: 8px; }
.apply label { display: grid; gap: 6px; font-size: 13px; color: #5f5e5a; }
.apply input, .apply textarea { font: inherit; font-size: 15px; color: #151517; background: #fff; border: 1px solid #c9ced6; border-radius: 3px; padding: 10px 12px; }
.apply input:focus, .apply textarea:focus { outline: 1px solid #151517; outline-offset: 0; border-color: #151517; }
.apply .btn { justify-self: start; }
.apply-sent { display: grid; gap: 10px; font-size: 14px; color: #3c3b38; }
.apply-sent[hidden] { display: none; }
.apply-sent a { color: #151517; text-decoration: underline; }

footer { border-top: 1px solid var(--border-subtle); padding: 36px 0; font-size: 13px; color: var(--fg-muted); }
footer .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
footer .wordmark { font-size: 15px; }
footer .right { margin-left: auto; display: flex; gap: 24px; }
footer a:hover { color: var(--fg-primary); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
/* Page switches crossfade (Chrome, Edge, Safari 18.2+; other browsers switch instantly). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 220ms; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefit, .benefit + .benefit { padding: 40px 24px 40px 0; border-left: 0; border-bottom: 1px solid var(--border-subtle); }
  .anatomy { grid-template-columns: 1fr; gap: 40px; }
  .flow-captions { grid-template-columns: 1fr; gap: 24px; }
  .flow-captions > div:nth-child(n) { text-align: left; justify-items: start; }
  section { padding: 56px 0; }
  main > section:first-of-type, .marble { padding: 112px 0; }
}
@media (max-width: 560px) {
  /* Phones: wordmark and menu only; the hero carries both calls to action. */
  .nav-cta .btn:not(.nav-toggle) { display: none; }
  .hero-foot .right { display: none; }
  .panel { padding: 16px; }
  #combine { height: 320px; }
  #candle { height: 380px; }
  .type[aria-selected='true'] .desc { height: 6.3em; }
  .hero-copy { padding-top: 120px; }
  /* The copy runs lower on a phone, so the scrim stays dark further down. */
  .hero .scrim { background: linear-gradient(180deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.85) 66%, rgba(8, 8, 10, 0.15) 82%, rgba(8, 8, 10, 0.1) 88%, var(--bg-app) 100%); }
}

/* ---------- Nav links (footer repeats them on small screens) ---------- */
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--fg-secondary); }
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--fg-primary); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Inner pages: a spec sheet, one topic per row ---------- */
main > section:has(> .page-head) { padding-bottom: 0; }
.page-head { display: grid; gap: 24px; justify-items: start; }
.page-head h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -0.035em; }
.spec { border-top: 1px solid var(--border-subtle); }
.spec-row { scroll-margin-top: 80px; display: grid; grid-template-columns: 4fr 8fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--border-subtle); }
.spec-row h2 { font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.spec-row .body { display: grid; gap: 18px; align-content: start; color: var(--fg-secondary); max-width: 62ch; }
.spec-row .body b { color: var(--fg-primary); font-weight: 500; }
.body a, .lede a { color: var(--fg-primary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.body a:hover, .lede a:hover { text-decoration-color: var(--color-accent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li { font-family: var(--font-mono); font-size: 12px; padding: 6px 10px; border: 1px solid var(--border-subtle); border-radius: 3px; color: var(--fg-secondary); }
.tags-more { margin-top: -10px; }
.tags-more summary { cursor: pointer; list-style: none; font-family: var(--font-mono); font-size: 12px; color: var(--fg-muted); }
.tags-more summary::-webkit-details-marker { display: none; }
.tags-more summary:hover { color: var(--fg-primary); }
.tags-more[open] summary { margin-bottom: 10px; }
.defs { display: grid; gap: 22px; }
.defs dt { color: var(--fg-primary); font-weight: 500; }
.defs dd { margin-top: 4px; }
.body ul:not(.tags) { display: grid; gap: 8px; padding-left: 18px; }
.figure-note { margin-top: 14px; font-size: 13px; color: var(--fg-muted); }

.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav .wrap { gap: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: grid; position: absolute; top: 64px; left: 0; right: 0; padding: 8px 24px 24px; font-size: 17px;
    background: var(--bg-app); border-bottom: 1px solid var(--border-subtle);
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
  .spec-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
}

/* ---------- Signals: the figures grid, two by two, a mono tag in place of the figure ---------- */
.uses { grid-template-columns: repeat(2, 1fr); }
.uses .benefit { padding-bottom: 40px; border-bottom: 1px solid var(--border-subtle); }
.uses .benefit:nth-child(odd) { padding-left: 0; border-left: 0; }
.uses .sig { width: 100%; height: 150px; display: block; }

/* ---------- Details ---------- */
main > .hero + section { padding-top: 80px; }
.actions .btn { min-width: 200px; }
.cta-note { margin-top: -10px; font-size: 14px; color: var(--fg-secondary); }
.cta-note a { color: var(--fg-secondary); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.cta-note a:hover { color: var(--fg-primary); }
.marble small { line-height: 1.8; }
.marble small a { color: #151517; text-decoration: underline; text-decoration-color: #a9aeb6; text-underline-offset: 3px; }
.marble small a:hover { text-decoration-color: #151517; }

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

/* ---------- Pricing: two plans side by side, the founding one framed in platinum ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 56px auto 80px; align-items: start; }
.price { display: grid; gap: 24px; padding: 32px; justify-items: start; }
/* Featured: a raised surface, a full platinum frame and a lit eyebrow, so it reads as the offer at a glance. */
.price.featured { background: var(--bg-raised); border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent), var(--sheen); }
.price.featured .eyebrow { color: var(--fg-primary); }
.price .amount { font-size: clamp(48px, 4.6vw, 64px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.price:not(.featured) .amount { color: var(--fg-secondary); }
.price .amount small { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--fg-muted); margin-left: 10px; }
.price ul { list-style: none; display: grid; gap: 10px; width: 100%; color: var(--fg-secondary); font-size: 15px; }
.price .includes { padding-top: 24px; border-top: 1px solid var(--border-subtle); }
/* The eyebrow's hairline, as the bullet. */
.price li { position: relative; padding-left: 24px; }
.price li::before { content: ''; position: absolute; left: 0; top: 0.75em; width: 12px; height: 1px; background: var(--color-accent); }
.price .btn { margin-top: 8px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
#apply { padding: 80px 0; }

/* Five signal cards in two columns: the last one spans the row instead of sitting alone. */
.uses .benefit:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: min(100%, 520px); padding-right: 0; text-align: center; }

@media (max-width: 560px) {
  /* Phones: the hero ends just below the copy, with a band of chart under the buttons. */
  .hero { min-height: 0; }
  .hero-copy { padding-bottom: 300px; }
  .hero .scrim { background: linear-gradient(180deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.85) 56%, rgba(8, 8, 10, 0.15) 70%, rgba(8, 8, 10, 0.1) 88%, var(--bg-app) 100%); }
}
