:root {
  color-scheme: dark;
  --bg: #030810;
  --bg-2: #06131d;
  --surface: rgba(5, 13, 24, 0.34);
  --surface-soft: rgba(5, 13, 24, 0.22);
  --line: rgba(124, 184, 211, 0.13);
  --line-strong: rgba(89, 214, 255, 0.34);
  --text: #f5fbff;
  --text-soft: #c4d7e4;
  --muted: #8499aa;
  --quiet: #526777;
  --cyan: #59d6ff;
  --green: #86e6bd;
  --amber: #efcc75;
  --red: #ff817c;
  --font:
    Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --mono:
    ui-monospace, "SF Mono", "Menlo", "JetBrains Mono", Consolas,
    monospace;
  --type-body: 16px;
  --type-section-title: clamp(28px, 3.2vw, 44px);
  --type-section-copy: 20px;
  --type-card-title: 19px;
  --type-subtitle: 16px;
  --type-copy: 15.5px;
  --type-nav: 15px;
  --type-small-copy: 15px;
  --type-list: 14.5px;
  --type-meta: 13.5px;
  --type-eyebrow: 12px;
  --type-eyebrow-lg: 13px;
  --type-micro: 11.5px;
  --weight-heading: 700;
  --weight-subheading: 680;
  --weight-emphasis: 620;
  --weight-eyebrow: 700;
  --tracking-eyebrow: 0.14em;
  --scroll: 0px;
  --hero-progress: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  font-size: var(--type-body);
  font-weight: 500;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(69, 204, 255, 0.08), transparent 34rem),
    radial-gradient(circle at 84% 86%, rgba(69, 204, 255, 0.04), transparent 38rem),
    linear-gradient(135deg, #04111a 0%, var(--bg) 52%, #01050b 100%);
}

.topbar-veil {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 58;
  height: 76px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(4, 12, 22, 0.18) 0%,
      rgba(4, 12, 22, 0.15) 42%,
      rgba(4, 12, 22, 0.07) 72%,
      rgba(5, 18, 31, 0) 100%
    ),
    radial-gradient(ellipse at 42% 0%, rgba(89, 214, 255, 0.055), transparent 72%);
  border-top: 1px solid rgba(126, 183, 211, 0.20);
  box-shadow:
    0 1px 0 rgba(126, 183, 211, 0.13) inset,
    0 16px 34px rgba(1, 8, 15, 0.18);
  backdrop-filter: blur(16px) saturate(132%) brightness(0.78);
  -webkit-backdrop-filter: blur(16px) saturate(132%) brightness(0.78);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.62) 68%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.62) 68%, transparent 100%);
}

.page-aurora {
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.page-aurora::before,
.page-aurora::after {
  content: "";
  position: absolute;
  border-radius: 42% 58% 48% 52% / 52% 44% 56% 48%;
  filter: blur(96px);
  transform-origin: 50% 58%;
}

.page-aurora::before {
  width: 104vw;
  height: 64vh;
  top: 34vh;
  left: -46vw;
  background:
    radial-gradient(ellipse at 32% 44%, rgba(89, 214, 255, 0.085), transparent 64%),
    linear-gradient(110deg, transparent 6%, rgba(89, 214, 255, 0.038) 48%, transparent 88%);
}

.page-aurora::after {
  width: 96vw;
  height: 58vh;
  top: 82vh;
  right: -42vw;
  background:
    radial-gradient(ellipse at 58% 48%, rgba(134, 230, 189, 0.052), transparent 66%),
    linear-gradient(70deg, transparent 10%, rgba(89, 214, 255, 0.026) 54%, transparent 92%);
}

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

.shell {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
}

.nav-shell {
  width: min(1680px, calc(100vw - 64px));
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-top: 6px;
  pointer-events: none;
  isolation: isolate;
}

.menu {
  position: relative;
  z-index: 2;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 16px;
  background: transparent;
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 40px;
  height: 40px;
  aspect-ratio: 1;
  object-fit: contain;
  filter:
    drop-shadow(0 0 6px rgba(85, 214, 255, 0.36))
    drop-shadow(0 0 15px rgba(85, 214, 255, 0.12));
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.button {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 11px;
  font-size: var(--type-nav);
  font-weight: var(--weight-emphasis);
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
}

.button {
  --button-glow-x: 50%;
  --button-glow-y: 50%;
  position: relative;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(4, 12, 22, 0.26);
  font-family: var(--font);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--button-glow-x) var(--button-glow-y),
      rgba(232, 250, 255, 0.58),
      rgba(119, 226, 255, 0.34) 20%,
      rgba(89, 214, 255, 0.12) 38%,
      transparent 62%
    );
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover::before,
.button:focus-visible::before {
  opacity: 1;
}

.button.primary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(4, 12, 22, 0.88);
  box-shadow:
    0 0 8px rgba(89, 214, 255, 0.08),
    0 0 16px rgba(89, 214, 255, 0.03);
  animation: primaryButtonGlow 3.2s ease-in-out infinite;
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: rgba(150, 232, 255, 0.68);
  background: rgba(7, 20, 34, 0.96);
  box-shadow:
    0 0 0 1px rgba(189, 239, 255, 0.18),
    0 0 18px rgba(189, 239, 255, 0.30),
    0 0 38px rgba(89, 214, 255, 0.14),
    0 0 58px rgba(89, 214, 255, 0.05);
  transform: translateY(-1px);
  animation: none;
}

