:root {
  color-scheme: dark;
  --bg: #0e0f0f;
  --bg-2: #151615;
  --panel: rgba(24, 26, 26, 0.68);
  --panel-strong: rgba(28, 31, 31, 0.9);
  --text: #f1f4f2;
  --muted: #a6b2ad;
  --soft: #74817c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(0, 245, 255, 0.38);
  --cyan: #00f5ff;
  --cyan-soft: rgba(0, 245, 255, 0.16);
  --mint: #57f28a;
  --coral: #ff725c;
  --amber: #f4c35a;
  --ink: #070808;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 18% 32%, rgba(0, 245, 255, 0.08), transparent 28rem),
    linear-gradient(135deg, #0b0c0c 0%, #151615 58%, #101211 100%);
  background-size: 24px 24px, 24px 24px, auto, auto;
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(255, 114, 92, 0.08) 45%, transparent 68%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 22px);
  opacity: 0.65;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

#token-river {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  background: rgba(14, 15, 15, 0.5);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
  background: rgba(14, 15, 15, 0.86);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 168px;
  gap: 12px;
}

.brand-symbol {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.18), rgba(255, 114, 92, 0.14));
  box-shadow: inset 0 0 22px rgba(0, 245, 255, 0.1);
}

.brand-symbol::before,
.brand-symbol::after,
.brand-symbol span {
  position: absolute;
  content: "";
  border-radius: 999px;
  background: var(--cyan);
}

.brand-symbol::before {
  width: 18px;
  height: 2px;
  transform: rotate(28deg);
}

.brand-symbol::after {
  width: 2px;
  height: 18px;
  transform: rotate(28deg);
}

.brand-symbol span {
  width: 7px;
  height: 7px;
  right: 8px;
  bottom: 8px;
  background: var(--coral);
}

.brand-mark strong {
  display: block;
  font-size: 17px;
  font-weight: 800;
}

.brand-mark small {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.site-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a,
.ghost-link {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.ghost-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.solid-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.solid-link {
  padding: 0 16px;
  background: var(--cyan);
  color: #002325;
}

.solid-link:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

main {
  position: relative;
  overflow-x: hidden;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1fr);
  align-items: center;
  min-height: 100vh;
  gap: clamp(28px, 5vw, 72px);
  padding: 118px clamp(20px, 5vw, 72px) 76px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lede,
.section-heading p,
.developer-copy p,
.strategy-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-actions,
.cta-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.base-url-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(560px, 100%);
  min-height: 54px;
  margin-top: 20px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.base-url-panel span,
.home-shortcuts a {
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.base-url-panel strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.base-url-panel button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.home-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.home-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, color 180ms ease;
}

.home-shortcuts a:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.button {
  min-width: 154px;
  padding: 0 22px;
  border: 1px solid var(--line);
}

.button-primary {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #002325;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 32%),
    rgba(17, 19, 19, 0.54);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-stage::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.route-map {
  position: absolute;
  inset: 26px;
}

.route-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line {
  fill: none;
  stroke: var(--cyan);
  stroke-dasharray: 14 20;
  stroke-linecap: round;
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.42));
  animation: routeDash 4.8s linear infinite;
}

.line-b {
  stroke: var(--coral);
  animation-duration: 6.2s;
}

.line-c {
  stroke: var(--mint);
  animation-duration: 4.5s;
}

.line-d {
  stroke: var(--amber);
  animation-duration: 5.4s;
}

.ingress-node,
.route-valve,
.provider-node,
.metric-stack,
.routing-console,
.terminal-window,
.price-radar,
.strategy-list button,
.model-card,
.cta-inner {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.ingress-node,
.provider-node,
.route-valve {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
}

.ingress-node {
  top: 50%;
  left: 4%;
  width: 130px;
  height: 80px;
  transform: translateY(-50%);
  border-radius: var(--radius);
}

.route-valve {
  top: 50%;
  left: 44%;
  width: 118px;
  height: 118px;
  border-color: var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 36px rgba(0, 245, 255, 0.14);
}

.route-valve span {
  position: absolute;
  width: 62px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.8);
  animation: valveSpin 14s linear infinite;
}

.route-valve strong {
  margin-top: 46px;
}

.provider-node {
  right: 5%;
  width: 150px;
  height: 72px;
  border-radius: var(--radius);
}

.provider-openai {
  top: 15%;
}

.provider-qwen {
  top: 50%;
  transform: translateY(-50%);
}

.provider-codex {
  bottom: 20%;
}

.ingress-node span,
.provider-node span,
.route-valve strong,
.metric-stack span,
.console-topline,
.console-grid span,
.radar-label span,
.model-card span,
.terminal-head,
.site-footer span,
.site-footer nav {
  color: var(--soft);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingress-node strong,
.provider-node strong {
  font-size: 15px;
}

.metric-stack {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(520px, calc(100% - 44px));
  border-radius: var(--radius);
}

.metric-stack div {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.metric-stack div:last-child {
  border-right: 0;
}

.metric-stack strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(22px, 3vw, 34px);
}

.visual-stack strong {
  color: var(--cyan);
  font-size: clamp(20px, 2.4vw, 30px);
}

.section-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.strategy-layout,
.developer-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
}

.strategy-list {
  display: grid;
  gap: 10px;
}

.strategy-list button {
  width: 100%;
  min-height: 78px;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.strategy-list button[aria-selected="true"] {
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--cyan);
}

.strategy-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.strategy-list span {
  color: var(--soft);
  font-size: 13px;
}

.routing-console {
  min-height: 430px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(0, 245, 255, 0.09), transparent 34%),
    var(--panel);
}

