:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --panel-soft: #edf2f7;
  --text: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --line-strong: rgba(17, 24, 39, 0.18);
  --primary: #32e6c4;
  --primary-strong: #0fa889;
  --primary-ink: #042b25;
  --accent: #8b7cff;
  --amber: #ffb86b;
  --blue: #6aa8ff;
  --hero-bg: #05070e;
  --hero-panel: rgba(11, 15, 24, 0.86);
  --hero-panel-solid: #0b0f18;
  --hero-text: #111827;
  --hero-muted: #536172;
  --hero-line: rgba(17, 24, 39, 0.12);
  --hero-line-strong: rgba(17, 24, 39, 0.22);
  --workspace-panel: rgba(11, 15, 24, 0.88);
  --workspace-text: #f5fbff;
  --workspace-muted: #a8b3c7;
  --workspace-line: rgba(255, 255, 255, 0.12);
  --workspace-line-strong: rgba(255, 255, 255, 0.22);
  --workspace-soft: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(248, 251, 255, 0.84);
  --header-line: rgba(17, 24, 39, 0.1);
  --header-text: #111827;
  --header-muted: #667085;
  --nav-hover-bg: rgba(50, 230, 196, 0.12);
  --theme-switcher-bg: rgba(255, 255, 255, 0.72);
  --theme-switcher-border: rgba(17, 24, 39, 0.12);
  --theme-light-active-bg: #ffffff;
  --theme-light-active-text: #071018;
  --theme-dark-active-bg: #1b2030;
  --theme-dark-active-text: #f5fbff;
  --hero-background:
    linear-gradient(125deg, rgba(50, 230, 196, 0.2), transparent 28%),
    linear-gradient(245deg, rgba(139, 124, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eef5fb 58%, #e7f0f8 100%);
  --hero-grid-line: rgba(17, 24, 39, 0.06);
  --hero-grid-line-strong: rgba(15, 168, 137, 0.06);
  --hero-overlay:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent),
    linear-gradient(180deg, transparent 0%, rgba(245, 247, 251, 0.86) 96%);
  --hero-pill-bg: rgba(255, 255, 255, 0.72);
  --hero-pill-border: rgba(15, 168, 137, 0.28);
  --hero-pill-text: #0a6f5d;
  --hero-chip-bg: rgba(255, 255, 255, 0.68);
  --hero-chip-border: rgba(17, 24, 39, 0.12);
  --hero-chip-text: #596574;
  --hero-chip-active-bg: rgba(15, 168, 137, 0.13);
  --hero-chip-active-border: rgba(15, 168, 137, 0.34);
  --hero-chip-active-text: #0a5f50;
  --hero-secondary-bg: rgba(255, 255, 255, 0.74);
  --hero-secondary-border: rgba(17, 24, 39, 0.16);
  --hero-secondary-hover-bg: rgba(255, 255, 255, 0.94);
  --shadow: 0 28px 90px rgba(15, 23, 42, 0.14);
  --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.38);
  --quick-shell-bg:
    linear-gradient(135deg, rgba(50, 230, 196, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(139, 124, 255, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.9);
  --choice-bg: rgba(255, 255, 255, 0.78);
  --choice-hover-bg: rgba(255, 255, 255, 0.96);
  --choice-recommended-bg:
    linear-gradient(180deg, rgba(50, 230, 196, 0.14), rgba(255, 255, 255, 0.92)),
    rgba(255, 255, 255, 0.86);
  --section-alt: #eef3f8;
  --download-helper-bg: rgba(50, 230, 196, 0.09);
  --download-helper-border: rgba(15, 168, 137, 0.24);
  --download-helper-strong: #087762;
  --download-helper-text: #596574;
  --package-glow:
    linear-gradient(180deg, rgba(50, 230, 196, 0.08), transparent 36%),
    var(--panel-solid);
  --pkg-mark-border: rgba(15, 168, 137, 0.28);
  --checksum-value: #344054;
  --mini-icon-bg: rgba(50, 230, 196, 0.12);
  --cta-bg:
    linear-gradient(120deg, rgba(50, 230, 196, 0.14), transparent 42%),
    linear-gradient(270deg, rgba(139, 124, 255, 0.12), transparent 38%),
    var(--panel-solid);
  --footer-bg: #e9eef5;
  --copyright: #7a8495;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080b12;
  --bg-elevated: #0d121d;
  --panel: rgba(16, 22, 34, 0.78);
  --panel-solid: #101622;
  --panel-soft: #151d2c;
  --text: #eef4ff;
  --muted: #9aa6bb;
  --line: rgba(238, 244, 255, 0.1);
  --line-strong: rgba(238, 244, 255, 0.2);
  --primary: #47f5d0;
  --primary-strong: #32e6c4;
  --primary-ink: #041815;
  --accent: #9f93ff;
  --amber: #ffd18c;
  --blue: #85b8ff;
  --hero-bg: #04060d;
  --hero-panel: rgba(10, 15, 24, 0.86);
  --hero-panel-solid: #0a0f18;
  --hero-text: #f5fbff;
  --hero-muted: #a8b3c7;
  --hero-line: rgba(255, 255, 255, 0.12);
  --hero-line-strong: rgba(255, 255, 255, 0.22);
  --workspace-panel: rgba(10, 15, 24, 0.88);
  --workspace-text: #f5fbff;
  --workspace-muted: #a8b3c7;
  --workspace-line: rgba(255, 255, 255, 0.12);
  --workspace-line-strong: rgba(255, 255, 255, 0.22);
  --workspace-soft: rgba(255, 255, 255, 0.04);
  --header-bg: rgba(4, 6, 13, 0.82);
  --header-line: rgba(255, 255, 255, 0.1);
  --header-text: #f5fbff;
  --header-muted: #a8b3c7;
  --nav-hover-bg: rgba(255, 255, 255, 0.08);
  --theme-switcher-bg: rgba(255, 255, 255, 0.06);
  --theme-switcher-border: rgba(255, 255, 255, 0.14);
  --theme-light-active-bg: #eef5ff;
  --theme-light-active-text: #071018;
  --theme-dark-active-bg: #47f5d0;
  --theme-dark-active-text: #041815;
  --hero-background:
    linear-gradient(125deg, rgba(50, 230, 196, 0.16), transparent 26%),
    linear-gradient(245deg, rgba(139, 124, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #05070e 0%, #060a12 58%, #08101a 100%);
  --hero-grid-line: rgba(255, 255, 255, 0.055);
  --hero-grid-line-strong: rgba(255, 255, 255, 0.045);
  --hero-overlay:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(180deg, transparent 0%, rgba(8, 16, 26, 0.85) 96%);
  --hero-pill-bg: rgba(8, 12, 20, 0.72);
  --hero-pill-border: rgba(71, 245, 208, 0.32);
  --hero-pill-text: #d7fff5;
  --hero-chip-bg: rgba(255, 255, 255, 0.06);
  --hero-chip-border: rgba(255, 255, 255, 0.12);
  --hero-chip-text: #a8b3c7;
  --hero-chip-active-bg: rgba(71, 245, 208, 0.14);
  --hero-chip-active-border: rgba(71, 245, 208, 0.38);
  --hero-chip-active-text: #e8fff9;
  --hero-secondary-bg: rgba(255, 255, 255, 0.08);
  --hero-secondary-border: rgba(255, 255, 255, 0.18);
  --hero-secondary-hover-bg: rgba(255, 255, 255, 0.13);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --shadow-strong: 0 34px 110px rgba(0, 0, 0, 0.56);
  --quick-shell-bg:
    linear-gradient(135deg, rgba(71, 245, 208, 0.14), transparent 34%),
    linear-gradient(225deg, rgba(159, 147, 255, 0.12), transparent 36%),
    rgba(16, 22, 34, 0.9);
  --choice-bg: rgba(8, 11, 18, 0.62);
  --choice-hover-bg: rgba(16, 22, 34, 0.95);
  --choice-recommended-bg:
    linear-gradient(180deg, rgba(71, 245, 208, 0.12), rgba(16, 22, 34, 0.86)),
    rgba(16, 22, 34, 0.84);
  --section-alt: #0b1019;
  --download-helper-bg: rgba(71, 245, 208, 0.08);
  --download-helper-border: rgba(71, 245, 208, 0.26);
  --download-helper-strong: #d6fff6;
  --download-helper-text: #b5c1d4;
  --package-glow:
    linear-gradient(180deg, rgba(71, 245, 208, 0.08), transparent 36%),
    var(--panel-solid);
  --pkg-mark-border: rgba(71, 245, 208, 0.32);
  --checksum-value: #cad5e8;
  --mini-icon-bg: rgba(71, 245, 208, 0.12);
  --cta-bg:
    linear-gradient(120deg, rgba(71, 245, 208, 0.12), transparent 42%),
    linear-gradient(270deg, rgba(159, 147, 255, 0.12), transparent 38%),
    var(--panel-solid);
  --footer-bg: #060910;
  --copyright: #6d7890;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(rgba(106, 168, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 230, 196, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

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

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--header-line);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
}

.nav {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  color: var(--header-text);
  font-weight: 760;
}

.brand img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #080b12;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  min-width: 0;
}

.nav-actions {
  flex-shrink: 0;
  min-width: max-content;
}

.nav-links a,
.nav-actions a {
  display: inline-flex;
  flex-shrink: 0;
  min-height: 38px;
  align-items: center;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--header-muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-actions a:hover {
  color: var(--header-text);
  background: var(--nav-hover-bg);
}

.nav-actions .github {
  border: 1px solid var(--theme-switcher-border);
  color: var(--header-text);
}

.science-site-header {
  border-bottom-color: rgba(50, 230, 196, 0.22);
}

.science-brand img {
  border-color: rgba(50, 230, 196, 0.26);
  background: #07110f;
  box-shadow: 0 0 24px rgba(50, 230, 196, 0.13);
}

.science-back-link::before {
  content: "←";
  margin-right: 7px;
  color: var(--primary-strong);
}

.theme-switcher {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--theme-switcher-border);
  border-radius: 8px;
  background: var(--theme-switcher-bg);
  padding: 3px;
}

.theme-choice {
  flex-shrink: 0;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--header-muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
}

.theme-choice:hover {
  color: var(--header-text);
}

.theme-choice[aria-pressed="true"] {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.theme-choice[data-theme-choice="light"][aria-pressed="true"] {
  background: var(--theme-light-active-bg);
  color: var(--theme-light-active-text);
}

.theme-choice[data-theme-choice="dark"][aria-pressed="true"] {
  background: var(--theme-dark-active-bg);
  color: var(--theme-dark-active-text);
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -68px;
  border-bottom: 1px solid var(--hero-line);
  background: var(--hero-background);
  color: var(--hero-text);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line-strong) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 86%);
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--hero-overlay);
  opacity: 0.68;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 860px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 148px 0 78px;
  text-align: center;
}

