/* Tachyon website. Values come from the design system (docs/design/system/tokens/*.css, the
   owner's Claude Design project): light by default, deep navy when the system prefers dark. The
   brand gradient is used sparingly: the logo, primary buttons, one headline phrase, the
   screenshot frame, the launch-race fill, the hero's orbit ring and the two section-divider
   hairlines. Never a page or section background. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  /* Self-hosted variable Latin subset (assets/fonts/, SIL Open Font License), so the page makes
     no request to a font service. */
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  /* Brand (tokens/colors.css) */
  --cyan: #00d1ff;
  --blue: #2563ff;
  --violet: #7c3aed;
  --navy: #0b1220;
  --blue-700: #1d45c8;
  --blue-800: #1e37a0;
  --gradient-brand: linear-gradient(90deg, #00d1ff 0%, #2563ff 50%, #7c3aed 100%);
  /* The design system's button gradients, kept as specified by owner decision (2026-10-03)
     even though white text on cyan -> blue measures 2.2-3.6:1: see the contrast note in
     docs/design/system/SNAPSHOT.md before changing them. */
  --gradient-button: linear-gradient(90deg, #00d1ff 0%, #2563ff 100%);
  --gradient-button-hover: linear-gradient(90deg, #00c8fa 0%, #2563ff 55%, #7c3aed 100%);
  --gradient-button-pressed: linear-gradient(90deg, #1d45c8 0%, #1e37a0 100%);
  --gradient-frame: linear-gradient(135deg, rgba(0, 209, 255, 0.6), rgba(37, 99, 255, 0.55), rgba(124, 58, 237, 0.6));

  /* Semantic, light */
  --surface-page: #f8fafc;
  --surface-card: #ffffff;
  --surface-sunken: #f1f5f9;
  --text-strong: #0b1220;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-link: #2563ff;
  --text-link-hover: #1d45c8;
  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --accent: #2563ff;
  --accent-soft: #eef3ff;
  --accent-soft-hover: #dce6ff;
  --tile-bg: linear-gradient(135deg, #f4f8ff 0%, #eef0ff 100%);
  --selection-bg: rgba(37, 99, 255, 0.18);
  --header-bg: rgba(248, 250, 252, 0.9);

  /* Shadows: soft, blue-tinted (tokens/spacing.css) */
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-sm: 0 1px 3px rgba(11, 18, 32, 0.06), 0 4px 12px -6px rgba(37, 99, 255, 0.12);
  --shadow-md: 0 1px 3px rgba(11, 18, 32, 0.05), 0 12px 32px -14px rgba(37, 99, 255, 0.22);
  --shadow-lg: 0 2px 6px rgba(11, 18, 32, 0.04), 0 30px 70px -28px rgba(37, 99, 255, 0.32);
  --shadow-glow-primary: 0 10px 24px -10px rgba(37, 99, 255, 0.6);
  --shadow-glow-cyan: 0 0 0 1px rgba(0, 209, 255, 0.14), 0 14px 40px -14px rgba(0, 209, 255, 0.4);
  --gradient-rule: linear-gradient(90deg, rgba(0, 209, 255, 0) 0%, #2563ff 40%, #7c3aed 60%, rgba(124, 58, 237, 0) 100%);
  /* Text on --accent-soft: --accent itself measures 4.39:1 there, below the 4.5:1 minimum. */
  --pill-text: var(--blue-700);
  --scroll-hint: rgba(11, 18, 32, 0.16);

  /* Type (tokens/typography.css) */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container: 1180px;
  --section-pad: 88px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Motion: fast and quiet */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-page: #0b1220;
    --surface-card: #111a2e;
    --surface-sunken: #141d33;
    --text-strong: #e9ecff;
    --text-body: #aeb9e0;
    --text-muted: #7c89b8;
    --text-link: #5cdbff;
    --text-link-hover: #e9ecff;
    --border-subtle: #1a2542;
    --border-default: #223055;
    --accent: #4d86ff;
    --accent-soft: rgba(37, 99, 255, 0.16);
    --accent-soft-hover: rgba(37, 99, 255, 0.26);
    --tile-bg: rgba(37, 99, 255, 0.14);
    --selection-bg: rgba(0, 209, 255, 0.22);
    --header-bg: rgba(11, 18, 32, 0.9);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -8px rgba(0, 209, 255, 0.12);
    --shadow-md: 0 0 0 1px rgba(0, 209, 255, 0.06), 0 16px 40px -18px rgba(0, 0, 0, 0.7), 0 10px 30px -16px rgba(37, 99, 255, 0.28);
    --shadow-lg: 0 0 0 1px rgba(0, 209, 255, 0.08), 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 20px 60px -24px rgba(0, 209, 255, 0.24);
    --pill-text: var(--text-link);
    --scroll-hint: rgba(0, 0, 0, 0.55);
  }
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--text-link);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text-link-hover);
}

::selection {
  background: var(--selection-bg);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}

kbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-strong);
  background: linear-gradient(180deg, var(--surface-card), var(--surface-sunken));
  border: 1px solid var(--border-default);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  white-space: nowrap;
}

