/* ==========================================================================
   Lillith — product site
   Dark, editorial, gothic-infrastructure. No build step, no dependencies.
   ========================================================================== */

:root {
  --bg: #070708;
  --bg-raised: #0b0b0e;
  --panel: #0f0f13;
  --panel-2: #131318;
  --line: #24242c;
  --line-soft: #1a1a20;
  --text: #ece9e4;
  --text-dim: #b7b4bc;
  --muted: #8b8993;
  --faint: #7d7b85;
  --red: #e01b2f;
  --red-bright: #ff3b50;
  --red-deep: #8d0d1c;
  --green: #3ecf7a;
  --amber: #e6b34a;
  --blue: #69a8ff;
  --display: "Cinzel", "Trajan Pro", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1180px;
  --radius: 14px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(224, 27, 47, 0.35);
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

code, pre, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

pre {
  margin: 0;
}

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
  position: relative;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 7, 8, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 10px rgba(224, 27, 47, 0.45));
}

.brand-name {
  font-family: var(--display);
  font-size: 1.18rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 2px;
}

.brand-name span {
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  margin-top: 5px;
  background: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.version-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Buttons, pills, shared bits
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 21px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #f0263c 0%, #c31026 100%);
  border-color: #ff4a5c;
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(224, 27, 47, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff3b50 0%, #d41028 100%);
  box-shadow: 0 10px 30px -8px rgba(224, 27, 47, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #3a3a44;
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

.eyebrow.center::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

.section {
  position: relative;
  padding: 112px 0;
  z-index: 1;
}

.section-tight {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 20px;
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 620px;
}

.section-head.center p {
  margin-inline: auto;
}

.hr-glow {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 92px) 0 96px;
  overflow: hidden;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -380px;
  left: 50%;
  width: 1100px;
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224, 27, 47, 0.2), rgba(224, 27, 47, 0.05) 55%, transparent 78%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-emblem {
  position: absolute;
  top: -40px;
  right: max(-120px, calc((100vw - var(--max)) / 2 - 180px));
  width: 620px;
  height: 620px;
  background: url("assets/mark-transparent.png") center / contain no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 48%, #000 35%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 35%, transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero .eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.7rem, 5.2vw, 4.6rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ff5264 0%, #e01b2f 45%, #a30e20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(224, 27, 47, 0.25);
}

.hero-sub {
  max-width: 540px;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.hero-meta div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta b {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Console mock */

.hero-visual {
  position: relative;
  z-index: 2;
}

.console {
  position: relative;
  border: 1px solid #2b2b34;
  border-radius: 14px;
  background: linear-gradient(180deg, #101015 0%, #0b0b0f 100%);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 24px 80px -40px rgba(224, 27, 47, 0.35);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 0.6s var(--ease);
}

.console:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

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

.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34343e;
}

.dots i:first-child { background: #5c2730; }
.dots i:nth-child(2) { background: #5a4a24; }
.dots i:nth-child(3) { background: #23503a; }

.console-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 300px;
  margin-inline: auto;
  padding: 5px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #08080b;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
}

.url-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lock {
  width: 8px;
  height: 9px;
  border: 1px solid var(--green);
  border-radius: 2px;
  position: relative;
  flex-shrink: 0;
}

.lock::before {
  content: "";
  position: absolute;
  left: 1px;
  top: -5px;
  width: 4px;
  height: 5px;
  border: 1px solid var(--green);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.console-body {
  padding: 18px 18px 16px;
}

.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.console-title {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.console-title small {
  display: block;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-top: 3px;
  text-transform: uppercase;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}

.live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  margin-bottom: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #08080b;
}

.tabs button {
  flex: 1;
  padding: 6px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.tabs button:hover { color: var(--text-dim); }

.tabs button[aria-selected="true"] {
  background: #1b1b22;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.panel-view[hidden] {
  display: none;
}

.machine-head,
.machine-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.9fr 0.65fr;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  font-size: 0.66rem;
}

.machine-head {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}

.machine-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

.machine-row:last-child { border-bottom: 0; }

.host {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 6px rgba(62, 207, 122, 0.7); }
.status-dot.idle { background: var(--amber); box-shadow: 0 0 6px rgba(230, 179, 74, 0.6); }
.status-dot.offline { background: #5b1b24; }

.muted-cell { color: var(--faint); }

.bar {
  height: 3px;
  border-radius: 2px;
  background: #202028;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a30e20, var(--red-bright));
}

.bar.ok i { background: linear-gradient(90deg, #237a49, var(--green)); }

.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.56rem;
  color: var(--faint);
}

.console-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.stat {
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.stat b {
  display: block;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.stat span {
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
}

.deploy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.66rem;
}

.deploy-row:last-child { border-bottom: 0; }

.deploy-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #14141a;
  font-family: var(--mono);
  font-size: 0.5rem;
  color: var(--red-bright);
  flex-shrink: 0;
}

.deploy-main { flex: 1; min-width: 0; }
.deploy-main b { display: block; font-weight: 500; color: var(--text); font-size: 0.68rem; }
.deploy-main span { color: var(--faint); font-family: var(--mono); font-size: 0.54rem; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.chip.ok { color: var(--green); border-color: rgba(62, 207, 122, 0.3); background: rgba(62, 207, 122, 0.08); }
.chip.warn { color: var(--amber); border-color: rgba(230, 179, 74, 0.3); background: rgba(230, 179, 74, 0.08); }
.chip.red { color: var(--red-bright); border-color: rgba(224, 27, 47, 0.32); background: rgba(224, 27, 47, 0.09); }
.chip.blue { color: var(--blue); border-color: rgba(105, 168, 255, 0.3); background: rgba(105, 168, 255, 0.08); }

.vnc-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(224, 27, 47, 0.14), transparent 45%),
    linear-gradient(160deg, #101018, #08080c);
  overflow: hidden;
}

.vnc-preview::before {
  content: "";
  position: absolute;
  inset: 18px 22px auto 22px;
  height: 26px;
  border: 1px solid #2a2a35;
  border-radius: 5px 5px 0 0;
  background: #0c0c12;
}

.vnc-preview::after {
  content: "";
  position: absolute;
  inset: 44px 22px 22px 22px;
  border: 1px solid #22222c;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  background:
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(255, 255, 255, 0.022) 17px 18px),
    #0a0a10;
}

.vnc-cursor {
  position: absolute;
  top: 62%;
  left: 58%;
  width: 0;
  height: 0;
  border-left: 7px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  transform: rotate(-20deg);
  z-index: 2;
  filter: drop-shadow(0 1px 2px #000);
}

.vnc-key {
  position: absolute;
  z-index: 3;
  bottom: 10px;
  right: 10px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 8, 12, 0.9);
  font-family: var(--mono);
  font-size: 0.52rem;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Marquee / proof strip
   -------------------------------------------------------------------------- */

.strip {
  position: relative;
  z-index: 1;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.012);
}

.strip-inner {
  display: flex;
  align-items: center;
  gap: 18px 38px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 21px 0;
}

.strip-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.strip-item svg {
  width: 14px;
  height: 14px;
  color: var(--red);
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line-soft);
}

.feature-card {
  position: relative;
  padding: 34px 30px 32px;
  background: var(--bg-raised);
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--panel);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 27, 47, 0.65), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::after { opacity: 1; }

.icon-box {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #2c2c36;
  border-radius: 9px;
  background: linear-gradient(180deg, #17171e, #101015);
  color: var(--red-bright);
  margin-bottom: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.icon-box svg {
  width: 19px;
  height: 19px;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.feature-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.tag {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Split / code
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 72px;
  align-items: center;
}

.split.reverse > *:first-child { order: 2; }

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  margin: 18px 0 20px;
}

.prose > p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.checklist svg {
  width: 17px;
  height: 17px;
  color: var(--red-bright);
  flex-shrink: 0;
  margin-top: 3px;
}

.checklist b {
  color: var(--text);
  font-weight: 500;
}

.code-window {
  border: 1px solid #2a2a33;
  border-radius: 12px;
  background: #0a0a0e;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.code-name {
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: var(--text);
  border-color: #3c3c48;
}

.copy-btn svg { width: 11px; height: 11px; }

.code-window pre {
  padding: 22px 20px;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.75;
  color: #cdcbd4;
  tab-size: 2;
}

.code-window pre code {
  font-size: inherit;
}

.tok-key { color: #ff7a89; }
.tok-str { color: #b9d98a; }
.tok-num { color: #e6b34a; }
.tok-com { color: #5c5a64; font-style: italic; }
.tok-fn { color: #8fb8ff; }
.tok-var { color: #e8e5df; }

.code-note {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.74rem;
  color: var(--faint);
  line-height: 1.55;
}

.code-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--red);
}

/* --------------------------------------------------------------------------
   Architecture diagram
   -------------------------------------------------------------------------- */

.arch-frame {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(224, 27, 47, 0.06), transparent 60%),
    var(--bg-raised);
  padding: 48px 40px;
  overflow: hidden;
}

.arch-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 78%);
  pointer-events: none;
}

.arch-row {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 72px;
  flex-wrap: wrap;
}

.arch-node {
  position: relative;
  width: 210px;
  padding: 22px 18px 18px;
  border: 1px solid #2c2c36;
  border-radius: 10px;
  background: linear-gradient(180deg, #15151b, #0d0d12);
  text-align: center;
  z-index: 2;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}

.arch-node.primary {
  border-color: rgba(224, 27, 47, 0.45);
  box-shadow: 0 0 0 1px rgba(224, 27, 47, 0.08), 0 20px 60px -24px rgba(224, 27, 47, 0.4);
}

.arch-node .icon-box {
  margin: 0 auto 14px;
}

.arch-node h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.arch-node p {
  font-size: 0.68rem;
  color: var(--faint);
  line-height: 1.55;
}

.arch-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b0b0f;
  font-family: var(--mono);
  font-size: 0.46rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.arch-connect {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  z-index: 1;
}

.arch-connect::before {
  content: "";
  width: 100%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #3a3a46 0 5px, transparent 5px 10px);
}

.arch-connect span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 8px;
  background: var(--bg-raised);
  font-family: var(--mono);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--faint);
  white-space: nowrap;
}

.arch-notes {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
  z-index: 2;
}

.arch-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(8, 8, 11, 0.7);
}

.arch-note b {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.mini-code {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #09090c;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.6;
  color: var(--text-dim);
  overflow-x: auto;
  white-space: nowrap;
}

.mini-code .prompt { color: var(--red); }
.mini-code .cmt { color: var(--faint); }

/* --------------------------------------------------------------------------
   Bento
   -------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento-card {
  grid-column: span 2;
  position: relative;
  padding: 28px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--bg-raised);
  overflow: hidden;
}

.bento-card.wide { grid-column: span 3; }
.bento-card.full { grid-column: span 6; }

.bento-card h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 0.85rem;
  color: var(--muted);
}

.bento-card .big-num {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}

.bento-card .big-num span { color: var(--red); }

.bento-card .corner-glow {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(224, 27, 47, 0.18), transparent 68%);
  pointer-events: none;
}

.theme-swatches {
  display: flex;
  gap: 7px;
  margin-top: 18px;
}

.theme-swatches i {
  width: 26px;
  height: 18px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-swatches i:nth-child(1) { background: linear-gradient(180deg, #2a5bd7 40%, #d4c9a8 40%); }
.theme-swatches i:nth-child(2) { background: linear-gradient(180deg, #9fd3e8 40%, #e8e8ea 40%); }
.theme-swatches i:nth-child(3) { background: linear-gradient(180deg, #d8d2c2 40%, #efefef 40%); }
.theme-swatches i:nth-child(4) { background: linear-gradient(180deg, #e8b21c 40%, #e02b20 40%); }
.theme-swatches i:nth-child(5) { background: linear-gradient(180deg, #1d1d1f 40%, #8a8a8a 40%); }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: 96px 0;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
  z-index: 1;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -260px;
  width: 780px;
  height: 500px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224, 27, 47, 0.16), transparent 74%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.cta-emblem {
  width: 84px;
  height: 84px;
  margin: 0 auto 26px;
  background: url("assets/mark-transparent.png") center / contain no-repeat;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: drop-shadow(0 0 24px rgba(224, 27, 47, 0.45));
}

.cta h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.cta p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 34px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 36px;
  position: relative;
  z-index: 1;
  background: #060607;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand p {
  color: var(--faint);
  font-size: 0.82rem;
  margin-top: 14px;
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--red-bright); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-family: var(--mono);
  font-size: 0.63rem;
  color: var(--faint);
  letter-spacing: 0.03em;
}

.footer-bottom .creed {
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.58rem;
}

/* --------------------------------------------------------------------------
   Inner page hero
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 78px) 0 72px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  z-index: 1;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -320px;
  left: 50%;
  width: 900px;
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(224, 27, 47, 0.14), transparent 76%);
  pointer-events: none;
}

.page-hero .eyebrow { margin-bottom: 20px; }

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  margin-bottom: 20px;
  text-wrap: balance;
}

.page-hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero .hero-actions { margin-top: 32px; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Features page
   -------------------------------------------------------------------------- */

.feature-section {
  padding: 76px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.feature-section:last-of-type { border-bottom: 0; }

.feature-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.feature-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.feature-aside .icon-box { margin-bottom: 18px; }

.feature-aside h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.feature-aside p {
  font-size: 0.85rem;
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.feature-item {
  padding: 22px 24px;
  background: var(--bg-raised);
}

.feature-item:hover { background: var(--panel); }

.feature-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
}

.feature-item h3::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.feature-item p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Docs
   -------------------------------------------------------------------------- */

.docs-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding: 64px 0 112px;
}

.docs-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border-left: 1px solid var(--line-soft);
  padding-left: 20px;
}

.docs-toc h4 {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.docs-toc a {
  display: block;
  padding: 5px 0;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}

.docs-toc a:hover,
.docs-toc a.active {
  color: var(--text);
}

.docs-toc a.active {
  position: relative;
}

.docs-toc a.active::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--red);
}

.docs-content {
  min-width: 0;
}

.doc-block {
  padding-bottom: 52px;
  margin-bottom: 52px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.doc-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.doc-block h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.doc-block h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin: 30px 0 12px;
}

.doc-block > p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.doc-block > p code,
.doc-block li code,
.table-wrap code,
.faq-list code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: #e6b8c0;
  font-size: 0.78em;
  white-space: nowrap;
}

.doc-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.doc-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.doc-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 8px;
}

.callout {
  display: flex;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid rgba(224, 27, 47, 0.22);
  border-left: 2px solid var(--red);
  border-radius: 0 8px 8px 0;
  background: rgba(224, 27, 47, 0.045);
  font-size: 0.84rem;
  color: var(--text-dim);
  margin: 20px 0;
}

.callout svg {
  width: 17px;
  height: 17px;
  color: var(--red-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.callout b { color: var(--text); font-weight: 600; }

.table-wrap {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: auto;
  margin: 20px 0;
  background: var(--bg-raised);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  min-width: 560px;
}

th, td {
  text-align: left;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

th {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
  white-space: nowrap;
}

td {
  color: var(--text-dim);
}

td:first-child {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #e6b8c0;
  white-space: nowrap;
}

tr:last-child td { border-bottom: 0; }

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

.faq-list details {
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--bg-raised);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--red);
  font-size: 1rem;
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding: 0 18px 17px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Architecture page
   -------------------------------------------------------------------------- */

.arch-hero-diagram {
  margin-top: 48px;
}

.flow {
  position: relative;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--line);
  margin-left: 10px;
}

.flow-step {
  position: relative;
  padding: 0 0 30px 30px;
}

.flow-step:last-child { padding-bottom: 0; }

.flow-step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--red);
  box-shadow: 0 0 10px rgba(224, 27, 47, 0.5);
}

.flow-step h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.flow-step p {
  font-size: 0.82rem;
  color: var(--muted);
}

.flow-step .mono {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: #e6b8c0;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.panel {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--bg-raised);
  padding: 28px;
}

.panel h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.panel p {
  font-size: 0.85rem;
  color: var(--muted);
}

.panel .checklist { margin-top: 16px; }
.panel .checklist li { font-size: 0.82rem; }

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

.ops-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--bg-raised);
}

.ops-card h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #e6b8c0;
  margin-bottom: 8px;
}