.release-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--hero-pill-border);
  border-radius: 999px;
  background: var(--hero-pill-bg);
  padding: 8px 13px;
  color: var(--hero-pill-text);
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 20px rgba(71, 245, 208, 0.9);
}

.hero h1 {
  margin-top: 26px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 78px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 16px 60px rgba(71, 245, 208, 0.16);
}

.hero-copy {
  width: min(100%, 780px);
  max-width: 780px;
  margin-top: 24px;
  color: var(--hero-muted);
  font-size: 19px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

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

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 18px 46px rgba(50, 230, 196, 0.22);
}

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

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
}

.hero .button.secondary {
  border-color: var(--hero-secondary-border);
  background: var(--hero-secondary-bg);
  color: var(--hero-text);
}

.button.secondary:hover {
  border-color: rgba(50, 230, 196, 0.42);
  background: rgba(255, 255, 255, 0.9);
}

.hero .button.secondary:hover {
  background: var(--hero-secondary-hover-bg);
}

.agent-tabs {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 38px;
}

.agent-tabs button {
  flex: 0 0 auto;
  border: 1px solid var(--hero-chip-border);
  border-radius: 999px;
  background: var(--hero-chip-bg);
  color: var(--hero-chip-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  padding: 10px 13px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.agent-tabs button:hover {
  transform: translateY(-1px);
  border-color: var(--hero-chip-active-border);
  color: var(--hero-text);
}

.agent-tabs button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.agent-tabs button.active {
  border-color: var(--hero-chip-active-border);
  background: var(--hero-chip-active-bg);
  color: var(--hero-chip-active-text);
  box-shadow: 0 12px 32px rgba(15, 168, 137, 0.12);
}

.hero-stage {
  position: relative;
  width: min(1080px, 100%);
  min-width: 0;
  margin-top: 30px;
  perspective: 1200px;
}

.workspace-window {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--workspace-line-strong);
  border-radius: 12px;
  background: var(--workspace-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    var(--shadow-strong);
  transform: rotateX(2deg);
  transform-origin: center bottom;
  backdrop-filter: blur(22px);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--workspace-line);
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
}

.terminal-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-titlebar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-titlebar span:nth-child(2) {
  background: #ffbd2e;
}

.terminal-titlebar span:nth-child(3) {
  background: #28c840;
}

.terminal-titlebar strong {
  margin-left: 8px;
  color: #dbe6f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terminal-titlebar em {
  margin-left: auto;
  color: var(--workspace-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.workspace-grid {
  display: grid;
  min-width: 0;
  min-height: 430px;
  grid-template-columns: 210px minmax(0, 1fr) 270px;
}

.workspace-sidebar,
.agent-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--workspace-line);
  background: var(--workspace-soft);
  padding: 20px;
  text-align: left;
}

.workspace-sidebar strong,
.agent-pane strong {
  color: #dbe6f7;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.workspace-sidebar span {
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--workspace-muted);
  font-size: 14px;
  padding: 11px 12px;
}

.workspace-sidebar span.active {
  border-color: rgba(71, 245, 208, 0.24);
  background: rgba(71, 245, 208, 0.1);
  color: #ecfffa;
}

.terminal-pane {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 13px;
  background:
    linear-gradient(120deg, rgba(71, 245, 208, 0.08), transparent 32%),
    #070b12;
  color: #eef7ff;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 28px;
  text-align: left;
  overflow: hidden;
}

.terminal-pane p {
  min-width: 0;
  overflow: hidden;
  opacity: 0.96;
  text-overflow: clip;
  white-space: nowrap;
}

.terminal-pane p span {
  color: var(--primary);
}

.terminal-pane .success {
  color: var(--amber);
}

.terminal-pane .dim {
  color: var(--workspace-muted);
}

.agent-pane {
  border-right: 0;
  border-left: 1px solid var(--workspace-line);
  gap: 16px;
}

.agent-pane p {
  color: var(--workspace-muted);
  font-size: 14px;
  line-height: 1.7;
}

.agent-metrics {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.agent-metrics span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #dbe6f7;
  font-size: 13px;
  padding: 10px 12px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  margin-left: 4px;
  background: var(--primary);
  vertical-align: -0.14em;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 172px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 12, 20, 0.82);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  padding: 14px 16px;
  text-align: left;
  backdrop-filter: blur(18px);
}

.floating-card span {
  color: var(--workspace-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.floating-card strong {
  color: var(--workspace-text);
  font-size: 15px;
}

.floating-card-left {
  bottom: -64px;
  left: 42px;
}

.floating-card-right {
  right: 42px;
  top: -64px;
}

.hero-facts {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 82px;
}

.hero-facts span {
  flex: 0 0 auto;
  border: 1px solid var(--hero-chip-border);
  border-radius: 999px;
  background: var(--hero-chip-bg);
  color: var(--hero-chip-text);
  font-size: 13px;
  line-height: 1;
  padding: 10px 12px;
}

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

main > section {
  padding: 88px 0;
}

.science-teaser {
  padding: 34px 0 78px;
  background: var(--bg);
}

.science-teaser-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(220px, 0.48fr) minmax(360px, 0.92fr);
  gap: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(50, 230, 196, 0.12), transparent 34%),
    linear-gradient(250deg, rgba(106, 168, 255, 0.12), transparent 30%),
    var(--panel-solid);
  box-shadow: var(--shadow);
  padding: 26px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.science-teaser-card:hover {
  border-color: rgba(50, 230, 196, 0.42);
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

.science-teaser-copy h2 {
  margin-top: 12px;
  font-size: 31px;
  line-height: 1.12;
}

.science-teaser-copy p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.72;
}

.science-link {
  display: inline-flex;
  margin-top: 20px;
  color: var(--primary-strong);
  font-weight: 800;
}

.science-metrics {
  display: grid;
  gap: 10px;
}

.science-metrics span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.52);
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

[data-theme="dark"] .science-metrics span {
  background: rgba(255, 255, 255, 0.04);
}

