/*
 * theme.css — Pivot. A full-screen hero over a surreal cobalt/green video,
 * followed by bands taken from the same scene: paper, grass green, moon
 * lavender, night navy and telephone-box red. The page's own colours are
 * --x-* tokens, identical in both modes (the design is the scene).
 */

:root {
  --canvas: #f5f7ff;
  --surface: #ffffff;
  --surface-2: #e9edff;
  --border: #d5dbf0;
  --border-strong: #9aa6cc;
  --ink: #121212;
  --muted: #5b6070;
  --accent: #0335a0;
  --accent-hover: #022a80;
  --accent-ink: #ffffff;
  --accent-text: #0335a0;
  --accent-strong: #022a80;
  --accent-soft: #e9edff;
  --accent-border: #a9b9e8;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #dfebe3;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f2e6dd;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f2dfdf;
  --danger-strong: #b91c1c;
  --chart-1: #0335a0;
  --chart-2: #2b6124;
  --chart-3: #f41726;
  --chart-4: #9a5fb0;
  --chart-5: #1b57b9;
  --chart-6: #b88a00;

  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 900;
  --display-tracking: -0.012em;
  --eyebrow-tracking: 0.217em;
  --radius-btn: 999px;

  --x-hero: #0335a0;
  --x-white: #ffffff;
  --x-pill-ink: #121212;
  --x-btn-ink: #111111;
  --x-pill-hover: #e9edff;
  --x-btn-hover: #eef1ff;
  --x-circle: #051905;
  --x-rule: #e6e6e6;
  --x-num: #8a8a8a;
  --x-outline-hover: #f2f2f2;
  --x-shadow: #021450;
  --x-paper: #f5f7ff;
  --x-hair: #dde2f2;
  --x-muted-ink: #4b5068;
  --x-grass: #2b6124;
  --x-grass-deep: #1d4519;
  --x-lavender: #f1e4fa;
  --x-moon-pink: #e9a8de;
  --x-violet: #5b2f99;
  --x-red: #f41726;
  --x-red-deep: #c4102b;
  --x-yellow: #fdf75e;
  --x-tower: #1b57b9;
  --x-sky-2: #1248b1;
  --x-up: #12813a;
  --x-down: #c4102b;
}

html[data-theme="dark"] {
  --canvas: #06123a;
  --surface: #0b1d52;
  --surface-2: #122766;
  --border: #1e3478;
  --border-strong: #3d56a0;
  --ink: #f5f7ff;
  --muted: #a9b4d6;
  --accent: #e9edff;
  --accent-hover: #ffffff;
  --accent-ink: #0335a0;
  --accent-text: #b9c8ff;
  --accent-strong: #e9edff;
  --accent-soft: #122766;
  --accent-border: #3d56a0;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #172f22;
  --success-strong: #58a474;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #3a2517;
  --warning-strong: #ca854f;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #3b191b;
  --danger-strong: #d57575;
  --chart-1: #b9c8ff;
  --chart-2: #58a474;
  --chart-3: #f2606a;
  --chart-4: #c58ad6;
  --chart-5: #6f9bea;
  --chart-6: #e3c04a;

  --x-hero: #0335a0;
  --x-white: #ffffff;
  --x-pill-ink: #121212;
  --x-btn-ink: #111111;
  --x-pill-hover: #e9edff;
  --x-btn-hover: #eef1ff;
  --x-circle: #051905;
  --x-rule: #e6e6e6;
  --x-num: #8a8a8a;
  --x-outline-hover: #f2f2f2;
  --x-shadow: #021450;
  --x-paper: #f5f7ff;
  --x-hair: #dde2f2;
  --x-muted-ink: #4b5068;
  --x-grass: #2b6124;
  --x-grass-deep: #1d4519;
  --x-lavender: #f1e4fa;
  --x-moon-pink: #e9a8de;
  --x-violet: #5b2f99;
  --x-red: #f41726;
  --x-red-deep: #c4102b;
  --x-yellow: #fdf75e;
  --x-tower: #1b57b9;
  --x-sky-2: #1248b1;
  --x-up: #12813a;
  --x-down: #c4102b;
}

