:root {
  color-scheme: dark;
  --bg: #020303;
  --bg-soft: #060807;
  --ink: #f4f2ec;
  --muted: rgba(244, 242, 236, 0.68);
  --dim: rgba(244, 242, 236, 0.38);
  --line: rgba(244, 242, 236, 0.2);
  --line-strong: rgba(244, 242, 236, 0.42);
  --green: #39d83e;
  --green-deep: #169a31;
  --red: #fb2828;
  --orange: #f47b29;
  --panel: rgba(255, 255, 255, 0.055);
  --plane-left: 55.5%;
  --edge-pad: 2rem;
  --font-main: "Questrial", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 255, 255, 0.045), transparent 42%),
    linear-gradient(180deg, #000 0%, var(--bg-soft) 52%, #000 100%);
  font-family: var(--font-main);
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  background: #000;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(20rem, 0.82fr) minmax(34rem, 1.18fr);
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  overflow: hidden;
  padding: 2rem var(--edge-pad) 2.4rem;
  background: #000;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.035) 50%, transparent 100%);
  background-size: 32px 32px, 32px 32px, 100% 3px;
  opacity: 0.28;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 18%, transparent 76%, rgba(0, 0, 0, 0.5)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), transparent 24%, transparent 72%, rgba(0, 0, 0, 0.78));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-nav {
  position: relative;
  z-index: 5;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
}

.brand-art {
  display: inline-flex;
  align-items: center;
  width: 8.75rem;
  height: auto;
  overflow: visible;
}

.brand-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(244, 242, 236, 0.16));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.7rem;
  color: rgba(244, 242, 236, 0.62);
  font-size: 0.82rem;
}

.nav-links a {
  transition: color 180ms ease, text-shadow 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  text-shadow: 0 0 14px rgba(57, 216, 62, 0.32);
}

.button {
  --button-bg: rgba(255, 255, 255, 0.035);
  --button-fg: var(--ink);
  --button-border: rgba(244, 242, 236, 0.48);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0 1.35rem;
  border: 1px solid var(--button-border);
  border-radius: 0;
  color: var(--button-fg);
  background: var(--button-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02), 0 0 0 rgba(57, 216, 62, 0);
  font-family: var(--font-main);
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  --button-bg: var(--green);
  --button-fg: #030503;
  --button-border: var(--green);
  box-shadow: 0 0 28px rgba(57, 216, 62, 0.28);
  transform: translateY(-1px);
}

.button:active {
  --button-bg: var(--orange);
  --button-fg: #050302;
  --button-border: var(--orange);
  box-shadow: 0 0 26px rgba(244, 123, 41, 0.28);
  transform: translateY(0);
}

.nav-cta {
  min-width: 9.2rem;
}

.hero-content {
  position: relative;
  z-index: 4;
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  max-width: 33rem;
  padding-top: 5rem;
}

.brand-kicker {
  margin: 0 0 1rem;
  color: rgba(244, 242, 236, 0.58);
  font-size: 0.78rem;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: 3.85rem;
  line-height: 1.08;
}

.title-plate {
  display: inline;
  padding: 0.04em 0.16em 0.08em;
  background: rgba(0, 0, 0, 0.5);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 0 22px rgba(244, 242, 236, 0.18);
}