.science-metrics strong {
  color: var(--text);
  font-size: 24px;
}

.science-workbench {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--workspace-line-strong);
  border-radius: 12px;
  background: var(--workspace-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 30px 90px rgba(0, 0, 0, 0.28);
}

.science-workbench.compact {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 20px 62px rgba(0, 0, 0, 0.18);
}

.science-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--workspace-line);
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
}

.science-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.science-window-bar span:nth-child(1) {
  background: #ff5f57;
}

.science-window-bar span:nth-child(2) {
  background: #ffbd2e;
}

.science-window-bar span:nth-child(3) {
  background: #28c840;
}

.science-window-bar strong {
  margin-left: 6px;
  color: #dbe6f7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.science-window-grid {
  display: grid;
  min-height: 318px;
  grid-template-columns: 160px minmax(0, 1fr) 170px;
}

.science-workbench.compact .science-window-grid {
  min-height: 236px;
  grid-template-columns: 1fr;
}

.science-session-list,
.science-artifacts {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 9px;
  border-right: 1px solid var(--workspace-line);
  background: var(--workspace-soft);
  padding: 16px;
}

.science-artifacts {
  border-right: 0;
  border-left: 1px solid var(--workspace-line);
}

.science-workbench.compact .science-session-list,
.science-workbench.compact .science-artifacts {
  display: none;
}

.science-session-list strong,
.science-artifacts strong {
  color: #dbe6f7;
  font-size: 12px;
  text-transform: uppercase;
}

.science-session-list span,
.science-artifacts span {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--workspace-muted);
  font-size: 12px;
  padding: 9px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.science-session-list .active {
  border-color: rgba(71, 245, 208, 0.28);
  background: rgba(71, 245, 208, 0.1);
  color: #ecfffa;
}

.science-chat {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 14px;
  background:
    linear-gradient(140deg, rgba(71, 245, 208, 0.08), transparent 34%),
    linear-gradient(320deg, rgba(255, 184, 107, 0.08), transparent 34%),
    #070b12;
  padding: 22px;
}

.science-chat p {
  border-radius: 10px;
  color: #e8f3ff;
  font-size: 13px;
  line-height: 1.65;
  padding: 13px 14px;
}

.science-user {
  margin-left: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.science-agent {
  margin-right: 18px;
  border: 1px solid rgba(71, 245, 208, 0.18);
  background: rgba(71, 245, 208, 0.08);
}

.science-tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.science-tool-row span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--workspace-muted);
  font-size: 12px;
  padding: 7px 9px;
}

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

.science-page section[id] {
  scroll-margin-top: 82px;
}

.science-hero {
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(130deg, rgba(50, 230, 196, 0.12), transparent 30%),
    linear-gradient(245deg, rgba(255, 184, 107, 0.1), transparent 32%),
    var(--section-alt);
}

.science-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 34px;
  align-items: center;
}

.science-hero-copy h1 {
  margin-top: 18px;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 58px;
  line-height: 0.96;
  letter-spacing: 0;
}

.science-hero-copy h2 {
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.12;
}

.science-hero-copy p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.science-actions {
  justify-content: flex-start;
}

.science-proof {
  padding: 26px 0;
  background: var(--panel-solid);
}

.science-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.science-proof-item {
  background: var(--panel-solid);
  padding: 22px;
}

.science-proof-item h3 {
  font-size: 18px;
}

.science-proof-item p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.science-flow {
  background: var(--section-alt);
}

.science-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.science-flow-item {
  min-height: 242px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 20px;
}

.science-flow-item.active {
  border-color: rgba(50, 230, 196, 0.34);
  background:
    linear-gradient(180deg, rgba(50, 230, 196, 0.1), transparent 42%),
    var(--panel-solid);
}

.science-flow-item span,
.science-demo-card span {
  color: var(--primary-strong);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 12px;
  font-weight: 800;
}

.science-flow-item h3,
.science-demo-card h3 {
  margin-top: 14px;
  font-size: 18px;
}

.science-flow-item p,
.science-demo-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.science-demo-card {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(106, 168, 255, 0.08), transparent 42%),
    var(--panel-solid);
  padding: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.science-demo-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.science-stack {
  background: var(--section-alt);
}

.science-stack-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cta-bg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.science-stack-inner h2 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.14;
}

.science-stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.science-stack-list span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  font-size: 13px;
  font-weight: 760;
  padding: 10px 12px;
}

[data-theme="dark"] .science-stack-list span {
  background: rgba(255, 255, 255, 0.05);
}

.quick-pick {
  position: relative;
  padding: 76px 0 88px;
  background:
    linear-gradient(180deg, var(--section-alt), transparent 36%),
    var(--bg);
}

.quick-pick-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--quick-shell-bg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-pick-head {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 28px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 30px;
}

.eyebrow {
  color: var(--primary-strong);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.quick-pick-head h2,
.section-head h2 {
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.12;
}

.quick-pick-head p:not(.eyebrow),
.section-head p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.quick-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.quick-pick-grid.release-count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.quick-pick-grid.release-count-1 {
  grid-template-columns: 1fr;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  background: var(--choice-bg);
  padding: 24px;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.choice-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: transparent;
}

.choice-card:hover {
  z-index: 1;
  background: var(--choice-hover-bg);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.choice-card.recommended {
  background: var(--choice-recommended-bg);
}

.choice-card.recommended::before,
.choice-card:hover::before {
  background: var(--primary-strong);
}

.choice-kicker {
  color: var(--primary-strong);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.choice-card strong {
  margin-top: 18px;
  color: var(--text);
  font-size: 21px;
  line-height: 1.24;
}

.choice-card span:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.quick-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  padding: 16px 30px;
}

[data-theme="dark"] .quick-note {
  background: rgba(255, 255, 255, 0.04);
}

.quick-note span {
  color: var(--text);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  font-weight: 800;
}

.quick-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section-head {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.download-section {
  background: var(--section-alt);
}

.release-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 18px;
  box-shadow: var(--shadow);
}

.release-strip .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.release-strip strong {
  color: var(--text);
  font-size: 16px;
}

.release-strip a {
  color: var(--primary-strong);
  font-weight: 760;
}

.download-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid var(--download-helper-border);
  border-radius: 12px;
  background: var(--download-helper-bg);
  padding: 14px 18px;
}

.download-helper strong {
  color: var(--download-helper-strong);
}

.download-helper span {
  color: var(--download-helper-text);
  font-size: 14px;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.package-card {
  display: flex;
  min-height: 336px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--package-glow);
  padding: 22px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.package-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.package-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pkg-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pkg-mark-border);
  border-radius: 10px;
  background: rgba(50, 230, 196, 0.08);
  color: var(--primary-strong);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-weight: 800;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.recommended-badge {
  border-color: rgba(50, 230, 196, 0.4);
  background: rgba(50, 230, 196, 0.1);
  color: var(--download-helper-strong);
}

.package-card:target {
  border-color: rgba(50, 230, 196, 0.72);
  box-shadow:
    0 0 0 1px rgba(50, 230, 196, 0.18),
    var(--shadow);
}

.package-card h3 {
  margin-top: 22px;
  font-size: 19px;
}

.package-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.checksum {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 12px;
  line-height: 1.7;
}

.checksum span {
  display: block;
  overflow-wrap: anywhere;
  color: var(--checksum-value);
}

.package-card .button {
  margin-top: auto;
}

.product-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 22px;
  align-items: stretch;
}

.visual-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.visual-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.feature-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 20px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.feature-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateX(2px);
}

.feature-item h3 {
  font-size: 18px;
}

.feature-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.showcase {
  background: var(--section-alt);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.showcase-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.showcase-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 260ms ease;
}

.showcase-card:hover img {
  transform: scale(1.025);
}

.showcase-card div {
  padding: 18px;
}

.showcase-card h3 {
  font-size: 17px;
}

.showcase-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 20px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.mini-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.mini-card .icon {
  display: inline-flex;
  width: 40px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--mini-icon-bg);
  color: var(--primary-strong);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  font-size: 13px;
  font-weight: 800;
}

.mini-card h3 {
  margin-top: 16px;
  font-size: 17px;
}

.mini-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq {
  background: var(--section-alt);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 20px;
}

.faq-item p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.7;
}

.cta-band {
  padding: 74px 0;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(50, 230, 196, 0.22);
  border-radius: 12px;
  background: var(--cta-bg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  font-size: 30px;
}

.cta-box p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  padding: 42px 0;
}