/*
 * app.css — Pivot. Hero first (all "vw" values = % of the hero width,
 * reference 1440px), then the landing-page sections below it.
 */

/* ---------- Global ---------- */
html,
body {
  margin: 0;
  padding: 0;
  background: var(--x-hero);
  -webkit-font-smoothing: antialiased;
}
html {
  scroll-behavior: smooth;
}
html.reduced-motion {
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.pivot-body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--x-white);
}
:where(.pivot-body a),
:where(.pivot-body a:hover) {
  color: var(--x-white);
  text-decoration: none;
}
button {
  font: inherit;
}
::selection {
  background: var(--x-white);
  color: var(--x-hero);
}

/* ---------- Hero container & layers ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--x-hero);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--x-hero);
  transform-origin: 62% 40%;
}
.hero-video {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  height: max(102%, 73.5vw);
  width: auto;
  aspect-ratio: 2560 / 1440;
  max-width: none;
  object-fit: cover;
  display: block;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  padding: 0 clamp(20px, 2.778vw, 64px) clamp(20px, 2.778vw, 64px);
}

/* ---------- Header ---------- */
.hero-header {
  position: relative;
  z-index: 10;
  padding-top: 16px;
  display: flex;
  align-items: center;
}
.hh-left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
}
.hh-right {
  flex: 1.3 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(10px, 1.32vw, 26px);
}

.logo {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.44vw, 9px);
  color: var(--x-white);
}
.logo-icon {
  height: clamp(19px, 1.61vw, 30px);
  width: auto;
  aspect-ratio: 20 / 24.5;
  position: relative;
  top: -0.16vw;
  margin-left: 0.19vw;
  flex: none;
}
.logo-word {
  font-weight: 700;
  font-size: clamp(17px, 1.458vw, 27px);
  letter-spacing: -0.016em;
  line-height: 1;
  position: relative;
  top: 0.1vw;
  display: flex;
  align-items: flex-start;
}
.logo-reg {
  font-size: 0.26em;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 1.84em;
}

.hh-nav {
  display: flex;
  align-items: center;
  gap: 3.02vw;
  font-size: clamp(14px, 0.972vw, 18px);
  line-height: 1;
}
.nav-link,
.signin {
  color: var(--x-white);
  transition: opacity 0.25s;
}
.nav-link:hover,
.signin:hover {
  opacity: 0.7;
}
.signin {
  font-size: clamp(14px, 1.111vw, 20px);
  line-height: 1;
  white-space: nowrap;
}