.hero-copy {
  max-width: 30rem;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.button-primary {
  --button-bg: var(--green);
  --button-fg: #020302;
  --button-border: rgba(244, 242, 236, 0.1);
  border-radius: 0;
  min-width: 11.4rem;
  background:
    linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%) left center / 100% 100% no-repeat,
    var(--button-bg);
  box-shadow: 0 0 30px rgba(69, 200, 90, 0.2), 0 0 24px rgba(244, 123, 41, 0.13);
  overflow: hidden;
  transition:
    background-size 620ms cubic-bezier(0.2, 0.85, 0.22, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible,
.button-primary:active {
  --button-bg: var(--green);
  --button-fg: #020302;
  --button-border: var(--green);
  background-size: 0% 100%, 100% 100%;
  box-shadow: 0 0 24px rgba(57, 216, 62, 0.28);
}

.button-secondary {
  --button-bg: transparent;
  --button-border: rgba(244, 242, 236, 0.2);
  min-width: 12.7rem;
  background:
    linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%) left center / 0% 100% no-repeat,
    var(--button-bg);
  overflow: hidden;
  transition:
    background-size 620ms cubic-bezier(0.2, 0.85, 0.22, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-secondary:active,
.button-secondary.is-gradient-locked {
  --button-bg: transparent;
  --button-fg: #020302;
  --button-border: rgba(244, 242, 236, 0.1);
  background-size: 100% 100%, 100% 100%;
  box-shadow: 0 0 30px rgba(69, 200, 90, 0.2), 0 0 24px rgba(244, 123, 41, 0.13);
}

.visual-field,
.glyph-cloud,
.candle-layer,
.particle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.visual-field {
  z-index: 1;
  overflow: hidden;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-spine {
  position: absolute;
  z-index: 6;
  top: 14%;
  bottom: 13%;
  left: var(--plane-left);
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 7%,
    #fff 50%,
    rgba(255, 255, 255, 0.95) 93%,
    transparent 100%
  );
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.68),
    0 0 22px rgba(255, 255, 255, 0.28),
    0 0 40px rgba(244, 242, 236, 0.13);
  pointer-events: none;
}

.glyph-cloud {
  z-index: 1;
  opacity: 0.82;
  overflow: hidden;
  clip-path: polygon(0 0, calc(var(--plane-left) - 2px) 0, calc(var(--plane-left) - 2px) 100%, 0 100%);
  mask-image: none;
}

.glyph {
  position: absolute;
  color: rgba(244, 242, 236, 0.34);
  font-family: "Courier New", monospace;
  font-size: 0.66rem;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 12px currentColor;
  white-space: nowrap;
  will-change: transform, opacity;
}

.glyph.numeric {
  color: rgba(244, 242, 236, 0.5);
}

.glyph.field {
  color: rgba(244, 242, 236, 0.38);
  text-transform: lowercase;
}

.glyph.symbol {
  color: rgba(244, 242, 236, 0.56);
}

.glyph.bid,
.glyph.buy,
.glyph.positive {
  color: rgba(57, 216, 62, 0.52);
}

.glyph.ask,
.glyph.sell,
.glyph.liquidation {
  color: rgba(251, 40, 40, 0.5);
}

.glyph.source {
  color: rgba(244, 123, 41, 0.46);
}

.glyph.packet {
  z-index: 3;
  font-size: 0.62rem;
  opacity: 0;
  text-shadow:
    0 0 10px currentColor,
    0 0 22px rgba(244, 242, 236, 0.08);
}

.candle-layer {
  z-index: 2;
  transform-style: preserve-3d;
  clip-path: polygon(0 0, calc(var(--plane-left) - 2px) 0, calc(var(--plane-left) - 2px) 100%, 0 100%);
}

.candle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0.78rem;
  height: auto;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform-origin: 50% 50%;
}

.meridian-plane {
  position: absolute;
  z-index: 7;
  left: var(--plane-left);
  top: 14%;
  bottom: 13%;
  width: 4px;
  transform: translateX(-50%);
}

.plane-core,
.plane-halo,
.plane-crossbeam,
.plane-scan {
  position: absolute;
}

.plane-core,
.plane-halo,
.plane-scan {
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
}

.plane-core {
  z-index: 4;
  width: 2px;
  display: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.94) 7%, #fff 50%, rgba(255, 255, 255, 0.94) 93%, transparent 100%);
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.68),
    0 0 22px rgba(255, 255, 255, 0.26),
    0 0 38px rgba(244, 242, 236, 0.12);
  opacity: 1;
}

.plane-halo {
  z-index: 1;
  width: 3.4rem;
  opacity: 0.42;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), transparent 66%);
  filter: blur(15px);
}

.plane-crossbeam {
  z-index: 5;
  top: 50%;
  left: calc(-1 * clamp(4rem, 5.2vw, 6.8rem));
  width: clamp(7.8rem, 10.6vw, 13.2rem);
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(57, 216, 62, 0.06) 14%,
    rgba(57, 216, 62, 0.5) 44%,
    rgba(244, 242, 236, 0.28) 58%,
    rgba(57, 216, 62, 0.1) 74%,
    transparent 100%
  );
  box-shadow:
    0 0 16px rgba(57, 216, 62, 0.32),
    0 0 34px rgba(57, 216, 62, 0.12);
  opacity: 0.86;
  pointer-events: none;
}

.plane-scan {
  display: none;
}