.console-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.console-topline strong {
  color: var(--cyan);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 34px 0;
}

.console-grid div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.console-grid strong {
  display: block;
  margin-top: 8px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
}

.visual-grid strong {
  font-size: clamp(22px, 2.4vw, 32px);
}

.flow-meter {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}

.flow-meter span {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.flow-meter span::after {
  position: absolute;
  inset: 0;
  width: 28%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: meterFlow 3.4s ease-in-out infinite;
}

.flow-meter span:nth-child(2)::after {
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  animation-delay: 0.55s;
}

.flow-meter span:nth-child(3)::after {
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  animation-delay: 1.1s;
}

.pricing-section {
  border-block: 1px solid var(--line);
  background: rgba(8, 9, 9, 0.58);
}

.pricing-shell {
  padding-block: 104px;
}

.pricing-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(420px, 1fr);
  gap: 28px;
  align-items: center;
}

.model-picker {
  display: grid;
  gap: 10px;
}

.model-picker button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
}

.model-picker button[aria-selected="true"] {
  border-color: var(--line-strong);
  color: var(--text);
  background: var(--cyan-soft);
}

.price-radar {
  position: relative;
  display: grid;
  width: min(680px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
}

.radar-grid span {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.radar-grid span:nth-child(1) {
  width: 28%;
  height: 28%;
}

.radar-grid span:nth-child(2) {
  width: 46%;
  height: 46%;
}

.radar-grid span:nth-child(3) {
  width: 64%;
  height: 64%;
}

.radar-grid span:nth-child(4) {
  width: 82%;
  height: 82%;
}

.price-radar::before,
.price-radar::after {
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--line);
}

.price-radar::after {
  transform: rotate(90deg);
}

.price-radar svg {
  position: absolute;
  inset: 16%;
  z-index: 1;
  width: 68%;
  height: 68%;
  filter: drop-shadow(0 0 18px rgba(0, 245, 255, 0.26));
}

.price-radar polygon {
  fill: rgba(0, 245, 255, 0.16);
  stroke: var(--cyan);
  stroke-width: 0.7;
  transition: points 220ms ease;
}

.price-radar circle {
  fill: var(--cyan);
}

.visual-radar {
  max-width: 720px;
  margin-inline: auto;
}

.visual-radar polygon {
  fill: rgba(0, 245, 255, 0.12);
}

.radar-center {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 160px;
  min-height: 92px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(7, 8, 8, 0.8);
}

.radar-center span {
  color: var(--text);
  font-weight: 800;
}

.radar-center strong {
  color: var(--cyan);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 28px;
}

.radar-label {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 8, 8, 0.72);
}

.radar-label strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(18px, 2vw, 28px);
}

.radar-top {
  top: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.radar-right {
  top: 50%;
  right: 7%;
  transform: translateY(-50%);
}

.radar-bottom {
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.radar-left {
  top: 50%;
  left: 7%;
  transform: translateY(-50%);
}

.developer-section {
  align-items: center;
}

.developer-copy {
  max-width: 440px;
}

.terminal-window {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.54);
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.terminal-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
}

.terminal-head span:nth-child(2) {
  background: var(--amber);
}

.terminal-head span:nth-child(3) {
  background: var(--mint);
}

.terminal-head strong {
  margin-left: 6px;
  color: var(--muted);
}

pre {
  margin: 0;
  padding: 24px;
  overflow: auto;
  color: #d9fff8;
  font-family: "Space Grotesk", Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.stream-output {
  min-height: 78px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  color: var(--mint);
  font-family: "Space Grotesk", Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.stream-output i {
  display: inline-block;
  width: 7px;
  height: 16px;
  margin-left: 4px;
  vertical-align: -3px;
  background: var(--mint);
  animation: blink 900ms steps(2) infinite;
}

.visual-terminal {
  min-height: 430px;
}

.visual-lines {
  display: grid;
  gap: 18px;
  padding: 32px 28px 10px;
}

.visual-lines span {
  position: relative;
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.065);
}

.visual-lines span::after {
  position: absolute;
  inset: 0;
  width: 30%;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: meterFlow 3.6s ease-in-out infinite;
}

.visual-lines span:nth-child(2) {
  width: 82%;
}

.visual-lines span:nth-child(2)::after {
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  animation-delay: 0.25s;
}

.visual-lines span:nth-child(3) {
  width: 64%;
}

.visual-lines span:nth-child(3)::after {
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  animation-delay: 0.5s;
}

.visual-lines span:nth-child(4) {
  width: 92%;
}

.visual-lines span:nth-child(4)::after {
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation-delay: 0.75s;
}

.visual-lines span:nth-child(5) {
  width: 72%;
}

.market-section {
  padding: 84px 0 104px;
  overflow: hidden;
}

.market-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--cyan);
  font-weight: 800;
}