.site-footer .brand {
  color: var(--text);
}

.science-site-footer {
  border-top-color: rgba(50, 230, 196, 0.2);
  background:
    linear-gradient(135deg, rgba(50, 230, 196, 0.06), transparent 34%),
    var(--footer-bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.footer-grid p {
  max-width: 470px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-links h3 {
  font-size: 14px;
}

.footer-links a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

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

.copyright {
  margin-top: 28px;
  color: var(--copyright);
  font-size: 12px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-float {
  0%,
  100% {
    transform: rotateX(2deg) translateY(0);
  }

  50% {
    transform: rotateX(2deg) translateY(-8px);
  }
}

@keyframes card-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }

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

@media (prefers-reduced-motion: no-preference) {
  .release-pill,
  .hero h1,
  .hero-copy,
  .hero-actions,
  .agent-tabs,
  .hero-facts {
    animation: rise-in 620ms ease both;
  }

  .hero h1 {
    animation-delay: 60ms;
  }

  .hero-copy {
    animation-delay: 110ms;
  }

  .hero-actions {
    animation-delay: 160ms;
  }

  .agent-tabs {
    animation-delay: 210ms;
  }

  .hero-facts {
    animation-delay: 300ms;
  }

  .workspace-window {
    animation:
      rise-in 740ms ease 260ms both,
      stage-float 8s ease-in-out 1s infinite;
  }

  .floating-card {
    animation: card-float 7s ease-in-out 1.2s infinite;
  }

  .cursor {
    animation: cursor-blink 1s steps(1, end) infinite;
  }
}

@media (max-width: 1080px) {
  .science-teaser-card {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  }

  .science-teaser-card .science-workbench {
    grid-column: 1 / -1;
  }

  .science-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-grid {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .agent-pane {
    display: none;
  }

  .floating-card-right {
    right: 22px;
  }

  .floating-card-left {
    left: 22px;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    min-height: 790px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .quick-pick-head,
  .quick-pick-grid,
  .download-grid,
  .showcase-grid,
  .feature-grid,
  .science-proof-grid,
  .science-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .product-grid,
  .cta-box,
  .footer-grid,
  .science-stack-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1180px, calc(100% - 24px));
  }

  .nav {
    min-height: 62px;
    gap: 10px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    display: none;
  }

  .nav-actions .github {
    display: none;
  }

  .theme-choice {
    min-height: 30px;
    padding: 0 8px;
  }

  .nav-actions {
    gap: 4px;
    min-width: 0;
  }

  .nav-actions > a:not(.github) {
    display: none;
  }

  .theme-switcher {
    position: fixed;
    top: 14px;
    right: 12px;
    z-index: 50;
    width: 102px;
  }

  .theme-choice {
    flex: 1 1 0;
    padding: 0;
  }

  .hero {
    margin-top: -62px;
  }

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

  .hero h1 {
    font-size: 44px;
  }

  .science-teaser {
    padding: 26px 0 58px;
  }

  .science-teaser-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .science-teaser-copy h2,
  .science-hero-copy h2 {
    font-size: 28px;
  }

  .science-hero {
    padding: 72px 0 62px;
  }

  .science-hero-copy h1 {
    font-size: 42px;
  }

  .science-actions {
    justify-content: flex-start;
  }

  .science-window-grid {
    min-height: 330px;
    grid-template-columns: 1fr;
  }

  .science-session-list,
  .science-artifacts {
    display: none;
  }

  .science-chat {
    min-height: 330px;
    padding: 18px;
  }

  .science-user {
    margin-left: 0;
  }

  .science-agent {
    margin-right: 0;
  }

  .hero-copy {
    width: min(100%, 350px);
    font-size: 16px;
  }

  .agent-tabs {
    display: grid;
    width: min(100%, 350px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .agent-tabs button {
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
  }

  .hero-stage {
    margin-top: 24px;
  }

  .hero-facts {
    margin-top: 24px;
  }

  .workspace-window {
    transform: none;
  }

  .workspace-grid {
    min-height: 340px;
    grid-template-columns: 1fr;
  }

  .workspace-sidebar,
  .agent-pane {
    display: none;
  }

  .terminal-pane {
    min-height: 340px;
    padding: 22px;
    font-size: 12px;
  }

  .floating-card {
    display: none;
  }

  .quick-pick {
    padding: 58px 0 62px;
  }

  .quick-pick-head {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .choice-card,
  .quick-note {
    padding: 20px;
  }

  main > section {
    padding: 62px 0;
  }

  .quick-pick-head h2,
  .section-head h2 {
    font-size: 30px;
  }

  .quick-pick-grid,
  .download-grid,
  .showcase-grid,
  .feature-grid,
  .science-proof-grid,
  .science-flow-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .release-strip,
  .cta-box {
    padding: 20px;
  }
}

/* --------------------------------------------------------------------------
   WispTerm 2026 — engineering manual / terminal workspace
   Scoped to .term-site so the legacy Wisp Science alias remains untouched.
   -------------------------------------------------------------------------- */

.term-site {
  --bg: #eef1f6;
  --bg-elevated: #f7f8fb;
  --panel: #f8f9fc;
  --panel-solid: #fbfcfe;
  --panel-soft: #e4e8f0;
  --text: #0d1426;
  --muted: #596277;
  --line: rgba(13, 20, 38, 0.15);
  --line-strong: rgba(13, 20, 38, 0.32);
  --primary: #4e79f7;
  --primary-strong: #315bcf;
  --primary-ink: #ffffff;
  --accent: #8172e8;
  --amber: #c88b2f;
  --blue: #4e79f7;
  --header-bg: rgba(247, 248, 251, 0.94);
  --header-line: rgba(13, 20, 38, 0.16);
  --header-text: #0d1426;
  --header-muted: #525d73;
  --nav-hover-bg: rgba(49, 91, 207, 0.08);
  --theme-switcher-bg: #e7eaf1;
  --theme-switcher-border: rgba(13, 20, 38, 0.17);
  --theme-light-active-bg: #ffffff;
  --theme-light-active-text: #0d1426;
  --theme-dark-active-bg: #11192b;
  --theme-dark-active-text: #ffffff;
  --section-alt: #e6e9f0;
  --download-helper-bg: rgba(49, 91, 207, 0.07);
  --download-helper-border: rgba(49, 91, 207, 0.23);
  --download-helper-strong: #2349ad;
  --download-helper-text: #535f75;
  --package-glow: #fbfcfe;
  --pkg-mark-border: rgba(49, 91, 207, 0.35);
  --checksum-value: #34415b;
  --mini-icon-bg: #dfe6fb;
  --cta-bg: #fbfcfe;
  --footer-bg: #0a1020;
  --copyright: #7f8ba5;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}

.term-site > main {
  flex: 1 0 auto;
}

.term-site > .site-footer {
  flex: 0 0 auto;
  margin-top: auto;
}

html:has(.term-site),
body:has(.term-site) {
  min-height: 100%;
  background: #0a1020;
}

body:has(.term-site)::before {
  display: none;
}

body > section[aria-label^="Notifications"] {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

[data-theme="dark"] .term-site {
  --bg: #090e19;
  --bg-elevated: #0e1524;
  --panel: #101827;
  --panel-solid: #111a2a;
  --panel-soft: #171f31;
  --text: #eef2ff;
  --muted: #9da8bd;
  --line: rgba(226, 232, 255, 0.13);
  --line-strong: rgba(226, 232, 255, 0.28);
  --primary: #7192ff;
  --primary-strong: #89a3ff;
  --primary-ink: #071022;
  --header-bg: rgba(9, 14, 25, 0.94);
  --header-line: rgba(226, 232, 255, 0.13);
  --header-text: #f3f5ff;
  --header-muted: #a5aec1;
  --nav-hover-bg: rgba(113, 146, 255, 0.12);
  --theme-switcher-bg: #111a2a;
  --theme-switcher-border: rgba(226, 232, 255, 0.16);
  --theme-light-active-bg: #edf1ff;
  --theme-light-active-text: #0d1426;
  --theme-dark-active-bg: #7192ff;
  --theme-dark-active-text: #071022;
  --section-alt: #0d1422;
  --download-helper-bg: rgba(113, 146, 255, 0.09);
  --download-helper-border: rgba(113, 146, 255, 0.26);
  --download-helper-strong: #cbd6ff;
  --download-helper-text: #aab4c8;
  --package-glow: #111a2a;
  --pkg-mark-border: rgba(113, 146, 255, 0.38);
  --checksum-value: #c0cae0;
  --mini-icon-bg: rgba(113, 146, 255, 0.13);
  --cta-bg: #111a2a;
}

.term-site .container {
  width: min(1320px, calc(100% - 48px));
}

.term-site main > section {
  padding: 68px 0;
}

.term-site main > section[id],
.term-site .package-card[id] {
  scroll-margin-top: 88px;
}

.term-site .eyebrow,
.term-kicker {
  color: var(--primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.term-header {
  border-bottom-color: rgba(126, 154, 255, 0.22);
  background: rgba(6, 11, 24, 0.9);
  box-shadow:
    0 1px 0 rgba(128, 154, 255, 0.1),
    0 18px 54px rgba(20, 48, 140, 0.16);
  backdrop-filter: blur(22px) saturate(145%);
}

.term-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(
    90deg,
    transparent 7%,
    rgba(72, 133, 255, 0.8) 34%,
    rgba(139, 92, 246, 0.86) 66%,
    transparent 93%
  );
  box-shadow: 0 0 18px rgba(91, 126, 255, 0.58);
  pointer-events: none;
}

.term-header .nav {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 68px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  min-width: 0;
}

.term-header .brand {
  gap: 10px;
  color: #f6f8ff;
}

.term-header .brand img,
.term-site .site-footer .brand img {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: none;
}

.term-header .brand img {
  border-color: rgba(118, 151, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(91, 126, 255, 0.08),
    0 0 26px rgba(71, 113, 255, 0.22);
}

.term-header .brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.term-header .brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.term-header .brand-copy small {
  color: #8997b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term-header .nav-links {
  max-width: 100%;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.term-header .nav-links::-webkit-scrollbar {
  display: none;
}

.term-header .nav-links a,
.term-header .nav-actions a {
  min-height: 36px;
  border-radius: 3px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 720;
  white-space: nowrap;
}

.term-header .nav-links a,
.term-header .nav-actions > a {
  color: #a7b2cc;
}

.term-header .nav-links a:hover,
.term-header .nav-actions > a:hover {
  background: rgba(106, 137, 255, 0.1);
  color: #f6f8ff;
}

.term-header .nav-links a[aria-current="page"] {
  color: #f6f8ff;
  text-shadow: 0 0 18px rgba(113, 146, 255, 0.58);
  box-shadow:
    inset 0 -2px 0 #7795ff,
    inset 0 -8px 18px -14px rgba(119, 149, 255, 0.9);
}

.term-header .theme-switcher {
  border-color: rgba(142, 159, 207, 0.24);
  background: rgba(255, 255, 255, 0.055);
}

.term-header .theme-choice {
  color: #a7b2cc;
}

.term-header .nav-actions .github {
  border-color: rgba(142, 159, 207, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #eef2ff;
}

.term-header .theme-switcher,
.term-header .theme-choice {
  border-radius: 3px;
}

.term-header .theme-choice {
  min-height: 28px;
  padding: 0 8px;
  font-size: 11px;
}

.term-site .term-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(ellipse at 13% 35%, rgba(37, 99, 235, 0.3), transparent 34%),
    radial-gradient(ellipse at 86% 18%, rgba(124, 58, 237, 0.28), transparent 36%),
    radial-gradient(ellipse at 58% 105%, rgba(14, 165, 233, 0.13), transparent 32%),
    linear-gradient(rgba(126, 157, 255, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 157, 255, 0.065) 1px, transparent 1px),
    #050a17;
  background-size: auto, auto, auto, 40px 40px, 40px 40px, auto;
  color: #f4f6ff;
  padding: 44px 0 38px;
}

.term-hero::before,
.term-hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.term-hero::before {
  inset: -28% -12%;
  background:
    radial-gradient(circle at 17% 54%, rgba(58, 125, 255, 0.3), transparent 25%),
    radial-gradient(circle at 78% 34%, rgba(139, 92, 246, 0.28), transparent 28%),
    radial-gradient(circle at 58% 92%, rgba(31, 195, 255, 0.14), transparent 24%);
  filter: blur(22px);
  opacity: 0.92;
}

.term-hero::after {
  inset: 0;
  background: linear-gradient(
    112deg,
    transparent 30%,
    rgba(116, 158, 255, 0.015) 42%,
    rgba(151, 125, 255, 0.12) 49%,
    rgba(90, 179, 255, 0.035) 56%,
    transparent 68%
  );
  opacity: 0.72;
  transform: translateX(-62%);
  animation: term-light-sweep 11s ease-in-out infinite;
}

.term-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.term-aurora > span {
  position: absolute;
  display: block;
}

.aurora-orb {
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.78;
}

.aurora-blue {
  top: 18%;
  left: -9%;
  width: clamp(320px, 34vw, 560px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(38, 116, 255, 0.34), rgba(19, 72, 205, 0.08) 48%, transparent 72%);
  animation: term-orb-blue 9s ease-in-out infinite;
}

.aurora-violet {
  top: -24%;
  right: -6%;
  width: clamp(360px, 40vw, 680px);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(135, 78, 255, 0.34), rgba(92, 58, 207, 0.09) 50%, transparent 72%);
  animation: term-orb-violet 11s ease-in-out infinite;
}

.aurora-beam {
  top: 48%;
  right: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 162, 255, 0.82), rgba(170, 105, 255, 0.72), transparent);
  box-shadow:
    0 0 12px rgba(74, 142, 255, 0.72),
    0 0 34px rgba(123, 89, 255, 0.45);
  opacity: 0.72;
  transform: rotate(-5deg);
  transform-origin: center;
  animation: term-beam-pulse 5.5s ease-in-out infinite;
}

.aurora-ring {
  top: 50%;
  left: 50%;
  width: clamp(460px, 52vw, 820px);
  aspect-ratio: 1;
  border: 1px solid rgba(120, 153, 255, 0.17);
  border-radius: 50%;
  box-shadow:
    inset 0 0 46px rgba(96, 118, 255, 0.06),
    0 0 52px rgba(83, 128, 255, 0.08);
  opacity: 0.58;
  transform: translate(-50%, -50%);
  animation: term-ring-breathe 7s ease-in-out infinite;
}

@keyframes term-light-sweep {
  0%,
  24% {
    transform: translateX(-62%);
  }
  76%,
  100% {
    transform: translateX(62%);
  }
}

@keyframes term-orb-blue {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(5%, -4%, 0) scale(1.08);
  }
}

@keyframes term-orb-violet {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-5%, 6%, 0) scale(0.94);
  }
}

@keyframes term-beam-pulse {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.92;
  }
}

@keyframes term-ring-breathe {
  0%,
  100% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.96);
  }
  50% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

.term-hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: center;
}

.term-hero-copy {
  display: flex;
  width: min(920px, 100%);
  min-width: 0;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.term-hero-copy .term-kicker {
  color: #8ba6ff;
}

.release-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #c5cdea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  text-shadow: 0 0 22px rgba(113, 146, 255, 0.3);
}

.release-line > span:last-child {
  color: #e5ad55;
}

.term-site .status-dot {
  width: 7px;
  height: 7px;
  background: #7192ff;
  box-shadow:
    0 0 0 4px rgba(113, 146, 255, 0.1),
    0 0 22px 5px rgba(113, 146, 255, 0.78);
}

.term-hero h1 {
  max-width: 920px;
  margin: 20px auto 0;
  color: #f7f8ff;
  font-size: clamp(42px, 4.35vw, 66px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.term-hero h1 > span {
  display: block;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #79c7ff, #8798ff 50%, #ad83ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 18px;
  font-weight: 760;
  letter-spacing: 0.04em;
  filter: drop-shadow(0 0 20px rgba(96, 137, 255, 0.45));
}

.term-hero-copy > p:last-of-type {
  max-width: 720px;
  margin: 18px auto 0;
  color: #aeb8d0;
  font-size: 16px;
  line-height: 1.7;
}

.term-hero .hero-actions {
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.term-site .button {
  min-height: 44px;
  border-radius: 3px;
  padding: 11px 16px;
  font-size: 13px;
}

.term-site .button.primary {
  border-color: rgba(155, 177, 255, 0.55);
  background: linear-gradient(120deg, #3f73f4 0%, #6c63e9 100%);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(109, 137, 255, 0.12),
    0 10px 30px rgba(55, 96, 222, 0.25);
}

.term-site .button.primary:hover {
  background: linear-gradient(120deg, #5684fa 0%, #7b70f0 100%);
  box-shadow:
    0 0 0 1px rgba(142, 164, 255, 0.2),
    0 12px 38px rgba(77, 112, 232, 0.34),
    0 0 28px rgba(112, 102, 235, 0.16);
}

.term-hero .button.secondary {
  border-color: rgba(215, 222, 245, 0.25);
  background: rgba(255, 255, 255, 0.055);
  color: #eef2ff;
}

.term-site .text-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-strong);
  font-size: 13px;
  font-weight: 760;
}

.term-hero .text-link {
  min-height: 44px;
  padding: 0 7px;
  color: #aebfff;
}

.term-fact-rail {
  display: grid;
  width: min(760px, 100%);
  grid-template-columns: repeat(3, 1fr);
  margin: 26px auto 0;
  border-top: 1px solid rgba(220, 228, 255, 0.16);
  border-bottom: 1px solid rgba(220, 228, 255, 0.16);
}

.term-fact-rail > span {
  display: grid;
  min-width: 0;
  gap: 3px;
  border-right: 1px solid rgba(220, 228, 255, 0.16);
  padding: 14px 20px;
  text-align: center;
}

.term-fact-rail > span + span {
  padding-left: 20px;
}

.term-fact-rail > span:last-child {
  border-right: 0;
}

.term-fact-rail small,
.term-fact-rail em {
  color: #78859f;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-style: normal;
  text-transform: uppercase;
}

.term-fact-rail strong {
  overflow: hidden;
  color: #e6ebfb;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-site .quick-pick {
  border-bottom: 1px solid rgba(126, 154, 255, 0.18);
  background: #070d1b;
  padding: 24px 0 0;
}

.term-site .quick-pick-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(128, 154, 255, 0.28);
  border-radius: 6px;
  background:
    radial-gradient(circle at 0 0, rgba(58, 126, 255, 0.18), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.15), transparent 36%),
    #0d1526;
  color: #eef2ff;
  box-shadow:
    0 24px 70px rgba(2, 7, 18, 0.34),
    0 0 46px rgba(68, 108, 225, 0.08);
}

.term-site .quick-pick-shell::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #4f83ff 35%, #976cff 68%, transparent);
  box-shadow: 0 0 22px rgba(92, 127, 255, 0.62);
  pointer-events: none;
}

.term-site .quick-pick-head {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  padding: 20px 22px;
}

.term-site .quick-pick-head h2,
.term-site .section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.term-site .quick-pick-head p:not(.eyebrow),
.term-site .section-head > p {
  font-size: 14px;
  line-height: 1.65;
}

.term-site .quick-pick-head h2 {
  color: #f3f6ff;
}

.term-site .quick-pick-head p:not(.eyebrow) {
  color: #a6b1c9;
}

.term-site .quick-pick .eyebrow {
  color: #8eabff;
}

.term-site .quick-pick-grid {
  gap: 1px;
  background: rgba(184, 199, 242, 0.14);
}

.term-site .choice-card {
  min-height: 138px;
  border-radius: 0;
  background: rgba(12, 20, 37, 0.88);
  color: #eef2ff;
  padding: 17px 20px;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.term-site .choice-card.recommended {
  background: rgba(25, 38, 67, 0.96);
  box-shadow:
    inset 0 0 0 1px rgba(126, 154, 255, 0.62),
    0 0 38px rgba(74, 112, 239, 0.13);
}

.term-site .choice-card:hover {
  background: rgba(27, 40, 70, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(126, 154, 255, 0.72),
    0 0 38px rgba(74, 112, 239, 0.14);
}

.term-site .choice-card.recommended::before,
.term-site .choice-card:hover::before {
  background: var(--primary-strong);
}

.term-site .choice-kicker {
  color: var(--primary-strong);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.term-site .choice-card strong {
  margin-top: 13px;
  color: #f4f6ff;
  font-size: 17px;
}

.term-site .choice-card span:last-child {
  margin-top: 7px;
  color: #9eaac2;
  font-size: 12px;
  line-height: 1.55;
}

.term-site .quick-note {
  border-top-color: rgba(184, 199, 242, 0.14);
  background: rgba(7, 13, 27, 0.72);
  padding: 11px 20px;
}

.term-site .quick-note span,
.term-site .quick-note p {
  color: #8997b4;
  font-size: 11px;
}

.device-picker-body {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 22px;
}

.device-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9eabc4;
  font-size: 12px;
}

.device-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #65a1ff;
  box-shadow: 0 0 14px rgba(89, 145, 255, 0.86);
}

.device-platform-tabs {
  display: grid;
  width: min(300px, 100%);
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin: 14px auto 18px;
  border: 1px solid rgba(165, 184, 235, 0.16);
  border-radius: 7px;
  background: rgba(5, 10, 22, 0.66);
  padding: 4px;
}

.device-platform-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #8f9bb4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
}

.device-platform-tabs button:hover {
  color: #eef2ff;
}

.device-platform-tabs button.active {
  background: rgba(105, 132, 219, 0.18);
  color: #f5f7ff;
  box-shadow:
    inset 0 0 0 1px rgba(135, 160, 246, 0.26),
    0 7px 20px rgba(0, 0, 0, 0.18);
}

.device-recommendation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  border: 1px solid rgba(112, 151, 255, 0.52);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0 0, rgba(69, 126, 255, 0.19), transparent 42%),
    linear-gradient(118deg, rgba(26, 43, 78, 0.96), rgba(16, 24, 46, 0.96));
  padding: 22px 24px;
  box-shadow:
    0 20px 48px rgba(1, 6, 18, 0.3),
    0 0 40px rgba(76, 111, 226, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.device-recommendation-label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8eb1ff;
  font-size: 11px;
  font-weight: 780;
}

.device-recommendation-label span {
  color: #a887ff;
  text-shadow: 0 0 12px rgba(167, 126, 255, 0.72);
}

.device-recommendation h3 {
  margin-top: 12px;
  color: #f5f7ff;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.device-recommendation div > p:not(.device-recommendation-label) {
  margin-top: 6px;
  color: #a5b0c7;
  font-size: 12px;
  line-height: 1.55;
}

.device-recommendation code {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 8px;
  color: #7787a6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
}

.device-download-button {
  min-width: 190px;
  min-height: 46px;
  justify-content: center;
  white-space: nowrap;
}

.other-downloads-link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  border: 1px solid rgba(167, 184, 226, 0.18);
  border-radius: 7px;
  background: rgba(5, 10, 22, 0.48);
  padding: 14px 17px;
  color: #d7def1;
  font-size: 12px;
  font-weight: 720;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.other-downloads-link:hover {
  border-color: rgba(139, 162, 231, 0.38);
  background: rgba(98, 128, 218, 0.1);
  color: #f3f6ff;
}

.other-downloads-link b {
  color: #7f9bea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.term-site .download-section {
  background: var(--panel-solid);
  padding: 60px 0 72px;
}

.term-site .section-head {
  gap: 56px;
  margin-bottom: 24px;
}

.term-site .release-strip {
  border-color: rgba(105, 137, 235, 0.38);
  border-radius: 5px;
  background:
    linear-gradient(110deg, rgba(54, 100, 219, 0.18), transparent 42%),
    linear-gradient(285deg, rgba(126, 76, 225, 0.16), transparent 40%),
    #0d1629;
  color: #eef2ff;
  padding: 13px 16px;
  box-shadow:
    0 14px 38px rgba(33, 62, 143, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.term-site .release-strip .meta,
.term-site .release-strip a {
  color: #a9b7d5;
  font-size: 12px;
}

.term-site .release-strip .meta strong,
.term-site .release-strip a {
  color: #dce5ff;
}

.term-site .download-helper {
  margin-top: 10px;
  border-radius: 3px;
  padding: 10px 14px;
}

.term-site .download-helper strong,
.term-site .download-helper span {
  font-size: 12px;
}

.term-site .download-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--line);
}

.term-site .package-card {
  position: relative;
  overflow: hidden;
  min-height: 292px;
  border: 0;
  border-radius: 0;
  background: var(--panel-solid);
  padding: 16px;
  box-shadow: none;
}

.term-site .package-card:hover {
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px var(--primary-strong),
    0 16px 38px rgba(42, 75, 170, 0.14);
  transform: translateY(-2px);
}

.term-site .package-card:has(.recommended-badge) {
  box-shadow: inset 0 1px 0 rgba(92, 127, 255, 0.14);
}

.term-site .package-card:has(.recommended-badge)::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #4f83ff, #976cff);
  box-shadow: 0 0 18px rgba(92, 127, 255, 0.42);
}

