/* deytt.space production visual system — loaded after legacy page styles. */

:root {
  --canvas: #f2f5fa;
  --paper: #ffffff;
  --paper-2: #e9eef8;
  --paper-3: #dfe7f5;
  --ink: #080e1c;
  --ink-2: #17233b;
  --copy: #46536a;
  --muted: #738099;
  --line: rgba(22, 35, 59, 0.14);
  --line-strong: rgba(22, 35, 59, 0.24);
  --blue: #6674ff;
  --blue-deep: #4655ed;
  --blue-soft: #dfe3ff;
  --cyan: #8ce8ff;
  --mint: #69edbd;
  --violet: #b99bff;
  --night: #070a12;
  --night-2: #0c1220;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Inter Tight", "Segoe UI", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-soft: 0 24px 70px rgba(15, 28, 54, 0.09);
  --shadow-float: 0 30px 100px rgba(15, 28, 54, 0.16);
  color-scheme: light;
}

html[data-theme="dark"] {
  --canvas: #070a12;
  --paper: #0d1320;
  --paper-2: #111a2a;
  --paper-3: #172137;
  --ink: #f4f7ff;
  --ink-2: #dbe4f6;
  --copy: #aab7ce;
  --muted: #7f8ca5;
  --line: rgba(190, 208, 240, 0.14);
  --line-strong: rgba(190, 208, 240, 0.24);
  --blue: #7b87ff;
  --blue-deep: #6977ff;
  --blue-soft: #202b50;
  --shadow-soft: 0 28px 80px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 34px 110px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

html {
  scroll-padding-top: 112px;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(140, 232, 255, 0.28), transparent 28rem),
    radial-gradient(circle at 91% 3%, rgba(185, 155, 255, 0.22), transparent 32rem),
    var(--canvas);
}

body::before {
  opacity: 0.2;
  background-image: radial-gradient(rgba(8, 14, 28, 0.24) 0.55px, transparent 0.55px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 70vh);
}

body::after { display: none; }

button,
a,
summary,
input { touch-action: manipulation; }

button,
[role="button"],
.button,
.route-link,
.nav-action {
  -webkit-user-select: none;
  user-select: none;
}

:where(a, button, input, summary, canvas):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 75%, var(--blue));
  outline-offset: 4px;
}

:where(h1, h2, h3) {
  text-wrap: balance;
}

:where(p, li) {
  text-wrap: pretty;
}

:where(h1, h2, h3, p, a, span, strong, small) {
  overflow-wrap: break-word;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: #0a1020;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1320px, calc(100% - 56px));
}

/* Header */
.topbar-wrap {
  top: 0;
  padding-top: max(14px, env(safe-area-inset-top, 0px));
}

.topbar {
  min-height: 66px;
  padding: 8px 9px 8px 22px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  box-shadow: 0 14px 42px rgba(17, 30, 57, 0.08);
  backdrop-filter: blur(24px) saturate(145%);
}

html[data-theme="dark"] .topbar {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 26, 0.78);
}

.brand {
  font-size: 22px;
  letter-spacing: -0.055em;
}

.nav {
  gap: 3px;
}

.nav-primary,
.nav-tools {
  display: flex;
  align-items: center;
  gap: 3px;
}

.nav-tools { margin-left: 8px; }

.nav a,
.theme-toggle {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 120ms var(--ease-out);
}

.nav .route-link {
  gap: 6px;
  padding-inline: 12px;
  color: var(--copy);
  font-size: 12px;
}

.route-index {
  color: var(--muted);
  font-size: 7px;
}

.nav .route-link[aria-current="page"] {
  border-color: var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper-2) 74%, transparent);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.theme-toggle {
  padding-inline: 10px;
  color: var(--copy);
}

.theme-icon {
  width: 31px;
  height: 18px;
  background: var(--blue-soft);
}

.theme-icon i {
  width: 14px;
  height: 14px;
  border-width: 3px;
  transition: transform 200ms var(--ease-in-out), border-color 160ms ease, background-color 160ms ease;
}

html[data-theme="dark"] .theme-icon i { transform: translateX(13px); }

