/* ============================================================
   Llama RPC Farm — project site
   A dark, tactile control-room aesthetic. No frameworks.
   ============================================================ */

:root {
  --bg: #070a10;
  --bg-2: #0a101a;
  --bg-3: #0d1522;
  --surface: rgba(13, 21, 34, 0.72);
  --surface-solid: #0d1522;
  --surface-2: rgba(18, 29, 46, 0.82);
  --line: rgba(154, 176, 220, 0.14);
  --line-strong: rgba(174, 195, 235, 0.24);
  --text: #edf2fb;
  --text-2: #b9c5d9;
  --muted: #8291a9;
  --accent: #7aa2ff;
  --accent-2: #b49cff;
  --accent-rgb: 122, 162, 255;
  --accent2-rgb: 180, 156, 255;
  --good: #9fe87a;
  --warn: #ffd166;
  --bad: #ff7d8d;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", ui-monospace, monospace;
  --shell: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 70% 42% at 50% -8%, rgba(var(--accent-rgb), 0.16), transparent 62%),
    radial-gradient(ellipse 46% 36% at 88% 10%, rgba(var(--accent2-rgb), 0.11), transparent 70%),
    linear-gradient(180deg, #070a10 0%, #080c13 45%, #070a10 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(var(--accent-rgb), 0.32); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

#dotfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 30%),
              rgba(var(--accent-rgb), 0.10), transparent 60%);
  transition: opacity .4s;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 44px);
  position: relative;
  z-index: 1;
}

