/* ==========================================================================
   TensorStack — site styles
   Dark, technical, quiet. Brand colours come from the TensorStack WPF theme
   (Accent1 #0d72ba, Accent2 #74b768, primary #2084e8).
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL — see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #08090b;
  --bg-soft: #0c0e11;
  --panel: #101216;
  --panel-2: #14171c;
  --panel-3: #1a1e24;
  --line: rgb(255 255 255 / 0.07);
  --line-2: rgb(255 255 255 / 0.12);
  --line-3: rgb(255 255 255 / 0.2);

  --text: #eceef2;
  --text-2: #a3a9b4;
  --text-3: #6f7681;

  --blue: #3b93f0;
  --blue-2: #2084e8;
  --blue-3: #0d72ba;
  --green: #74b768;
  --gold: #d0aa45;
  --copper: #cc7a4f;

  --accent: var(--blue);
  --accent-2: var(--green);
  --accent-ink: #04111f;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-window: 0 40px 100px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.05);
}

/* Product themes: set on <body data-theme="…"> */
[data-theme="amuse"] { --accent: #3d95ee; --accent-2: #7cc272; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; }
code, kbd, pre, samp { font-family: var(--font-mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(59 147 240 / 0.35); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; padding-block: clamp(80px, 11vw, 136px); }
.section-tight { padding-block: clamp(56px, 7vw, 88px); }
.section-line { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split {
  max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end; gap: 24px 48px;
}
@media (max-width: 860px) { .section-head.split { grid-template-columns: minmax(0, 1fr); } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }
.center > .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; opacity: 0.7; }

.display {
  font-size: clamp(42px, 7.2vw, 86px);
  line-height: 1.02; letter-spacing: -0.045em; font-weight: 600;
  text-wrap: balance;
}
.h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.04; letter-spacing: -0.04em; font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
.h3 {
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.25; letter-spacing: -0.02em; font-weight: 600;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.6; color: var(--text-2);
  max-width: 62ch; text-wrap: pretty;
}
.center .lead { margin-inline: auto; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.grad-text {
  background: linear-gradient(100deg, #f4f6f9 0%, #a9d0f8 42%, #a4d897 88%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.link {
  color: var(--text);
  text-decoration: underline; text-decoration-color: var(--line-3);
  text-underline-offset: 3px; transition: text-decoration-color 0.2s;
}
.link:hover { text-decoration-color: var(--accent); }
.inline-code {
  font-size: 0.88em; padding: 0.15em 0.4em; border-radius: 6px;
  background: rgb(255 255 255 / 0.06); border: 1px solid var(--line); color: var(--text);
}

/* ---------- Buttons & links ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 18px;
  border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s, filter 0.2s;
}
.btn .icon { font-size: 17px; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { --h: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-primary {
  background: #f2f4f7; color: #0a0c0f;
  box-shadow: inset 0 -1px 0 rgb(0 0 0 / 0.12), 0 10px 30px -12px rgb(255 255 255 / 0.35);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 12px 32px -12px var(--accent);
}
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: rgb(255 255 255 / 0.04); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); border-color: var(--line-3); }
.btn .arrow, .btn .ext { transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:hover .ext { transform: translate(2px, -2px); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.center .btn-row, .btn-row.center { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 500; color: var(--text);
}
.text-link .icon { color: var(--accent); transition: transform 0.25s var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }
.text-link.ext:hover .icon { transform: translate(2px, -2px); }

/* ---------- Pills, badges, chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 34px; padding: 4px 14px 4px 5px; border-radius: 999px;
  background: rgb(255 255 255 / 0.035); border: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--text-2);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--line-3); background: rgb(255 255 255 / 0.06); color: var(--text); }
.pill .icon { color: var(--text-3); transition: transform 0.25s var(--ease-out); }
.pill:hover .icon { transform: translateX(2px); }
.pill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: 999px;
  background: rgb(59 147 240 / 0.14); color: #93c4f8;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
}
.pill-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgb(116 183 104 / 0.2);
}

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--text-2); background: rgb(255 255 255 / 0.04); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-accent {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.center .badge-row { justify-content: center; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 32px; padding: 4px 12px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 14px; color: var(--text); white-space: nowrap;
}
.chip-sm { min-height: 28px; font-size: 13px; padding: 3px 10px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgb(8 9 11 / 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }

.brand {
  display: inline-flex; align-items: center; gap: 11px; flex: none;
  font-family: var(--font-mono); font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark { width: 26px; height: 26px; transition: transform 0.6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.04); }
.brand-word span { color: var(--text-3); }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; gap: 2px; list-style: none; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center;
  height: 36px; padding: 0 12px; border-radius: 9px;
  font-size: 14.5px; color: var(--text-2);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgb(255 255 255 / 0.045); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-link {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--text-2); transition: color 0.2s, background-color 0.2s;
}
.icon-link:hover { color: var(--text); background: rgb(255 255 255 / 0.05); }
.icon-link .icon { width: 20px; height: 20px; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .header-inner { gap: 16px; }
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; margin-left: auto; margin-right: -8px; border-radius: 10px;
  }
  .nav-toggle span {
    grid-area: 1 / 1; display: block; width: 18px; height: 1.5px; border-radius: 2px;
    background: var(--text); transition: transform 0.3s var(--ease-out);
  }
  .nav-toggle span:first-child { transform: translateY(-3.5px); }
  .nav-toggle span:last-child { transform: translateY(3.5px); }
  .site-header.is-open .nav-toggle span:first-child { transform: rotate(45deg); }
  .site-header.is-open .nav-toggle span:last-child { transform: rotate(-45deg); }

  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.8);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
  }
  .site-header.is-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-links { flex-direction: column; }
  .nav-links a { display: flex; height: 52px; padding: 0 4px; font-size: 18px; color: var(--text); border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { background: none; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--accent); }
  .nav-actions { justify-content: space-between; padding-top: 12px; }
  .nav-actions .btn { flex: 1; --h: 46px; font-size: 15px; }
}
body.nav-locked { overflow: hidden; }

/* ---------- Backgrounds ---------- */
.bg-iso {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='30'%3E%3Cpath d='M0 0L52 30M52 0L0 30' stroke='%23fff' stroke-opacity='.06' fill='none'/%3E%3C/svg%3E");
  background-size: 52px 30px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, #000 10%, transparent 72%);
}
.bg-glow { position: absolute; inset: 0; z-index: -2; pointer-events: none; }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; padding-top: clamp(56px, 8vw, 104px); overflow: clip; }
.hero .bg-glow {
  background:
    radial-gradient(640px 380px at 50% 74%, rgb(32 132 232 / 0.22), transparent 70%),
    radial-gradient(520px 300px at 63% 84%, rgb(116 183 104 / 0.13), transparent 70%),
    radial-gradient(1000px 520px at 50% -12%, rgb(59 147 240 / 0.13), transparent 70%);
}
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 26px; text-align: center; }
.hero-copy .lead { margin-inline: auto; max-width: 58ch; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.hero-meta .icon { color: var(--text-2); }
.hero-actions .install { width: 424px; max-width: 100%; border-radius: 14px; text-align: left; }
/* The page-hero column shrink-wraps its children, so the install box needs an explicit width. */
.page-hero-copy .install { width: 424px; max-width: 100%; }

/* Isometric stack illustration */
.stack { position: relative; margin-top: clamp(28px, 5vw, 56px); }
.stack-svg { width: 100%; height: auto; overflow: visible; }
.stack-svg .face-t { fill: url(#g-glass); stroke: rgb(255 255 255 / 0.2); stroke-width: 1; }
.stack-svg .face-l { fill: rgb(255 255 255 / 0.035); stroke: rgb(255 255 255 / 0.13); }
.stack-svg .face-r { fill: rgb(255 255 255 / 0.015); stroke: rgb(255 255 255 / 0.13); }
.stack-svg .layer-sdk .face-t { fill: url(#g-sdk-fill); stroke: rgb(74 160 245 / 0.75); }
.stack-svg .layer-sdk .face-l { fill: rgb(59 147 240 / 0.13); stroke: rgb(74 160 245 / 0.45); }
.stack-svg .layer-sdk .face-r { fill: rgb(59 147 240 / 0.07); stroke: rgb(74 160 245 / 0.45); }
.stack-svg .layer-apps .face-t { fill: url(#g-apps-fill); stroke: url(#g-apps-stroke); stroke-width: 1.4; }
.stack-svg .layer-apps .face-l { fill: rgb(74 160 245 / 0.14); stroke: rgb(74 160 245 / 0.5); }
.stack-svg .layer-apps .face-r { fill: rgb(125 196 114 / 0.1); stroke: rgb(125 196 114 / 0.5); }
.stack-svg .chip { fill: rgb(116 183 104 / 0.05); stroke: rgb(116 183 104 / 0.4); }
.stack-svg .die { fill: rgb(116 183 104 / 0.14); stroke: rgb(116 183 104 / 0.75); }
.stack-svg .pin { stroke: rgb(116 183 104 / 0.45); stroke-width: 1.3; stroke-linecap: round; }
.stack-svg .rt-tile { fill: rgb(255 255 255 / 0.035); stroke: rgb(255 255 255 / 0.28); }
.stack-svg .pkg { fill: rgb(59 147 240 / 0.1); stroke: rgb(74 160 245 / 0.5); }
.stack-svg .apps-inset { fill: none; stroke: rgb(255 255 255 / 0.13); stroke-dasharray: 3 6; }
.stack-svg .flat { font-family: var(--font-mono); fill: rgb(255 255 255 / 0.72); }
.stack-svg .flat-chip { font-size: 14px; letter-spacing: 0.12em; fill: #b3e3a8; }
.stack-svg .flat-rt { font-size: 12.5px; fill-opacity: 0.6; }
.stack-svg .layer-runtimes .rt-tile { stroke: rgb(255 255 255 / 0.22); }
.stack-svg .flat-pkg { font-size: 11px; fill: #cfe4fb; }
.stack-svg .label-eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; fill: var(--text-3); }
.stack-svg .label-title { font-family: var(--font-sans); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; fill: var(--text); transition: fill 0.25s; }
.stack-svg .label-sub { font-family: var(--font-mono); font-size: 13px; fill: var(--text-2); }
.stack-svg .leader { stroke: rgb(255 255 255 / 0.28); stroke-dasharray: 2 4; }
.stack-svg .label-dot { fill: var(--bg); stroke: rgb(255 255 255 / 0.6); stroke-width: 1.5; }
.stack-svg .layer-hardware .label-dot { stroke: #8fd283; }
.stack-svg .layer-sdk .label-dot { stroke: #5aa8f7; fill: #5aa8f7; }
.stack-svg .layer-sdk .label-eyebrow { fill: #5aa8f7; }
.stack-svg .layer-apps .label-dot { stroke: #7cc272; }
.stack-svg .icon-tile { fill: #121519; stroke: rgb(255 255 255 / 0.16); }
.stack-svg .icon-tile-ghost { fill: rgb(255 255 255 / 0.025); stroke: rgb(255 255 255 / 0.32); stroke-dasharray: 4 4; }
.stack-svg .icon-plus { stroke: rgb(255 255 255 / 0.6); stroke-width: 2; stroke-linecap: round; fill: none; }
.stack-svg .icon-name { font-family: var(--font-mono); font-size: 12.5px; fill: var(--text-2); }
.stack-svg .icon-shadow { fill: rgb(0 0 0 / 0.65); }
.stack-svg .beam-line { stroke: url(#g-beam); stroke-width: 1.5; }
.stack-svg .beam-dot { fill: #a9d4ff; opacity: 0; }
.stack-svg .layer { cursor: default; }
.stack-svg .layer:hover .label-title { fill: #fff; }
.stack-svg .layer:hover .face-t { stroke-width: 2; }

@media (prefers-reduced-motion: no-preference) {
  .js .stack-svg .layer { opacity: 0; animation: layer-in 1.1s var(--ease-out) forwards; }
  .js .stack-svg .layer-hardware { animation-delay: 0.1s; }
  .js .stack-svg .layer-runtimes { animation-delay: 0.22s; }
  .js .stack-svg .layer-sdk { animation-delay: 0.34s; }
  .js .stack-svg .layer-apps { animation-delay: 0.46s; }
  .js .stack-svg .beam { opacity: 0; animation: fade-in 1s ease 1.2s forwards; }
  .stack-svg .layer-inner { animation: float 8s ease-in-out infinite; }
  .stack-svg .layer-runtimes .layer-inner { animation-delay: -2s; }
  .stack-svg .layer-sdk .layer-inner { animation-delay: -4s; }
  .stack-svg .layer-apps .layer-inner { animation-delay: -6s; }
  .stack-svg .app-icon { animation: bob 5s ease-in-out infinite; }
  .stack-svg .app-icon-1 { animation-delay: -1.6s; }

  .stack-svg .beam-dot { animation: rise 3s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .stack-svg .beam-dot-1 { animation-delay: 1s; }
  .stack-svg .beam-dot-2 { animation-delay: 2s; }
}
@media (prefers-reduced-motion: reduce) {
  .stack-svg .beam-dot { display: none; }
}
@keyframes layer-in { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-246px); opacity: 0; }
}

.stack-legend { display: none; list-style: none; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.stack-legend li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stack-legend .n { grid-row: span 2; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); padding-top: 3px; }
.stack-legend strong { font-weight: 600; font-size: 16px; }
.stack-legend span:last-child { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); }

@media (max-width: 760px) {
  .stack { overflow: hidden; margin-inline: calc(var(--gutter) * -1); }
  .stack-svg { width: 210%; max-width: none; margin-left: -55%; }
  .stack-svg .label { display: none; }
  .stack-legend { display: grid; padding-inline: var(--gutter); }
}
@media (max-width: 520px) {
  .hero-copy .btn-row, .page-hero-copy .btn-row, .cta .btn-row { width: 100%; }
  .hero-copy .btn-row .btn, .hero-copy .btn-row .install, .page-hero-copy .btn-row .btn, .cta .btn-row .btn { flex: 1 1 100%; }
}

/* ---------- Model marquee ---------- */
.marquee-wrap { display: grid; gap: 18px; }
.marquee-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 10px; width: max-content; list-style: none; }
.marquee.is-ready .marquee-track { animation: marquee var(--marquee-duration, 70s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee:not(.is-ready) .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee.is-ready .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee.is-ready .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
.model {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 12px; border-radius: 11px;
  background: rgb(255 255 255 / 0.025); border: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; white-space: nowrap; color: var(--text);
}
.model .icon { color: var(--text-3); font-size: 16px; }
.model-kind { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 400; }

/* ---------- Cards ---------- */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.04), rgb(255 255 255 / 0.012));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, -20%), rgb(255 255 255 / 0.06), transparent 45%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-pad { padding: clamp(22px, 2.6vw, 32px); }

.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.above { position: relative; z-index: 2; }

/* Bento grid of products */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
@media (max-width: 980px) {
  .bento > * { grid-column: 1 / -1; }
}

.product-card { display: flex; flex-direction: column; min-height: 540px; }

.pc-body { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3vw, 36px); }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.pc-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 13px;
  background: linear-gradient(180deg, #1b1f25, #121418);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.pc-icon img { width: 34px; height: 34px; }
.pc-name { display: block; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; }
.pc-kind { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); line-height: 1.4; }
.pc-head .badge { margin-left: auto; }
.pc-title { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.18; letter-spacing: -0.028em; font-weight: 600; text-wrap: balance; }
.pc-text { color: var(--text-2); max-width: 52ch; }
.pc-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.pc-visual { position: relative; margin-top: auto; }

/* Amuse card: modality tiles */
.modality-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 0 clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
}
.modality {
  display: grid; gap: 10px; align-content: start;
  padding: 18px; border-radius: 14px;
  background: rgb(255 255 255 / 0.025); border: 1px solid var(--line);
}
.modality-top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.modality-top .icon {
  width: 32px; height: 32px; padding: 7px; border-radius: 9px;
  color: #8ec3f8; background: rgb(59 147 240 / 0.12);
}
.modality:nth-child(2) .icon { color: #9ad38e; background: rgb(116 183 104 / 0.12); }
.modality:nth-child(3) .icon { color: #e3c36d; background: rgb(214 174 73 / 0.12); }
.modality:nth-child(4) .icon { color: #b9a6f2; background: rgb(150 125 230 / 0.13); }
.modality p { font-family: var(--font-mono); font-size: 12px; line-height: 1.65; color: var(--text-3); }

/* SDK card: mini code */
.pc-code {
  margin: auto clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px);
  border-radius: 14px; border: 1px solid var(--line-2); background: #0b0d10; overflow: hidden;
}
.pc-code .code { font-size: 12.5px; padding: 18px 20px; }

/* ---------- Capabilities (home) ---------- */
.head-aside { display: grid; gap: 18px; justify-items: start; }
.caps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
/* Each card spans four rows of the parent grid (icon, title, text, packages) so those rows line up across cards. */
.cap { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; align-content: start; padding: clamp(22px, 2.4vw, 28px); }
.cap-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 8px;
  color: #8ec3f8; background: rgb(59 147 240 / 0.12); border: 1px solid rgb(59 147 240 / 0.24);
}
.cap-icon .icon { width: 20px; height: 20px; }
.cap:nth-child(2) .cap-icon { color: #9ad38e; background: rgb(116 183 104 / 0.12); border-color: rgb(116 183 104 / 0.24); }
.cap:nth-child(3) .cap-icon { color: #e3c36d; background: rgb(214 174 73 / 0.12); border-color: rgb(214 174 73 / 0.24); }
.cap:nth-child(4) .cap-icon { color: #b9a6f2; background: rgb(150 125 230 / 0.13); border-color: rgb(150 125 230 / 0.26); }
.cap h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.cap p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
.cap-foot { display: grid; gap: 10px; align-content: start; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.cap-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.cap-pkgs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.cap-pkgs li {
  padding: 5px 7px; border-radius: 6px; line-height: 1.2;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-2); white-space: nowrap;
  background: rgb(255 255 255 / 0.035); border: 1px solid var(--line);
}
@media (max-width: 1080px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .caps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Feature grid ---------- */
.features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.features.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature {
  display: grid; gap: 12px; align-content: start;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--bg);
  transition: background-color 0.3s;
}
.feature:hover { background: var(--bg-soft); }
.feature-icon {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 6px;
  background: rgb(255 255 255 / 0.035); border: 1px solid var(--line-2);
  color: var(--accent);
}
.feature-icon .icon { width: 20px; height: 20px; }
.feature h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
.feature p { color: var(--text-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 1080px) { .features.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .features, .features.cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.split-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-content: start; }
@media (min-width: 981px) {
  /* Visual on the left, copy on the right; the copy stays first in the source for small screens. */
  .split.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.reverse > :last-child { order: -1; }
}
@media (max-width: 980px) {
  .split, .split.even { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reference app screenshot (home) ---------- */
.shot { position: relative; isolation: isolate; display: grid; gap: 14px; }
.shot::before {
  content: ""; position: absolute; inset: 6% 4% 10%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(59 147 240 / 0.3), rgb(116 183 104 / 0.08) 60%, transparent);
  filter: blur(48px);
}
.shot-frame {
  overflow: hidden; border-radius: 14px;
  border: 1px solid var(--line-2); background: #0c0e12; box-shadow: var(--shadow-window);
}
.shot-frame img { width: 100%; }
.shot figcaption {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}

.check-list { display: grid; gap: 12px; list-style: none; }
.check-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text-2); }
.check-list .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.check-list strong { color: var(--text); font-weight: 500; }

/* ---------- Install command ---------- */
.install {
  display: flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 6px 0 16px; max-width: 100%;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 14px;
}
.install .prompt { color: var(--accent); user-select: none; }
.install code { flex: 1 1 0; width: 0; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; color: var(--text); }
.install code::-webkit-scrollbar { display: none; }
@media (max-width: 520px) {
  /* Keep "dotnet add package TensorStack.Common" fully visible on phones. */
  .install { gap: 8px; padding-left: 14px; }
  .install .prompt { display: none; }
  .install code { font-size: clamp(11.5px, 3.2vw, 14px); }
}
.copy-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 9px; color: var(--text-2);
  transition: background-color 0.2s, color 0.2s;
}
.copy-btn:hover { background: rgb(255 255 255 / 0.07); color: var(--text); }
.copy-btn .icon { width: 17px; height: 17px; grid-area: 1 / 1; }
.copy-btn .i-done { opacity: 0; color: var(--green); }
.copy-btn.is-copied .i-copy { opacity: 0; }
.copy-btn.is-copied .i-done { opacity: 1; }

/* ---------- Code window ---------- */
.window {
  position: relative;
  border-radius: 16px; background: #0c0e12;
  border: 1px solid var(--line-2); box-shadow: var(--shadow-window);
  overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 14px;
  min-height: 48px; padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 0.02);
}
.window-dots { display: flex; gap: 7px; flex: none; }
.window-dots span { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / 0.1); }
.window-title { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.window-bar .copy-btn { margin-left: auto; }
.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  height: 30px; padding: 0 11px; border-radius: 8px; flex: none;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.tab:hover { color: var(--text-2); }
.tab[aria-selected="true"] { color: var(--text); background: rgb(255 255 255 / 0.075); }
.tab-panel[hidden] { display: none; }

.code {
  margin: 0; padding: 22px 24px 26px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.75; tab-size: 4;
  color: #d3d8e0;
}
.code code { font-family: inherit; }
.tk-c { color: #5d6571; font-style: italic; }
.tk-k { color: #7eb6ff; }
.tk-t { color: #7fd6c2; }
.tk-f { color: #f0d58c; }
.tk-s { color: #a9d8a0; }
.tk-n { color: #f4a67f; }
.tk-p { color: #8a919c; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: 30px 24px 30px 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-num { font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-2); font-size: 14px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Repos ---------- */
.repo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .repo-grid { grid-template-columns: minmax(0, 1fr); } }
.repo { display: grid; gap: 14px; align-content: start; padding: 24px; min-height: 170px; grid-template-rows: auto 1fr auto; }
.repo-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px; color: var(--text-3); }
.repo-name .icon { width: 18px; height: 18px; color: var(--text-2); }
.repo-name b { color: var(--text); font-weight: 500; }
.repo p { color: var(--text-2); font-size: 14.5px; }
.repo-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.repo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.repo-meta .icon { width: 14px; height: 14px; }
.lang-dot { width: 9px; height: 9px; border-radius: 50%; background: #178600; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; gap: 22px; text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  border-radius: var(--radius-xl); border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 50% 120%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    radial-gradient(400px 240px at 85% 110%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%),
    linear-gradient(180deg, #0f1115, #0b0c0f);
}
.cta-mark {
  position: absolute; z-index: -1; width: 520px; max-width: none;
  right: -120px; top: -150px; opacity: 0.045; transform: rotate(-8deg);
}
.cta .lead { max-width: 52ch; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 32px; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: 48px; }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { color: var(--text-2); font-size: 14.5px; max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 {
  margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3);
}
.footer-cols ul { display: grid; gap: 11px; list-style: none; }
.footer-cols a { color: var(--text-2); font-size: 14.5px; transition: color 0.2s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 13px;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Product page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.page-hero .bg-glow {
  background:
    radial-gradient(700px 420px at 78% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(520px 320px at 92% 75%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 70%),
    radial-gradient(900px 480px at 20% -20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}
.page-hero .bg-iso {
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 75% 40%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 75% 40%, #000 10%, transparent 72%);
}

.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 980px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.page-hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; justify-items: start; }

.app-badge {
  display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 22px;
  background: linear-gradient(180deg, #1c2026, #111317);
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -24px color-mix(in srgb, var(--accent) 70%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.app-badge img { width: 60px; height: 60px; }

.download-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
.download-meta a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.download-meta a:hover { color: var(--text); }

/* Amuse orbit visual */
.orbit { position: relative; aspect-ratio: 1 / 0.9; max-width: 600px; width: 100%; justify-self: center; }
.orbit-rings {
  position: absolute; inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 27%, rgb(255 255 255 / 0.07) 27.2% 27.5%, transparent 27.7%),
    radial-gradient(circle, transparent 0 41%, rgb(255 255 255 / 0.06) 41.2% 41.5%, transparent 41.7%),
    radial-gradient(circle, transparent 0 56%, rgb(255 255 255 / 0.045) 56.2% 56.5%, transparent 56.7%),
    radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%);
}
.orbit-core {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: 31%; aspect-ratio: 1; border-radius: 30%;
  background: linear-gradient(180deg, #1d2128, #121418);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent) 65%, transparent), inset 0 1px 0 rgb(255 255 255 / 0.07);
}
.orbit-core img { width: 70%; }
.orbit-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgb(18 20 24 / 0.82); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.8);
}
.orbit-card .icon {
  flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px;
  color: #8ec3f8; background: rgb(59 147 240 / 0.13);
}
.orbit-card strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.orbit-card span { display: block; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); line-height: 1.5; white-space: nowrap; }
.oc-1 { left: 0; top: 8%; }
.oc-2 { right: 0; top: 18%; }
.oc-2 .icon { color: #9ad38e; background: rgb(116 183 104 / 0.13); }
.oc-3 { left: 4%; bottom: 14%; }
.oc-3 .icon { color: #e3c36d; background: rgb(214 174 73 / 0.13); }
.oc-4 { right: 2%; bottom: 4%; }
.oc-4 .icon { color: #b9a6f2; background: rgb(150 125 230 / 0.14); }
@media (prefers-reduced-motion: no-preference) {
  .orbit-card { animation: bob 6s ease-in-out infinite; }
  .oc-2 { animation-delay: -1.5s; }
  .oc-3 { animation-delay: -3s; }
  .oc-4 { animation-delay: -4.5s; }
}
@media (max-width: 560px) {
  .orbit { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 0; }
  .orbit-rings { display: none; }
  .orbit-core { position: relative; left: auto; top: auto; translate: none; grid-column: 1 / -1; justify-self: center; width: 120px; margin-bottom: 12px; }
  .orbit-card { position: relative; inset: auto; max-width: none; animation: none; flex-direction: column; align-items: flex-start; }
  .orbit-card span { white-space: normal; }
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgb(255 255 255 / 0.012); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  padding: 14px 20px; text-align: left; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); background: rgb(255 255 255 / 0.02); border-bottom: 1px solid var(--line);
}
.table td { padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.table .mono { font-size: 13.5px; }
.table a { color: var(--text); }
.table a:hover { color: var(--accent); }

/* ---------- Pipelines (Amuse) ---------- */
.pipelines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pipelines > :first-child { grid-row: span 3; }
@media (max-width: 760px) {
  .pipelines { grid-template-columns: minmax(0, 1fr); }
  .pipelines > :first-child { grid-row: auto; }
}
.pipeline-col { display: grid; gap: 18px; align-content: start; padding: 24px; }
.pipeline-head { display: flex; align-items: center; gap: 12px; }
.pipeline-head .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; color: #8ec3f8; background: rgb(59 147 240 / 0.12); }
.pipeline-col:nth-child(2) .pipeline-head .icon { color: #9ad38e; background: rgb(116 183 104 / 0.12); }
.pipeline-col:nth-child(3) .pipeline-head .icon { color: #e3c36d; background: rgb(214 174 73 / 0.12); }
.pipeline-col:nth-child(4) .pipeline-head .icon { color: #b9a6f2; background: rgb(150 125 230 / 0.13); }
.pipeline-head h3 { font-size: 17px; font-weight: 600; }
.pipeline-head .count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ---------- Steps ---------- */
.steps { display: grid; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding: 0 0 26px 52px; color: var(--text-2); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 34px; height: 28px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  background: var(--panel); border: 1px solid var(--line-2);
}
.steps li::after { content: ""; position: absolute; left: 17px; top: 33px; bottom: 4px; width: 1px; background: var(--line-2); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps strong { color: var(--text); font-weight: 500; }

/* ---------- Callout link (Amuse → amuse-ai.com) ---------- */
.callout {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 22px;
  padding: 20px 20px 20px 22px;
}
.callout-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 15px;
  background: linear-gradient(180deg, #1b1f25, #121418);
  border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.callout-icon img { width: 40px; height: 40px; }
.callout-copy { display: grid; gap: 4px; }
.callout-title { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
.callout-text { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.callout:hover .btn-ghost { background: rgb(255 255 255 / 0.08); border-color: var(--line-3); }
.callout:hover .btn .ext { transform: translate(2px, -2px); }
@media (max-width: 760px) {
  .callout { grid-template-columns: auto minmax(0, 1fr); padding: 20px; }
  .callout .btn { grid-column: 1 / -1; }
}

/* ---------- Notes ---------- */

.note { display: flex; gap: 12px; color: var(--text-3); font-size: 14px; }
.note .icon { flex: none; width: 17px; height: 17px; margin-top: 3px; }

/* ---------- Spec list ---------- */
.spec { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); padding-top: 2px; }
.spec dd { color: var(--text-2); }
.spec dd strong { color: var(--text); font-weight: 500; }

@media (max-width: 560px) { .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* ---------- GPU cards ---------- */
/* Three rows (title, text, badges or note): the last row sits at the bottom so cards in a row line up. */
.gpu-card { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: clamp(24px, 3vw, 32px); }
.gpu-card .gpu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gpu-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.gpu-card p { color: var(--text-2); }
.vendors { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Credits ---------- */
.credits { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.credits a {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: rgb(255 255 255 / 0.02);
  font-family: var(--font-mono); font-size: 13px; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.credits a:hover { color: var(--text); border-color: var(--line-3); }
.credits .icon { width: 13px; height: 13px; color: var(--text-3); }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 ---------- */
.not-found { min-height: calc(100vh - var(--header-h) - 260px); display: grid; place-items: center; text-align: center; }
.not-found .code-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--accent); }

/* ---------- Utilities ---------- */
.pt-0 { padding-top: 0 !important; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.gap-tight { gap: 12px !important; }
.nowrap { white-space: nowrap; }