.sprite {
  display: none;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface-card);
  color: var(--text-strong);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.muted {
  color: var(--text-body);
}

/* Buttons (components/actions/Button.jsx) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 16px/1 var(--font-sans);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast),
    box-shadow var(--dur-fast), transform var(--dur-fast) var(--ease-out), color var(--dur-fast);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  gap: 6px;
}

.btn-lg {
  height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-size: 17px;
  gap: 10px;
}

.btn-primary {
  background: var(--gradient-button);
  color: #ffffff;
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  background: var(--gradient-button-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--gradient-button-pressed);
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-strong);
  border-color: var(--border-default);
}

.btn-secondary:hover {
  color: var(--text-strong);
  border-color: var(--accent);
}

.btn-secondary:active {
  background: var(--surface-sunken);
}

/* Header: the one translucent surface (design system) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}

.site-header .wrap {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex: none;
}

.brand img {
  display: block;
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
}

.main-nav a:not(.btn):hover {
  color: var(--text-strong);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 72px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* The hero's eyebrow as a badge (concept sheet 6) */
.eyebrow-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--pill-text);
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(44px, 5.6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.45;
  color: var(--text-strong);
  max-width: 30ch;
}

.hero-body {
  margin: 0 0 32px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-features strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
}

.hero-features li > span:last-child {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* FeatureIcon (components/display/FeatureIcon.jsx): an icon in a soft rounded tile */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);
  background: var(--tile-bg);
  box-shadow: inset 0 0 0 1px var(--border-subtle), var(--shadow-xs);
}

.feature-icon .icon {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.live-timing {
  margin: 28px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  isolation: isolate;
}

/* The orbit ring (concept sheets 3 and 4): wider than the frame, centered on it and behind it,
   reaching only a few px into the column gap on the left so it never sits behind the copy. */
.orbit {
  position: absolute;
  left: -8%;
  top: 50%;
  width: 150%;
  height: auto;
  aspect-ratio: 900 / 520;
  transform: translateY(-50%);
  z-index: -1;
  pointer-events: none;
}

/* Colors the orbit animations (orbit.js) draw with: the particle's hot core and the sparks. */
.orbit {
  --orbit-hot: #2563ff;
  --orbit-spark: #00a8d6;
}

@media (prefers-color-scheme: dark) {
  .orbit {
    --orbit-hot: #ffffff;
    --orbit-spark: #bff4ff;
  }
}

/* The orbit animation picker (orbit.js): a card under the screenshot on wide screens, a sheet
   opened from the screenshot on narrow ones. */
.orbit-picker {
  width: min(100%, 440px);
  margin: 24px 0 0 auto;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.orbit-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orbit-picker h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-strong);
}

.orbit-picker-sub {
  margin: 2px 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.orbit-picker-close {
  display: none;
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.orbit-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.orbit-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.orbit-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 8px 0 5px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-body);
  cursor: pointer;
}

.orbit-options label:hover {
  background: var(--surface-sunken);
}

.orbit-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.orbit-options input:checked + label {
  background: var(--accent-soft);
  color: var(--pill-text);
  font-weight: 600;
}

.orbit-options input:checked + label .orbit-num {
  border-color: transparent;
  background: var(--gradient-button);
  color: #ffffff;
}

.orbit-options input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.orbit-picker-note {
  margin: 10px 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-body);
}

.orbit-picker-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.orbit-picker-link .icon {
  width: 16px;
  height: 16px;
}

.orbit-toggle {
  display: none;
}