.nav .nav-action {
  min-height: 44px;
  padding-inline: 17px;
  border-radius: 12px;
  color: #f8fbff;
  background: var(--ink);
  box-shadow: none;
}

html[data-theme="dark"] .nav .nav-action { color: #07101c; background: var(--cyan); }

.nav a:active,
.theme-toggle:active,
.button:active,
.bot-button:active,
.mode-button:active,
.atlas-route:active,
.micro-button:active,
.measure-action:active,
.contact-card:active { transform: scale(0.97); }

.ready-plans span:hover,
.app-card:hover { transform: none; }

.network-atlas__tooltip {
  transform-origin: 50% 100%;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .nav a:not(.nav-action):hover,
  .theme-toggle:hover {
    border-color: var(--line-strong);
    color: var(--ink);
    background: color-mix(in srgb, var(--paper-2) 72%, transparent);
    transform: none;
  }

  .nav .nav-action:hover,
  .button-primary:hover,
  .measure-action:hover {
    color: #fff;
    background: var(--blue-deep);
    transform: translateY(-1px);
  }
}

/* Home: first screen */
.hero {
  min-height: min(940px, calc(100svh - 12px));
  padding: clamp(62px, 7vw, 104px) 0 54px;
}

.hero > .shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.83fr) minmax(540px, 1.17fr);
  gap: clamp(34px, 4vw, 72px);
  align-items: center;
}

.hero .dither-canvas,
.page-hero .dither-canvas,
.speed-hero .dither-canvas {
  opacity: 0.46;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.72) 64%, transparent 100%);
}

.hero-head {
  max-width: 610px;
  margin: 0;
  text-align: left;
  animation: production-enter 720ms var(--ease-out) both;
}

.hero .eyebrow,
.page-hero .eyebrow,
.speed-heading .eyebrow {
  margin-bottom: 28px;
  color: var(--copy);
}

.hero h1 {
  margin-bottom: 28px;
  font-family: var(--body);
  font-size: clamp(68px, 7.2vw, 112px);
  font-weight: 900;
  line-height: 0.77;
  letter-spacing: -0.078em;
}

