:root {
  color-scheme: light;
  --ink: #111513;
  --muted: #59625d;
  --paper: #f5f6f0;
  --white: #ffffff;
  --line: #d9ded2;
  --charcoal: #17201d;
  --accent: #f16e3f;
  --accent-hover: #d95b32;
  --accent-soft: rgba(241, 110, 63, 0.14);
  --accent-line: rgba(241, 110, 63, 0.45);
  --copper: #f16e3f;
  --cyan: #6dd7df;
  --soft-green: #dce9cf;
  --shadow: 0 24px 70px rgba(17, 21, 19, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(17, 21, 19, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.nav-cta,
.button,
.step-tab {
  min-height: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  border-radius: 8px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  border-radius: 6px;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 760;
  background: var(--accent);
  border-radius: 8px;
}

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 78svh;
  padding: 120px clamp(18px, 6vw, 78px) 86px;
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 14, 12, 0.98) 0%, rgba(10, 14, 12, 0.88) 48%, rgba(10, 14, 12, 0.7) 100%),
    #111513;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(245, 246, 240, 0), var(--paper));
  pointer-events: none;
}

.hero-content,
.hero-metrics {
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.hero-system-art {
  position: absolute;
  inset: 112px clamp(18px, 6vw, 78px) 68px auto;
  z-index: 1;
  width: min(520px, 40vw);
  color: var(--white);
  opacity: 0.86;
}

.hero-code-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #0c1110;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.hero-code-top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-code-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.hero-code-top span:first-child {
  background: var(--accent);
}

.hero-code-top strong {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-code-window pre {
  min-height: 320px;
  margin: 0;
  padding: 22px;
  color: #dce4dc;
  font: 0.9rem/1.68 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

.hero-token-row {
  display: grid;
  gap: 7px;
  padding: 0 22px 22px;
}

.hero-token-row span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(109, 215, 223, 0.62), rgba(255, 255, 255, 0.08));
}

.hero-token-row span:nth-child(2) {
  width: 78%;
}

.hero-token-row span:nth-child(3) {
  width: 64%;
}

.hero-token-row span:nth-child(4) {
  width: 86%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 7.2vw, 6.8rem);
  text-wrap: balance;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2.2vw, 1.38rem);
}

.hero-actions,
.contact-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  padding: 0 18px;
  font-weight: 780;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.step-tab:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.metric-strip {
  position: relative;
  z-index: 2;
  padding: 0 clamp(18px, 6vw, 78px) clamp(56px, 7vw, 88px);
  margin-top: -46px;
  background: var(--paper);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1080px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.hero-metrics div {
  min-height: 118px;
  padding: 22px;
  background: rgba(17, 21, 19, 0.72);
}

.hero-metrics span {
  display: block;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 830;
  line-height: 1;
}

.hero-metrics p {
  max-width: 260px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.95rem;
}

.section {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 6vw, 78px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.33fr) minmax(0, 0.95fr);
  gap: clamp(22px, 5vw, 80px);
  align-items: start;
  max-width: 1220px;
  margin: 0 auto 46px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section h2 {
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  text-wrap: balance;
}

.intro-band {
  background: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  max-width: 1220px;
  margin: 0 auto;
}

.copy-stack {
  color: var(--muted);
  font-size: 1.06rem;
}

.copy-stack p:first-child {
  margin-top: 0;
}

.feature-grid,
.market-grid,
.mechanics-grid,
.plans-grid,
.pilot-grid {
  display: grid;
  gap: 14px;
}

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

.feature-grid article,
.market-grid article,
.mechanics-grid article,
.plans-grid article,
.pilot-grid article {
  min-height: 190px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid h3,
.market-grid h3,
.mechanics-grid h3,
.plans-grid h3,
.pilot-grid h3,
.scheduler-panel h3 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.12;
}

.feature-grid p,
.market-grid p,
.mechanics-grid p,
.plans-grid p,
.pilot-grid p {
  margin: 14px 0 0;
  color: var(--muted);
}

.market-band {
  background: #fbfcf8;
}

.market-grid {
  max-width: 1220px;
  margin: 0 auto;
}

.market-grid article:first-child {
  grid-row: span 2;
}

.market-grid span {
  display: block;
  margin-bottom: 64px;
  color: var(--copper);
  font-weight: 830;
}

.market-grid article:first-child span {
  margin-bottom: 150px;
}

.mechanics-band {
  background: var(--soft-green);
}

.mechanics-grid,
.pilot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1220px;
  margin: 0 auto;
}