.term-site .pkg-mark {
  width: 37px;
  height: 29px;
  border-radius: 2px;
  background: var(--mini-icon-bg);
  font-size: 10px;
  box-shadow: 0 0 24px rgba(78, 121, 247, 0.16);
}

.term-site .badge {
  border-radius: 2px;
  padding: 4px 6px;
  font-size: 9px;
  text-align: right;
}

.term-site .package-card h3 {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.25;
}

.term-site .package-card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
}

.term-site .checksum {
  margin-top: 12px;
  padding-top: 10px;
  font-size: 9px;
  line-height: 1.5;
}

.term-site .checksum span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.term-site .package-card .button {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 11px;
}

.term-release-notes {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: var(--panel-solid);
}

.term-release-notes::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, #4f83ff, #976cff 56%, transparent);
  box-shadow: 0 0 20px rgba(91, 122, 255, 0.3);
}

.term-release-notes-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 20px 17px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(68, 116, 245, 0.08), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(137, 80, 232, 0.07), transparent 34%);
}

.term-release-notes-head h3 {
  margin-top: 5px;
  color: var(--text);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.term-release-notes-head > div > p:last-child {
  max-width: 760px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.term-release-notes-head > a {
  flex: 0 0 auto;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 780;
}

.term-release-notes-head > a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.term-release-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.term-site .term-release-note-group {
  position: relative;
  padding: 21px 24px 23px;
  border-right: 1px solid var(--line);
}

.term-site .term-release-note-group:last-child {
  border-right: 0;
}

.term-release-note-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.term-release-note-group h4 {
  color: var(--text);
  font-size: 14px;
}

.term-release-note-group ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.term-release-note-group li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.term-release-note-group li + li {
  margin-top: 11px;
}

.term-release-note-group li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f83ff, #976cff);
  box-shadow: 0 0 8px rgba(86, 123, 255, 0.45);
  content: "";
}

.term-release-note-group strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
}