.model-rail {
  display: flex;
  width: max-content;
  gap: 14px;
  padding-block: 12px;
  animation: marquee 36s linear infinite;
}

.model-rail:hover {
  animation-play-state: paused;
}

.model-card {
  width: 270px;
  min-height: 168px;
  padding: 20px;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease;
}

.model-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.model-card h3 {
  margin: 10px 0 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 22px;
}

.model-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.model-meta b {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 11px;
}

.health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
}

.health::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.cta-section {
  padding: 24px clamp(20px, 5vw, 72px) 116px;
}

.cta-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px);
  border-radius: var(--radius);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.12), transparent 42%),
    linear-gradient(225deg, rgba(255, 114, 92, 0.12), transparent 45%),
    var(--panel);
}

.cta-inner h2 {
  margin-bottom: 0;
}

.cta-inner div {
  justify-content: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 9, 0.72);
}

.site-footer nav {
  display: flex;
  gap: 14px;
}

.doc main,
main.doc {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 72px;
}

.doc h1,
main.doc h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.doc section,
main.doc section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.doc p,
main.doc p {
  color: var(--muted);
  line-height: 1.75;
}

.reveal {
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes routeDash {
  to {
    stroke-dashoffset: -52;
  }
}

@keyframes valveSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes meterFlow {
  0% {
    transform: translateX(-120%);
    opacity: 0.1;
  }

  100% {
    transform: translateX(260%);
    opacity: 0.9;
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .hero-section,
  .strategy-layout,
  .developer-section,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 520px;
  }

  .developer-copy {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    flex-wrap: initial;
    width: 100%;
    max-width: 100vw;
  }

  .brand-mark {
    min-width: 0;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
  }

  .site-nav,
  .header-actions {
    display: none;
    width: 100%;
  }

  .site-header.nav-open .site-nav,
  .site-header.nav-open .header-actions {
    display: grid;
  }

  .hero-section {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    min-height: auto;
    padding-top: 108px;
  }

  .hero-copy {
    max-width: calc(100vw - 40px);
  }

  .hero-actions {
    margin-top: 28px;
  }

  .home-page {
    background-color: var(--bg);
  }

  h1 {
    font-size: clamp(38px, 10.5vw, 42px);
    line-height: 1.06;
  }

  .hero-lede {
    font-size: 17px;
    max-width: 100%;
    word-break: break-all;
  }

  .base-url-panel {
    grid-template-columns: 1fr auto;
  }

  .base-url-panel span {
    grid-column: 1 / -1;
  }

  .hero-stage {
    min-height: 620px;
  }

  .route-map {
    inset: 18px;
  }

  .ingress-node {
    left: 50%;
    top: 34px;
    transform: translateX(-50%);
  }

  .route-valve {
    top: 210px;
    left: 50%;
  }

  .provider-node {
    right: auto;
    top: 338px;
    width: 30%;
    height: 76px;
    transform: none;
  }

  .provider-openai {
    bottom: auto;
    left: 2%;
  }

  .provider-qwen {
    bottom: auto;
    left: 35%;
  }

  .provider-codex {
    bottom: auto;
    left: 68%;
  }

  .route-map svg {
    opacity: 0.26;
  }

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

  .metric-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .metric-stack div {
    padding: 14px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .metric-stack div:last-child {
    border-right: 0;
  }

  .metric-stack strong {
    font-size: 28px;
  }

  .price-radar {
    width: min(100%, 430px);
  }

  .radar-label {
    position: static;
    transform: none;
  }

  .price-radar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    aspect-ratio: auto;
    padding: 22px;
    border-radius: var(--radius);
  }

  .price-radar svg,
  .radar-grid,
  .price-radar::before,
  .price-radar::after {
    display: none;
  }

  .radar-center {
    grid-column: 1 / -1;
    width: 100%;
  }

  .market-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .model-card {
    width: 235px;
  }
}
