/* TradePulse landing.
   Structure/measurements: docs/DESIGN_MAP.md §1-2 + reference render at 1440 (section order, 600/600 hero split, 1.6fr+4 footer).
   Look: docs/STYLE_SPEC.md §3-5 (user's Galileo style doc: white canvas, cobalt, weight-100 display, radii 48/35/20).
   Motion: docs/GALILEO_MOTION.md. "measured" = read from the live site; "reconstructed" = design choice, not observed there. */

@font-face { font-family: "Inter"; src: url("../fonts/InterVariable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fff; --bg-soft: #f7f8ff; --bg-tint: #f1f3fe;
  --ink: #0b1030; --ink-2: #454b76; --ink-3: #6a70a0;
  --line: #e6e9f9; --line-2: #d8dcf4;
  --cobalt: #3d50fc; --cobalt-ink: #2735c9; --teal: #05e0e0; --teal-ink: #067f7f;
  --green: #00a372; --red: #e0405f;
  --navy: #03081a; --navy-2: #0a1033; --violet-line: #292f66;
  --grad: linear-gradient(90deg, #05a1c9, #3d50fc);
  --r-btn: 48px; --r-card: 35px; --r-panel: 20px;
  --wrap: 1200px; --sec: 104px;
  /* measured (GALILEO_MOTION §a): brand curve on header/nav, 0.2-0.25s */
  --ease-brand: cubic-bezier(1, 0, 0.5, 1);
  /* reconstructed: reveal curve; the brand curve's slow start reads as lag on 600ms, so a soft out-curve is used */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-float: 0 2px 4px rgba(11, 16, 48, .04), 0 24px 60px -12px rgba(39, 53, 201, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 16px/1.6 "Inter", system-ui, sans-serif; font-feature-settings: "cv11", "ss01"; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); margin: 0; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: calc(var(--wrap) + 48px); margin: 0 auto; padding: 0 24px; }

/* type: STYLE_SPEC §4 */
h1 { font-size: clamp(42px, 5.6vw, 78px); font-weight: 100; line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(32px, 3.9vw, 54px); font-weight: 150; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 20px; font-weight: 450; letter-spacing: -0.01em; line-height: 1.3; }
.lede { font-size: 19px; font-weight: 300; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 550; text-transform: uppercase; letter-spacing: .22em; color: var(--cobalt-ink); }

/* buttons: radius 48 (STYLE_SPEC §5); hover all .25s ease (measured, GALILEO_MOTION §a "buttons") */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--r-btn); font-size: 15px; font-weight: 550; white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: all .25s ease; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-ink); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: #fff; }
.btn-ghost:hover { background: var(--bg-tint); border-color: var(--cobalt); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f4ff; } /* measured hover value (GALILEO_MOTION §d footer filled button) */
.round { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: all .25s ease; }
.round:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.round.sm { width: 30px; height: 30px; border: 0; background: var(--cobalt); color: #fff; }
.arrow-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; color: var(--ink); }
.arrow-link:hover { color: var(--cobalt-ink); }
.arrow-link .round.sm { transition: transform .25s ease; }
.arrow-link:hover .round.sm { transform: translateX(3px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--bg-tint); color: var(--cobalt-ink); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

/* live dot: ring ping, pattern from DESIGN_MAP §7 (reconstructed timing) */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); flex: none; box-shadow: 0 0 0 0 rgba(5, 224, 224, .5); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(5, 224, 224, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(5, 224, 224, 0); } }

/* 0 · announcement bar (promo slot, DESIGN_MAP §1) */
.announce { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding: 8px 16px; background: var(--grad); color: #fff; font-size: 14px; text-align: center; }
.announce .live-dot { background: #fff; }
.announce-go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.6); }
.announce:hover .announce-go svg { transform: translateX(2px); }
.announce-go svg { transition: transform .25s ease; }