@keyframes primaryButtonGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(189, 239, 255, 0.04),
      0 0 7px rgba(189, 239, 255, 0.08),
      0 0 16px rgba(89, 214, 255, 0.035),
      0 0 58px rgba(89, 214, 255, 0);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(189, 239, 255, 0.14),
      0 0 18px rgba(189, 239, 255, 0.28),
      0 0 38px rgba(89, 214, 255, 0.14),
      0 0 58px rgba(89, 214, 255, 0.05);
  }
}

.section-rail {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: auto;
}

.rail-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(124, 184, 211, 0.40);
  background: transparent;
  transition:
    background-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-dot:hover,
.rail-dot:focus-visible {
  border-color: var(--cyan);
  transform: scale(1.18);
}

.rail-dot.active {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(89, 214, 255, 0.16),
    0 0 14px rgba(89, 214, 255, 0.6);
  transform: scale(1.1);
}

.rail-dot > span {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translate(8px, -50%);
  opacity: 0;
  white-space: nowrap;
  color: var(--text-soft);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-emphasis);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(4, 12, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
  transition:
    opacity 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rail-dot:hover > span,
.rail-dot:focus-visible > span {
  opacity: 1;
  transform: translate(0, -50%);
}

h1, h2, h3, h4, p {
  margin: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: var(--type-eyebrow-lg);
  font-weight: var(--weight-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 128px 0 108px;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 18% 42%, rgba(69, 204, 255, 0.11), transparent 33rem),
    radial-gradient(circle at 78% 28%, rgba(69, 204, 255, 0.07), transparent 24rem),
    linear-gradient(115deg, rgba(5, 18, 29, 0.80), rgba(2, 7, 13, 0.96) 58%, rgba(1, 5, 11, 0.98));
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 78px 78px;
  background-position: 0 calc(var(--scroll, 0px) * -0.10);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.84), transparent 86%);
  opacity: calc(1 - (var(--hero-progress, 0) * 0.52));
  will-change: background-position, opacity;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transform: translate3d(0, calc(var(--hero-progress, 0) * -72px), 0);
  opacity: calc(1 - (var(--hero-progress, 0) * 0.72));
  will-change: transform, opacity;
}

.aurora-blob {
  position: absolute;
  border-radius: 44% 56% 52% 48% / 58% 42% 56% 44%;
  filter: blur(112px);
  mix-blend-mode: screen;
  transform-origin: 50% 56%;
  will-change: transform, opacity;
}

.aurora-a {
  width: 132vw; height: 74vh; left: -44vw; top: -24vh;
  background:
    radial-gradient(ellipse at 28% 46%, rgba(89, 214, 255, 0.28), transparent 62%),
    linear-gradient(104deg, transparent 8%, rgba(122, 222, 255, 0.12) 48%, transparent 86%);
  animation: aurora-drift-a 28s ease-in-out infinite;
}
.aurora-b {
  width: 118vw; height: 66vh; right: -42vw; top: 4vh;
  background:
    radial-gradient(ellipse at 62% 40%, rgba(122, 222, 255, 0.20), transparent 64%),
    linear-gradient(72deg, transparent 12%, rgba(89, 214, 255, 0.11) 46%, transparent 86%);
  animation: aurora-drift-b 34s ease-in-out infinite;
}
.aurora-c {
  width: 134vw; height: 72vh; left: 0; bottom: -34vh;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(134, 230, 189, 0.18), transparent 66%),
    linear-gradient(122deg, transparent 4%, rgba(85, 140, 220, 0.09) 52%, transparent 92%);
  animation: aurora-drift-c 39s ease-in-out infinite;
}
.aurora-d {
  width: 110vw; height: 58vh; left: -36vw; bottom: 8vh;
  background:
    radial-gradient(ellipse at 36% 54%, rgba(85, 140, 220, 0.14), transparent 68%),
    linear-gradient(88deg, transparent 12%, rgba(134, 230, 189, 0.07) 50%, transparent 90%);
  animation: aurora-drift-d 31s ease-in-out infinite;
}