.orbit-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .orbit-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px auto 0;
    padding: 0 14px;
    min-height: 36px;
    border: 1px solid var(--border-default);
    border-radius: 999px;
    background: var(--surface-page);
    font: inherit;
    font-size: 13px;
    color: var(--text-body);
    cursor: pointer;
  }

  .orbit-toggle strong {
    color: var(--text-strong);
  }

  .orbit-toggle svg {
    flex: none;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.6;
  }

  .orbit-toggle svg circle {
    fill: var(--cyan);
    stroke: none;
  }

  .orbit-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  .orbit-picker {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    width: auto;
    max-width: 520px;
    margin: 0 auto;
    padding: 18px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lg);
  }

  .orbit-picker.is-open {
    display: block;
  }

  .orbit-picker-close {
    display: inline-grid;
    place-items: center;
  }

  .orbit-options {
    grid-template-columns: 1fr;
  }

  .orbit-options label {
    min-height: 40px;
    font-size: 14px;
  }

  .orbit-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 59;
    background: rgba(11, 18, 32, 0.3);
  }
}

/* Screenshot in a 3 px gradient frame, with a no-JS light/dark toggle (radio inputs) */
.theme-compare input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shot-frame {
  position: relative;
  padding: 3px;
  border-radius: 19px;
  background: var(--gradient-frame);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: var(--surface-card);
}

.shot-frame img.dark,
#shot-dark:checked ~ .shot-frame img.light {
  display: none;
}

#shot-dark:checked ~ .shot-frame img.dark {
  display: block;
}

.shot-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  justify-content: center;
}

/* Opaque, so the orbit ring passes behind the tabs rather than through their labels. */
.shot-tabs label {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--surface-page);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
}

#shot-light:checked ~ .shot-tabs label[for="shot-light"],
#shot-dark:checked ~ .shot-tabs label[for="shot-dark"] {
  background: linear-gradient(var(--accent-soft), var(--accent-soft)), var(--surface-page);
  border-color: transparent;
  color: var(--pill-text);
}

#shot-light:focus-visible ~ .shot-tabs label[for="shot-light"],
#shot-dark:focus-visible ~ .shot-tabs label[for="shot-dark"] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Sections */
main > section {
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border-subtle);
}

main > section.tint {
  background: var(--surface-card);
}

.section-head {
  max-width: 64ch;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--text-body);
  line-height: 1.6;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tint .card {
  background: var(--surface-page);
  --scroll-bg: var(--surface-page);
}

.card.pad {
  padding: 24px;
}

/* Section divider: a gradient hairline either side of the Spark (concept sheet 6) */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  margin: 0 auto 48px;
  color: var(--accent);
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gradient-rule);
}

.section-divider .icon {
  width: 16px;
  height: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-body);
}

.card-accent {
  border-color: var(--accent);
}

.fine-print {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.fine-print a {
  color: var(--text-body);
}

.subsection-title {
  margin: 48px 0 8px;
  font-size: 22px;
}

/* Tables */
.table-card {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  --scroll-bg: var(--surface-card);
}

/* Scroll hint for content wider than its box (the compare table and the build commands on a
   narrow screen): a soft edge shadow where more content is hidden, covered by an opaque fade that
   scrolls with the content, so the shadow disappears once that end is reached. Static, no JS. */
.card.table-scroll,
pre.code-block {
  background:
    linear-gradient(to right, var(--scroll-bg) 30%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--scroll-bg) 30%, transparent) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--scroll-hint), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--scroll-hint), transparent) right / 12px 100% no-repeat scroll,
    var(--scroll-bg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 15px;
}

.data-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-sunken);
}

.data-table tbody td {
  color: var(--text-body);
}

.data-table tbody td:first-child,
.data-table tbody th {
  color: var(--text-strong);
  font-weight: 500;
}

.data-table strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.data-table td span {
  color: var(--text-muted);
}

.compare-table {
  min-width: 760px;
}