.hero-line-accent {
  color: var(--blue);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero .lead {
  max-width: 560px;
  margin: 0;
  color: var(--copy);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.42;
}

.hero .actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  padding-inline: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  box-shadow: none;
  transition:
    transform 120ms var(--ease-out),
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.button-primary {
  border-color: #4c5bd5;
  color: #fff;
  background: #4c5bd5;
  box-shadow: 0 16px 36px rgba(70, 85, 237, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  .button:not(.button-primary):hover {
    border-color: var(--blue);
    background: var(--paper);
    transform: translateY(-1px);
  }
}

.globe-panel {
  display: block;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(140, 232, 255, 0.2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 52% 48%, rgba(102, 116, 255, 0.19), transparent 34%),
    linear-gradient(145deg, #11192c 0%, #080d18 64%, #080b13 100%);
  box-shadow: var(--shadow-float);
  isolation: isolate;
  animation: production-enter 820ms 80ms var(--ease-out) both;
}

.globe-panel::before {
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(140, 232, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 232, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.globe-panel::after {
  content: "live / 04 routes";
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 6;
  color: #8ea0bd;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.globe-stage {
  min-height: 640px;
  padding: 26px;
}

.globe-stage-head {
  top: 22px;
  left: 22px;
}

.globe-stage-head strong,
.globe-stage-head span {
  color: #b9c7de;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.globe-wrap {
  width: min(112%, 720px);
  margin-bottom: -15%;
}

.drag-hint {
  bottom: 24px;
  color: #aebdd4;
  background: rgba(6, 10, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fact-rail {
  grid-column: 1 / -1;
  margin-top: -4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 68%, transparent);
  backdrop-filter: blur(16px);
}

.fact {
  min-height: 98px;
  padding: 21px 24px;
  border-color: var(--line);
}

.fact strong {
  margin-bottom: 5px;
  font-family: var(--body);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.055em;
}

.fact-label { font-size: 10px; }

/* Shared section rhythm */
.section { padding: clamp(96px, 10vw, 154px) 0; }

.section-label,
.panel-label,
.micro-label,
.eyebrow {
  letter-spacing: 0.015em;
}

.truth-section {
  border-top: 0;
}

.truth-grid {
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  min-height: 700px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.truth-copy {
  padding: clamp(34px, 4.4vw, 62px);
  border-right-color: var(--line);
  background:
    radial-gradient(circle at 8% 92%, rgba(140, 232, 255, 0.18), transparent 34%),
    var(--paper);
}

.truth-copy h2,
.section-title,
.route-card h2,
.page-hero h1,
.speed-heading h1,
.tariff-copy h2,
.document-section h2,
.cta-panel h2,
.cta h2 {
  font-family: var(--body);
  font-weight: 900;
  letter-spacing: -0.065em;
}

.truth-copy h2 { font-size: clamp(46px, 4.7vw, 68px); line-height: 0.88; }

.truth-point {
  grid-template-columns: 38px 1fr;
  gap: 13px;
  padding-block: 15px;
  border-color: var(--line);
}

.truth-point b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-2);
}

.bot-lab {
  padding: clamp(24px, 4vw, 56px);
  background:
    linear-gradient(rgba(7, 10, 18, 0.84), rgba(7, 10, 18, 0.96)),
    radial-gradient(circle at 62% 30%, rgba(102, 116, 255, 0.48), transparent 42%);
}

.bot-stage-shell {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(13, 19, 32, 0.84);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
}

.bot-route-rail { background: rgba(4, 8, 15, 0.72); }

.bot-stage-shell .bot-demo {
  border-radius: 19px;
}

.bot-button,
.mode-button {
  transition:
    transform 120ms var(--ease-out),
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

/* Network/service section */
.apps-section {
  margin-inline: max(12px, calc((100% - 1440px) / 2));
  border-radius: 42px;
  color: #f3f7ff;
  background:
    linear-gradient(180deg, rgba(12, 18, 32, 0.66), rgba(5, 8, 15, 0.92)),
    #070a12;
  box-shadow: 0 40px 130px rgba(7, 10, 18, 0.24);
}

.apps-section::after { top: 1px; }

.apps-head {
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(44px, 8vw, 120px);
  align-items: end;
}

.apps-head .section-label,
.apps-copy { color: #aebbd1; }

.section-title { font-size: clamp(60px, 7.6vw, 108px); line-height: 0.82; }
.section-title .accent { color: var(--cyan); }

.hub-board {
  grid-template-columns: 1.18fr 0.82fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.025);
}

.hub-map {
  min-height: 560px;
  border-right-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 48%, rgba(102, 116, 255, 0.2), transparent 26%),
    linear-gradient(rgba(140, 232, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 232, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
}

.hub-core { border-radius: 28px; }

.hub-ledger { padding: clamp(30px, 4vw, 56px); }
.hub-ledger h3 { font-family: var(--body); font-weight: 900; letter-spacing: -0.055em; }

.protocol-stack > div {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.app-grid {
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
}

.app-card {
  min-height: 350px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
}

.app-card-primary {
  background:
    radial-gradient(circle at 85% 20%, rgba(140, 232, 255, 0.16), transparent 30%),
    #101829;
}

.app-card-secondary {
  background:
    radial-gradient(circle at 85% 20%, rgba(185, 155, 255, 0.14), transparent 30%),
    #0b111e;
}

.app-card h3 { font-family: var(--body); font-weight: 900; letter-spacing: -0.055em; }

/* Route choices and CTA */
.route-section { padding-block: clamp(100px, 11vw, 160px); }

.route-board {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.route-card {
  min-height: 520px;
  padding: clamp(30px, 4vw, 54px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: none;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.route-card-tariffs {
  background:
    radial-gradient(circle at 82% 18%, rgba(102, 116, 255, 0.2), transparent 30%),
    var(--paper);
}

.route-card-info { background: var(--paper-2); }
.route-card h2 { font-size: clamp(50px, 6vw, 86px); line-height: 0.85; }

@media (hover: hover) and (pointer: fine) {
  .route-card:hover,
  .contact-card:hover {
    border-color: color-mix(in srgb, var(--blue) 65%, var(--line));
    box-shadow: var(--shadow-soft);
    transform: translateY(-4px);
  }
}

.cta-section,
.page-cta { padding-bottom: max(96px, env(safe-area-inset-bottom, 0px)); }

.cta,
.cta-panel {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(140, 232, 255, 0.16);
  border-radius: 34px;
  color: #f6f9ff;
  background: #070a12;
  box-shadow: var(--shadow-float);
}

.cta-main { align-items: end; }
.cta h2,
.cta-panel h2 { font-size: clamp(62px, 8vw, 112px); line-height: 0.78; }

.cta .button,
.cta-panel .button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #07101c;
  background: var(--cyan);
}

/* Secondary page heroes */
.page-hero,
.speed-hero {
  padding: clamp(92px, 10vw, 144px) 0 clamp(64px, 8vw, 112px);
}

.page-hero-grid,
.speed-heading {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.58fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
}

.page-hero h1,
.speed-heading h1 {
  margin: 0;
  font-size: clamp(76px, 9.4vw, 138px);
  line-height: 0.75;
}

.page-hero h1 .accent,
.speed-heading h1 span { color: var(--blue); }

.hero-note,
.speed-heading__note {
  max-width: 470px;
  margin: 0 0 6px;
  color: var(--copy);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.45;
}

/* Tariffs */
.tariff-console {
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.tariff-copy,
.calculator { padding: clamp(34px, 5vw, 68px); }
.tariff-copy { border-right-color: var(--line); }
.tariff-copy h2 { font-size: clamp(58px, 6.4vw, 92px); line-height: 0.82; }

.ready-plans {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ready-plans span {
  border-color: var(--line);
  background: transparent;
}

.calculator {
  color: #f5f8ff;
  background:
    radial-gradient(circle at 88% 10%, rgba(140, 232, 255, 0.13), transparent 30%),
    #080d18;
}

.calculator input[type="range"] { accent-color: var(--cyan); }

.result-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.result-card-primary { color: #07101c; background: var(--cyan); }
.result-card-primary .micro-label { color: rgba(7, 16, 28, 0.72); }

.payment-section,
.include-section { padding-block: clamp(100px, 10vw, 150px); }

.section-head {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.section-head h2 {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(58px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.065em;
}

.payment-ledger {
  grid-template-columns: 1.1fr 0.9fr;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
}

.payment-ledger article {
  min-height: 180px;
  border-color: var(--line);
  background: transparent;
}

.payment-ledger article:first-child {
  grid-row: span 2;
  min-height: 326px;
  background:
    radial-gradient(circle at 84% 18%, rgba(102, 116, 255, 0.18), transparent 34%),
    var(--paper-2);
}

.payment-ledger article:not(:first-child) { min-height: 156px; }

.payment-ledger article strong { font-family: var(--body); font-weight: 900; }

.include-board {
  grid-template-columns: 1.18fr 0.82fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
}

.include-card { border-color: var(--line); background: transparent; }
.include-card:first-child { background: var(--paper-2); }
.include-card h3 { font-size: clamp(45px, 5vw, 72px); line-height: 0.9; }

/* Info */
.info-layout {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.contents-rail {
  position: sticky;
  top: 106px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  backdrop-filter: blur(18px);
}

.contents-rail a {
  min-height: 62px;
  border-color: var(--line);
  transition: color 160ms ease, background-color 160ms ease;
}

.document {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.document-section {
  scroll-margin-top: 118px;
  padding: clamp(36px, 6vw, 82px);
  border-color: var(--line);
}

.document-section:nth-child(even) { background: color-mix(in srgb, var(--paper-2) 64%, var(--paper)); }
.document-section h2 { font-size: clamp(50px, 6.3vw, 88px); line-height: 0.86; }
.document-section h3 { margin-top: 42px; font-size: clamp(21px, 2vw, 28px); }
.document-section > p,
.document-section li { max-width: 780px; font-size: 17px; line-height: 1.68; }

.data-grid {
  grid-template-columns: 1.2fr 0.8fr;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.data-card { border-color: var(--line); background: transparent; }
.data-card:first-child { grid-row: span 2; }

.plain-note {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}

.faq-item { border-color: var(--line); }
.faq-item summary { min-height: 70px; }

.contact-grid { grid-template-columns: 1.2fr 0.8fr; gap: 12px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-2);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, box-shadow 180ms ease;
}
.contact-card:first-child { grid-row: span 2; }

/* Speed */
.speed-atlas {
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
  overflow: hidden;
  border: 1px solid rgba(140, 232, 255, 0.16);
  border-radius: 32px;
  background: #070a12;
  box-shadow: var(--shadow-float);
}

.speed-stage { min-height: 820px; }
.speed-console { padding: clamp(28px, 3vw, 44px); border-color: rgba(255, 255, 255, 0.1); }

.atlas-route,
.micro-button,
.measure-action {
  transition:
    transform 120ms var(--ease-out),
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.speed-explainer {
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 12px;
  padding-block: clamp(88px, 10vw, 148px);
}

.speed-explainer article {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.speed-explainer article:first-child { background: var(--paper-2); }
.speed-explainer h2 { font-family: var(--body); font-weight: 900; letter-spacing: -0.055em; }

/* Footer */
.footer {
  padding-block: 44px max(44px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
}

.footer-links { gap: 6px; }
.footer-links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  transition: color 160ms ease, background-color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover { color: var(--ink); background: var(--paper-2); }
}

@keyframes production-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

html[data-reveal-ready] [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(18px);
}

html[data-reveal-ready] [data-reveal] {
  transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
}

/* Tablet */
@media (max-width: 1080px) {
  .shell { width: min(100% - 36px, 980px); }

  .nav .route-link { padding-inline: 9px; }
  .route-index { display: none; }
  .theme-label { display: none; }

  .hero { min-height: auto; }
  .hero > .shell { grid-template-columns: minmax(300px, 0.8fr) minmax(440px, 1.2fr); gap: 28px; }
  .hero h1 { font-size: clamp(62px, 7.6vw, 84px); }
  .globe-panel,
  .globe-stage { min-height: 560px; }

  .truth-grid { grid-template-columns: 1fr; }
  .truth-copy { min-height: 560px; border-right: 0; border-bottom: 1px solid var(--line); }
  .bot-lab { min-height: 680px; }

  .hub-board,
  .include-board { grid-template-columns: 1fr; }
  .hub-map { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }

  .page-hero-grid,
  .speed-heading { grid-template-columns: 1fr; gap: 34px; }
  .hero-note,
  .speed-heading__note { max-width: 650px; }

  .speed-atlas { grid-template-columns: 1fr; }
  .speed-stage { min-height: 680px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .speed-console { border-left: 0; }
}

/* Mobile */
@media (max-width: 760px) {
  .shell { width: calc(100% - 28px); }

  html { scroll-padding-top: 124px; }

  .topbar-wrap { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    border-radius: 18px;
  }

  .brand { padding-left: 5px; }
  .nav { display: contents; }
  .nav-primary {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    order: 3;
    padding-top: 7px;
    border-top: 1px solid var(--line);
  }

  .nav-tools {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .nav .route-link {
    min-height: 36px;
    justify-content: center;
    padding-inline: 5px;
    font-size: 11px;
  }

  .nav .route-link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--blue); }
  .theme-toggle { min-width: 43px; min-height: 42px; padding-inline: 6px; }
  .nav .nav-action { min-height: 42px; padding-inline: 13px; }
  .nav-action-wide { display: none; }
  .nav-action-short { display: inline; }

  .hero {
    min-height: auto;
    padding: 58px 0 36px;
  }

  .hero > .shell { display: flex; flex-direction: column; gap: 36px; }
  .hero-head { max-width: none; text-align: left; }
  .hero .eyebrow { margin-bottom: 24px; }
  .hero h1 { font-size: clamp(60px, 19vw, 82px); line-height: 0.78; }
  .hero .lead { font-size: 18px; line-height: 1.45; }
  .hero .actions { display: grid; grid-template-columns: 1fr; }
  .hero .button { width: 100%; }

  .globe-panel,
  .globe-stage { min-height: 470px; }
  .globe-panel { width: 100%; border-radius: 26px; }
  .globe-stage { padding: 20px 4px; }
  .globe-wrap { width: 122%; margin: 46px -11% -18%; }
  .drag-hint { display: none; }
  .globe-panel::after { right: 18px; bottom: 16px; }

  .fact-rail {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: -20px;
  }
  .fact { min-height: 92px; padding: 18px; border-bottom: 1px solid var(--line); }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(n+3) { border-bottom: 0; }
  .fact strong { font-size: 26px; }

  .section { padding-block: 88px; }
  .truth-grid { border-radius: 24px; }
  .truth-copy { min-height: auto; padding: 30px 24px 36px; }
  .truth-copy h2 { font-size: clamp(47px, 14vw, 62px); }
  .bot-lab { min-height: 0; padding: 16px; }
  .bot-stage-shell { border-radius: 20px; }

  .apps-section { margin-inline: 8px; border-radius: 30px; }
  .apps-head,
  .section-head { grid-template-columns: 1fr; gap: 28px; }
  .section-title { font-size: clamp(52px, 16vw, 72px); }
  .hub-board { border-radius: 22px; }
  .hub-map { min-height: 410px; }
  .hub-ledger { padding: 26px 20px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 300px; border-radius: 22px; }

  .route-board { grid-template-columns: 1fr; }
  .route-card { min-height: 410px; border-radius: 23px; }
  .route-card h2 { font-size: clamp(48px, 14vw, 66px); }

  .cta,
  .cta-panel { min-height: 460px; border-radius: 26px; }
  .cta-main { align-items: start; }
  .cta h2,
  .cta-panel h2 { font-size: clamp(58px, 17vw, 76px); }

  .page-hero,
  .speed-hero { padding: 72px 0 52px; }
  .page-hero-grid,
  .speed-heading { gap: 28px; text-align: left; }
  .page-hero-grid .eyebrow { justify-content: flex-start; }
  .page-hero h1,
  .speed-heading h1 { font-size: clamp(68px, 21vw, 94px); }
  .hero-note,
  .speed-heading__note { font-size: 18px; }

  .tariff-console { grid-template-columns: 1fr; border-radius: 24px; }
  .tariff-copy,
  .calculator { padding: 28px 22px; }
  .tariff-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .tariff-copy h2 { font-size: clamp(55px, 16vw, 72px); }

  .payment-section,
  .include-section { padding-block: 88px; }
  .section-head h2 { font-size: clamp(55px, 16vw, 74px); }
  .payment-ledger { grid-template-columns: 1fr; border-radius: 22px; }
  .payment-ledger article:first-child { grid-row: auto; min-height: 220px; }
  .payment-ledger article { min-height: 150px; }
  .include-board { border-radius: 22px; }

  .info-layout { display: block; }
  .contents-rail {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 18px;
    border-radius: 18px;
  }
  .contents-rail a:last-child { grid-column: 1 / -1; }
  .document { border-radius: 24px; }
  .document-section { padding: 34px 22px; scroll-margin-top: 132px; }
  .document-section h2 { font-size: clamp(48px, 14vw, 66px); }
  .document-section > p,
  .document-section li { font-size: 16px; }
  .data-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .data-card:first-child,
  .contact-card:first-child { grid-row: auto; }

  .speed-atlas { border-radius: 24px; }
  .speed-stage { min-height: 500px; }
  .speed-console { padding: 24px 18px; }
  .speed-explainer { grid-template-columns: 1fr; }
  .speed-explainer article { min-height: 240px; }

  .footer { align-items: flex-start; }
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-head,
  .globe-panel {
    animation: production-fade 200ms ease both;
  }

  html[data-reveal-ready] [data-reveal],
  html[data-reveal-ready] [data-reveal]:not(.is-revealed) {
    opacity: 1;
    transform: none;
    transition: opacity 200ms ease;
  }

  .nav a,
  .theme-toggle,
  .button,
  .route-card,
  .contact-card,
  .bot-button,
  .mode-button,
  .atlas-route,
  .micro-button,
  .measure-action {
    transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  }

  .nav a:active,
  .theme-toggle:active,
  .button:active,
  .bot-button:active,
  .mode-button:active,
  .atlas-route:active,
  .micro-button:active,
  .measure-action:active,
  .contact-card:active { transform: none; }
}

@keyframes production-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