/* ------------------------------ header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(7, 10, 16, 0.58);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: border-color .25s, background .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 16, 0.84);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-name em {
  font-style: normal;
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: color .18s, background .18s;
}
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.045); }
.site-nav a.active {
  color: var(--text);
  background: rgba(var(--accent-rgb), .08);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.release-chip {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  place-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}

/* ------------------------------ buttons ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .18s, box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(2px); }
.btn-primary {
  color: #07101f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 34px rgba(var(--accent-rgb), 0.25), inset 0 1px 0 rgba(255,255,255,.24);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.34), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-ghost {
  color: var(--text-2);
  border-color: var(--line-strong);
  background: rgba(255,255,255,.028);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
}
.btn-sm { min-height: 38px; padding: 0 13px; font-size: 12.5px; border-radius: 9px; }
.btn-sm svg { width: 15px; height: 15px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: color .18s;
}
.text-link span { color: var(--accent); transition: transform .18s; }
.text-link:hover { color: var(--text); }
.text-link:hover span { transform: translate(2px, -2px); }

/* ------------------------------ shared type ------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.eyebrow.small { font-size: 9.5px; margin-bottom: 11px; }
.eyebrow-index {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 19px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--accent);
  font-size: 9px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(159, 232, 122, 0.10), 0 0 16px rgba(159, 232, 122, 0.7);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.gradient-text {
  background: linear-gradient(108deg, var(--text) 8%, var(--accent) 52%, var(--accent-2) 94%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1, h2, h3, p { margin-top: 0; }
h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4.1vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 680;
}
.section-intro {
  max-width: 650px;
  margin-bottom: clamp(36px, 5vw, 62px);
}
.section-intro > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text-2);
  font-size: 16px;
}
.section { padding-block: clamp(74px, 10vw, 130px); }

/* ------------------------------ hero ------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: clamp(36px, 5vw, 70px);
  padding-top: clamp(62px, 8vw, 104px);
  padding-bottom: clamp(72px, 9vw, 118px);
  min-height: min(820px, 88vh);
}
h1 {
  margin: 0 0 23px;
  font-size: clamp(48px, 6.7vw, 86px);
  line-height: .94;
  letter-spacing: -0.062em;
  font-weight: 700;
}
.lede {
  max-width: 530px;
  margin-bottom: 30px;
  color: var(--text-2);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.65;
}
.hero-actions { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.hero-proof {
  display: flex;
  gap: clamp(22px, 3vw, 42px);
  margin: 38px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-proof div { min-width: 0; }
.hero-proof dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.hero-proof dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* app mockup */
.hero-visual {
  position: relative;
  perspective: 1400px;
}
.window-glow {
  position: absolute;
  inset: 8% -7% -9% 5%;
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--accent-rgb), .20), transparent 64%);
  filter: blur(30px);
  z-index: -1;
}
.app-window {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(16,25,40,.93), rgba(9,15,25,.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2.2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.hero-visual:hover .app-window { transform: rotateY(-1deg) rotateX(.6deg) translateY(-3px); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.018);
}
.window-dots { display: flex; gap: 5px; }
.window-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.13);
}
.window-dots i:nth-child(1) { background: #ff7d8d; }
.window-dots i:nth-child(2) { background: #ffd166; }
.window-dots i:nth-child(3) { background: #9fe87a; }
.window-title {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}
.window-live {
  display: flex; align-items: center; gap: 5px;
  margin-left: auto;
  color: var(--good);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.window-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}
.app-body { display: flex; min-height: 410px; }
.app-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 48px;
  padding: 13px 0;
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.rail-logo { width: 24px; height: 24px; border-radius: 7px; overflow: hidden; margin-bottom: 7px; }
.rail-logo img { width: 100%; height: 100%; object-fit: cover; }
.rail-item {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: rgba(255,255,255,.035);
  border: 1px solid transparent;
}
.rail-item.active {
  border-color: rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .16);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), .14);
}
.rail-item.small { width: 16px; height: 16px; }
.rail-spacer { flex: 1; }
.app-main { flex: 1; min-width: 0; padding: 18px; }
.app-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.app-head > div { display: flex; flex-direction: column; }
.app-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.app-head strong { font-size: 14px; letter-spacing: -.02em; }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(159,232,122,.24);
  border-radius: 999px;
  color: var(--good);
  font-family: var(--mono);
  font-size: 8px;
}
.status-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 10px; }
.metric-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
}
.metric-label { display: block; color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.metric-card strong { display: block; margin: 2px 0 6px; font-size: 14px; letter-spacing: -.02em; }
.metric-card strong span { color: var(--muted); font-size: 8px; font-weight: 500; }
.mini-bar { height: 3px; border-radius: 4px; background: rgba(0,0,0,.35); overflow: hidden; }
.mini-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.node-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.node-card {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008));
}
.node-top { display: flex; align-items: center; gap: 5px; }
.node-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px rgba(159,232,122,.7); flex-shrink: 0; }
.node-dot.idle { background: var(--warn); box-shadow: 0 0 8px rgba(255,209,102,.6); }
.node-top strong { font-size: 9px; }
.node-tag { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 6.5px; text-transform: uppercase; letter-spacing: .06em; }
.node-specs { display: flex; justify-content: space-between; margin: 3px 0 6px; color: var(--muted); font-family: var(--mono); font-size: 6.5px; }
.gpu-list { display: grid; gap: 3px; }
.gpu-row { display: grid; grid-template-columns: 28px 1fr 20px; align-items: center; gap: 5px; color: var(--muted); font-family: var(--mono); font-size: 6px; }
.gpu-bar { height: 3px; border-radius: 3px; background: rgba(0,0,0,.35); overflow: hidden; }
.gpu-bar i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgba(var(--accent-rgb),.8), var(--accent-2)); }
.gpu-row em { font-style: normal; text-align: right; }
.model-chip { display: flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--accent); font-family: var(--mono); font-size: 6.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.model-chip i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.model-chip.idle { color: var(--muted); }
.model-chip.idle i { box-shadow: none; }
.float-note {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(12, 20, 33, .9);
  box-shadow: 0 16px 42px rgba(0,0,0,.35);
  backdrop-filter: blur(12px);
  animation: floatNote 7s ease-in-out infinite;
}
.float-note > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.float-note strong { font-size: 10.5px; }
.float-note small { color: var(--muted); font-family: var(--mono); font-size: 7.5px; }
.float-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: rgba(var(--accent-rgb),.14); color: var(--accent); font-size: 13px; }
.note-one { right: -24px; top: 48px; animation-delay: -2s; }
.note-two { left: -28px; bottom: 38px; }
.note-two .float-icon { background: rgba(var(--accent2-rgb),.14); color: var(--accent-2); }

/* ------------------------------ marquee ------------------------------ */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  padding: 15px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: marquee 34s linear infinite;
}
.marquee-track i { width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--accent-rgb), .55); }
.marquee-track span:nth-of-type(4n+1) { color: var(--text-2); }