@keyframes aurora-drift-a {
  0%, 100% { opacity: 0.48; transform: translate3d(-6vw, -4vh, 0) rotate(-5deg) skewX(-4deg) scale(0.95, 1.03); }
  37%      { opacity: 0.90; transform: translate3d(8vw, 5vh, 0) rotate(3deg) skewX(3deg) scale(1.08, 0.94); }
  68%      { opacity: 0.64; transform: translate3d(3vw, 9vh, 0) rotate(7deg) skewX(-2deg) scale(1.14, 1.05); }
}
@keyframes aurora-drift-b {
  0%, 100% { opacity: 0.40; transform: translate3d(6vw, 1vh, 0) rotate(4deg) skewY(2deg) scale(1.03, 0.95); }
  41%      { opacity: 0.82; transform: translate3d(-9vw, 7vh, 0) rotate(-4deg) skewY(-3deg) scale(0.95, 1.11); }
  73%      { opacity: 0.54; transform: translate3d(-3vw, -5vh, 0) rotate(-8deg) skewY(2deg) scale(1.10, 1.03); }
}
@keyframes aurora-drift-c {
  0%, 100% { opacity: 0.42; transform: translate3d(0, 8vh, 0) rotate(2deg) skewX(3deg) scale(1.05, 0.97); }
  33%      { opacity: 0.86; transform: translate3d(-6vw, -4vh, 0) rotate(-6deg) skewX(-3deg) scale(0.97, 1.12); }
  71%      { opacity: 0.56; transform: translate3d(9vw, -2vh, 0) rotate(5deg) skewX(2deg) scale(1.14, 1.05); }
}
@keyframes aurora-drift-d {
  0%, 100% { opacity: 0.28; transform: translate3d(-5vw, 3vh, 0) rotate(-8deg) skewY(-2deg) scale(0.95, 1.05); }
  46%      { opacity: 0.68; transform: translate3d(10vw, -7vh, 0) rotate(4deg) skewY(3deg) scale(1.12, 0.97); }
  79%      { opacity: 0.40; transform: translate3d(4vw, 6vh, 0) rotate(8deg) skewY(-3deg) scale(1.05, 1.12); }
}

.page-aurora::before {
  animation: page-aurora-drift-a 32s ease-in-out infinite alternate;
}
.page-aurora::after {
  animation: page-aurora-drift-b 38s ease-in-out infinite alternate;
}

@keyframes page-aurora-drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(18vw, -10vw, 0) scale(1.18); }
  100% { transform: translate3d(28vw, 8vw, 0) scale(0.92); }
}
@keyframes page-aurora-drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-22vw, 14vw, 0) scale(1.20); }
  100% { transform: translate3d(-32vw, -10vw, 0) scale(0.90); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-blob, .button.primary, .next-cue::after,
  .page-aurora::before, .page-aurora::after {
    animation: none;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  opacity: calc(1 - (var(--hero-progress, 0) * 0.74));
  transform:
    translate3d(calc(var(--hero-progress, 0) * -24px), calc(var(--hero-progress, 0) * -96px), 0)
    scale(calc(1 - (var(--hero-progress, 0) * 0.10)));
  filter: blur(max(0px, calc((var(--hero-progress, 0) - 0.48) * 7px)));
  transform-origin: 0% 50%;
  will-change: transform, opacity, filter;
}

.hero h1 {
  max-width: 880px;
  color: var(--text);
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
  font-weight: 720;
  letter-spacing: -0.005em;
}

.hero-copy {
  max-width: 620px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: var(--type-section-copy);
  line-height: 1.55;
}

.next-cue {
  position: absolute;
  left: 50%;
  bottom: 38px;
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  opacity: calc(1 - (var(--hero-progress, 0) * 1.35));
  transform: translate3d(-50%, calc(var(--hero-progress, 0) * 26px), 0);
  will-change: transform, opacity;
}

.next-cue::before {
  content: none;
  display: none;
}

.next-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border-right: 2.5px solid rgba(189, 239, 255, 0.76);
  border-bottom: 2.5px solid rgba(189, 239, 255, 0.76);
  filter:
    drop-shadow(0 0 8px rgba(89, 214, 255, 0.42))
    drop-shadow(0 0 20px rgba(89, 214, 255, 0.14));
  transform: translateX(-50%) rotate(45deg);
  animation: cueArrow 1.9s ease-in-out infinite;
}