.pill {
  display: flex;
  align-items: center;
  height: clamp(40px, 3.09vw, 56px);
  padding: 0 clamp(16px, 1.64vw, 30px) 0 clamp(16px, 1.4vw, 26px);
  gap: clamp(14px, 1.48vw, 27px);
  border-radius: 999px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  font-size: clamp(14px, 1.111vw, 20px);
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.pill:hover {
  background: var(--x-pill-hover);
  color: var(--x-pill-ink);
}
.pill-arrow {
  width: 0.77em;
  height: 0.77em;
  overflow: visible;
  flex: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.pill:hover .pill-arrow,
.fn-cta:hover .pill-arrow,
.article-cta:hover .pill-arrow {
  transform: rotate(45deg);
}

/* Menu buttons (hero + floating nav) */
.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: clamp(40px, 3.09vw, 56px);
  height: clamp(40px, 3.09vw, 56px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  cursor: pointer;
  transition: background 0.25s;
}
.menu-btn:hover {
  background: var(--x-pill-hover);
}
.menu-btn svg,
.fn-menu svg {
  width: 20px;
  height: 20px;
}
[data-menu-toggle] .ic-open {
  display: none;
}
[data-menu-toggle][aria-expanded="true"] .ic-closed {
  display: none;
}
[data-menu-toggle][aria-expanded="true"] .ic-open {
  display: block;
}

/* Dropdown panel */
.menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: var(--x-white);
  color: var(--x-pill-ink);
  border-radius: 28px;
  padding: 8px 24px 24px;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--x-shadow) 35%, transparent);
  transform-origin: top right;
}
.menu-panel .menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--x-rule);
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--x-pill-ink);
  transition: color 0.25s;
}
.menu-panel .menu-link:hover {
  color: var(--x-hero);
}
.menu-num {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--x-num);
}
.menu-panel .menu-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  margin-top: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--x-pill-ink);
  font-size: 16px;
  color: var(--x-pill-ink);
  transition: background 0.25s;
}
.menu-panel .menu-signin:hover {
  background: var(--x-outline-hover);
  color: var(--x-pill-ink);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  margin: clamp(40px, 5.38vw, 104px) 0 0;
  font-size: clamp(10.5px, 1.042vw, 19px);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.42em;
  row-gap: 8px;
}
.eb-dot {
  width: 1.333em;
  height: 1.333em;
  border-radius: 50%;
  background: color-mix(in srgb, var(--x-white) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.41em;
  flex: none;
}
.eb-dot::after {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: var(--x-white);
}
.eb-word {
  display: inline-block;
  letter-spacing: 0.217em;
  position: relative;
  top: 0.13em;
}
.eb-num {
  display: inline-block;
  color: color-mix(in srgb, var(--x-white) 62%, transparent);
  letter-spacing: 0.02em;
  margin-left: 1.05em;
  position: relative;
  top: 0.13em;
}

/* ---------- Headline (hero + closing section) ---------- */
.hero-title,
.closer-title {
  font-family: "Archivo", var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  color: var(--x-white);
  font-size: max(14.74vw, min(30vw, 180px));
  line-height: 0.749;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-title {
  margin: clamp(22px, 2.7vw, 62px) 0 0 0.2vw;
}
.hl-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.05em;
  margin: -0.06em -0.05em;
  white-space: nowrap;
  letter-spacing: -0.012em;
  transform-origin: 0 50%;
}
.hl-1 {
  transform: scaleX(0.894);
}
.hl-2 {
  transform: scaleX(0.865);
  position: relative;
  top: -0.01em;
}
.hl-3 {
  transform: scaleX(0.918);
}
.hl-ch,
.cl-in {
  display: inline-block;
}
.hl-dot {
  display: inline-block;
  width: 0.178em;
  height: 0.163em;
  border-radius: 50%;
  margin-left: -0.04em;
  background: var(--x-white);
}

/* ---------- Spacer ---------- */
.hero-spacer {
  flex: 1 0 clamp(40px, 4vw, 80px);
}

/* ---------- Hero bottom row ---------- */
.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 40px;
}
.hb-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 1.55vw, 30px);
}
.hero-copy {
  margin: 0;
  font-weight: 300;
  font-size: clamp(16px, 1.389vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  max-width: 22em;
  color: var(--x-white);
  text-wrap: pretty;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.185em;
}
.hc-word {
  display: inline-block;
}
.hc-break {
  display: none;
  flex-basis: 100%;
  height: 0;
}

.explore {
  display: flex;
  align-items: center;
  height: clamp(52px, 4.06vw, 76px);
  padding: 0 clamp(6px, 0.52vw, 10px) 0 clamp(20px, 1.77vw, 32px);
  gap: 1.74vw;
  border-radius: 999px;
  background: var(--x-white);
  color: var(--x-btn-ink);
  font-size: clamp(15px, 1.111vw, 20px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.explore:hover {
  background: var(--x-btn-hover);
  color: var(--x-btn-ink);
}
.explore-label {
  margin-right: max(0px, calc(20px - 1.74vw));
}
.explore-circle {
  width: clamp(38px, 3.02vw, 58px);
  height: clamp(38px, 3.02vw, 58px);
  border-radius: 50%;
  background: var(--x-circle);
  color: var(--x-white);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.explore-arrow {
  width: 31%;
  height: 31%;
  position: relative;
  top: -0.14vw;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.explore:hover .explore-arrow,
.signup-btn:hover .explore-arrow {
  transform: rotate(45deg);
}

.hero-tags {
  display: flex;
  column-gap: 0.35em;
  font-size: clamp(11px, 1.042vw, 19px);
  letter-spacing: 0.15em;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 2.5px;
  color: var(--x-white);
}
.ht-part {
  display: inline-block;
}

/* ---------- Hero breakpoints ---------- */
@media (min-width: 1024px) {
  .hero-copy {
    max-width: none;
  }
  .hc-break {
    display: block;
  }
}
@media (max-width: 1023px) {
  .hh-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
}
@media (max-width: 639px) {
  .signin {
    display: none;
  }
}

/* =====================================================================
   LANDING-PAGE SECTIONS
   ===================================================================== */

section[id] {
  scroll-margin-top: 84px;
}

/* ---------- Floating nav (after the hero) ---------- */
.float-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  width: min(1120px, calc(100% - 24px));
  transform: translate(-50%, calc(-100% - 24px));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.float-nav.is-shown {
  transform: translate(-50%, 0);
}
.fn-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  border: 1px solid var(--x-hair);
  box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--x-shadow) 45%, transparent);
}
.float-nav .fn-logo {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.016em;
  color: var(--x-pill-ink);
}
.fn-icon {
  height: 22px;
  width: auto;
  aspect-ratio: 20 / 24.5;
}
.fn-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.float-nav .fn-link {
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  color: var(--x-muted-ink);
  transition: background 0.25s, color 0.25s;
}
.float-nav .fn-link:hover {
  color: var(--x-pill-ink);
  background: var(--x-paper);
}
.float-nav .fn-link.is-active {
  background: var(--x-hero);
  color: var(--x-white);
}
.fn-right {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}
.float-nav .fn-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--x-pill-ink);
  color: var(--x-white);
  font-size: 15px;
  white-space: nowrap;
  transition: background 0.25s;
}
.float-nav .fn-cta:hover {
  background: var(--x-hero);
  color: var(--x-white);
}
.fn-menu {
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--x-paper);
  color: var(--x-pill-ink);
  cursor: pointer;
  transition: background 0.25s;
}
.fn-menu:hover {
  background: var(--x-pill-hover);
}
.fn-panel {
  top: calc(100% + 10px);
}
@media (max-width: 1023px) {
  .fn-links {
    display: none;
  }
  .fn-menu {
    display: flex;
  }
}