.term-release-note-group span {
  display: block;
}

.guides-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 35%, rgba(59, 126, 255, 0.15), transparent 27%),
    radial-gradient(circle at 88% 72%, rgba(132, 95, 255, 0.14), transparent 30%),
    linear-gradient(rgba(132, 154, 220, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 154, 220, 0.055) 1px, transparent 1px),
    #0b1221;
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: #eef2ff;
}

.guides-section::before {
  position: absolute;
  inset: -20%;
  content: "";
  background:
    radial-gradient(circle at 16% 46%, rgba(45, 119, 255, 0.27), transparent 25%),
    radial-gradient(circle at 82% 55%, rgba(132, 76, 255, 0.24), transparent 28%);
  filter: blur(50px);
  pointer-events: none;
}

.guides-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

.guides-copy .eyebrow {
  color: #8ba6ff;
}

.guides-copy h2 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 53px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.guides-copy > p:not(.eyebrow) {
  margin-top: 18px;
  color: #9da9c2;
  font-size: 15px;
  line-height: 1.7;
}

.guides-copy .text-link {
  margin-top: 24px;
  color: #adc0ff;
}

.featured-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.96fr) minmax(0, 1.04fr);
  overflow: hidden;
  border: 1px solid rgba(220, 227, 249, 0.22);
  border-radius: 4px;
  background: #111a2a;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.24),
    0 0 56px rgba(74, 116, 240, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.featured-guide:hover {
  border-color: rgba(137, 163, 255, 0.9);
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.38),
    0 0 76px rgba(76, 121, 255, 0.22),
    30px -16px 84px rgba(126, 82, 238, 0.15);
  transform: translateY(-2px);
}