@keyframes cueArrow {
  0%, 100% {
    opacity: 0.28;
    transform: translate(-50%, -6px) rotate(45deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, 4px) rotate(45deg);
  }
}

.section {
  position: relative;
  padding: 84px 0;
}

.hero + .section {
  margin-top: -86px;
  padding-top: 104px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 820px;
  font-size: var(--type-section-title);
  line-height: 1.05;
  font-weight: var(--weight-heading);
}

.section-copy {
  max-width: 760px;
  color: var(--text-soft);
  font-size: var(--type-section-copy);
  line-height: 1.55;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 22px;
}

.three-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.four-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feature-card h3 {
  font-size: var(--type-card-title);
  font-weight: var(--weight-subheading);
  letter-spacing: -0.005em;
}

.feature-card .feature-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.feature-card .feature-eyebrow .dot {
  display: none;
}

.feature-card p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: var(--type-copy);
  line-height: 1.55;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.compare-col {
  padding: 22px 18px;
  min-width: 0;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--line);
}

.compare-col.compare-col-good {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(134, 230, 189, 0.04), transparent 70%);
}

.compare-col h3 {
  margin-bottom: 4px;
  font-size: var(--type-subtitle);
  font-weight: var(--weight-subheading);
}

.compare-col .compare-meta {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--type-meta);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: var(--type-list);
  line-height: 1.5;
}

.compare-list .dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.compare-list .dot.red {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 129, 124, 0.55);
}
.compare-list .dot.amber {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(239, 204, 117, 0.55);
}
.compare-list .dot.green {
  background: var(--green);
  box-shadow: 0 0 8px rgba(134, 230, 189, 0.55);
}

.chart-card {
  padding: 22px;
}

.chart-card .chart-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chart-card .chart-head h3 {
  font-size: var(--type-card-title);
  font-weight: var(--weight-subheading);
}

.chart-card .chart-head .chart-eyebrow {
  margin: 0 0 6px;
  color: var(--cyan);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.chart-card .chart-meta {
  color: var(--muted);
  font-size: var(--type-meta);
}

.plot {
  position: relative;
  height: 320px;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(rgba(126, 183, 211, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 183, 211, 0.045) 1px, transparent 1px),
    rgba(2, 7, 13, 0.22);
  background-size: 100% 56px, 86px 100%, auto;
}

.plot.short {
  height: 260px;
}

.plot svg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  max-width: 100%;
  /* width is implied by SVG's native viewBox aspect with
     preserveAspectRatio="xMidYMid meet" — i.e. fits the height
     and uses whatever width the aspect demands. */
}

.plot.plot-img {
  padding: 14px 18px;
  height: auto;
  aspect-ratio: 11 / 5;
  min-height: 320px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.plot.plot-img > img {
  position: absolute;
  inset: 14px 18px;
  width: calc(100% - 36px);
  height: calc(100% - 28px);
  object-fit: contain;
  display: block;
}

.plot-axis {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font-size: var(--type-micro);
  font-weight: 560;
  pointer-events: none;
}

.plot-y-label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: var(--muted);
  font-size: var(--type-micro);
  font-weight: var(--weight-emphasis);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.plot-legend {
  position: absolute;
  right: 14px;
  top: 12px;
  display: flex;
  gap: 14px;
  color: var(--text-soft);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-emphasis);
  pointer-events: none;
}