.ops-card p {
  font-size: 0.78rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.hero-copy > *,
.hero-visual {
  animation: rise 0.9s var(--ease) both;
}

.hero-copy > *:nth-child(2) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.19s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.26s; }
.hero-visual { animation-delay: 0.2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(62, 207, 122, 0.5); }
  50% { opacity: 0.55; box-shadow: 0 0 0 4px rgba(62, 207, 122, 0); }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-grid { gap: 44px; }
  .console { transform: none; }
  .split { gap: 48px; }
  .feature-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
  .docs-shell { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 920px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 26px;
    background: #070708;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 12px 10px;
    font-size: 1rem;
    border-radius: 7px;
  }

  .site-nav a[aria-current="page"]::after { display: none; }

  .menu-toggle { display: grid; }

  .version-pill { display: none; }

  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-emblem { right: -200px; opacity: 0.1; }
  .hero-copy { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 26px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
  .arch-row { gap: 40px; }
  .arch-connect { min-width: 44px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card, .bento-card.wide { grid-column: span 1; }
  .bento-card.full { grid-column: span 2; }
  .feature-layout { grid-template-columns: 1fr; gap: 26px; }
  .feature-aside { position: static; }
  .docs-shell { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .docs-toc { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 20px; }
  .ops-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container, .header-inner { width: calc(100% - 36px); }
  .section { padding: 80px 0; }
  .hero { padding-bottom: 64px; }
  .hero-meta { gap: 10px 18px; }
  .hero-actions .btn { flex: 1; min-width: 0; padding-inline: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 26px 22px; }
  .feature-list { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.full { grid-column: span 1; }
  .ops-grid { grid-template-columns: 1fr; }
  .arch-frame { padding: 32px 20px; }
  .arch-row { flex-direction: column; align-items: center; gap: 0; }
  .arch-node { width: 100%; max-width: 280px; }
  .arch-connect { min-height: 46px; width: 1px; min-width: 0; }
  .arch-connect::before {
    width: 1px;
    height: 100%;
    background: repeating-linear-gradient(180deg, #3a3a46 0 5px, transparent 5px 10px);
  }
  .arch-connect span {
    left: 50%;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  .footer-cols { gap: 40px; }
  .page-hero { padding-top: calc(var(--header-h) + 56px); }
  .machine-head, .machine-row { grid-template-columns: 1.5fr 0.9fr 0.6fr; }
  .machine-head > :nth-child(3),
  .machine-row > :nth-child(3) { display: none; }
  .code-window pre { font-size: 0.7rem; padding: 18px 14px; }
  .console-body { padding: 14px 12px 12px; }
  /* Only the host fits in the mock URL bar on phones. */
  .url-path { display: none; }
}

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

/* Print */
@media print {
  .site-header, .cta, .site-footer, .hero-emblem, .hero-glow { display: none; }
  body { background: #fff; color: #111; }
  .section, .page-hero { padding: 24px 0; }
  .feature-grid, .bento { border-color: #ccc; }
  .js .reveal { opacity: 1; transform: none; }
}