/* 1 · header: sticky below the bar (fixed once the bar scrolls away); 72px ~ reference 70px desktop */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.hdr.scrolled { border-bottom-color: var(--line); }
.hdr-in { display: flex; align-items: center; height: 72px; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; }
.nav-list { display: flex; gap: 4px; list-style: none; margin: 0 auto; padding: 0; }
.nav-list > li { position: relative; }
/* measured: nav color .2s, chevron transform .25s, both on cubic-bezier(1,0,.5,1) (GALILEO_MOTION §a) */
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 72px; padding: 0 14px; background: none; border: 0; font-size: 15px; font-weight: 450; color: var(--ink); cursor: pointer; transition: color .2s var(--ease-brand); }
.nav-link:hover, .has-menu:hover > .nav-link, .has-menu:focus-within > .nav-link { color: var(--cobalt); }
.chev { transition: transform .25s var(--ease-brand); }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }
/* dropdown: white card radius 12px, shadow rgba(0,0,0,.08) 0 2px 12px, opacity/visibility .2s (measured, GALILEO_MOTION §a/§e) */
.menu { position: absolute; top: calc(100% - 8px); left: -8px; min-width: 300px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 24px 48px -16px rgba(11,16,48,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: 10px 14px; border-radius: 12px; transition: background .2s ease; }
.menu a:hover, .menu a:focus-visible { background: var(--bg-soft); }
.menu b { display: block; font-size: 14.5px; font-weight: 550; color: var(--ink); }
.menu span { display: block; font-size: 13px; color: var(--ink-3); }
.menu-wide { display: grid; grid-template-columns: repeat(3, 230px); gap: 6px; }
.menu-h { padding: 8px 14px 4px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.menu-promo { background: var(--bg-soft); border-radius: 14px; padding: 10px 0; }
.menu .menu-promo .pill { display: inline-flex; margin: 4px 14px; background: var(--cobalt); color: #fff; }
.auth { display: flex; gap: 10px; }
.auth .btn { min-height: 42px; padding: 0 20px; }
/* Login hover background .2s on brand curve (measured) */
.auth .btn-ghost { transition: background .2s var(--ease-brand), border-color .2s var(--ease-brand); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; cursor: pointer; place-content: center; gap: 5px; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease-brand); }
.nav-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* 2 · hero: 600/600 split at 1440 like the reference; height target ~690 */
.hero { position: relative; overflow: hidden; padding: 56px 0 144px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 10%, transparent 75%); }
/* reconstructed: slow drifting light (STYLE_SPEC orbs 22-26s), drawn with gradients instead of blur filters */
.orb { position: absolute; border-radius: 50%; }
.orb-a { width: 900px; height: 900px; right: -220px; top: -380px; background: radial-gradient(closest-side, rgba(61,80,252,.16), transparent); animation: drift 24s ease-in-out infinite alternate; }
.orb-b { width: 640px; height: 640px; left: 30%; top: 220px; background: radial-gradient(closest-side, rgba(5,224,224,.14), transparent); animation: drift 22s ease-in-out -8s infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-120px, 80px) scale(1.12); } }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: center; min-height: 448px; }
.hero-copy { padding-right: 48px; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.rot { display: inline-grid; vertical-align: bottom; color: var(--cobalt); font-weight: 200; }
.rot > span { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); filter: blur(3px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), filter .5s var(--ease-out); white-space: nowrap; }
.rot > span.on { opacity: 1; transform: none; filter: none; }
.rot > span.out { transform: translateY(-16px); }
.hero .lede { max-width: 470px; margin-bottom: 34px; }
.capture { display: flex; gap: 8px; max-width: 500px; padding: 6px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: #fff; box-shadow: 0 12px 32px -18px rgba(39,53,201,.35); transition: border-color .25s ease; }
.capture:focus-within { border-color: var(--cobalt); }
.capture input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 18px; font-size: 15px; color: var(--ink); }
.capture input::placeholder { color: var(--ink-3); }
.fine { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13.5px; color: var(--ink-3); }
.fine svg { color: var(--green); }
.hero-vis { position: relative; height: 470px; }
.frame { margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-panel); overflow: hidden; box-shadow: var(--shadow-float); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.frame-bar span { margin-left: 14px; padding: 2px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--ink-3); }
.frame img { width: 100%; }
.frame-hero { position: absolute; left: 24px; right: 0; top: 24px; } /* ends on the container edge */
/* iPhone frame: titanium bezel, island, side buttons; screen aspect ~9:19.5 */
.phone { --ph-r: 38px; position: absolute; left: -40px; bottom: -28px; width: 206px; padding: 6px; border-radius: var(--ph-r); background: linear-gradient(145deg, #d9dbe4 0%, #8b8e9e 22%, #3a3d4b 50%, #8b8e9e 78%, #d9dbe4 100%); box-shadow: 0 0 0 1px rgba(11,16,48,.35), 0 32px 60px -20px rgba(11,16,48,.5), inset 0 0 0 1.5px rgba(255,255,255,.35); animation: float 7s ease-in-out infinite alternate; }
.phone-screen { position: relative; overflow: hidden; border-radius: calc(var(--ph-r) - 6px); background: #fff; border: 5px solid #0a0b12; aspect-ratio: 9 / 19.5; }
.phone-screen img { width: 100%; height: calc(100% - 38px); object-fit: cover; object-position: top; display: block; }
.phone-status { display: flex; justify-content: space-between; align-items: center; height: 38px; padding: 6px 16px 0 20px; font-size: 11px; color: var(--ink); background: #fff; }
.phone-status b { font-weight: 650; }
.phone-sys { display: flex; align-items: center; gap: 4px; }
.phone-island { position: absolute; top: 15px; left: 50%; width: 62px; height: 18px; transform: translateX(-50%); border-radius: 999px; background: #05060b; }
.pb { position: absolute; width: 3px; border-radius: 2px; background: #6d7080; }
.pb-l1 { left: -2.5px; top: 62px; height: 14px; } .pb-l2 { left: -2.5px; top: 92px; height: 26px; } .pb-l3 { left: -2.5px; top: 126px; height: 26px; }
.pb-r { right: -2.5px; top: 104px; height: 38px; }
/* reconstructed: float ±10px 7s (STYLE_SPEC §2) */
@keyframes float { from { transform: translateY(-10px); } to { transform: translateY(10px); } }
.chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-float); font-size: 13px; color: var(--ink-2); white-space: nowrap; animation: float 7s ease-in-out infinite alternate; }
.chip b { color: var(--ink); font-weight: 600; }
.chip .live-dot { margin-left: 8px; }
.chip-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-tint); color: var(--cobalt); font-size: 13px; font-weight: 700; }
.chip-ic.up { background: #e3f8f0; color: var(--green); }
.chip-a { left: 196px; bottom: 34px; animation-delay: -2s; }
.chip-a b { color: var(--green); }
.chip-b { right: 40px; top: -22px; animation-delay: -4.5s; }
.chip-c { right: 72px; bottom: -6px; animation-delay: -1s; }

/* 3 · stats band, pulled over the hero bottom (DESIGN_MAP §2.2: -104px; here -112px) */
.stats-wrap { position: relative; z-index: 2; margin-top: -112px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-float); }
.stat { padding: 34px 32px 30px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat-ic { width: 26px; height: 26px; margin-bottom: 18px; fill: none; stroke: var(--cobalt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-brand); }
.stat { cursor: default; }
.stat:hover .stat-ic { transform: scale(1.22) rotate(-8deg); }
.stat:hover .stat-ic path { animation-duration: 1.4s; }
.stat:hover .num { color: var(--cobalt); }
.num { display: block; font-size: 44px; font-weight: 150; line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; margin-bottom: 10px; white-space: nowrap; }
.stat span { font-size: 14px; color: var(--ink-3); }

/* section rhythm: one scale, 104 / 80 / 64px (STYLE_SPEC §5) */
.sec { padding: var(--sec) 0; }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head p { margin-top: 18px; font-size: 17px; }

/* 4 · trade like a pro: centred head + 1100px shot (reference 1152x648 in 880px section) */
.pro-shot img { aspect-ratio: 1440 / 820; object-fit: cover; object-position: top; } /* cut at source y=820: between rows, no sliced text */
.pro-shot { position: relative; }
.tick { position: absolute; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--ink); box-shadow: var(--shadow-float); white-space: nowrap; }
.tick::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 2px; border-radius: 50%; background: var(--cobalt); }
/* callouts sit on the frame edges, never over terminal text */
.t1 { left: 4%; bottom: 0; transform: translateY(50%); } .t2 { right: 24px; top: 0; transform: translateY(-50%); } .t3 { left: 32%; bottom: 0; transform: translateY(50%); } /* both bottom callouts over the empty foot of the positions panel */

/* 5 · testimonials: scroll-snap rail inside the container, 3 cards per view (2 tablet, 1 + peek phone) */
.q-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.q-head h2 { max-width: 760px; }
.stars { color: #f5b301; font-size: 20px; letter-spacing: 4px; margin-top: 14px !important; }
.q-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.q-track::-webkit-scrollbar { display: none; }
.q-card { position: relative; flex: 0 0 calc((100% - 48px) / 3); min-height: 320px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: #fff; scroll-snap-align: start; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s ease; }
.q-card:hover { border-color: var(--line-2); }
.q-card h3 { font-size: 19px; }
.q-meta { font-size: 13px; color: var(--cobalt-ink); margin: 2px 0 20px !important; }
.q-card > p:not(.q-meta) { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.q-line { max-width: none; margin-top: auto; width: calc(100% + 64px); height: 60px; margin-left: -32px; margin-bottom: -32px; fill: none; stroke: var(--cobalt); stroke-width: 1.4; opacity: .55; }
.q-nav { display: flex; gap: 10px; flex: none; }

/* 6 · automate: list 473 / image 695 like the reference; tabbed with a 6s progress line */
.auto-grid { display: grid; grid-template-columns: 473px 1fr; gap: 80px; align-items: center; }
.auto-head h2 { margin-bottom: 18px; }
.auto-list { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.auto-item { position: relative; display: block; width: 100%; padding: 22px 0; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.auto-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--cobalt); }
.auto-grid:has(.auto-vis.in) .auto-item.on::after { animation: progress 6s linear forwards; }
@keyframes progress { to { width: 100%; } }
.auto-t { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 450; color: var(--ink); transition: color .2s ease; }
.auto-item.on .auto-t, .auto-item:hover .auto-t { color: var(--cobalt); }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.auto-d { display: grid; grid-template-rows: 0fr; overflow: hidden; padding-left: 38px; font-size: 15px; color: var(--ink-3); transition: grid-template-rows .3s ease, margin .3s ease; }
.auto-item.on .auto-d { grid-template-rows: 1fr; margin-top: 8px; }
.auto-screen { position: relative; overflow: hidden; }
.hl { position: absolute; border: 2px solid var(--cobalt); border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(11, 16, 48, .16); opacity: 0; transition: opacity .5s ease; }
.hl.on { opacity: 1; }

/* 7 · social/marketplace: head + board (3 cards | order book crop) */
.social .sec-head p { max-width: 600px; margin-left: auto; margin-right: auto; }
.social .arrow-link { margin-top: 28px; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-soft); }
/* crop off the sliced chart column at the left of terminal-book.png (x<295 of 900); the lists fade out at the bottom */
.board-shot { grid-column: 2; grid-row: 1 / 4; align-self: center; aspect-ratio: 605 / 600; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-float); }
.board-shot { position: relative; }
.board-shot img { width: 148.76%; max-width: none; margin-left: -48.76%; }
/* lists run past the crop: fade them out instead of slicing a row */
.board-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 16%; background: linear-gradient(rgba(255,255,255,0), #fff 85%); }
.mcard { display: grid; grid-template-columns: 36px 1fr; column-gap: 18px; align-content: center; padding: 26px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); }
.mcard .ic-lg { grid-row: 1 / 3; }
.mcard h3 { margin: 4px 0 6px; }
.mcard p { font-size: 14.5px; color: var(--ink-3); }
.ic-lg { width: 36px; height: 36px; fill: none; stroke: var(--cobalt); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* 8 · expert tools: tinted band, 3 equal-height cards across the container */
.tools { background: var(--bg-soft); }
.tool-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool { display: flex; flex-direction: column; gap: 28px; padding: 24px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .25s ease; }
.tool > div { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 0 8px; }
.tool .arrow-link { margin-top: auto; }
.tool:hover { border-color: var(--line-2); }
.tool h3 { margin-bottom: 8px; }
.tool p { font-size: 15px; margin-bottom: 18px; }
.tool .arrow-link { font-size: 14.5px; }
.tool-art { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: var(--r-panel); background: var(--bg-soft); }
.tool-art .g { stroke: var(--line); stroke-width: 1; }
.tool-art .l { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; }
.tool-art .d { fill: none; stroke: var(--cobalt); stroke-width: 1.6; stroke-dasharray: 4 4; }
.tool-art .p { fill: #fff; stroke: var(--cobalt); stroke-width: 2; }
.tool-art .b { fill: var(--cobalt); } .tool-art .bt { stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .7; }

/* 9 · exchanges: text wordmark marquee + concentric rings (reference circle composition) */
.marquee { display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.mq-row.rev { animation-direction: reverse; }
.marquee:hover .mq-row { animation-play-state: paused; }
.mq-row ul { display: flex; gap: 14px; margin: 0; padding: 0 14px 0 0; list-style: none; }
.mq-row li { padding: 16px 34px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
/* reconstructed: marquee 38s linear (STYLE_SPEC §2) */
@keyframes marquee { to { transform: translateX(calc(-1 * var(--mq, 50%))); } }
.xch { padding-bottom: 0; } /* the rings' own fade is the bottom spacing */
.rings { position: relative; overflow: hidden; display: grid; place-items: center; height: 680px; margin-top: 8px; -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  background: radial-gradient(circle at 50% 50%, transparent 0 239px, var(--line-2) 240px 241px, transparent 242px 319px, var(--line) 320px 321px, transparent 322px 409px, var(--line) 410px 411px, transparent 412px),
              radial-gradient(circle at 50% 50%, rgba(61,80,252,.08), transparent 60%); }
.ring-core { display: grid; place-items: center; gap: 22px; width: 400px; height: 400px; padding: 70px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-float); text-align: center; align-content: center; }
.ring-core p { font-size: 15.5px; }

/* 10 · skill level: 3 cards 325px (reference) */
.skill { background: var(--bg-soft); }
.skill .sec-head { max-width: 1000px; }
.skill-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 32px 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); transition: border-color .25s ease; }
.skill-card:hover { border-color: var(--cobalt); }
.skill-ic { width: 80px; height: 80px; margin-bottom: 24px; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.skill-ic circle { fill: var(--bg-tint); stroke: none; }
.skill-ic path { stroke: var(--cobalt); }
.skill-card h3 { margin-bottom: 8px; }
.skill-card p { font-size: 15px; color: var(--ink-3); margin-bottom: 20px; }
.go { margin-top: auto; font-size: 14px; font-weight: 550; color: var(--cobalt-ink); }

/* 12 · FAQ: native <details name> accordion; chevron 30px circle rotating 180deg .25s (DESIGN_MAP §5) */
.faq-grid { display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start; }
.faq-grid header p { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 4px; font-size: 18px; font-weight: 450; color: var(--ink); cursor: pointer; list-style: none; transition: color .2s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--cobalt); }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5 5 6.5 8 3.5' fill='none' stroke='%233d50fc' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .25s ease, background-color .25s ease; }
.faq details[open] summary i { transform: rotate(180deg); background-color: var(--bg-tint); }
.faq details p { padding: 0 60px 26px 4px; font-size: 15.5px; }

/* 13 · footer: 1.6fr + 4x1fr (DESIGN_MAP §1); links opacity .75 on .25s (measured) */
.ftr { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14.5px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.ftr-brand p { max-width: 280px; margin: 18px 0 24px; color: var(--ink-3); }
.ftr nav { display: flex; flex-direction: column; gap: 10px; }
.ftr h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.ftr nav a { color: var(--ink-2); width: fit-content; transition: opacity .25s ease; }
.ftr nav a:hover { opacity: .75; }

/* scroll reveal: reconstructed (Galileo has none, GALILEO_MOTION §c): 600ms fade + 24px, 80ms stagger */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }
/* lazy image fade: opacity .5s linear (measured, GALILEO_MOTION §c) */
.js img[loading="lazy"] { opacity: 0; transition: opacity .5s linear; }
.js img[loading="lazy"].loaded { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-list .nav-link { padding: 0 9px; }
  .auto-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 960px) {
  :root { --sec: 80px; }
  .burger { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; max-height: calc(100vh - 72px); overflow-y: auto; padding: 8px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .nav-open .nav { display: flex; }
  .nav-list { flex-direction: column; margin: 0; }
  .nav-link, .nav-list .nav-link { height: 52px; width: 100%; justify-content: space-between; padding: 0; border-bottom: 1px solid var(--line); }
  .menu, .menu-wide { position: static; display: block; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; }
  .menu-promo { background: none; padding: 0; }
  .menu .menu-promo .pill { display: none; }
  .chev { display: none; }
  .auth { margin-top: 18px; }
  .auth .btn { flex: 1; }
  .hero { padding: 48px 0 140px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { padding-right: 0; }
  .hero-vis { height: auto; padding: 24px 0 40px 56px; }
  .frame-hero { position: relative; left: 0; top: 0; width: 100%; }
  .phone { left: 0; bottom: 0; width: 150px; --ph-r: 30px; }
  .chip-a { left: 150px; bottom: 16px; } .chip-b { right: 8px; top: 0; } .chip-c { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tick { display: none; }
  .auto-grid { grid-template-columns: 1fr; }
  .q-card { flex-basis: calc((100% - 24px) / 2); }
  .tool-list { grid-template-columns: 1fr; }
  .tool { flex-direction: row; align-items: center; }
  .tool-art { width: 220px; flex: none; }
  .board { grid-template-columns: 1fr; padding: 24px; gap: 16px; }
  .board-shot { grid-column: auto; grid-row: auto; }
  .rings { height: 440px; }
  .ring-core { width: 320px; height: 320px; padding: 48px; }
  .skill-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  /* hero: the phone alone, in flow and centred, chips stacked on its edges */
  .hero-vis { display: grid; justify-items: center; padding: 8px 0 24px; }
  .frame-hero { display: none; }
  .phone { position: relative; left: auto; bottom: auto; width: 220px; --ph-r: 34px; }
  .chip-a { left: 0; bottom: 64px; } .chip-b { right: 0; top: 72px; }
  /* pro: a 1:1 detail of the order book panel (x 829-1127 of terminal-hero.png) instead of the whole terminal */
  .pro-shot .frame { position: relative; width: 302px; margin: 0 auto; }
  .pro-shot .frame::after { content: ""; position: absolute; inset: auto 0 0; height: 64px; background: linear-gradient(rgba(255,255,255,0), #fff 85%); }
  .pro-shot img { width: 300px; height: 420px; aspect-ratio: auto; object-fit: none; object-position: -829px -60px; }
  /* automate: the list carries it; the desktop screenshot would be unreadable */
  .auto-vis { display: none; }
  .auto-list { margin-top: 32px; }
  /* marketplace: 1:1 crop of the markets + trades column (x 600-900 of terminal-book.png) */
  .board { padding: 16px; }
  .board-shot { width: 300px; height: 415px; aspect-ratio: auto; justify-self: center; }
  .board-shot img { width: 900px; height: 600px; margin-left: -600px; }
  .q-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --sec: 64px; }
  .announce { font-size: 13px; gap: 8px; }
  .announce-go { display: none; }
  .hdr-in { gap: 12px; }
  .capture { flex-direction: column; border-radius: 26px; }
  .capture input { min-height: 44px; }
  .stat { padding: 24px 18px; }
  .num { font-size: 30px; }
  .q-track { gap: 16px; }
  .q-card { flex-basis: 85%; padding: 26px; }
  .q-line { width: calc(100% + 52px); margin-left: -26px; margin-bottom: -26px; }
  .tool { flex-direction: column; align-items: stretch; padding: 20px 20px 24px; gap: 20px; }
  .tool-art { width: 100%; }
  .tool > div { padding: 0 4px; }
  .mq-row li { font-size: 16px; padding: 12px 22px; }
  .rings { height: 380px; background-size: 140% 140%; background-position: center; }
  .ring-core { width: 290px; height: 290px; padding: 36px; gap: 14px; }
  .ring-core p { font-size: 15px; }
  .faq details p { padding-right: 4px; }
  .stat span { font-size: 15px; }
  .ftr nav { gap: 0; }
  .ftr nav a { padding: 11px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .mq-row { flex-wrap: wrap; width: auto; justify-content: center; }
  .mq-row ul[aria-hidden] { display: none; }
  .mq-row ul { flex-wrap: wrap; justify-content: center; }
}

/* ring block: ASCII ripple field behind the core, drawn by landing.js */
.ascii { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font: 11px/11px "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: 0; color: var(--cobalt); opacity: .7; white-space: pre; pointer-events: none; user-select: none; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.ring-core { position: relative; }
@media (max-width: 760px) { .ascii { font-size: 8px; line-height: 8px; } }

/* phones: the visitor already holds a phone, so show the app screen itself (no bezel, island, status bar or clock) */
@media (max-width: 760px) {
  .phone { width: min(260px, 72vw); padding: 0; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 28px 50px -22px rgba(11,16,48,.35); }
  .phone-screen { border: 0; border-radius: 26px; aspect-ratio: 9 / 17; }
  .phone-screen img { height: 100%; }
  .phone-status, .phone-island, .pb, .hero-vis .chip { display: none; }
}

/* phone app screen: mobile terminal, sized in container units so it scales with the frame */
.phone-screen { container-type: inline-size; }
.phone-status { display: none; }
.app { display: flex; flex-direction: column; height: 100%; padding: 13cqw 6cqw 6cqw; background: #fff; color: var(--ink); }
.app-pair { display: flex; align-items: center; gap: 2.4cqw; font-size: 5.4cqw; }
.app-pair i { display: grid; place-items: center; width: 7cqw; height: 7cqw; border-radius: 50%; background: #f7931a; color: #fff; font-style: normal; font-size: 3.6cqw; font-weight: 700; }
.app-pair b { font-weight: 650; }
.app-pair em { margin-left: auto; padding: 1cqw 2.6cqw; border-radius: 999px; background: #e3f8f0; color: var(--green); font-style: normal; font-size: 4cqw; font-weight: 600; }
.app-price { margin-top: 2.4cqw; font-size: 10.5cqw; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.app-tf { display: flex; gap: 1.4cqw; margin: 3.4cqw 0 2.4cqw; font-size: 3.9cqw; color: var(--ink-3); }
.app-tf span { padding: 1cqw 2.6cqw; border-radius: 999px; }
.app-tf .on { background: var(--bg-tint); color: var(--cobalt); font-weight: 600; }
.app-candles { width: 100%; height: 84cqw; flex: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 25%; }
.app-eq { display: flex; justify-content: space-between; align-items: center; margin-top: 4cqw; padding: 3cqw 3.6cqw; border: 1px solid var(--line); border-radius: 4cqw; }
.app-eq small { display: block; font-size: 3.6cqw; color: var(--ink-3); }
.app-eq b { font-size: 6cqw; font-weight: 600; letter-spacing: -.02em; }
.app-eq span { color: var(--green); font-size: 4.8cqw; font-weight: 650; }
.app-act { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; margin-top: auto; }
.app-act span { padding: 3.4cqw; border-radius: 999px; color: #fff; text-align: center; font-size: 4.8cqw; font-weight: 650; }
.app-act .buy { background: var(--green); } .app-act .sell { background: var(--red); }
@media (max-width: 760px) { .app { padding-top: 7cqw; } }

/* ---------- dialogs: welcome popup + registration ---------- */
.dlg { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(420px, calc(100vw - 32px)); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(11, 16, 48, .45); }
.dlg::backdrop { background: rgba(11, 16, 48, .55); }
/* freeze decorative motion while a modal is open: repainting the page under a
   backdrop layer on every marquee/float frame is what makes the dialog stutter */
body:has(.dlg[open]) .mq-row,
body:has(.dlg[open]) .live-dot,
body:has(.dlg[open]) .orb,
body:has(.dlg[open]) .phone,
body:has(.dlg[open]) .chip { animation-play-state: paused; }
.dlg[open] { animation: dlg-in .28s var(--ease-brand); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.dlg-in { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dlg-h h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.dlg-h h3 .gift-ic { vertical-align: -5px; margin-right: 8px; }
.dlg-h .x { font-size: 22px; line-height: 1; color: var(--ink-3); width: 30px; height: 30px; border-radius: 50%; flex: none; transition: background var(--t-fast, .2s) var(--ease-brand), color var(--t-fast, .2s) var(--ease-brand); }
.dlg-h .x:hover { background: var(--bg-tint); color: var(--ink); }
.dlg-p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); font-weight: 350; }
.dlg-p b { color: var(--cobalt-ink); }
.dlg .f2 { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.dlg .f2 input { height: 44px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; color: var(--ink); background: #fff; outline: 0; font: inherit; width: 100%; transition: border-color var(--t-fast, .2s) var(--ease-brand); }
.dlg .f2 input:focus { border-color: var(--cobalt); }
.dlg form { display: flex; flex-direction: column; gap: 12px; }
.dlg .submit { height: 46px; border-radius: 999px; border: 0; color: #fff; font-weight: 600; font-size: 15px; width: 100%; cursor: pointer; transition: filter var(--t-fast, .2s) var(--ease-brand); font-family: inherit; }
.dlg .submit:hover { filter: brightness(1.08); }
.dlg .submit.cobalt { background: var(--cobalt); }
@media (prefers-reduced-motion: reduce) { .dlg[open] { animation: none; } }

/* ---------- stats icons: gentle path morph (Chromium; graceful static elsewhere) ---------- */
.stat:nth-child(1) .stat-ic path:nth-of-type(2) { animation: morph-traders 5s var(--ease-brand) infinite alternate; }
.stat:nth-child(1) .stat-ic path:nth-of-type(3) { animation: morph-traders-b 5s var(--ease-brand) infinite alternate; }
.stat:nth-child(2) .stat-ic path:nth-of-type(1) { animation: morph-vol 5s var(--ease-brand) infinite alternate; }
.stat:nth-child(2) .stat-ic path:nth-of-type(2) { animation: morph-vol-b 5s var(--ease-brand) infinite alternate; }
.stat:nth-child(3) .stat-ic path:nth-of-type(2) { animation: morph-card 5s var(--ease-brand) infinite alternate; }
.stat:nth-child(4) .stat-ic path:nth-of-type(2) { animation: morph-clock 5s var(--ease-brand) infinite alternate; }
@keyframes morph-traders { from { d: path("M2.5 19c.8-3.4 3.4-5 6.5-5s5.7 1.6 6.5 5"); } to { d: path("M2.5 17.5c.8-3 3.4-4.5 6.5-4.5s5.7 1.5 6.5 4.5"); } }
@keyframes morph-traders-b { from { d: path("M16 4.8a3.3 3.3 0 0 1 0 6.4M18 14.3c1.8.6 3 2.2 3.5 4.7"); } to { d: path("M16 5.6a3 3 0 0 1 0 5.6M18 15c1.8.7 3 2.1 3.5 4"); } }
@keyframes morph-vol { from { d: path("M3 16l5 -5 4 4 8 -8"); } to { d: path("M3 16l5 -3 4 -3 8 -6"); } }
@keyframes morph-vol-b { from { d: path("M15 8h5v4"); } to { d: path("M15 5h5v4"); } }
@keyframes morph-card { from { d: path("M3 10h18M7 15h4"); } to { d: path("M3 10h18M13 15h4"); } }
@keyframes morph-clock { from { d: path("M12 7v5l3 2"); } to { d: path("M12 8v4l-3 2"); } }