/* ------------------------------ architecture ------------------------------ */

.architecture {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(var(--accent-rgb),.1), transparent 48%),
    linear-gradient(180deg, rgba(15,24,39,.7), rgba(8,13,22,.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.arch-column { display: flex; flex-direction: column; gap: 9px; }
.arch-label {
  margin-bottom: 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.arch-node, .arch-model {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.022);
  transition: border-color .2s, background .2s, transform .2s;
}
.arch-node:hover, .arch-model:hover {
  border-color: rgba(var(--accent-rgb), .4);
  background: rgba(var(--accent-rgb), .05);
  transform: translateX(2px);
}
.arch-models .arch-node:hover, .arch-models .arch-model:hover { transform: translateX(-2px); }
.arch-node > span:nth-child(2), .arch-model > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.arch-node strong, .arch-model strong { font-size: 12px; font-weight: 600; }
.arch-node small, .arch-model small { color: var(--muted); font-family: var(--mono); font-size: 8.5px; }
.arch-model em { margin-left: auto; color: var(--accent); font-family: var(--mono); font-size: 8px; font-style: normal; white-space: nowrap; }
.model-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(var(--accent-rgb), .7); flex-shrink: 0; }
.model-dot.alt { background: var(--accent-2); box-shadow: 0 0 12px rgba(var(--accent2-rgb), .7); }
.arch-core { position: relative; display: grid; place-items: center; min-height: 260px; }
.arch-core-ring {
  position: absolute;
  width: 170px; height: 170px;
  border: 1px solid rgba(var(--accent-rgb), .17);
  border-radius: 50%;
  animation: coreRing 6s ease-in-out infinite;
}
.arch-core-ring.ring-two { width: 224px; height: 224px; animation-delay: -3s; opacity: .6; }
.arch-core-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 150px;
  padding: 20px 12px 16px;
  border: 1px solid rgba(var(--accent-rgb), .38);
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(19,31,51,.98), rgba(10,17,28,.98));
  box-shadow: 0 0 60px rgba(var(--accent-rgb), .16), inset 0 1px 0 rgba(255,255,255,.08);
  text-align: center;
}
.core-mark { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; margin-bottom: 7px; box-shadow: 0 0 24px rgba(var(--accent-rgb), .25); }
.core-mark img { width: 100%; height: 100%; object-fit: cover; }
.arch-core-card strong { font-size: 12px; letter-spacing: -.01em; }
.arch-core-card small { color: var(--muted); font-family: var(--mono); font-size: 7.5px; }
.core-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 3px 7px; border: 1px solid rgba(159,232,122,.2); border-radius: 999px; color: var(--good); font-family: var(--mono); font-size: 7px; }
.core-status i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.core-packet {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), .55);
  animation: corePacket 3.4s linear infinite;
}
.core-packet.p2 { animation-delay: -1.15s; background: var(--accent-2); box-shadow: 0 0 12px 2px rgba(var(--accent2-rgb), .55); }
.core-packet.p3 { animation-delay: -2.3s; background: var(--good); }
.platform-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.platform-points > div {
  padding: 17px 18px;
  border-top: 1px solid var(--line);
}
.platform-points span { display: block; margin-bottom: 8px; color: var(--accent); font-family: var(--mono); font-size: 9px; }
.platform-points strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 650; }
.platform-points p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }

/* ------------------------------ bento ------------------------------ */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-height: 230px;
  padding: clamp(21px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(var(--accent-rgb), .07), transparent 55%),
    linear-gradient(180deg, rgba(16,25,40,.68), rgba(8,13,22,.78));
  overflow: hidden;
  transition: border-color .22s, transform .22s, background .22s;
}
.feature:hover {
  border-color: rgba(var(--accent-rgb), .32);
  transform: translateY(-3px);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(var(--accent-rgb), .11), transparent 58%),
    linear-gradient(180deg, rgba(17,27,43,.8), rgba(8,13,22,.8));
}
.feature-wide { grid-column: span 2; }
.feature-tall { grid-row: span 2; }
.feature h3 { margin: 0 0 8px; font-size: clamp(17px, 2vw, 21px); line-height: 1.22; letter-spacing: -.025em; font-weight: 650; }
.feature p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.feature code {
  padding: 2px 5px;
  border: 1px solid rgba(var(--accent-rgb), .19);
  border-radius: 5px;
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent);
  font-family: var(--mono);
  font-size: .86em;
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(var(--accent-rgb), .24);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), .08);
  color: var(--accent);
}
.feature-icon svg { width: 19px; height: 19px; }
.api-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}
.api-lines span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(0,0,0,.2);
  font-family: var(--mono);
  font-size: 9px;
}
.spark-strip {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 78px;
  margin-top: auto;
  padding-top: 18px;
}
.spark-strip i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), .75), rgba(var(--accent2-rgb), .2));
  opacity: .72;
  animation: sparkPulse 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.3s);
}
.spark-strip i:nth-child(2n) { animation-delay: -2.4s; }
.spark-strip i:nth-child(3n) { animation-delay: -1.2s; }
.feature-visual { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.feature-visual > div:first-child { max-width: 520px; }
.mode-cloud { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; max-width: 390px; }
.mode-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
  font-family: var(--mono);
  font-size: 9px;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.mode-chip.active, .mode-chip:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), .45);
  background: rgba(var(--accent-rgb), .1);
}

/* ------------------------------ theme lab ------------------------------ */

.theme-lab {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 84% 35%, rgba(var(--accent-rgb), .09), transparent 55%),
    linear-gradient(180deg, rgba(15,24,39,.72), rgba(8,13,22,.76));
}
.theme-controls { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.theme-kicker { display: block; margin-bottom: 11px; color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.theme-copy h3 { margin: 0 0 11px; font-size: clamp(27px, 3.7vw, 43px); letter-spacing: -.04em; line-height: 1.05; }
.theme-copy p { min-height: 50px; max-width: 420px; margin: 0 0 24px; color: var(--text-2); font-size: 14px; }
.theme-palette { display: flex; flex-wrap: wrap; gap: 9px; }
.palette {
  position: relative;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 5px rgba(7,10,16,.76);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.palette::after { content: ""; position: absolute; inset: -5px; border: 1px solid transparent; border-radius: 50%; transition: border-color .18s; }
.palette:hover { transform: scale(1.08); border-color: rgba(255,255,255,.5); }
.palette.active::after { border-color: rgba(var(--accent-rgb), .55); }
.theme-preview {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(17,27,43,.95), rgba(9,15,25,.97));
  box-shadow: 0 28px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
}
.preview-top { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.preview-top > span:first-child { display: flex; gap: 4px; }
.preview-top i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.16); }
.preview-top em { color: var(--muted); font-family: var(--mono); font-size: 8px; font-style: normal; }
.preview-live { margin-left: auto; color: var(--good); font-family: var(--mono); font-size: 8px; }
.preview-body { display: flex; min-height: 272px; }
.preview-side { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 42px; padding: 12px 0; border-right: 1px solid var(--line); background: rgba(0,0,0,.12); }
.preview-side span { width: 17px; height: 17px; border-radius: 5px; background: rgba(255,255,255,.045); }
.preview-side span:nth-child(3) { background: rgba(var(--accent-rgb), .35); box-shadow: 0 0 12px rgba(var(--accent-rgb),.16); }
.preview-logo { width: 23px !important; height: 23px !important; border-radius: 6px !important; overflow: hidden; margin-bottom: 4px; }
.preview-logo img { width: 100%; height: 100%; object-fit: cover; }
.preview-main { flex: 1; padding: 17px; }
.preview-kicker { color: var(--accent); font-family: var(--mono); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.preview-main > strong { display: block; margin: 2px 0 16px; font-size: 19px; letter-spacing: -.03em; }
.preview-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 13px; }
.preview-metrics > div { padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.018); }
.preview-metrics small { display: block; color: var(--muted); font-family: var(--mono); font-size: 6.5px; }
.preview-metrics b { display: block; margin: 2px 0 6px; font-size: 12px; }
.preview-metrics i { display: block; width: var(--w); height: 2px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.preview-chart { display: flex; align-items: end; gap: 3px; height: 74px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0,0,0,.14); }
.preview-chart i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: linear-gradient(180deg, rgba(var(--accent-rgb),.8), rgba(var(--accent2-rgb),.14)); opacity: .76; }
.preview-models { display: grid; gap: 5px; margin-top: 9px; }
.preview-models span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text-2); font-family: var(--mono); font-size: 7.5px; }
.preview-models i { width: 4px; height: 4px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px currentColor; }
.preview-models em { margin-left: auto; color: var(--muted); font-style: normal; }