.window-plane-shape {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: clamp(4.1rem, 4.6vw, 5rem);
  height: auto;
  display: none;
  transform: translate(0, -50%);
  opacity: 0.88;
  filter: none;
  clip-path: inset(0 100% 0 0);
  animation: window-plane-file-in 1.35s 0.58s cubic-bezier(0.18, 0.82, 0.22, 1) forwards;
  pointer-events: none;
  user-select: none;
}

.plane-letter-m {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: clamp(1.1rem, 1.25vw, 1.35rem);
  transform: translateY(-48%);
  color: rgba(255, 255, 255, 0.96);
  font-family: "Questrial", "Helvetica Neue", Arial, sans-serif !important;
  font-size: clamp(1.72rem, 1.84vw, 2.08rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.92;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.48),
    0 0 22px rgba(244, 242, 236, 0.2),
    0 0 42px rgba(244, 242, 236, 0.11);
  pointer-events: none;
  user-select: none;
  transform-origin: 50% 52%;
}

.plane-scan-a {
  animation: plane-scan 4.4s linear infinite;
}

.plane-scan-b {
  animation: plane-scan 5.7s linear 1.8s infinite;
}

.plane-flare,
.plane-ripple {
  position: absolute;
  left: 50%;
  pointer-events: none;
}

.plane-flare {
  --flare-color: rgba(244, 242, 236, 0.42);
  width: 5.6rem;
  height: 1px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--flare-color), transparent);
  box-shadow: none;
}

.plane-ripple {
  width: 1px;
  height: 10%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(244, 242, 236, 0.42), transparent);
  box-shadow: none;
}

@keyframes plane-scan {
  0% {
    top: 0%;
    opacity: 0;
  }
  14% {
    opacity: 0.75;
  }
  72% {
    opacity: 0.42;
  }
  100% {
    top: 82%;
    opacity: 0;
  }
}

@keyframes meridian-plane-glow {
  0%,
  100% {
    opacity: 0.82;
    filter:
      brightness(1.28)
      drop-shadow(0 0 7px rgba(244, 242, 236, 0.28))
      drop-shadow(0 0 23px rgba(244, 242, 236, 0.13));
  }

  48% {
    opacity: 0.98;
    filter:
      brightness(1.5)
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.42))
      drop-shadow(0 0 34px rgba(244, 242, 236, 0.2));
  }
}

@keyframes window-plane-file-in {
  0% {
    clip-path: inset(0 100% 0 0);
  }

  42% {
    clip-path: inset(0 0 44% 0);
  }

  100% {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes meridian-ascii-bleed {
  0%,
  100% {
    color: rgba(244, 242, 236, 0.28);
    text-shadow: 0 0 12px rgba(244, 242, 236, 0.08);
  }

  45% {
    color: rgba(244, 242, 236, 0.42);
    text-shadow: 0 0 20px rgba(244, 242, 236, 0.12);
  }
}

.particle-layer {
  z-index: 5;
}

.connector-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.connector-path {
  fill: none;
  stroke-width: 1.15;
  stroke-linejoin: miter;
  stroke-linecap: round;
  opacity: 0;
  filter:
    drop-shadow(0 0 4px rgba(244, 242, 236, 0.22))
    drop-shadow(0 0 10px rgba(255, 255, 255, 0.08));
  transition: filter 260ms ease;
  will-change: opacity, stroke-width, filter;
}

.connector-feather {
  fill: none;
  stroke-width: 3.4;
  stroke-linejoin: miter;
  stroke-linecap: round;
  opacity: 0;
  filter: blur(1.25px);
  will-change: opacity, stroke-width;
}

.connector-path.is-traveling {
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.96))
    drop-shadow(0 0 11px rgba(255, 255, 255, 0.44))
    drop-shadow(0 0 24px rgba(244, 242, 236, 0.22));
}

.connector-path.accent.is-traveling {
  filter:
    drop-shadow(0 0 3px rgba(255, 255, 255, 0.98))
    drop-shadow(0 0 13px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 28px rgba(244, 242, 236, 0.24));
}

.connector-micro-arc {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter:
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.8))
    drop-shadow(0 0 12px rgba(244, 242, 236, 0.3));
  pointer-events: none;
}

.particle {
  position: absolute;
  display: grid;
  place-items: center;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  color: rgba(244, 242, 236, 0.78);
  font-family: "Courier New", monospace;
  font-size: 0.54rem;
  line-height: 1;
  opacity: 0;
  will-change: transform, opacity;
}