/* ---------- Ticker ---------- */
.ticker {
  background: var(--x-shadow);
  color: var(--x-white);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: pivot-ticker 60s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tk-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 28px;
  border-right: 1px solid color-mix(in srgb, var(--x-white) 12%, transparent);
  white-space: nowrap;
  font-size: 14px;
  line-height: 1;
}
.tk-sym {
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tk-price {
  color: color-mix(in srgb, var(--x-white) 80%, transparent);
  font-variant-numeric: tabular-nums;
}
.tk-chg {
  font-variant-numeric: tabular-nums;
}
.tk-chg.is-up {
  color: var(--x-yellow);
}
.tk-chg.is-down {
  color: var(--x-moon-pink);
}
@keyframes pivot-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
html.reduced-motion .ticker-track {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
  }
}

/* ---------- Section shell ---------- */
.sec {
  position: relative;
  padding: clamp(80px, 9vw, 160px) clamp(20px, 2.778vw, 64px);
}
.sec-paper {
  background: var(--x-paper);
  color: var(--x-pill-ink);
}
.sec-grass {
  background: var(--x-grass);
  color: var(--x-white);
}
.sec-lavender {
  background: var(--x-lavender);
  color: var(--x-pill-ink);
}
.sec-night {
  background: var(--x-shadow);
  color: var(--x-white);
}
.sec-red {
  background: var(--x-red-deep);
  color: var(--x-white);
}

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}
@media (min-width: 1024px) {
  .sec-head {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.sec-label {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0 0 clamp(20px, 2vw, 32px);
  font-size: clamp(11px, 0.9vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.217em;
  line-height: 1;
}
.sl-dot {
  width: 1.333em;
  height: 1.333em;
  border-radius: 50%;
  background: color-mix(in srgb, currentColor 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.sl-dot::after {
  content: "";
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: currentColor;
}
.sl-num {
  opacity: 0.62;
  letter-spacing: 0.02em;
  margin-left: 0.6em;
}
.sec-title {
  font-family: "Archivo", var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(48px, 8.4vw, 150px);
  line-height: 0.86;
  letter-spacing: -0.012em;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.st-line {
  display: block;
  overflow: hidden;
  padding: 0.04em 0.05em;
  margin: -0.04em -0.05em;
}
.st-w {
  display: inline-block;
}
.sec-paper .st-accent {
  color: var(--x-hero);
}
.sec-grass .st-accent {
  color: var(--x-yellow);
}
.sec-lavender .st-accent {
  color: var(--x-violet);
}
.sec-night .st-accent {
  color: var(--x-moon-pink);
}
.sec-lede {
  margin: 0;
  font-weight: 300;
  font-size: clamp(16px, 1.389vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 30em;
  text-wrap: pretty;
}
.sec-paper .sec-lede,
.sec-lavender .sec-lede {
  color: var(--x-muted-ink);
}
.sec-grass .sec-lede,
.sec-night .sec-lede {
  color: color-mix(in srgb, var(--x-white) 84%, transparent);
}

/* ---------- Markets board ---------- */
.board {
  background: var(--x-white);
  border: 1px solid var(--x-hair);
  border-radius: 28px;
  padding: clamp(12px, 1.6vw, 24px);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--x-shadow) 35%, transparent);
}
.board-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 4px 16px;
}
@media (min-width: 640px) {
  .board-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.board-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--x-paper);
  border-radius: 999px;
  align-self: flex-start;
}
.mk-tab {
  flex: none;
  border: 0;
  background: transparent;
  color: var(--x-muted-ink);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.mk-tab:hover {
  color: var(--x-pill-ink);
}
.mk-tab[aria-selected="true"] {
  background: var(--x-hero);
  color: var(--x-white);
}
.board-note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--x-muted-ink);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--x-up);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--x-up) 18%, transparent);
}
.mk-head,
.mk-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.2fr) 104px;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
  padding-right: 16px;
}
.mk-head {
  padding-top: 8px;
  padding-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--x-muted-ink);
  border-bottom: 1px solid var(--x-hair);
}
.mk-row {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--x-hair);
  border-radius: 16px;
  transition: background 0.2s;
}
.mk-row:last-child {
  border-bottom: 0;
}
.mk-row:hover {
  background: var(--x-paper);
}
.mk-inst {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.mk-sym {
  flex: none;
  min-width: 70px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--x-pill-hover);
  color: var(--x-hero);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1;
}
.mk-name {
  min-width: 0;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mk-price {
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mk-chg {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mk-chg.is-up,
.spark.is-up {
  color: var(--x-up);
}
.mk-chg.is-down,
.spark.is-down {
  color: var(--x-down);
}
.spark {
  display: block;
  width: 100%;
  height: 32px;
}
.board .mk-trade {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  border: 1.5px solid var(--x-pill-ink);
  color: var(--x-pill-ink);
  font-size: 14px;
  line-height: 1;
  transition: background 0.25s, color 0.25s;
}
.board .mk-trade:hover {
  background: var(--x-pill-ink);
  color: var(--x-white);
}
.mk-arrow,
.ins-arrow {
  width: 10px;
  height: 10px;
  flex: none;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mk-trade:hover .mk-arrow,
.ins-card:hover .ins-arrow {
  transform: rotate(45deg);
}
@media (max-width: 767px) {
  .mk-head,
  .mk-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .mk-head span:nth-child(n + 4),
  .mk-spark,
  .board .mk-trade {
    display: none;
  }
  .mk-name {
    display: none;
  }
  .mk-price {
    font-size: 15px;
  }
}
@media (max-width: 639px) {
  /* All four asset tabs fit the width on a phone, no sideways scrolling. */
  .board-tabs {
    display: grid;
    grid-template-columns: repeat(4, auto);
    align-self: stretch;
    gap: 2px;
  }
  .mk-tab {
    padding: 11px 8px;
    font-size: 14px;
  }
}

/* ---------- Our Platform bento ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile-chart {
    grid-column: span 2;
  }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tile-chart {
    grid-column: span 4;
    grid-row: span 2;
  }
  .tile-speed,
  .tile-alerts {
    grid-column: span 2;
  }
  .tile-risk,
  .tile-assets {
    grid-column: span 3;
  }
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(22px, 2.2vw, 36px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--x-white) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--x-white) 16%, transparent);
  transition: background 0.3s;
}
.tile:hover {
  background: color-mix(in srgb, var(--x-white) 11%, transparent);
}
.tile-title {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.tile-text {
  margin: 0;
  max-width: 34em;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--x-white) 84%, transparent);
}
.tile-chart {
  gap: 24px;
}
.tile-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.chart-frame {
  margin-top: auto;
  padding: 16px 16px 12px;
  border-radius: 20px;
  background: var(--x-grass-deep);
  border: 1px solid color-mix(in srgb, var(--x-white) 10%, transparent);
}
.chart-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.cm-sym {
  font-weight: 700;
  letter-spacing: 0.06em;
}
.cm-tf {
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--x-white) 12%, transparent);
  line-height: 1;
}
.cm-price {
  margin-left: auto;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cm-chg {
  color: var(--x-yellow);
  font-variant-numeric: tabular-nums;
}
.candles {
  display: block;
  width: 100%;
  height: clamp(170px, 19vw, 300px);
}
.candles line {
  stroke: currentColor;
  stroke-width: 1.2;
}
.candles rect {
  fill: currentColor;
}
.candles .cdl-last {
  stroke: color-mix(in srgb, var(--x-white) 45%, transparent);
  stroke-dasharray: 4 4;
}
.cdl-up {
  color: var(--x-yellow);
}
.cdl-down {
  color: var(--x-moon-pink);
}
.speed-num {
  margin: 0 0 6px;
  font-family: "Archivo", var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(80px, 7.5vw, 132px);
  line-height: 0.85;
  color: var(--x-yellow);
}
.speed-unit {
  margin-left: 0.06em;
  font-size: 0.4em;
  color: var(--x-white);
}
.alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.alert-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  font-size: 14px;
  line-height: 1.2;
}
.al-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--x-red);
  flex: none;
}
.al-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.al-time {
  font-size: 12px;
  color: var(--x-muted-ink);
}
.risk-meter {
  margin-top: auto;
}
.rm-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
}
.rm-track {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--x-white) 15%, transparent);
  overflow: hidden;
}
.rm-fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--x-yellow), var(--x-moon-pink));
}
.risk-chips,
.asset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.risk-chips span,
.asset-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--x-white) 32%, transparent);
  font-size: 14px;
  line-height: 1.1;
}
.asset-chips {
  margin-top: auto;
}

/* ---------- Insights ---------- */
.insights {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 1024px) {
  .insights {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 24px;
  }
}
.ins-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ins-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px;
  border-radius: 28px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.ins-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -30px color-mix(in srgb, var(--x-shadow) 45%, transparent);
}
.ins-featured .cover {
  aspect-ratio: 16 / 10;
}
.ins-row {
  flex-direction: row;
  align-items: stretch;
}
.ins-row .cover {
  width: 36%;
  min-height: 160px;
  flex: none;
}
@media (max-width: 639px) {
  .ins-row {
    flex-direction: column;
  }
  .ins-row .cover {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}
.ins-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 10px 10px;
}
.ins-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--x-muted-ink);
}
.ins-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--x-lavender);
  color: var(--x-violet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.ins-title {
  margin: 0;
  font-size: clamp(19px, 1.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.ins-featured .ins-title {
  font-size: clamp(24px, 2.2vw, 36px);
}
.ins-excerpt {
  margin: 0;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--x-muted-ink);
}
.ins-open {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--x-hero);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.ins-open::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
}
.ins-open:focus-visible {
  outline: 2px solid var(--x-hero);
  outline-offset: 4px;
}

/* Cover art — drawn from the hero scene */
.cover {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--x-hero) 0%, var(--x-sky-2) 100%);
}
.cover::before,
.cover::after {
  content: "";
  position: absolute;
}
.cover-moon::before {
  width: 46%;
  aspect-ratio: 1;
  right: 10%;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 72%, var(--x-lavender) 0%, var(--x-moon-pink) 58%, color-mix(in srgb, var(--x-moon-pink) 0%, transparent) 100%);
}
.cover-moon::after,
.cover-hill::before {
  left: -10%;
  right: -10%;
  bottom: -40%;
  height: 66%;
  border-radius: 50% 50% 0 0;
  background: var(--x-grass);
  transform: rotate(-4deg);
}
.cover-box::before {
  z-index: 1;
  left: 40%;
  bottom: 16%;
  width: 17%;
  height: 58%;
  border: 6px solid var(--x-red);
  border-top-width: 14px;
  border-radius: 8px 8px 2px 2px;
  background:
    repeating-linear-gradient(0deg, var(--x-red) 0 4px, transparent 4px 25%),
    linear-gradient(90deg, var(--x-shadow) 0 46%, var(--x-red) 46% 54%, var(--x-shadow) 54%);
}
.cover-box::after,
.cover-tower::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  background: var(--x-grass);
}
.cover-tower::before {
  z-index: 1;
  right: 16%;
  bottom: 14%;
  width: 30%;
  height: 70%;
  border-radius: 22% 22% 6px 6px;
  background:
    radial-gradient(circle at 30% 34%, var(--x-yellow) 0 9%, transparent 10%),
    radial-gradient(circle at 70% 34%, var(--x-yellow) 0 9%, transparent 10%),
    var(--x-tower);
}
.cover-hill::after {
  left: 48%;
  bottom: 22%;
  width: 6%;
  height: 26%;
  border-radius: 999px 999px 30% 30%;
  background: var(--x-white);
}