/* ------------------------------ install ------------------------------ */

.install-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.install-copy h2 { font-size: clamp(32px, 4.2vw, 52px); }
.install-copy > p { max-width: 490px; color: var(--text-2); font-size: 15px; }
.install-steps { display: grid; gap: 13px; margin: 28px 0 25px; padding: 0; list-style: none; }
.install-steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.install-steps li > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 7px; color: var(--accent); font-family: var(--mono); font-size: 8.5px; }
.install-steps strong { display: block; margin-bottom: 2px; font-size: 13.5px; }
.install-steps p { margin: 0; color: var(--muted); font-size: 12.5px; }
.install-links { display: flex; gap: 20px; flex-wrap: wrap; }
.install-terminal, .cli-terminal {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12,20,33,.97), rgba(8,13,22,.98));
  box-shadow: 0 28px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.055);
  overflow: hidden;
}
.terminal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.018); }
.terminal-tabs { display: flex; gap: 4px; }
.terminal-tab {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
  transition: color .18s, background .18s, border-color .18s;
}
.terminal-tab:hover { color: var(--text-2); }
.terminal-tab.active { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.045); }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.copy-btn svg { width: 12px; height: 12px; }
.copy-btn:hover, .copy-btn.copied { color: var(--good); border-color: rgba(159,232,122,.4); background: rgba(159,232,122,.06); }
.terminal-code {
  min-height: 196px;
  margin: 0;
  padding: 21px 20px;
  overflow-x: auto;
  color: #c7d4e8;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.95;
}
.terminal-code-small { min-height: 260px; font-size: 10.5px; line-height: 2.05; }
.terminal-code .prompt { color: var(--accent); }
.terminal-code .terminal-note { color: var(--muted); }
.terminal-code .out-dim { color: var(--muted); }
.terminal-code .out-good { color: var(--good); }
.terminal-code .out-accent { color: var(--accent); }
.caret { display: inline-block; width: 7px; height: 13px; vertical-align: -2px; background: var(--accent); animation: caret 1.1s steps(1) infinite; }
.terminal-foot { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8.5px; }
.terminal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px currentColor; }
.terminal-time { margin-left: auto; color: var(--accent); }

/* ------------------------------ cli ------------------------------ */

.cli-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.cli-commands { display: grid; gap: 7px; }
.cli-command {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
  transition: border-color .18s, background .18s, transform .18s;
}
.cli-command:hover { border-color: rgba(var(--accent-rgb),.34); background: rgba(var(--accent-rgb),.045); transform: translateX(2px); }
.cli-command code { color: var(--text); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.cli-command span { margin-left: auto; color: var(--muted); font-size: 11.5px; text-align: right; }
.cli-terminal { display: flex; flex-direction: column; }
.cli-terminal .terminal-code { flex: 1; }
.cli-links { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }

/* ------------------------------ final cta ------------------------------ */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 88px) clamp(24px, 5vw, 72px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(var(--accent-rgb),.24), transparent 58%),
    radial-gradient(ellipse at 10% 0%, rgba(var(--accent2-rgb),.12), transparent 55%),
    linear-gradient(180deg, rgba(17,27,44,.9), rgba(8,13,22,.94));
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 90px rgba(0,0,0,.3);
}
.final-cta h2 { position: relative; z-index: 1; margin-bottom: 16px; font-size: clamp(34px, 5.4vw, 64px); }
.final-cta > p:not(.eyebrow) { position: relative; z-index: 1; max-width: 530px; margin: 0 auto 29px; color: var(--text-2); font-size: 15px; }
.final-cta .hero-actions { position: relative; z-index: 1; justify-content: center; }
.cta-orbit { position: absolute; inset: 0; pointer-events: none; }
.cta-orbit span { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(var(--accent-rgb),.11); border-radius: 50%; transform: translate(-50%,-50%); }
.cta-orbit span:nth-child(1) { width: 420px; height: 420px; }
.cta-orbit span:nth-child(2) { width: 620px; height: 620px; border-color: rgba(var(--accent2-rgb),.08); }
.cta-orbit span:nth-child(3) { width: 820px; height: 820px; border-color: rgba(var(--accent-rgb),.05); }