.particle.dot {
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.particle.token {
  width: 0.56rem;
  height: 0.56rem;
  border: 1px solid currentColor;
  background: currentColor;
  box-shadow: 0 0 18px currentColor, 0 0 44px rgba(57, 216, 62, 0.18);
}

.particle.spark {
  width: 0.26rem;
  height: 0.26rem;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.particle.fragment {
  width: 0.34rem;
  height: 0.34rem;
  background: currentColor;
  box-shadow: 0 0 12px currentColor, 0 0 30px rgba(57, 216, 62, 0.14);
}

.particle.connector-pulse {
  width: 0.34rem;
  height: 0.34rem;
  background: currentColor;
  box-shadow:
    0 0 8px currentColor,
    0 0 18px rgba(255, 255, 255, 0.58),
    0 0 32px rgba(244, 242, 236, 0.2);
}

.particle.energy-spark {
  width: 0.22rem;
  height: 0.22rem;
  background: currentColor;
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.92),
    0 0 20px rgba(244, 242, 236, 0.34);
}

.particle.ring {
  border: 1px solid currentColor;
  background: transparent;
}

.particle.ascii {
  background: transparent;
  border: 0;
}

.output-panel {
  position: relative;
  z-index: 4;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  width: min(34rem, 42vw);
  margin-right: clamp(8rem, 12vw, 15rem);
  padding-top: 4.8rem;
}

.output-list {
  display: grid;
  gap: 0.82rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.output-row {
  --row-glow: rgba(57, 216, 62, 0);
  --circle-radius: 0.18rem;
  --circle-gap-to-pill: clamp(1.45rem, 1.55vw, 1.9rem);
  display: grid;
  grid-template-columns: clamp(5rem, 7.4vw, 8.7rem) calc(var(--circle-radius) * 2) max-content;
  justify-content: end;
  align-items: center;
  column-gap: var(--circle-gap-to-pill);
  min-height: 2.1rem;
  opacity: 0;
  transform: translateX(0);
}

html.no-gsap .output-row {
  opacity: 0.72;
}

html.no-gsap .output-pill-label {
  opacity: 1;
}

/* Retained as a grid spacer; the visible parallel tracks are drawn in SVG. */
.stream-line {
  display: block;
  width: 100%;
  height: 1px;
  opacity: 0;
  background: none;
  box-shadow: none;
}

.stream-node {
  position: relative;
  z-index: 2;
  width: calc(var(--circle-radius) * 2);
  height: calc(var(--circle-radius) * 2);
  border-radius: 999px;
  opacity: 0.52;
  transform: scale(1);
  background: rgba(244, 242, 236, 0.64);
  box-shadow: 0 0 13px var(--row-glow);
}

.output-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(8.55rem, 7.15vw, 9.1rem);
  min-width: 0;
  min-height: 2rem;
  padding: 0.18rem 0.7rem;
  border: 1px solid rgba(244, 242, 236, 0.24);
  border-radius: 999px;
  color: rgba(244, 242, 236, 0.96);
  isolation: isolate;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015), 0 0 0 rgba(57, 216, 62, 0);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
  transition: border-color 260ms ease;
}

/* Gradient activation ring — same ramp as the View Documentation hover.
   Sits one step thicker (2px) than the resting 1px border. */
.output-pill::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(245, 203, 67, 0.4)) drop-shadow(0 0 14px rgba(69, 200, 90, 0.22));
  transition: opacity 320ms ease;
  pointer-events: none;
}

.output-pill-label {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(244, 242, 236, 0.16);
  transition: color 260ms ease, text-shadow 260ms ease;
  will-change: transform, opacity;
}

.output-row.is-live {
  --row-glow: rgba(57, 216, 62, 0.44);
}

.output-row.has-memory {
  opacity: 0.8;
}

.output-row.is-live .output-pill {
  border-color: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(57, 216, 62, 0.08), 0 0 24px rgba(57, 216, 62, 0.13);
}

.output-row.is-live .output-pill::before {
  opacity: 1;
}

.output-row.is-live .output-pill-label {
  color: #fff;
  text-shadow:
    0 0 9px rgba(255, 255, 255, 0.85),
    0 0 22px rgba(255, 255, 255, 0.35),
    0 0 40px rgba(244, 242, 236, 0.18);
}

@media (max-width: 1160px) {
  :root {
    --plane-left: 52%;
  }

  .hero {
    grid-template-columns: minmax(18rem, 0.86fr) minmax(27rem, 1.14fr);
  }

  h1 {
    font-size: 3.05rem;
  }

  .output-panel {
    width: min(30rem, 45vw);
    margin-right: clamp(4.5rem, 8vw, 8rem);
  }

  .nav-links {
    gap: 1.65rem;
  }
}