.plot-legend .swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plot-legend .swatch::before {
  content: "";
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.plot-legend .swatch.kernel { color: var(--cyan); }
.plot-legend .swatch.pplns {
  color: var(--amber);
}
.plot-legend .swatch.pplns::before {
  background: repeating-linear-gradient(
    90deg, var(--amber) 0 4px, transparent 4px 8px
  );
}

.chart-caption {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: var(--type-copy);
  line-height: 1.55;
}

.chart-caption strong {
  color: var(--text);
  font-weight: var(--weight-emphasis);
}

.charts-stack {
  display: grid;
  gap: 18px;
}

.defense-card {
  padding: 18px;
}

.defense-card .defense-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: var(--type-micro);
  font-weight: var(--weight-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.defense-card .defense-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(134, 230, 189, 0.6);
}

.defense-card h4 {
  font-size: var(--type-copy);
  font-weight: 660;
}

.defense-card p {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: var(--type-small-copy);
  line-height: 1.5;
}

.seed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.seed-btn {
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
}

.seed-label {
  color: var(--quiet);
  font-size: var(--type-micro);
  font-weight: var(--weight-emphasis);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  background: rgba(3, 8, 16, 0.78);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .seed-row {
    gap: 6px;
    justify-content: flex-start;
  }
  .seed-label { display: none; }
}

.coverage-callout {
  margin-top: 16px;
  padding: 22px 26px;
  border: 1px solid rgba(89, 214, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(8, 22, 36, 0.55), rgba(3, 8, 16, 0.32)),
    radial-gradient(circle at 0% 0%, rgba(89, 214, 255, 0.06), transparent 50%);
}

.coverage-callout .callout-eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: var(--type-eyebrow);
  font-weight: var(--weight-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

.coverage-callout p {
  color: var(--text-soft);
  font-size: var(--type-copy);
  line-height: 1.55;
}

.coverage-callout p + p {
  margin-top: 10px;
}

.coverage-callout strong {
  color: var(--text);
  font-weight: 660;
}

details.math-card {
  padding: 0;
  overflow: hidden;
}

details.math-card.model-math-card {
  margin-top: 18px;
}

details.math-card summary {
  list-style: none;
  cursor: pointer;
  min-height: 50px;
  margin: 0;
  padding: 8px 30px 8px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: inherit;
  color: var(--text-soft);
  background: rgba(4, 12, 22, 0.22);
  font-size: var(--type-nav);
  font-weight: var(--weight-emphasis);
  letter-spacing: 0;
  box-shadow:
    inset 0 -1px 0 rgba(126, 183, 211, 0.08),
    0 0 18px rgba(89, 214, 255, 0.06);
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

details.math-card summary::-webkit-details-marker {
  display: none;
}

details.math-card summary:hover,
details.math-card summary:focus-visible {
  color: var(--text);
  background: rgba(7, 20, 34, 0.58);
  box-shadow:
    inset 0 -1px 0 rgba(126, 183, 211, 0.13),
    0 0 22px rgba(89, 214, 255, 0.14);
  transform: translateY(-1px);
}

details.math-card summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-right: 2px;
  border-right: 2.25px solid var(--muted);
  border-bottom: 2.25px solid var(--muted);
  transform: translateY(-1px) rotate(45deg);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

details.math-card summary:hover::after,
details.math-card summary:focus-visible::after {
  border-color: var(--text-soft);
}

details.math-card[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

details.math-card .math-body {
  padding: 14px 28px 32px;
  border-top: 1px solid var(--line);
}

details.math-card .math-body p {
  margin: 24px 0 12px;
  color: var(--text-soft);
  font-size: var(--type-copy);
  line-height: 1.65;
}

details.math-card .math-body p:first-child {
  margin-top: 12px;
}

details.math-card .math-body p em {
  color: var(--text);
  font-style: normal;
  font-weight: 620;
}

details.math-card .math-body math {
  display: block math;
  margin: 16px 0 28px;
  padding: 28px 30px;
  border-radius: 8px;
  border: 1px solid rgba(126, 183, 211, 0.10);
  background: rgba(2, 7, 13, 0.40);
  color: var(--text);
  font-family:
    "STIX Two Math",
    "Latin Modern Math",
    "Cambria Math",
    "DejaVu Math TeX Gyre",
    "Noto Sans Math",
    serif;
  font-size: clamp(24px, 1.65vw, 34px);
  line-height: 1.55;
  math-style: normal;
  overflow-x: auto;
}

details.math-card .math-body math mo {
  padding-inline: 0.14em;
}

details.math-card .math-body math mfrac {
  margin-inline: 0.22em;
}

details.math-card .math-body math mtd {
  padding-block: 0.28em;
  padding-inline: 0.75em;
}

details.math-card .math-body math mspace {
  min-width: 0.55em;
}

details.math-card .math-where {
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: var(--type-list);
  line-height: 1.62;
}

details.math-card .math-where code {
  font-family: var(--mono);
  color: var(--text-soft);
}

details.math-card.variance-math-card {
  margin-top: 14px;
}

details.math-card.code-card {
  margin-top: 14px;
}

details.math-card .code-body pre {
  margin: 16px 0 8px;
  padding: 22px 24px;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(126, 183, 211, 0.14);
  background:
    linear-gradient(180deg, rgba(4, 12, 22, 0.76), rgba(2, 7, 13, 0.72)),
    linear-gradient(rgba(126, 183, 211, 0.035) 1px, transparent 1px);
  background-size: auto, 100% 28px;
}

details.math-card .code-body pre code {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: var(--type-list);
  line-height: 1.65;
  font-variant-ligatures: none;
}

details.math-card .code-body pre code .tok-comment { color: #6f8496; font-style: italic; }
details.math-card .code-body pre code .tok-doc { color: #78a978; font-style: italic; }
details.math-card .code-body pre code .tok-kw { color: #ff8fb3; }
details.math-card .code-body pre code .tok-type { color: #7bdff7; }
details.math-card .code-body pre code .tok-fn { color: #ffd166; }
details.math-card .code-body pre code .tok-var { color: #d7e2ee; }
details.math-card .code-body pre code .tok-num { color: #c6a0ff; }
details.math-card .code-body pre code .tok-op { color: #8bd3ff; }
details.math-card .code-body pre code .tok-macro { color: #f4c95d; }
details.math-card .code-body pre code .tok-punct { color: #8ea1b3; }

details.math-card .math-validation {
  width: 100%;
  margin: 14px 0 6px;
  border-collapse: collapse;
  font-size: var(--type-small-copy);
}

details.math-card .math-validation th,
details.math-card .math-validation td {
  padding: 8px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

details.math-card .math-validation th {
  color: var(--muted);
  font-weight: 660;
  font-size: var(--type-eyebrow-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

details.math-card .math-validation td {
  color: var(--text-soft);
}

details.math-card .math-validation td:nth-child(3) {
  color: var(--cyan);
}

details.math-card .math-validation td:nth-child(4) {
  color: var(--green);
}

details.math-card .math-spec-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--cyan);
  font-size: var(--type-list);
  font-weight: var(--weight-emphasis);
}

details.math-card .math-spec-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta-band {
  position: relative;
  padding: 96px 0 110px;
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(89, 214, 255, 0.10), transparent 60%);
}

.cta-panel {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(7, 18, 31, 0.48), rgba(3, 8, 16, 0.32)),
    radial-gradient(circle at 50% 0%, rgba(96, 216, 255, 0.10), transparent 60%);
}

.cta-panel h2 {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 700;
}

.cta-panel p {
  max-width: 600px;
  margin: 18px auto 28px;
  color: var(--text-soft);
  font-size: var(--type-body);
  line-height: 1.55;
}

.cta-panel .button.primary {
  min-height: 44px;
  padding: 0 22px;
  font-size: var(--type-copy);
}

footer:not(.site-footer) {
  padding: 28px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--quiet);
  font-size: var(--type-eyebrow-lg);
}

@media (max-width: 1280px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-col + .compare-col {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .compare-col:nth-child(even) {
    border-left: 1px solid var(--line);
  }
  .compare-col:nth-child(2) {
    border-top: none;
  }
}

@media (max-width: 760px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col:nth-child(even),
  .compare-col + .compare-col {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 880px) {
  .shell { width: min(100% - 28px, 1200px); }
  .nav-shell { width: min(100% - 28px, 1680px); }

  .topbar-veil { height: 146px; }

  .menu, .section-head, footer:not(.site-footer) {
    align-items: flex-start;
    flex-direction: column;
  }

  nav { width: 100%; flex-wrap: wrap; }

  .hero {
    min-height: 100svh;
    padding: 126px 0 96px;
  }
  .hero h1 { font-size: clamp(36px, 9vw, 54px); }

  .section { padding: 64px 0; }

  .section-rail { display: none; }

  .plot { height: 260px; }
  .plot.short { height: 220px; }
}