/* ------------------------------ footer ------------------------------ */

.site-footer { position: relative; z-index: 1; margin-top: 20px; border-top: 1px solid var(--line); background: rgba(4,7,12,.55); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(34px, 6vw, 80px); padding-block: 52px 38px; }
.footer-brand p { max-width: 300px; margin: 17px 0 16px; color: var(--muted); font-size: 13px; }
.footer-badge { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-family: var(--mono); font-size: 8.5px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.footer-cols strong { display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-cols a { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12.5px; transition: color .18s; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 17px 23px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; }

/* ------------------------------ reveal / motion ------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.hero-copy .reveal:nth-child(2) { transition-delay: .06s; }
.hero-copy .reveal:nth-child(3) { transition-delay: .12s; }
.hero-copy .reveal:nth-child(4) { transition-delay: .18s; }
.hero-copy .reveal:nth-child(5) { transition-delay: .24s; }
.hero-visual.reveal { transition-delay: .12s; }

@keyframes dotPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floatNote { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes coreRing { 0%,100% { transform: scale(1); opacity: .45; } 50% { transform: scale(1.06); opacity: .9; } }
@keyframes corePacket {
  0% { transform: rotate(0deg) translateX(0) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  70% { opacity: .9; }
  100% { transform: rotate(360deg) translateX(118px) rotate(-360deg); opacity: 0; }
}
@keyframes sparkPulse { 0%,100% { transform: scaleY(.72); opacity: .55; } 50% { transform: scaleY(1); opacity: .95; } }
@keyframes caret { 50% { opacity: 0; } }

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 66px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 720px; margin-inline: auto; width: 100%; }
  .architecture { grid-template-columns: 1fr 150px 1fr; padding: 22px; gap: 14px; }
  .arch-core-card { width: 136px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-wide { grid-column: span 2; }
  .feature-tall { grid-row: span 1; }
  .feature-visual { flex-direction: column; align-items: flex-start; }
  .mode-cloud { justify-content: flex-start; }
  .theme-controls, .install-grid, .cli-grid { grid-template-columns: 1fr; }
  .theme-preview { order: 2; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: 70px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 9px;
    border: 1px solid var(--line-strong);
    border-radius: 13px;
    background: rgba(9,15,25,.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }
  .nav-toggle { display: grid; }
  .release-chip { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero { padding-top: 48px; gap: 36px; }
  .hero-proof { flex-wrap: wrap; gap: 18px 26px; }
  .app-body { min-height: 0; }
  .rail-logo { width: 20px; height: 20px; }
  .node-grid { grid-template-columns: 1fr; }
  .float-note { display: none; }
  .architecture { grid-template-columns: 1fr; }
  .arch-core { min-height: 225px; }
  .arch-models .arch-node:hover, .arch-models .arch-model:hover { transform: translateX(2px); }
  .platform-points { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .feature-wide, .feature-tall { grid-column: span 1; grid-row: span 1; }
  .feature-visual { flex-direction: column; }
  .mode-cloud { justify-content: flex-start; }
  .install-steps p { font-size: 12px; }
  .terminal-code { font-size: 10px; padding: 17px 15px; }
  .terminal-code-small { font-size: 9.5px; }
  .cli-command { align-items: flex-start; flex-direction: column; gap: 3px; }
  .cli-command span { margin-left: 0; text-align: left; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .footer-bottom { display: block; line-height: 2; }
}

@media (max-width: 460px) {
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-actions .btn { flex: 1; min-width: 145px; }
  .hero-proof dd { white-space: normal; }
  .app-main { padding: 12px; }
  .app-head strong { font-size: 12px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric-card:nth-child(3) { display: none; }
  .node-grid { grid-template-columns: 1fr; }
  .node-card:nth-child(n+3) { display: none; }
  .window-title { display: none; }
  .platform-points { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #dotfield { display: none; }
  .cursor-glow { display: none; }
}

/* ------------------------------ download cards ------------------------------ */

.install-intro { max-width: 700px; }
.install-version {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}
.install-version > span { display: inline-flex; align-items: center; gap: 8px; }
.install-version > span .live-dot { width: 5px; height: 5px; box-shadow: 0 0 10px rgba(159,232,122,.55); }
.install-version a { color: var(--text-2); font-weight: 600; }
.install-version a span { color: var(--accent); }
.install-version a:hover { color: var(--text); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(var(--accent-rgb), .075), transparent 58%),
    linear-gradient(180deg, rgba(16,25,40,.72), rgba(8,13,22,.82));
  transition: border-color .2s, transform .2s, background .2s;
}
.download-card:hover {
  border-color: rgba(var(--accent-rgb), .38);
  transform: translateY(-3px);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(var(--accent-rgb), .11), transparent 60%),
    linear-gradient(180deg, rgba(17,27,43,.82), rgba(8,13,22,.86));
}
.download-card.recommended {
  border-color: rgba(var(--accent-rgb), .50);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), .10), 0 18px 50px rgba(var(--accent-rgb), .08);
}
.download-recommend {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 7px;
  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), .10);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.download-card.recommended .download-recommend { display: inline-block; }