@media (max-width: 880px) {
  :root {
    --plane-left: 50%;
    --edge-pad: 1.1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 1.8rem;
    min-height: 100svh;
    padding-top: 1.2rem;
  }

  .hero-nav {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-art {
    width: 6.9rem;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    min-width: 7.8rem;
    padding: 0 0.9rem;
  }

  .hero-content {
    grid-column: 1;
    grid-row: 2;
    max-width: 34rem;
    padding-top: 2rem;
  }

  h1 {
    font-size: 2.45rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .output-panel {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    align-self: start;
    width: 100%;
    margin-right: 0;
    padding-top: 0.5rem;
  }

  .output-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .output-row {
    display: block;
    min-height: auto;
  }

  .stream-line,
  .stream-node {
    display: none;
  }

  .connector-layer {
    display: none;
  }

  .output-pill {
    width: 100%;
    min-width: 0;
    min-height: 2.2rem;
    font-size: 0.72rem;
  }

  .meridian-plane {
    top: 15%;
    bottom: 28%;
  }

  .window-plane-shape {
    width: clamp(3.45rem, 8vw, 4.1rem);
  }

  .plane-letter-m {
    left: clamp(1rem, 2.7vw, 1.35rem);
    font-size: clamp(1.44rem, 3.92vw, 1.84rem);
    opacity: 0.82;
  }
}

@media (max-width: 580px) {
  .hero {
    padding-bottom: 1.3rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .button-secondary {
    --button-bg: rgba(0, 0, 0, 0.58);
  }

  .meridian-plane {
    opacity: 0.52;
  }

  .window-plane-shape {
    width: 3.2rem;
  }

  .plane-letter-m {
    left: 0.88rem;
    opacity: 0.74;
    transform: translateY(-48%) scale(0.66);
    transform-origin: left center;
  }

  .output-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after {
    scroll-behavior: auto !important;
  }
}

/* ---- Mobile condensed conversion band (≤880px only; desktop untouched) ----
   The full-hero scene collapses into a short horizontal window between the
   copy and the pill grid: candles stream into the M at its right edge, and
   commits hop sparks down to the pills instead of drawing connectors. */
.conversion-band {
  display: none;
}

.market-ticker,
.product-section,
.final-cta,
.site-footer {
  position: relative;
  z-index: 1;
  background: #000;
}

.market-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(244, 242, 236, 0.08);
  border-bottom: 1px solid rgba(244, 242, 236, 0.08);
  background:
    linear-gradient(90deg, #000 0%, transparent 14%, transparent 86%, #000 100%),
    rgba(255, 255, 255, 0.018);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-drift 52s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.8rem;
  padding: 0 1.65rem;
  border-right: 1px solid rgba(244, 242, 236, 0.08);
  color: rgba(244, 242, 236, 0.58);
  font-size: 0.76rem;
  white-space: nowrap;
}

.ticker-track b,
.ticker-track strong {
  color: rgba(244, 242, 236, 0.9);
  font-weight: 400;
}

.ticker-track em {
  color: rgba(244, 242, 236, 0.34);
  font-style: normal;
}

@keyframes ticker-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.product-section {
  padding: clamp(5rem, 8vw, 7.4rem) var(--edge-pad);
  border-bottom: 1px solid rgba(244, 242, 236, 0.08);
}

.anchor-offset {
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.section-wrap {
  width: min(100%, 74rem);
  margin: 0 auto;
}

.section-head {
  width: min(100%, 42rem);
  margin: 0 0 clamp(2.4rem, 5vw, 3.5rem);
}

.section-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(245, 203, 67, 0.1);
}

.section-head h2,
.final-cta h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head p,
.final-cta p,
.site-footer p {
  color: var(--muted);
  line-height: 1.65;
}

.section-head p {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.coverage-grid,
.quality-grid,
.developer-grid,
.bar-grid,
.pricing-grid,
.endpoint-grid {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(244, 242, 236, 0.1);
  background: rgba(244, 242, 236, 0.08);
}

.coverage-grid {
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
}

.coverage-card,
.quality-grid article,
.bar-grid article,
.pricing-grid article,
.endpoint-cell,
.request-panel,
.schema-table-wrap,
.code-panel,
.response-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #000;
}

.coverage-card,
.quality-grid article,
.bar-grid article,
.pricing-grid article {
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2rem);
}

.coverage-card h3,
.quality-grid h3,
.bar-grid h3,
.pricing-grid h3 {
  margin: 0;
  color: rgba(244, 242, 236, 0.88);
  font-size: 1rem;
  font-weight: 400;
}

.coverage-card h3 {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.coverage-card h3 span,
.bar-grid small,
.pricing-grid span {
  color: var(--dim);
}

.coverage-card ul,
.pricing-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.coverage-card li,
.pricing-grid li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.86rem 0;
  border-top: 1px solid rgba(244, 242, 236, 0.08);
  color: rgba(244, 242, 236, 0.54);
  font-size: 0.88rem;
}

.coverage-card li:first-child {
  border-top: 0;
}

.coverage-card li b {
  position: relative;
  color: rgba(244, 242, 236, 0.88);
  font-weight: 400;
}

.coverage-card li b::before {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.55rem;
  background: linear-gradient(90deg, #f47b29, #f5cb43 48%, #45c85a);
  box-shadow: 0 0 16px rgba(69, 200, 90, 0.2);
  vertical-align: 0.08rem;
}

.coverage-card-accent strong {
  display: block;
  margin: 0.9rem 0 0.45rem;
  width: fit-content;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(2.6rem, 5vw, 4.1rem);
  font-weight: 400;
  line-height: 0.95;
  text-shadow: 0 0 24px rgba(245, 203, 67, 0.12);
}

.coverage-card-accent p,
.quality-grid p,
.bar-grid p,
.pricing-grid p {
  margin: 0.8rem 0 0;
  color: rgba(244, 242, 236, 0.58);
  line-height: 1.58;
  font-size: 0.9rem;
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 0.22rem;
  height: 2.2rem;
  margin-top: 1.4rem;
}

.mini-bars span {
  flex: 1;
  min-width: 0.2rem;
  background: rgba(244, 242, 236, 0.24);
}

.mini-bars span:nth-child(3n) {
  height: 90%;
  background: linear-gradient(180deg, #45c85a, #f5cb43);
}

.mini-bars span:nth-child(3n + 1) { height: 44%; }
.mini-bars span:nth-child(3n + 2) { height: 68%; }

.feature-strip,
.inline-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(244, 242, 236, 0.1);
  border-top: 0;
  padding: 1.05rem 1.35rem;
  color: rgba(244, 242, 236, 0.5);
  background: #000;
}

.feature-strip span {
  color: rgba(244, 242, 236, 0.36);
}

.feature-strip b,
.inline-note b {
  color: rgba(244, 242, 236, 0.86);
  font-weight: 400;
  border: 1px solid rgba(244, 242, 236, 0.12);
  padding: 0.38rem 0.65rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  border: 1px solid rgba(244, 242, 236, 0.1);
}

.request-panel {
  padding: 1.6rem;
  border-right: 1px solid rgba(244, 242, 236, 0.1);
}

.request-panel span,
.panel-title b,
.response-head,
.data-table th {
  color: rgba(244, 242, 236, 0.38);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.request-panel span {
  display: inline-block;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.request-panel code {
  display: block;
  margin-top: 1rem;
  width: fit-content;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--font-main);
  line-height: 1.75;
  text-shadow: 0 0 22px rgba(245, 203, 67, 0.1);
}

.schema-table-wrap,
.response-panel {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.86rem 1rem;
  border-bottom: 1px solid rgba(244, 242, 236, 0.08);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  color: rgba(244, 242, 236, 0.58);
  font-size: 0.82rem;
}

.data-table td:first-child {
  color: rgba(244, 242, 236, 0.88);
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.positive {
  color: #45c85a !important;
}

.negative {
  color: #f47b29 !important;
}

.quality-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quality-grid article {
  min-height: 12rem;
}

.quality-icon-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--quality-title-width, 8rem);
  height: clamp(4.4rem, 6.2vw, 5.9rem);
  margin-bottom: 1.45rem;
  overflow: visible;
}

.quality-icon {
  display: block;
  width: auto;
  max-width: min(8.7rem, 100%);
  height: 100%;
  object-fit: contain;
  object-position: center center;
  filter:
    drop-shadow(0 0 10px rgba(244, 242, 236, 0.14))
    drop-shadow(0 0 20px rgba(69, 200, 90, 0.08));
  opacity: 0.9;
}

.quality-card-parity .quality-icon-frame {
  align-items: flex-end;
  margin-bottom: 1.05rem;
  transform: translateY(1.55rem);
}

.quality-card-stored {
  --quality-title-width: 7.2rem;
}

.quality-card-coverage {
  --quality-title-width: 9.65rem;
}

.quality-card-provenance {
  --quality-title-width: 10.75rem;
}

.quality-card-parity {
  --quality-title-width: 6.9rem;
}

.inline-note {
  margin-top: 1.3rem;
  border-top: 1px solid rgba(244, 242, 236, 0.1);
}

.inline-note b {
  border-color: rgba(69, 200, 90, 0.34);
  box-shadow: inset 0 0 18px rgba(69, 200, 90, 0.08);
}

.developer-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.panel-title,
.response-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(244, 242, 236, 0.08);
}

.panel-title span {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(244, 242, 236, 0.2);
}

.panel-title b {
  margin-left: 0.45rem;
  font-weight: 400;
}

.code-panel pre {
  margin: 0;
  padding: 1.35rem 1.45rem 1.55rem;
  overflow-x: auto;
}

.code-panel code {
  display: block;
  width: fit-content;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: var(--font-main);
  font-size: 0.86rem;
  line-height: 1.72;
  text-shadow: 0 0 22px rgba(69, 200, 90, 0.08);
}

.response-head {
  justify-content: space-between;
}

.response-head b {
  color: #45c85a;
  font-weight: 400;
}

.data-table.compact {
  min-width: 38rem;
}

.bar-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bar-grid small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
}

.bar-figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.48rem, 0.9vw, 0.78rem);
  height: 4.2rem;
  margin: 1.4rem 0 1rem;
  padding: 0 0.7rem 0.18rem;
  border-bottom: 1px solid rgba(244, 242, 236, 0.12);
  background-image:
    radial-gradient(circle, rgba(244, 242, 236, 0.45) 0 1px, transparent 1.5px),
    linear-gradient(90deg, transparent 22%, rgba(245, 203, 67, 0.42) 22% 22.5%, transparent 22.5% 54%, rgba(69, 200, 90, 0.44) 54% 54.5%, transparent 54.5% 78%, rgba(244, 123, 41, 0.42) 78% 78.5%, transparent 78.5%);
  background-size: 1.4rem 1.1rem, 100% 100%;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.bar-candle {
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: var(--h, 2.6rem);
  transform: translateY(var(--y, 0));
  filter:
    drop-shadow(0 0 7px rgba(244, 242, 236, 0.1))
    drop-shadow(0 0 14px rgba(69, 200, 90, 0.08));
}