.mechanics-grid article {
  background: rgba(255, 255, 255, 0.72);
}

.mechanics-grid span {
  display: block;
  margin-bottom: 42px;
  color: var(--copper);
  font-weight: 830;
}

.speed-band {
  color: var(--white);
  background: var(--charcoal);
}

.speed-band .section-heading {
  color: var(--white);
}

.speed-demo {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.speed-copy {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.speed-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
}

.speed-stats {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.speed-stats div {
  min-height: 86px;
  padding: 16px;
  background: rgba(17, 21, 19, 0.64);
}

.speed-stats dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.speed-stats dd {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 1.65rem;
  font-weight: 840;
  line-height: 1;
}

.stream-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0c1110;
  box-shadow: var(--shadow);
}

.stream-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stream-toolbar > div {
  display: grid;
  gap: 3px;
}

.stream-label {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stream-toolbar strong {
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1;
}

.stream-toolbar output {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stream-action {
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-weight: 780;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.stream-action:hover {
  background: var(--accent-hover);
}

.code-stream {
  min-height: 390px;
  max-height: 390px;
  margin: 0;
  padding: 22px;
  overflow: hidden;
  white-space: pre-wrap;
  color: #dce4dc;
  font: 0.92rem/1.62 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    #111513;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.code-stream code {
  font: inherit;
}

.stream-cursor {
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
}

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

  50.01%,
  100% {
    opacity: 0;
  }
}

.tok-keyword {
  color: #f0a46f;
  font-weight: 780;
}

.tok-call {
  color: var(--cyan);
}

.tok-string {
  color: #d7df8e;
}

.tok-comment {
  color: rgba(255, 255, 255, 0.42);
}

.tok-number {
  color: #f5c28f;
}

.stream-controls {
  display: grid;
  gap: 12px;
}

.stream-controls input {
  width: 100%;
  accent-color: var(--accent);
}

.rate-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rate-presets button {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.74);
  font: inherit;
  font-weight: 780;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.rate-presets button::after {
  content: " tok/s";
  color: rgba(255, 255, 255, 0.42);
  font-weight: 620;
}

.rate-presets button.is-active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.rate-presets button.is-active::after {
  color: rgba(17, 21, 19, 0.68);
}

.calculator-band {
  background: var(--paper);
}

.calculator {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px;
  background: var(--charcoal);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calc-controls {
  display: grid;
  gap: 2px;
}

.calc-controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.calc-controls span {
  color: rgba(255, 255, 255, 0.72);
}

.calc-controls strong {
  color: var(--accent);
  font-size: 1.16rem;
}

.calc-controls input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--accent);
}

.calc-results {
  display: grid;
  align-content: space-between;
  min-height: 100%;
  padding: clamp(24px, 4vw, 42px);
  background: var(--white);
  border-radius: 6px;
}

.result-lead span {
  display: block;
  color: var(--copper);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 860;
  line-height: 0.85;
}

.result-lead p {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 760;
}

.result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 38px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.result-list div {
  min-height: 96px;
  padding: 18px;
  background: #fbfcf8;
}

.result-list dt {
  color: var(--muted);
  font-size: 0.88rem;
}

.result-list dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 820;
}

.formula-note {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plans-band {
  background: #fbfcf8;
}

.plans-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1220px;
  margin: 0 auto;
}

.plans-grid article {
  display: grid;
  align-content: space-between;
  gap: 26px;
}

.plan-label {
  margin: 0;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plans-grid h3 {
  color: var(--ink);
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.plans-grid h3 span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 720;
}

.scheduler-band {
  color: var(--white);
  background: #111513;
}

.scheduler-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.62fr);
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.scheduler-visual,
.scheduler-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.scheduler-visual {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.slot-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.slot {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 820;
}

.slot.active {
  color: var(--ink);
  background: var(--accent);
}

.slot.warm {
  color: var(--ink);
  background: var(--cyan);
}

.slot.waiting {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pipeline div {
  min-height: 82px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 760;
}

.pipeline span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.scheduler-map {
  display: grid;
  grid-template-columns: minmax(112px, 0.28fr) minmax(360px, 1fr) minmax(130px, 0.32fr);
  gap: 16px;
  min-height: 390px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.04);
}

.queue-column,
.batch-column {
  display: grid;
  align-content: center;
  gap: 8px;
}

.queue-column p,
.batch-column p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.queue-column span,
.batch-column span {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 8px;
  font-weight: 820;
}

.queue-column span {
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.batch-column span {
  color: var(--ink);
  background: var(--accent);
}

.batch-column span:nth-of-type(4),
.batch-column span:nth-of-type(5) {
  background: var(--cyan);
}

.loop-core {
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(128px, 0.74fr) minmax(145px, 1fr);
  gap: 14px;
  align-items: center;
  position: relative;
}

.loop-core::before,
.loop-core::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.loop-core::before {
  left: 28%;
  right: 56%;
}

.loop-core::after {
  left: 56%;
  right: 28%;
}

.loop-node,
.gate-stack {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.loop-node {
  display: grid;
  align-content: center;
  min-height: 170px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.09);
}

.loop-node strong {
  font-size: 1rem;
  line-height: 1.1;
}

.loop-node small {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.gate-stack {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: rgba(17, 21, 19, 0.64);
}

.gate-stack span {
  display: grid;
  place-items: center;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 760;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.scheduler-panel {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 18px;
}

.step-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.step-tab {
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
}

.step-tab.is-active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.step-copy {
  min-height: 260px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.step-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-weight: 820;
}

.step-copy p:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.gate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.gate-list span {
  display: grid;
  place-items: center;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.pilot-band {
  background: var(--paper);
}

.contact-band {
  justify-content: space-between;
  color: var(--white);
  background: var(--charcoal);
}

.contact-copy {
  max-width: 800px;
}

.contact-copy h2 {
  max-width: 850px;
}

.contact-copy p:last-child {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(18px, 6vw, 78px);
  color: rgba(255, 255, 255, 0.7);
  background: #0b0f0d;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
  color: var(--white);
  font-weight: 780;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 1180px) {
  .scheduler-layout {
    grid-template-columns: 1fr;
  }

  .scheduler-panel {
    grid-template-columns: minmax(280px, 0.72fr) minmax(220px, 0.48fr);
    align-items: start;
  }

  .step-tabs,
  .step-copy {
    grid-column: 1;
  }

  .gate-list {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-system-art {
    inset: 118px 20px 72px auto;
    width: min(460px, 58vw);
    opacity: 0.38;
  }

  .hero-metrics,
  .section-heading,
  .split,
  .market-grid,
  .mechanics-grid,
  .speed-demo,
  .calculator,
  .scheduler-layout,
  .scheduler-panel,
  .plans-grid,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 8px;
  }

  .market-grid article:first-child {
    grid-row: auto;
  }

  .market-grid span,
  .market-grid article:first-child span {
    margin-bottom: 42px;
  }

  .code-stream {
    min-height: 340px;
    max-height: 340px;
  }

  .scheduler-map {
    grid-template-columns: 1fr;
  }

  .queue-column,
  .batch-column {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-content: stretch;
  }

  .queue-column p,
  .batch-column p {
    grid-column: 1 / -1;
  }

  .loop-core {
    grid-template-columns: 1fr;
  }

  .loop-core::before,
  .loop-core::after {
    display: none;
  }

  .step-tabs,
  .step-copy,
  .gate-list {
    grid-column: auto;
    grid-row: auto;
  }

}

@media (max-width: 660px) {
  .site-header {
    padding: 12px 14px;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .hero {
    min-height: 76svh;
    padding: 104px 16px 76px;
  }

  .hero-system-art {
    inset: auto 16px 26px 16px;
    width: auto;
    opacity: 0.16;
  }

  .hero-code-window pre {
    min-height: 220px;
    padding: 16px;
    font-size: 0.74rem;
  }

  .hero-token-row {
    padding: 0 16px 16px;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.9rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-metrics div {
    min-height: 112px;
    padding: 18px;
  }

  .section {
    padding: 66px 16px;
  }

  .section h2 {
    font-size: clamp(2.1rem, 11vw, 3.4rem);
  }

  .feature-grid,
  .result-list,
  .step-tabs,
  .rate-presets,
  .pipeline,
  .gate-list,
  .queue-column,
  .batch-column {
    grid-template-columns: 1fr;
  }

  .scheduler-map {
    min-height: auto;
    padding: 12px;
  }

  .loop-node {
    min-height: 132px;
  }

  .speed-copy,
  .stream-card {
    padding: 14px;
  }

  .stream-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .code-stream {
    min-height: 300px;
    max-height: 300px;
    padding: 16px;
    font-size: 0.84rem;
  }

  .calculator {
    padding: 10px;
  }

  .calc-controls label {
    min-height: 96px;
    padding: 16px;
  }

  .calc-results {
    padding: 24px;
  }

  .slot-row {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    overflow-x: auto;
  }
}
