/* ==========================================================================
   Orblivion · landing page
   One dark world built around the logo: a black hole, its rings and the light
   bending around it. Colour tokens live on :root; the page is dark only.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Space */
  --void: #020309;
  --abyss: #050716;
  --deep: #080b22;

  /* Ink: metallic silver to dim steel */
  --ink: #e9ecf8;
  --ink-2: #aab2cd;
  --ink-3: #727a99;
  --ink-4: #4a5170;

  /* Light around the horizon */
  --cyan: #6fe7ff;
  --blue: #3d6bff;
  --blue-hi: #6d93ff;
  --violet: #8a5cff;
  --violet-deep: #5a34e0;
  --white-hot: #f5f8ff;

  /* Market colours, kept cool so they sit in the palette */
  --up: #62f0c8;
  --down: #ff7a9c;

  /* Glass and hairlines */
  --line: rgba(150, 170, 255, 0.09);
  --line-2: rgba(150, 170, 255, 0.16);
  --line-3: rgba(170, 190, 255, 0.28);
  --scroll-thumb: rgba(150, 170, 255, 0.2);
  --scroll-thumb-hover: rgba(150, 170, 255, 0.38);
  --glass: rgba(10, 14, 36, 0.46);
  --glass-2: rgba(14, 19, 48, 0.62);
  --glass-hi: rgba(120, 150, 255, 0.05);

  --radius: 18px;
  --radius-sm: 12px;

  --f-display: "Michroma", "Eurostile", "Microgramma", "Segoe UI", sans-serif;
  --f-body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-slow: cubic-bezier(.16, .84, .24, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(40, 60, 190, 0.16), transparent 70%),
    radial-gradient(900px 600px at 100% 40%, rgba(90, 52, 224, 0.07), transparent 70%),
    radial-gradient(900px 600px at 0% 75%, rgba(40, 90, 255, 0.06), transparent 70%),
    var(--void);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: rgba(61, 107, 255, 0.45); color: #fff; }