.bar-figure.dollar {
  gap: clamp(0.28rem, 0.52vw, 0.46rem);
}

.bar-figure.volume {
  align-items: flex-end;
  background-size: 1.9rem 0.9rem, 100% 100%;
}

.bar-figure.tick {
  justify-content: space-between;
  background-size: 1rem 1.45rem, 100% 100%;
}

.bar-figure.imbalance {
  gap: clamp(0.34rem, 0.68vw, 0.58rem);
  background-size: 1.55rem 1.55rem, 100% 100%;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid article {
  display: flex;
  flex-direction: column;
}

.pricing-grid strong {
  display: block;
  margin: 1.1rem 0 0.45rem;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
}

.pricing-grid ul {
  margin: 1.3rem 0 1.6rem;
}

.pricing-grid li {
  justify-content: flex-start;
}

.pricing-grid li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: rgba(244, 242, 236, 0.54);
}

.pricing-grid .button {
  width: 100%;
  margin-top: auto;
}

.section-button:hover,
.section-button:focus-visible {
  --button-bg: transparent;
  --button-fg: var(--ink);
  --button-border: rgba(244, 242, 236, 0.7);
  box-shadow: 0 0 18px rgba(244, 242, 236, 0.08);
}

.featured-price {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(69, 200, 90, 0.22), inset 0 0 46px rgba(69, 200, 90, 0.045);
}