/* Article dialog */
.article {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--x-shadow) 60%, transparent);
}
.article::backdrop {
  background: color-mix(in srgb, var(--x-shadow) 72%, transparent);
}
.article-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 14px clamp(20px, 3vw, 40px) clamp(28px, 3vw, 40px);
}
.article-cover {
  aspect-ratio: 16 / 7;
  margin: 0 calc(-1 * clamp(6px, 2vw, 26px)) 8px;
}
.article-close {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--x-white);
  color: var(--x-pill-ink);
  cursor: pointer;
  transition: background 0.25s;
}
.article-close:hover {
  background: var(--x-pill-hover);
}
.article-close svg {
  width: 20px;
  height: 20px;
}
.article-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.article-p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--x-muted-ink);
}
.article .article-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  margin-top: 8px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--x-hero);
  color: var(--x-white);
  font-size: 16px;
  transition: background 0.25s;
}
.article .article-cta:hover {
  background: var(--x-sky-2);
  color: var(--x-white);
}

/* ---------- About ---------- */
.pillars {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 28px;
  background: color-mix(in srgb, var(--x-white) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--x-white) 14%, transparent);
}
@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(26px, 2.8vw, 48px);
  background: var(--x-shadow);
  transition: background 0.3s;
}
.pillar:hover {
  background: color-mix(in srgb, var(--x-hero) 45%, var(--x-shadow));
}
.pillar-word {
  margin: 0;
  font-family: "Archivo", var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(52px, 5.4vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.01em;
}
.pillar:nth-child(1) .pillar-word {
  color: var(--x-moon-pink);
}
.pillar:nth-child(2) .pillar-word {
  color: var(--x-yellow);
}
.pillar-text {
  margin: 0;
  max-width: 26em;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--x-white) 82%, transparent);
}
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  margin: clamp(48px, 5vw, 80px) 0 0;
}
@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fact {
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--x-white) 25%, transparent);
}
.fact dt {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--x-white) 72%, transparent);
}
.fact dd {
  margin: 12px 0 0;
  font-family: "Archivo", var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  font-size: clamp(48px, 4.6vw, 80px);
  line-height: 0.9;
}