.table-note {
  margin: 0;
  padding: 14px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Launch race */
.race {
  display: grid;
  gap: 22px;
}

.race-row {
  display: grid;
  grid-template-columns: 15rem 1fr 7.5rem;
  align-items: center;
  gap: 16px;
}

.race-label {
  font-size: 15px;
  font-weight: 600;
}

.race-label span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.race-track {
  position: relative;
  height: 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.race-fill {
  position: absolute;
  inset: 0;
  width: var(--pct, 10%);
  border-radius: 999px;
  background: var(--gradient-button);
  transform-origin: left center;
  transform: scaleX(1);
}

.race-fill.cold {
  background: linear-gradient(90deg, #2563ff, #7c3aed);
}

.race-value {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.race.js-armed .race-fill {
  transform: scaleX(0);
  transition: none;
}

.race.js-armed .race-fill.run {
  transform: scaleX(1);
  transition: transform var(--dur, 300ms) cubic-bezier(0.4, 0, 0.2, 1);
}

.race-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.race-caption {
  margin: 0;
  max-width: 62ch;
  font-size: 13px;
  color: var(--text-muted);
}

/* Screenshots */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.shot-grid figure {
  margin: 0;
  overflow: hidden;
}

.shot-grid img {
  display: block;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
}

.shot-grid figcaption {
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-body);
}

/* Block-swap demo: radio inputs, works with no script */
.demo-card {
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-muted);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-default);
}

.swap-demo {
  display: grid;
  gap: 2px;
  padding: 24px 26px;
}

.swap-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.swap-line {
  display: block;
  cursor: text;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 16px;
  color: var(--text-strong);
}

.swap-radio:checked + .swap-line {
  background: var(--surface-sunken);
  border-color: var(--border-default);
}

.swap-radio:focus-visible + .swap-line {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.swap-line .raw {
  display: none;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  white-space: pre-wrap;
}

.swap-radio:checked + .swap-line .raw {
  display: block;
}

.swap-radio:checked + .swap-line .rendered {
  display: none;
}

.swap-line .h {
  font-size: 22px;
  font-weight: 600;
}

.hint {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Large files */
.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.55;
}

.list li + li {
  margin-top: 6px;
}

.list strong {
  color: var(--text-strong);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.stat {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}

.stat .num {
  display: block;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-body);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  margin: 0;
}

.feature-card p {
  flex: 1;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Install */
/* Grid dots (concept sheet 6): one sparse, low-contrast field that shows only in the gaps around
   the opaque install cards, never behind text. */
.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 24px;
  margin: 0 -24px;
  background-image: radial-gradient(var(--border-default) 1px, transparent 1.5px);
  background-size: 24px 24px;
}

.install-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.install-card p {
  flex: 1;
}

.install-card .btn {
  align-self: flex-start;
}

.install-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.install-title h3 {
  margin: 0;
  font-size: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563ff 0%, #4f7dff 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
}

.code-block {
  position: relative;
  margin: 16px 0 0;
  padding: 18px 20px;
  overflow-x: auto;
  --scroll-bg: var(--surface-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font: 14px/1.6 var(--font-mono);
  color: var(--text-strong);
}

.code-block .cmt {
  color: var(--text-muted);
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 9px;
  font: 12px var(--font-mono);
  color: var(--text-body);
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-brand img {
  display: block;
  height: 26px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
}

.footer-links h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 15px;
  color: var(--text-body);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-strong);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

/* 404 */
.error-page {
  padding: 120px 24px;
  text-align: center;
}

.error-page img {
  width: min(420px, 80%);
  margin: 0 auto 32px;
  display: block;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 44px);
}

.error-page p {
  margin: 0 auto 28px;
  max-width: 52ch;
  color: var(--text-body);
}

/* What is a tachyon? (tachyon.html) */
.science {
  max-width: 72ch;
  padding-top: 72px;
  padding-bottom: 96px;
}

.science h1 {
  margin: 16px 0 16px;
  font-size: clamp(36px, 5vw, 56px);
}

.science h2 {
  margin: 40px 0 10px;
  font-size: 22px;
}

.science p {
  color: var(--text-body);
}

.science-lead {
  font-size: 19px;
  line-height: 1.6;
}

.science-soon {
  margin: 24px 0 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--pill-text) !important;
  font-size: 14px;
}

.science .btn {
  margin-top: 32px;
}

/* Narrow screens */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 56px;
  }

  .main-nav a:not(.btn) {
    display: none;
  }

  /* Centered and a little narrower than on wide screens, so it shows above and below the
     full-width screenshot and runs off the screen edges without reaching the copy above. */
  .orbit {
    left: -17.5%;
    width: 135%;
  }

  .shot-frame {
    box-shadow: var(--shadow-lg);
  }
}

@media (max-width: 620px) {
  :root {
    --section-pad: 64px;
  }

  .race-row {
    grid-template-columns: 1fr auto;
  }

  .race-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-links {
    gap: 32px;
  }
}

/* Reduced motion: everything becomes static */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }

  .race-fill,
  .race.js-armed .race-fill,
  .race.js-armed .race-fill.run {
    transform: scaleX(1) !important;
  }

  .btn-primary:hover,
  .feature-card:hover {
    transform: none;
  }
}