.featured-price::before {
  content: "RECOMMENDED";
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.42rem 0.7rem;
  color: #020302;
  background: linear-gradient(90deg, #f47b29 0%, #f5cb43 48%, #45c85a 100%);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.endpoint-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.endpoint-cell {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.9rem;
  min-height: 7.8rem;
  padding: 1.05rem;
  color: rgba(244, 242, 236, 0.64);
  font-size: 0.82rem;
  text-align: center;
}

.endpoint-cell span {
  display: block;
  color: rgba(244, 242, 236, 0.68);
  font-size: 0.84rem;
  line-height: 1.2;
}

.endpoint-icon {
  width: min(5.9rem, 78%);
  height: 4.1rem;
  overflow: visible;
  filter:
    drop-shadow(0 0 8px rgba(244, 242, 236, 0.1))
    drop-shadow(0 0 18px rgba(69, 200, 90, 0.06));
}

.endpoint-icon path,
.endpoint-icon line,
.endpoint-icon rect,
.endpoint-icon circle {
  vector-effect: non-scaling-stroke;
}

.eg-green {
  fill: none;
  stroke: #00d83f;
  stroke-width: 1.5;
}

.eg-yellow {
  fill: none;
  stroke: #f5cb43;
  stroke-width: 1.5;
}

.eg-orange {
  fill: none;
  stroke: #f47b29;
  stroke-width: 1.5;
}

.eg-white {
  fill: none;
  stroke: rgba(244, 242, 236, 0.9);
  stroke-width: 1.2;
}

.eg-dim {
  fill: none;
  stroke: rgba(244, 242, 236, 0.34);
  stroke-width: 0.9;
}

.eg-thin {
  stroke-width: 0.8;
}

.eg-dash {
  stroke-dasharray: 1.2 2.4;
}

.eg-node {
  fill: #000;
  stroke-width: 1.6;
}

.eg-fill-green {
  fill: #00d83f;
  stroke: rgba(244, 242, 236, 0.55);
  stroke-width: 0.35;
}

.eg-fill-yellow {
  fill: #f5cb43;
  stroke: rgba(244, 242, 236, 0.5);
  stroke-width: 0.35;
}

.eg-fill-orange {
  fill: #f47b29;
  stroke: rgba(244, 242, 236, 0.5);
  stroke-width: 0.35;
}

.eg-fill-white {
  fill: rgba(244, 242, 236, 0.92);
  stroke: none;
}

.final-cta {
  padding: clamp(5.5rem, 9vw, 8rem) var(--edge-pad);
  text-align: center;
}

.final-cta .section-wrap {
  width: min(100%, 44rem);
}

.final-cta h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.final-cta p {
  margin: 1.1rem auto 2rem;
  max-width: 34rem;
}

.final-cta .hero-actions {
  justify-content: center;
  padding: 0;
}

.site-footer {
  padding: 3.5rem var(--edge-pad) 2.4rem;
  border-top: 1px solid rgba(244, 242, 236, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 1.3fr) 0.7fr 0.7fr;
  gap: clamp(2rem, 6vw, 6rem);
}

.site-footer img {
  width: 8.5rem;
  display: block;
  margin-bottom: 1.1rem;
}

.site-footer p {
  max-width: 24rem;
  margin: 0;
  font-size: 0.88rem;
}

.site-footer nav {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.site-footer b {
  color: rgba(244, 242, 236, 0.36);
  font-weight: 400;
  font-size: 0.78rem;
}

.site-footer a {
  color: rgba(244, 242, 236, 0.62);
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

@media (max-width: 880px) {
  :root {
    --plane-left: 74%;
  }

  .hero {
    grid-template-rows: auto auto auto auto;
    gap: 1.4rem;
  }

  .conversion-band {
    display: block;
    position: relative;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    height: clamp(10rem, 23svh, 12.5rem);
    border-top: 1px solid rgba(244, 242, 236, 0.07);
    border-bottom: 1px solid rgba(244, 242, 236, 0.07);
  }

  .output-panel {
    grid-row: 4;
  }

  /* JS pins the plane to the band's box; these are pre-layout fallbacks. */
  .meridian-plane {
    top: 42%;
    bottom: 34%;
    opacity: 1;
  }

  .plane-letter-m {
    left: 0.55rem;
    font-size: 1.5rem;
    opacity: 0.94;
    transform: translateY(-50%);
    transform-origin: center;
  }

  .glyph {
    font-size: 0.56rem;
  }

  .glyph.packet {
    font-size: 0.54rem;
  }

  .coverage-grid,
  .developer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .quality-grid,
  .bar-grid,
  .endpoint-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .request-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 242, 236, 0.1);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .product-section {
    padding-block: 4rem;
  }

  .quality-grid,
  .bar-grid,
  .endpoint-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .inline-note {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}