.featured-guide-media {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-right: 1px solid rgba(220, 227, 249, 0.16);
}

.featured-guide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-guide-media > span {
  position: absolute;
  top: 12px;
  left: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  background: rgba(6, 10, 18, 0.84);
  color: #f4f6ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.featured-guide-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
}

.featured-guide-body > p {
  color: #7f90b0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.featured-guide-body h3 {
  margin-top: 28px;
  font-size: 23px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.featured-guide-body > span {
  margin-top: 12px;
  color: #9da9c2;
  font-size: 13px;
  line-height: 1.6;
}

.featured-guide-body > strong {
  margin-top: auto;
  padding-top: 20px;
  color: #adc0ff;
  font-size: 12px;
}

.term-site .product-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.term-site .visual-panel,
.term-site .feature-item,
.term-site .showcase-card,
.term-site .mini-card,
.term-site .faq-item {
  border-radius: 0;
  box-shadow: none;
}

.term-site .visual-panel {
  border: 0;
}

.term-site .visual-panel img {
  min-height: 450px;
}

.term-site .feature-stack {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.term-site .feature-item {
  border: 0;
  background: var(--panel-solid);
  padding: 20px;
}

.term-site .feature-item:hover {
  box-shadow: inset 3px 0 0 var(--primary-strong);
  transform: none;
}

.term-site .feature-item h3 {
  font-size: 16px;
}

.term-site .feature-item p {
  font-size: 12px;
  line-height: 1.6;
}

.term-site .showcase {
  background: var(--section-alt);
}

.term-site .showcase-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.term-site .showcase-card {
  border: 0;
}

.term-site .showcase-card:hover {
  box-shadow: inset 0 0 0 1px var(--primary-strong);
  transform: none;
}

.term-site .feature-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.term-site .mini-card {
  min-height: 150px;
  border: 0;
  padding: 17px;
}

.term-site .mini-card:hover {
  box-shadow: inset 0 0 0 1px var(--primary-strong);
  transform: none;
}

.term-site .mini-card .icon {
  width: auto;
  min-width: 34px;
  height: 26px;
  border-radius: 2px;
  padding: 0 7px;
  font-size: 9px;
}

.term-site .mini-card h3 {
  margin-top: 14px;
  font-size: 15px;
}

.term-site .mini-card p {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
}

.term-site .faq {
  background: var(--section-alt);
}

.term-site .faq-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.term-site .faq-item {
  border: 0;
  padding: 18px;
}

.term-site .faq-item h3 {
  font-size: 15px;
}

.term-site .faq-item p {
  font-size: 13px;
  line-height: 1.6;
}

.term-site .science-teaser {
  background: var(--bg);
  padding: 54px 0;
}

.term-site .science-teaser-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  border-radius: 4px;
  background: var(--panel-solid);
  box-shadow: none;
  padding: 24px;
}

.term-site .science-teaser-card:hover {
  border-color: var(--primary-strong);
  box-shadow: none;
  transform: none;
}

.term-site .science-teaser-card .science-workbench {
  display: none;
}

.term-site .science-teaser-copy h2 {
  max-width: 680px;
  font-size: 30px;
}

.term-site .science-metrics {
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.term-site .science-metrics span {
  border: 0;
  border-radius: 0;
  background: var(--panel-solid);
  padding: 12px;
  font-size: 10px;
}

.term-site .science-metrics strong {
  font-size: 17px;
}

.term-site .cta-band {
  background: var(--bg);
  padding: 32px 0 68px;
}

.term-site .cta-box {
  border-color: var(--line-strong);
  border-radius: 4px;
  box-shadow: none;
  padding: 24px;
}

.term-site .cta-box h2 {
  font-size: 27px;
}

.term-site .site-footer {
  position: relative;
  border-top-color: rgba(226, 232, 255, 0.12);
  background:
    radial-gradient(circle at 12% 100%, rgba(44, 105, 240, 0.17), transparent 28%),
    radial-gradient(circle at 88% 110%, rgba(125, 74, 235, 0.15), transparent 30%),
    #060a14;
  color: #edf1ff;
  box-shadow:
    0 -1px 0 rgba(111, 142, 255, 0.12),
    0 -28px 80px rgba(69, 104, 218, 0.08);
}

.term-site .site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #4f83ff 34%, #976cff 68%, transparent);
  box-shadow: 0 0 22px rgba(102, 126, 255, 0.58);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .term-hero::after,
  .aurora-orb,
  .aurora-beam,
  .aurora-ring {
    animation: none !important;
  }

  .term-hero::after {
    transform: none;
  }
}

.term-site .site-footer .brand {
  color: #f4f6ff;
}

.term-site .site-footer p,
.term-site .site-footer a {
  color: #929db5;
}

.term-site .footer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.term-site .site-footer a:hover {
  color: #ffffff;
}

.learning-shell {
  background: var(--bg);
}

.learning-index {
  padding-bottom: 78px;
}

.learning-hero {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 68px;
  align-items: end;
  border-bottom: 1px solid var(--line-strong);
  padding: 64px 0 46px;
}

.learning-hero h1 {
  max-width: 780px;
  margin-top: 14px;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.learning-hero-note {
  border-top: 2px solid var(--text);
  padding-top: 14px;
}

.learning-hero-note span {
  color: var(--primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.learning-hero-note p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.learning-sections {
  display: grid;
  gap: 54px;
  padding-top: 46px;
}

.term-site .learning-section {
  padding: 0;
}

.learning-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 13px;
}

.learning-section-head h2 {
  margin-top: 6px;
  font-size: 27px;
  letter-spacing: -0.03em;
}

.learning-section-head > span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.learning-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 420px));
  gap: 16px;
  margin-top: 18px;
  border: 0;
  background: transparent;
}