.download-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.os-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(var(--accent-rgb), .23);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), .07);
  color: var(--accent);
}
.os-icon svg { width: 20px; height: 20px; }
.download-tag {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}
.download-card h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -.03em; }
.download-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; }
.download-card .download-btn { width: 100%; margin-top: auto; font-size: 12.5px; min-height: 42px; }
.download-meta {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: center;
}
.download-card-source { border-style: dashed; }
.download-card-source .os-icon { border-color: var(--line); background: transparent; color: var(--text-2); }
.install-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 12px;
  margin-top: 12px;
  align-items: start;
}
.oneline-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(12,20,33,.9), rgba(8,13,22,.9));
}
.oneline-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.oneline-tabs { display: flex; gap: 3px; }
.oneline-tab {
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.oneline-tab:hover { color: var(--text-2); }
.oneline-tab.active { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.045); }
.oneline-title { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.oneline-title i { width: 5px; height: 5px; border-radius: 50%; background: var(--good); box-shadow: 0 0 9px currentColor; }
.oneline-os { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.oneline-row { display: flex; align-items: center; gap: 8px; }
.oneline-row code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0,0,0,.2);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.oneline-row .copy-btn { flex-shrink: 0; height: 34px; padding-inline: 10px; }
.oneline-note { margin: 11px 0 0; color: var(--muted); font-size: 11px; }
.oneline-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.oneline-foot span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.oneline-note code, .install-after code {
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,.03);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: .9em;
}
.install-after { display: grid; gap: 4px; }
.install-after > div { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.014); }
.install-after > div > strong,
.install-after > div > p { grid-column: 2; }
.install-after span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); font-family: var(--mono); font-size: 7.5px; }
.install-after span, .install-after strong { align-self: center; }
.install-after strong { display: block; font-size: 12.5px; line-height: 1.25; }
.install-after p { margin: 1px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.install-foot { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 1080px) {
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-lower { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 0; }
  .oneline-row { align-items: stretch; flex-direction: column; }
  .oneline-row .copy-btn { align-self: flex-start; }
}

/* ------------------------------ agent downloads ------------------------------ */

.track-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 13px;
}
.track-label span {
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.track-label small { color: var(--muted); font-size: 10.5px; }
.track-divider {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin-top: clamp(50px, 7vw, 82px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.track-divider span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.track-divider small { color: var(--muted); font-size: 11px; }
.agent-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: 19px;
}
.agent-intro h3 { margin: 0 0 8px; font-size: clamp(24px, 3.2vw, 37px); line-height: 1.08; letter-spacing: -.04em; }
.agent-intro p:not(.eyebrow) { max-width: 570px; margin: 0; color: var(--text-2); font-size: 13.5px; }
.agent-points { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.agent-points span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.agent-downloads { margin-top: 13px; }
.agent-oneline { margin-top: 12px; }

@media (max-width: 1080px) {
  .agent-intro { grid-template-columns: 1fr; }
  .agent-points { justify-content: flex-start; }
}

@media (max-width: 1180px) and (min-width: 761px) {
  .site-nav { gap: 1px; }
  .site-nav a { padding-inline: 8px; font-size: 12.5px; }
  .release-chip { display: none; }
}