/* ---------- Get started ---------- */
.closer-title {
  margin: 0 0 clamp(40px, 4.5vw, 72px) 0.2vw;
}
.gs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: end;
}
@media (min-width: 1024px) {
  .gs-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
  }
}
.gs-copy {
  margin: 0;
  max-width: 24em;
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.signup {
  display: flex;
  align-items: center;
  gap: 12px;
  height: clamp(60px, 4.6vw, 80px);
  padding: 0 clamp(6px, 0.52vw, 10px) 0 clamp(20px, 1.77vw, 32px);
  border-radius: 999px;
  background: var(--x-white);
  transition: box-shadow 0.25s;
}
.signup:focus-within {
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--x-white) 35%, transparent);
}
.signup-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: clamp(16px, 1.25vw, 20px);
  color: var(--x-pill-ink);
}
.signup-input::placeholder {
  color: var(--x-num);
}
.signup-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--x-btn-ink);
  font-size: clamp(15px, 1.111vw, 20px);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.signup-btn .explore-circle {
  width: clamp(46px, 3.6vw, 64px);
  height: clamp(46px, 3.6vw, 64px);
}
@media (max-width: 479px) {
  .signup-label {
    display: none;
  }
}
.signup-result {
  min-height: 1.5em;
  margin: 14px 0 0 8px;
  font-size: 16px;
}
.sr-msg.is-error {
  color: var(--x-yellow);
}
.gs-note {
  margin: 4px 0 0 8px;
  font-size: 14px;
  color: color-mix(in srgb, var(--x-white) 80%, transparent);
}

/* ---------- Footer ---------- */
.foot {
  padding: clamp(56px, 6vw, 96px) clamp(20px, 2.778vw, 64px) clamp(24px, 2.778vw, 40px);
  background: var(--x-hero);
  color: var(--x-white);
}
.foot-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 768px) {
  .foot-top {
    flex-direction: row;
    justify-content: space-between;
  }
}
.foot-tag {
  margin: 20px 0 0;
  font-family: "Archivo", var(--font-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(44px, 5.4vw, 92px);
  line-height: 0.85;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 24px 72px;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-h {
  margin: 0 0 4px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--x-white) 68%, transparent);
}
.foot-col a {
  font-size: 16px;
  transition: opacity 0.25s;
}
.foot-col a:hover {
  opacity: 0.7;
}
.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: clamp(48px, 5vw, 80px);
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--x-white) 20%, transparent);
}
@media (min-width: 768px) {
  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.foot-legal {
  margin: 0;
  max-width: 48em;
  font-size: 13px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--x-white) 74%, transparent);
}
.foot-tags {
  margin: 0;
}