/* --------------------------------------------------------------------------
   Scrollbars: a thin rounded thumb floating on no track, no arrow buttons.
   Chromium and Safari use the ::-webkit-scrollbar parts (they ignore them
   once scrollbar-color is set, so Firefox gets the standard properties only).
   -------------------------------------------------------------------------- */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-track-piece,
  ::-webkit-scrollbar-corner { background: transparent; }
  ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  ::-webkit-scrollbar-thumb {
    background-color: var(--scroll-thumb);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
  }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
}
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
}

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 0; }
.muted { color: var(--ink-3); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--deep); border: 1px solid var(--line-3); color: var(--ink);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* The fixed starfield behind everything */
.cosmos {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main, .footer { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   Wordmark: Michroma for the letters, the broken O from the logo up front
   -------------------------------------------------------------------------- */

.wm-o-svg {
  display: inline-block;
  width: 0.86em;
  height: 0.86em;
  margin-right: 0.13em;
  vertical-align: -0.075em;
  overflow: visible;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  --h: 50px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
  isolation: isolate;
}
.btn-sm { --h: 38px; padding: 0 18px; font-size: 14px; }

.btn-primary {
  color: #050716;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ff 55%, #b9c8ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 0 24px rgba(109, 147, 255, 0.45),
    0 0 64px rgba(90, 52, 224, 0.28);
}
.btn-primary::after {
  /* a slow orbit of light around the button's edge */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, rgba(111, 231, 255, .95) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: btn-orbit 6s linear infinite;
  pointer-events: none;
  z-index: -1;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 32px rgba(109, 147, 255, 0.6),
    0 0 90px rgba(90, 52, 224, 0.4);
}
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes btn-orbit { to { --spin: 360deg; } }

.btn-ghost {
  color: var(--ink);
  background: rgba(14, 19, 48, 0.35);
  border: 1px solid var(--line-3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: rgba(111, 231, 255, 0.55);
  box-shadow: 0 0 24px rgba(61, 107, 255, 0.25);
  transform: translateY(-1px);
}

.btn-arrow {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Live dot */
.pulse {
  position: relative;
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
  flex: none;
}
.pulse.ok { background: var(--cyan); box-shadow: 0 0 10px rgba(111, 231, 255, 0.8); }
.pulse.warn { background: #b9a2ff; box-shadow: 0 0 10px rgba(138, 92, 255, 0.8); }
.pulse.down { background: var(--down); box-shadow: 0 0 10px rgba(255, 122, 156, 0.7); }
.pulse.ok::after, .pulse.warn::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: inherit;
  border-color: rgba(111, 231, 255, 0.5);
  animation: ping 2.8s var(--ease) infinite;
}
.pulse.warn::after { border-color: rgba(138, 92, 255, 0.5); }
@keyframes ping { 0% { transform: scale(.6); opacity: 1; } 80%, 100% { transform: scale(1.9); opacity: 0; } }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), -webkit-backdrop-filter .6s, backdrop-filter .6s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 4, 14, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
          backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-mark { width: 34px; height: 34px; overflow: visible; }
.nav-word {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  background: linear-gradient(180deg, #ffffff 10%, #c9d3ff 60%, #8d9dff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.nav-word .wm-o-svg { margin-right: 0.2em; width: 0.92em; height: 0.92em; vertical-align: 0; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: rgba(120, 150, 255, 0.07); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: 12px; }
.nav-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 36, 0.35);
}
.nav-block-label { color: var(--ink-3); letter-spacing: 0.12em; }
.nav-block [data-block] { min-width: 10ch; text-align: right; color: var(--ink); }

/* the account page's button stands in for the nav links' "Account" while they're hidden (too narrow, under 440px, for
   both buttons: the footer links it there) */
.nav-account { display: none; }
/* between the full nav and the collapsed one, the links tighten and the block counter gives way, so the bar fits */
@media (min-width: 1081px) and (max-width: 1360px) {
  .nav-block { display: none; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; letter-spacing: 0.1em; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .nav-account { display: inline-flex; }
}
@media (max-width: 440px) {
  .nav-account { display: none; }
}
@media (max-width: 560px) {
  .nav-block { display: none; }
  .nav-word { font-size: 13px; }
}
/* the smallest phones (320 px): the lockup and the button tighten so the bar never runs past the screen */
@media (max-width: 360px) {
  .nav-brand { gap: 8px; }
  .nav-word { font-size: 12px; letter-spacing: 0.16em; }
  .nav-right .btn-sm { padding: 0 14px; font-size: 13px; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

/* Exactly one screen tall: the planet's well gives up height first, so the wordmark, the copy, the buttons and the
   rail at the bottom all fit in the first view on any desktop window. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + 8px) var(--gutter) 22px;
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  /* fade the hero's light into the page below */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 200px;
  background: linear-gradient(180deg, transparent, var(--void));
  pointer-events: none;
  z-index: 1;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  text-align: center;
  width: 100%;
  max-width: 980px;
}
.hero-well {
  width: 100%;
  /* what the screen has left after the nav, the wordmark, the copy, the buttons and the rail (about 470px) */
  height: clamp(90px, min(40vh, 64vw, 100vh - 470px), 420px);
  height: clamp(90px, min(40svh, 64vw, 100svh - 470px), 420px);
  flex: none;
  pointer-events: none;
}
.wordmark {
  margin-top: clamp(4px, 1.6vh, 18px);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, min(8.4vw, 11vh), 112px);
  line-height: 1;
  letter-spacing: 0.15em;
  margin-right: -0.15em; /* balance the trailing letter-spacing */
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 8%, #e3e9ff 42%, #9dadff 74%, #6a55ff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(79, 110, 255, 0.35)) drop-shadow(0 0 2px rgba(200, 215, 255, 0.4));
}
.wordmark .wm-o-svg { width: 0.9em; height: 0.9em; margin-right: 0.15em; vertical-align: 0; }
.tagline {
  margin-top: clamp(10px, 2vh, 26px);
  font-family: var(--f-body);
  font-size: clamp(11px, 1.35vw, 15px);
  font-weight: 400;
  letter-spacing: 0.48em;
  margin-right: -0.48em;
  text-transform: uppercase;
  color: #c7d0f2;
}
.hero-copy {
  margin-top: clamp(12px, 2.4vh, 30px);
  max-width: 600px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 300;
}
.cta-row {
  margin-top: clamp(16px, 3.2vh, 38px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-rail {
  position: relative;
  z-index: 2;
  flex: none;
  width: min(100%, var(--maxw));
  margin-top: clamp(14px, 2.4vh, 28px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
}
.hero-rail > div { padding: 0 16px; border-left: 1px solid var(--line); }
.hero-rail > div:first-child { border-left: 0; padding-left: 0; }
.hero-rail dt {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero-rail dd { font-size: 13px; color: var(--ink); margin-top: 4px; }

@media (max-width: 760px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; padding-bottom: 40px; }
  .hero-inner { flex: none; }
  .hero-well { height: clamp(160px, min(40vh, 64vw), 420px); height: clamp(160px, min(40svh, 64vw), 420px); }
  .hero-rail {
    width: 100%;
    margin-top: 48px;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
    z-index: 2;
  }
  .hero-rail > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .tagline { letter-spacing: 0.3em; margin-right: -0.3em; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

/* The space above a section is margin, not padding: a nav link scrolls to the section's top edge, so its heading
   lands just under the nav instead of a padding's height further down. */
.section {
  position: relative;
  margin-top: clamp(96px, 14vw, 180px);
}
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  flex-wrap: wrap;                 /* a long one ("Agent → market → execution") wraps on a phone, never widens the page */
  align-items: center;
  gap: 8px 14px;
  max-width: 100%;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}
@media (max-width: 420px) { .eyebrow { gap: 8px 10px; letter-spacing: 0.16em; } }
.eyebrow-idx {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cyan);
}
.eyebrow-idx::after {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}
.eyebrow .arrow { color: var(--blue-hi); letter-spacing: 0; }

.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3.9vw, 50px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #dde4ff 55%, #a6b3f2 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.lede {
  margin-top: 22px;
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 300;
  max-width: 640px;
  text-wrap: pretty;
}

/* Glass panels */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, var(--glass-hi), transparent 40%),
    var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.panel::before {
  /* a hairline of light along the top edge, like a rim lit by the core */
  content: "";
  position: absolute;
  left: 12%; right: 12%; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 180, 255, 0.45), transparent);
  pointer-events: none;
}
.panel-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* --------------------------------------------------------------------------
   01 The agent economy
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split-visual { overflow: hidden; }
.economy-canvas { width: 100%; aspect-ratio: 1 / 0.84; }

.tenets { margin-top: 40px; display: grid; gap: 4px; }
.tenets li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.tenets li:last-child { border-bottom: 1px solid var(--line); }
.tenet-idx {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding-top: 3px;
}
.tenets h3 {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.tenets p { margin-top: 8px; color: var(--ink-2); font-size: 15px; font-weight: 300; }

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

/* --------------------------------------------------------------------------
   02 Liquidity gravity
   -------------------------------------------------------------------------- */

.gravity-stage { overflow: hidden; }
.gravity-canvas { width: 100%; height: clamp(380px, 46vw, 560px); }
.gravity-labels { position: absolute; inset: 0; pointer-events: none; }
.g-label {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.g-label b { font-weight: 500; color: var(--ink); }
.g-label span { color: var(--ink-3); font-size: 10px; letter-spacing: 0.12em; }
.g-label.out { align-items: flex-end; text-align: right; transform: translate(-100%, -50%); }
.g-label.ref b { color: var(--ink-2); }
@media (max-width: 600px) { .g-label span { display: none; } }

.routes { margin-top: 18px; overflow: hidden; }
.routes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.routes-title { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.routes-note { font-size: 11.5px; letter-spacing: 0.06em; }
.table-scroll { overflow-x: auto; }
.routes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.routes-table th {
  text-align: left;
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.routes-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.routes-table tr:last-child td { border-bottom: 0; }
.routes-table .num { text-align: right; }
.routes-table td.sym { color: var(--ink); font-weight: 500; }
.routes-table .venue { display: inline-flex; align-items: center; gap: 8px; }
.venue-dot { width: 6px; height: 6px; border-radius: 50%; }
.v3 { background: var(--cyan); box-shadow: 0 0 8px rgba(111, 231, 255, .7); }
.v4 { background: var(--blue-hi); box-shadow: 0 0 8px rgba(109, 147, 255, .7); }
.curve { background: var(--violet); box-shadow: 0 0 8px rgba(138, 92, 255, .7); }
.good { color: var(--up); }
.bad { color: var(--down); }
.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 0% { color: #fff; text-shadow: 0 0 12px rgba(111, 231, 255, .8); } 100% { text-shadow: none; } }

/* --------------------------------------------------------------------------
   03 The loop
   -------------------------------------------------------------------------- */

.loop {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: stretch;
}
.loop-visual {
  display: flex; align-items: center; justify-content: center;
  padding: 12px; overflow: hidden;
  align-self: start;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.loop-svg { width: 100%; height: auto; overflow: visible; }
.loop-path { fill: none; stroke: url(#loop-line); stroke-width: 1.2; }
.loop-path-inner { stroke: rgba(150, 170, 255, 0.12); stroke-width: 1; stroke-dasharray: 2 6; }
.loop-ticks line { stroke: rgba(150, 170, 255, 0.18); stroke-width: 1; }
.loop-core-label { font-family: var(--f-display); font-size: 10px; letter-spacing: 0.3em; fill: var(--ink-2); }
.loop-node circle.ring { fill: rgba(5, 7, 22, 0.9); stroke: rgba(150, 170, 255, 0.35); stroke-width: 1; transition: stroke .6s var(--ease), r .6s var(--ease); }
.loop-node circle.dot { fill: var(--ink-3); transition: fill .6s var(--ease); }
.loop-node text { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; fill: var(--ink-3); transition: fill .6s var(--ease); }
.loop-node text.idx { font-size: 10px; fill: var(--ink-4); }
.loop-node.active circle.ring { stroke: var(--cyan); }
.loop-node.active circle.dot { fill: #fff; }
.loop-node.active text { fill: var(--ink); }
.loop-node.active text.idx { fill: var(--cyan); }

.loop-steps { display: grid; gap: 6px; align-content: start; }
.loop-steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color .7s var(--ease), border-color .7s var(--ease), opacity .7s var(--ease);
  opacity: .55;
  cursor: pointer;
}
.loop-steps li:hover { opacity: .85; }
.loop-steps li.active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(61, 107, 255, 0.10), rgba(61, 107, 255, 0.02));
  border-color: var(--line-2);
}
.step-idx { font-size: 12px; color: var(--cyan); padding-top: 2px; letter-spacing: 0.08em; }
.loop-steps h3 { font-family: var(--f-display); font-size: 14px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.loop-steps p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); font-weight: 300; }
.loop-steps .step-meta { margin-top: 10px; font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.loop-steps li.active .step-meta { color: var(--cyan); }

@media (max-width: 900px) {
  .loop { grid-template-columns: 1fr; }
  .loop-visual { position: relative; top: 0; }
}
@media (max-width: 600px) {
  .loop-node text { font-size: 19px; letter-spacing: 0.1em; }
  .loop-node text.idx { font-size: 16px; }
  .loop-core-label { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   04 Live telemetry
   -------------------------------------------------------------------------- */

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(10, 14, 36, 0.4);
  max-width: 100%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat { padding: 22px 24px 20px; overflow: hidden; }
.stat-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.stat-value {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-weight: 400;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(109, 147, 255, 0.25);
}
.stat-value .unit { font-size: 0.42em; color: var(--ink-3); margin-left: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.stat-sub { margin-top: 10px; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.board { margin-top: 14px; overflow: hidden; }
.board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.board-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tick { padding: 18px 20px 16px; border-left: 1px solid var(--line); min-width: 0; }
.tick:first-child { border-left: 0; }
.tick-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tick-sym { font-family: var(--f-mono); font-size: 13px; color: var(--ink); letter-spacing: 0.06em; }
.tick-src { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; }
.tick-px { margin-top: 8px; font-family: var(--f-mono); font-size: 19px; color: var(--ink); white-space: nowrap; }
.tick-spark { margin-top: 10px; width: 100%; height: 34px; }
.tick-meta { margin-top: 6px; font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 6px; }

@media (max-width: 1000px) {
  .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tick { border-top: 1px solid var(--line); }
  .tick:nth-child(odd) { border-left: 0; }
  .tick:nth-child(-n+2) { border-top: 0; }
}

/* --------------------------------------------------------------------------
   05 Activity
   -------------------------------------------------------------------------- */

.activity {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 14px;
}
.activity-visual { overflow: hidden; }
.activity-canvas { width: 100%; height: clamp(360px, 36vw, 480px); }
.activity-labels { position: absolute; inset: 0; pointer-events: none; }
.a-label {
  position: absolute;
  transform: translateY(-50%);
  text-shadow: 0 0 8px var(--void), 0 0 2px var(--void);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.a-label.right { transform: translate(-100%, -50%); text-align: right; }
.a-label b { display: block; font-weight: 500; color: var(--ink-2); }

.feed { display: flex; flex-direction: column; min-height: 0; }
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.feed-head > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.feed-list {
  flex: 1;
  overflow: hidden;
  padding: 6px 0;
  max-height: 400px;
  -webkit-mask: linear-gradient(180deg, #000 75%, transparent);
          mask: linear-gradient(180deg, #000 75%, transparent);
}
.feed-list li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 4px 10px;
  padding: 10px 20px;
  font-size: 12px;
  border-bottom: 1px solid rgba(150, 170, 255, 0.05);
  animation: emerge 1.2s var(--ease-slow) both;
}
.feed-list .t { color: var(--ink-4); }
.feed-list .pair { color: var(--ink); }
.feed-list .side { font-size: 10px; letter-spacing: 0.14em; margin-right: 6px; }
.feed-list .side.buy { color: var(--cyan); }
.feed-list .side.sell { color: #b9a2ff; }
.feed-list .bps { text-align: right; }
.feed-list .route { grid-column: 2 / 4; color: var(--ink-3); font-size: 11px; }
.feed-note { padding: 14px 20px 18px; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); }
@keyframes emerge { from { opacity: 0; filter: blur(6px); transform: translateY(-6px); } to { opacity: 1; filter: none; transform: none; } }

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

/* --------------------------------------------------------------------------
   06 Built for autonomous markets
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  padding: 26px 24px 28px;
  transition: border-color .6s var(--ease), transform .6s var(--ease), background-color .6s var(--ease);
  overflow: hidden;
}
.feature::after {
  /* the card's own faint orbit, revealed on hover */
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -120px; top: -120px;
  border-radius: 50%;
  border: 1px solid rgba(150, 170, 255, 0.08);
  box-shadow: 0 0 0 28px rgba(150, 170, 255, 0.015), 0 0 0 56px rgba(150, 170, 255, 0.012);
  transition: transform 1.2s var(--ease-slow), border-color .8s var(--ease);
  pointer-events: none;
}
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature:hover::after { transform: scale(1.12) rotate(20deg); border-color: rgba(111, 231, 255, 0.2); }
.feature-icon {
  width: 40px; height: 40px;
  fill: none;
  stroke: #b9c8ff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(109, 147, 255, 0.55));
}
.feature-icon .dim { stroke: rgba(150, 170, 255, 0.35); }
.feature-icon .fill { fill: var(--cyan); stroke: none; }
.feature-idx { margin-top: 26px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.soon {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: #c9b8ff;
  padding: 3px 8px;
  border: 1px solid rgba(138, 92, 255, 0.4);
  border-radius: 999px;
  background: rgba(138, 92, 255, 0.08);
}
.feature h3 { margin-top: 10px; font-family: var(--f-display); font-size: 14.5px; font-weight: 400; line-height: 1.45; letter-spacing: 0.04em; color: var(--ink); }
.feature p:last-child { margin-top: 10px; font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.65; }

@media (max-width: 1080px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   07 Finale
   -------------------------------------------------------------------------- */

.finale {
  --scene-w: min(1560px, 150vw);
  position: relative;
  margin-top: clamp(80px, 12vw, 160px);
  padding: 0 var(--gutter) clamp(90px, 10vw, 130px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* The brand's black hole, full strength, fading into the page at every edge. */
.finale-scene {
  position: relative;
  flex: none;
  width: var(--scene-w);
  aspect-ratio: 1580 / 676;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 56%, transparent 97%),
    linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, transparent 0%, #000 16%, #000 56%, transparent 97%),
    linear-gradient(90deg, transparent 0%, #000 17%, #000 83%, transparent 100%);
          mask-composite: intersect;
}
.finale-zoom {
  position: absolute;
  inset: 0;
  transform-origin: 51.7% 43%;
  animation: finale-drift 38s ease-in-out infinite alternate;
}
.finale-img {
  position: absolute;
  inset: 0;
  background: url("/brand/horizon-2x.jpg") center / 100% 100% no-repeat;
  filter: saturate(112%) contrast(104%);
}
.finale-dust { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes finale-drift {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.finale-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  /* overlap the lower, fading part of the scene */
  margin-top: calc(var(--scene-w) * -0.115);
}
.finale-inner::before {
  /* a soft shadow behind the words so they read over the disk */
  content: "";
  position: absolute;
  inset: -12% -18% -8%;
  background: radial-gradient(closest-side, rgba(2, 3, 9, 0.72), rgba(2, 3, 9, 0.35) 60%, transparent);
  z-index: -1;
  pointer-events: none;
}
.finale-title { text-shadow: 0 2px 28px rgba(2, 3, 9, 0.85); }
.finale-lede { margin-left: auto; margin-right: auto; color: #c3cae4; }

@media (max-width: 760px) {
  .finale { --scene-w: 170vw; }
  .finale-inner { margin-top: calc(var(--scene-w) * -0.06); }
}
@media (prefers-reduced-motion: reduce) {
  .finale-zoom { animation: none; }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 52px;
  background: linear-gradient(180deg, rgba(5, 7, 22, 0.6), var(--void));
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px 40px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-mark { width: 44px; height: 44px; overflow: visible; }
.footer-word {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.2em;
  background: linear-gradient(180deg, #ffffff 10%, #c9d3ff 60%, #8d9dff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  display: inline-flex;
  align-items: center;
}
.footer-word .wm-o-svg { margin-right: 0.2em; vertical-align: 0; }
.footer-tag { margin-top: 6px; font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-links a { color: var(--ink-2); transition: color .3s var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 22px; }
.footer-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--ink); }

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Reveal: things emerge from the dark as they come into view
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-slow), filter 1.4s var(--ease-slow), transform 1.4s var(--ease-slow);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; filter: none; transform: none; transition: none; }
  .btn-primary::after, .pulse::after { animation: none; }
  .feed-list li { animation: none; }
}