.learning-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  transition: box-shadow 180ms ease;
}

.learning-card:hover {
  z-index: 1;
  box-shadow: inset 0 0 0 1px var(--primary-strong);
}

.learning-card-media {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.learning-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 260ms ease;
}

.learning-card:hover .learning-card-image {
  transform: scale(1.015);
}

.learning-card-badge {
  position: absolute;
  top: 11px;
  left: 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background: rgba(6, 10, 18, 0.82);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.learning-card-body {
  display: flex;
  min-height: 210px;
  flex: 1;
  flex-direction: column;
  padding: 19px;
}

.learning-card-external {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.learning-card-external svg {
  width: 12px;
  height: 12px;
}

.learning-card-body h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.learning-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 9px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.learning-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.learning-card-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.learning-card-meta svg {
  width: 13px;
  height: 13px;
}

.learning-card-author,
.guide-author-image {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.guide-page {
  max-width: 980px;
  padding-top: 42px;
  padding-bottom: 76px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.guide-back svg {
  width: 15px;
  height: 15px;
}

.guide-article {
  margin-top: 30px;
  border: 1px solid var(--line-strong);
  background: var(--panel-solid);
}

.guide-article-head {
  border-bottom: 1px solid var(--line);
  padding: clamp(26px, 5vw, 56px);
}

.guide-article-head h1 {
  max-width: 800px;
  margin-top: 13px;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.guide-deck {
  max-width: 760px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 11px;
}

.guide-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.guide-meta svg {
  width: 14px;
  height: 14px;
}

.guide-cover {
  width: 100%;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.guide-source {
  margin: 28px clamp(22px, 5vw, 56px) 0;
  border-left: 3px solid var(--amber);
  background: var(--panel-soft);
  padding: 13px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.guide-body {
  padding: 12px clamp(22px, 5vw, 56px) 50px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.78;
}

.guide-body h1,
.guide-body h2,
.guide-body h3 {
  color: var(--text);
  letter-spacing: -0.025em;
}

.guide-body h2 {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 24px;
}

.guide-body h3 {
  margin-top: 28px;
  font-size: 18px;
}

.guide-body p,
.guide-body li {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  line-height: 1.78;
}

.guide-body a {
  color: var(--primary-strong);
}

.guide-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.legal-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.legal-page {
  width: min(820px, calc(100% - 48px));
  flex: 1;
  padding: 72px 0 96px;
}

.legal-page h1 {
  margin-top: 14px;
  font-size: clamp(38px, 5vw, 58px);
  letter-spacing: -0.045em;
}

.legal-page > p:last-child {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

@media (max-width: 1180px) {
  .term-header .nav {
    gap: 14px;
  }

  .term-header .nav-links a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .term-header .nav-actions .github {
    display: none;
  }

  .term-site .download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .term-site .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 960px) {
  .term-site .container {
    width: min(1320px, calc(100% - 32px));
  }

  .term-site .term-header .nav-links {
    display: flex;
    justify-content: flex-start;
  }

  .term-header .nav-actions .theme-switcher {
    display: none;
  }

  .term-hero-grid,
  .guides-layout,
  .learning-hero {
    grid-template-columns: 1fr;
  }

  .term-hero-grid > *,
  .learning-hero > * {
    min-width: 0;
  }

  .term-hero-grid {
    min-height: auto;
  }

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

  .term-site .quick-pick-head,
  .term-site .section-head,
  .term-site .product-grid {
    grid-template-columns: 1fr;
  }

  .term-site .quick-pick-grid,
  .term-site .showcase-grid,
  .learning-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .term-site .visual-panel img {
    min-height: 0;
  }

  .learning-hero {
    min-height: auto;
    gap: 36px;
    padding-top: 50px;
  }
}

@media (max-width: 720px) {
  .term-header .nav {
    min-height: auto;
    grid-template-columns: 1fr auto;
    padding: 9px 0 0;
  }

  .term-header .brand .brand-copy {
    display: grid;
  }

  .term-header .brand img {
    width: 36px;
    height: 36px;
  }

  .term-header .nav-actions {
    grid-row: 1;
    grid-column: 2;
    min-width: auto;
  }

  .term-header .nav-actions > a:not(.github) {
    display: inline-flex;
  }

  .term-header .nav-links {
    grid-row: 2;
    grid-column: 1 / -1;
    gap: 2px;
    border-top: 1px solid var(--header-line);
    padding: 4px 0;
  }

  .term-header .nav-links a {
    min-height: 32px;
    padding: 7px 9px;
  }

  .term-site .term-hero {
    margin-top: 0;
    padding: 32px 0 28px;
  }

  .term-hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 44px);
    line-height: 1.08;
    word-break: break-word;
  }

  .term-hero-copy > p:last-of-type {
    margin-top: 16px;
  }

  .term-hero .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .term-hero .hero-actions .text-link {
    grid-column: 1;
  }

  .term-fact-rail {
    grid-template-columns: 1fr;
    margin-top: 22px;
    text-align: left;
  }

  .term-fact-rail > span,
  .term-fact-rail > span + span {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(220, 228, 255, 0.13);
    padding: 10px 0;
    text-align: left;
  }

  .term-fact-rail > span:last-child {
    border-bottom: 0;
  }

  .term-site main > section {
    padding: 50px 0;
  }

  .term-site main > section[id],
  .term-site .package-card[id] {
    scroll-margin-top: 112px;
  }

  .term-site .quick-pick {
    padding: 16px 0 0;
  }

  .term-site .quick-pick-head,
  .term-site .quick-pick-grid,
  .term-site .download-grid,
  .term-site .showcase-grid,
  .term-site .feature-grid,
  .term-site .faq-list,
  .learning-card-grid,
  .featured-guide,
  .term-site .science-teaser-card,
  .term-site .science-metrics {
    grid-template-columns: 1fr;
  }

  .term-site .choice-card {
    min-height: 124px;
  }

  .device-picker-body {
    width: calc(100% - 28px);
    padding: 17px 0 18px;
  }

  .device-recommendation {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 19px;
  }

  .device-download-button {
    width: 100%;
  }

  .term-site .download-section {
    padding: 46px 0 56px;
  }

  .term-site .download-grid {
    border-bottom: 0;
  }

  .term-site .package-card {
    min-height: 260px;
  }

  .term-release-notes-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 17px;
  }

  .term-release-note-grid {
    grid-template-columns: 1fr;
  }

  .term-site .term-release-note-group {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 17px 18px;
  }

  .term-site .term-release-note-group:last-child {
    border-bottom: 0;
  }

  .guides-layout {
    gap: 28px;
  }

  .featured-guide-media {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(220, 227, 249, 0.16);
  }

  .term-site .feature-stack {
    grid-template-columns: 1fr;
  }

  .term-site .science-teaser-card {
    padding: 18px;
  }

  .learning-hero {
    padding: 42px 0 34px;
  }

  .learning-hero h1 {
    font-size: 40px;
  }

  .guide-page {
    padding-top: 28px;
  }

  .guide-article {
    margin-top: 22px;
  }

  .guide-body {
    font-size: 14px;
  }

  .legal-page {
    width: min(820px, calc(100% - 32px));
  }
}

@media (min-width: 380px) and (max-width: 720px) {
  .term-hero .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .term-hero .hero-actions .text-link {
    grid-column: 1 / -1;
    justify-content: center;
  }
}
