/* SPDX-License-Identifier: MPL-2.0
   This Source Code Form is subject to the terms of the Mozilla Public
   License, v. 2.0. If a copy of the MPL was not distributed with this
   file, You can obtain one at https://mozilla.org/MPL/2.0/. */

/* ============================================================
   Carbon Panel — landing page
   Dark graphite surfaces and restrained metallic highlights.
   Elevation = lightness, borders carry structure.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #121212;
  --layer-01: #202020;
  --layer-02: #303030;
  --layer-03: #505050;
  --term-bg: #0b0b0b;

  /* Borders */
  --border: #393939;
  --border-strong: #525252;

  /* Text */
  --text-primary: #f4f4f4;
  --text-secondary: #c6c6c6;
  --text-tertiary: #a8a8a8;
  --text-on-accent: #141414;

  /* Silver accents for the marketing site; the product preview retains its UI colors. */
  --accent: #e2e2e0;
  --accent-hover: #ffffff;
  --accent-text: #dededc;
  --success: #d5d5d2;
  --warning: #c2c2bf;
  --error: #aeaeac;

  /* Type */
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Radius — one family, modern but disciplined */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Motion — Carbon productive curve */
  --ease: cubic-bezier(0.2, 0, 0.38, 0.9);
  --dur: 150ms;
  --dur-med: 240ms;

  --container: 1312px;
  --nav-h: 64px;

  /* Structural grid — the same lattice under every section.
     One cell is one content column, so section edges always land on a line. */
  --grid-cols: 12;
  --grid-line: rgba(244, 244, 244, 0.055);
  --grid-cell: calc((min(100%, var(--container)) - 64px) / var(--grid-cols));
}

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

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

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

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

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

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

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(200, 200, 200, 0.140);
  color: var(--text-primary);
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Subtle custom scrollbar for the dark theme */
* {
  scrollbar-color: var(--layer-03) transparent;
  scrollbar-width: thin;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: var(--layer-02);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--layer-03);
}

/* ---------- Page grid ---------- */

/* Fixed lattice behind the document. A hairline runs down the centre of every
   cell, so one always lands on the viewport centre and the rest fall on the
   content columns — then continue past the container to the screen edges. */
.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    transparent calc(50% - 0.5px),
    var(--grid-line) calc(50% - 0.5px),
    var(--grid-line) calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
  background-size: var(--grid-cell) 100%;
  background-position: center top;
  background-repeat: repeat;
}

/* Content layers above the lattice. Sticky nav and fixed helpers keep their
   own stacking contexts. */
body > main,
body > footer {
  position: relative;
  z-index: 1;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
  position: relative;
  border-top: 1px solid var(--grid-line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.14;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 62ch;
}
.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur-med) var(--ease),
    scale var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.btn:active {
  scale: 0.96;
}

.btn-primary {
  background: linear-gradient(180deg, #f6f6f4 0%, #d5d5d2 100%);
  color: var(--text-on-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 24px -10px rgba(200, 200, 200, 0.315),
    0 0 32px -8px rgba(200, 200, 200, 0.227);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 32px -10px rgba(200, 200, 200, 0.332),
    0 0 44px -6px rgba(220, 220, 220, 0.193);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
  background: var(--layer-01);
  border-color: var(--text-tertiary);
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 16px;
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 15px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-arrow:hover {
  gap: 10px;
  color: var(--text-primary);
}
.link-arrow .icon {
  width: 16px;
  height: 16px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--grid-line);
  transition: border-color var(--dur-med) var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand .wordmark b {
  color: var(--accent-text);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: var(--layer-01);
}

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

.gh-star {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.gh-star:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.gh-star .icon {
  width: 16px;
  height: 16px;
}
.gh-star .count {
  padding-left: 8px;
  border-left: 1px solid var(--border);
  color: var(--text-primary);
  font-weight: 500;
}

.nav .btn {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}
.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 96px 0 88px;
}

/* Radial glow — fades into the bg var, not into black */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 110%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% -5%,
    rgba(200, 200, 200, 0.098) 0%,
    rgba(200, 200, 200, 0.028) 35%,
    transparent 70%);
}

/* the page lattice carries the hero; no second pattern here */

.hero-inner { text-align: center; }
.hero-copy { max-width: 980px; margin: 0 auto; }
.hero .hero-sub { max-width: 58ch; margin: 0 auto 34px; }
.hero .hero-cta { justify-content: center; }
.hero .install { max-width: 700px; margin: 0 auto; }
.hero-highlights { display:flex; flex-wrap:wrap; justify-content:center; gap:10px 24px; margin:-8px 0 28px; }
.hero-highlights a { color:var(--text-secondary); font-size:12px; text-underline-offset:4px; text-decoration-color:#555; }
.hero-highlights a:hover { color:#fff; }

.signature { background:linear-gradient(180deg,#131313,#101010); }
.signature .section-head p:last-child { max-width:64ch; }
.signature .section-head .eyebrow { font-size:11px; line-height:1.4; }
.signature .t-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:20px; }
.signature .t-tags > span { padding:4px 8px; border:1px solid #414141; border-radius:4px; color:#b8b8b4; font:10px/1.5 var(--mono); }
.signature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.signature-card { min-width:0; display:flex; flex-direction:column; border:1px solid #363636; border-radius:14px; overflow:hidden; background:linear-gradient(145deg,#202020,#141414 65%); scroll-margin-top:100px; }
.signature-copy { padding:36px 36px 28px; }
.signature-number { color:#a0a09c; font:10px/1.4 var(--mono); letter-spacing:.1em; }
.signature-card h3 { margin:18px 0; font-size:clamp(25px,2.8vw,35px); line-height:1.12; letter-spacing:-.035em; font-weight:500; }
.signature-card p { color:var(--text-secondary); font-size:15px; line-height:1.65; }
.signature-visual { margin:auto 20px 20px; padding:24px; min-width:0; border:1px solid #353535; border-radius:9px; background:linear-gradient(135deg,#252525,#171717); font-size:12px; color:#c3c3bf; }
.visual-label { display:flex; align-items:center; gap:10px; padding-bottom:20px; color:#ededeb; font-weight:500; }
.visual-label .icon { width:18px; height:18px; flex:none; }
.visual-label > span { margin-left:auto; color:#aaa; font:9px var(--mono); letter-spacing:.05em; }
.pack-row,.rest-mode { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; border-top:1px solid #383838; }
.pack-row b,.rest-mode b { color:#e0e0dc; font-size:11px; font-weight:400; text-align:right; }
.visual-foot { margin-top:19px; color:#a0a09c; font:10px/1.7 var(--mono); }
.visual-foot > span { margin:0 12px; color:#e1e1dc; }
.data-path { margin-bottom:12px; color:#9d9d99; font:11px var(--mono); }
.data-pack { display:flex; align-items:center; gap:10px; margin-top:8px; padding:12px; border:1px solid #3c3c3c; border-radius:5px; }
.data-pack .icon { width:15px; height:15px; }
.data-pack > span:last-child { margin-left:auto; color:#999; font:10px var(--mono); }
.update-items { display:flex; flex-wrap:wrap; gap:7px; }
.update-items span { padding:6px 9px; border:1px solid #424242; border-radius:4px; font-size:11px; }
.update-track { display:flex; align-items:center; gap:12px; padding:26px 0 7px; color:#d8d8d4; font:11px var(--mono); }
.update-track i { height:1px; background:#62625e; flex:1; }
.rest-mode.wake { color:#f4f4ef; }
.signature-note { margin:24px 0 0; color:#91918d; font:11px/1.7 var(--mono); text-align:center; }
.signature-note > span { margin:0 10px; }
.signature-note a { color:#d6d6d2; text-underline-offset:4px; }
@media(max-width:760px) {
  .signature-grid { grid-template-columns:1fr; gap:18px; }
  .signature-copy { padding:28px 24px 24px; }
  .signature-visual { margin:0 12px 12px; padding:20px; }
  .hero-highlights { gap:10px 18px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 6px;
  gap: 10px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--layer-01);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.hero-badge > * {
  white-space: nowrap;
}
.hero-badge .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(210, 210, 210, 0.064);
  color: var(--success);
  font-weight: 500;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}
.hero-badge .sep {
  color: var(--text-tertiary);
}

.hero h1 {
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 .grad {
  color: #c9c9c7;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

/* Install / copy command */
.install {
  display: flex;
  align-items: stretch;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--term-bg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.install:hover {
  border-color: var(--border-strong);
}
.install code {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 52px;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: nowrap;
  /* scroll shadows: the fades only show where a long command runs off */
  background-image:
    linear-gradient(to right, var(--term-bg) 30%, rgba(13, 13, 13, 0)),
    linear-gradient(to left, var(--term-bg) 30%, rgba(13, 13, 13, 0)),
    linear-gradient(to right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)),
    linear-gradient(to left, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-repeat: no-repeat;
  background-size: 32px 100%, 32px 100%, 16px 100%, 16px 100%;
  background-attachment: local, local, scroll, scroll;
}
.install code .prompt {
  color: var(--accent-text);
  user-select: none;
}
.install .copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-left: 1px solid var(--border);
  color: var(--text-tertiary);
  font-family: var(--mono);
  font-size: 12px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.install .copy-btn:hover {
  color: var(--text-primary);
  background: var(--layer-01);
}
.install .copy-btn .icon {
  width: 15px;
  height: 15px;
}
.install .copy-btn.copied {
  color: var(--success);
}

/* ---------- Hosting benefits ---------- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #181818, #121212);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; align-items: flex-start; padding: 36px 28px; border-right: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat > .icon { width: 22px; height: 22px; margin-bottom: 20px; color: #b6b6b4; }
.stat h2 { margin-bottom: 9px; font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -.025em; }
.stat p { max-width: 24ch; min-height: 3em; color: var(--text-tertiary); font-size: 14px; line-height: 1.5; }
.stat-detail { margin-top: 18px; color: #d0d0cd; font: 11px/1.5 var(--mono); }

/* ---------- Product concept: individual cards, without an outer frame ---------- */
.product-preview { overflow: hidden; border-top: 0; background: radial-gradient(ellipse 55% 40% at 50% 65%, rgba(255,255,255,.035), transparent); }
.preview-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 58px; }
.eyebrow { margin-bottom: 14px; color: var(--text-tertiary); font: 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.preview-intro h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
.preview-intro > p { max-width: 26ch; color: var(--text-tertiary); font-size: 16px; line-height: 1.6; }
.concept { max-width: 1120px; margin: 0 auto; }
.concept-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 0 28px; }
.concept-workspace { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-tertiary); }
.concept-workspace img { width: 24px; height: 24px; }
.concept-workspace strong { color: var(--text-primary); font-weight: 500; }
.concept-divider { margin: 0 12px; color: #606060; }
.concept-count { font: 11px var(--mono); color: var(--text-tertiary); white-space: nowrap; }
.concept-count > span { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #d0d0cd; }
.concept-count i { margin: 0 5px; font-style: normal; color: #606060; }
.concept-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.server-concept { min-width: 0; display: flex; flex-direction: column; padding: 25px; border: 1px solid #373737; border-radius: 12px; background: linear-gradient(145deg, #242424, #171717 70%); box-shadow: 0 20px 36px -28px rgba(0,0,0,.8); }
.server-concept.featured { border-color: #60605d; background: linear-gradient(145deg, #30302f, #1a1a1a 70%); }
.server-concept-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.concept-server-icon { display: grid; width: 40px; height: 40px; place-items: center; background: rgba(255,255,255,.035); border: 1px solid #414141; border-radius: 9px; color: #e3e3df; }
.concept-server-icon .icon { width: 20px; height: 20px; }
.concept-status { display: flex; align-items: center; gap: 6px; color: #d2d2cf; font-size: 11px; }
.concept-status i { width: 5px; height: 5px; background: #e1e1dd; border-radius: 50%; }
.sleeping .concept-status { color: #a5a5a2; }
.sleeping .concept-status i { background: #737371; }
.concept-type { margin-bottom: 7px; color: #a1a19f; font: 10px/1.4 var(--mono); letter-spacing: .05em; }
.server-concept h3 { margin-bottom: 7px; font-size: 25px; line-height: 1.2; font-weight: 500; letter-spacing: -.03em; }
.concept-address { color: #a1a19f; font: 11px/1.5 var(--mono); overflow-wrap: anywhere; }
.concept-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 30px; }
.concept-metrics > span { color: #aaa; font-size: 11px; }
.concept-metrics b { display: block; margin-top: 5px; color: #ededeb; font: 500 19px/1.2 var(--mono); white-space: nowrap; }
.concept-metrics small { font-size: 10px; color: #aaa; font-weight: 400; }
.concept-load { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 24px 0; color: #999; font: 10px var(--mono); }
.concept-load > div { flex: 0 0 100%; height: 3px; background: #343434; border-radius: 3px; overflow: hidden; }
.concept-load i { display: block; width: var(--usage); height: 100%; background: linear-gradient(90deg, #777, #d4d4d0); }
.concept-card-footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 17px; border-top: 1px solid #343434; color: #b8b8b5; font-size: 11px; }
.concept-card-footer > span { display: inline-flex; align-items: center; gap: 6px; }
.concept-card-footer .icon { width: 13px; height: 13px; }
.concept-rest { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; flex: 1; gap: 8px; min-height: 145px; padding: 22px 0; color: #a1a19f; font-size: 11px; }
.concept-rest > .icon { width: 20px; height: 20px; color: #b4b4b0; margin-bottom: 3px; }
.concept-rest strong { color: #d4d4d0; font-size: 14px; font-weight: 400; }
.concept-event { display: flex; align-items: center; gap: 10px; padding: 23px 0; margin-top: 12px; color: #a3a3a0; font-size: 11px; }
.concept-event strong { font-weight: 500; color: #d1d1cd; }
.concept-event > span:last-child { margin-left: auto; color: #81817e; font: 10px var(--mono); }
.concept-event-dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: #b6b6b2; }
.concept-caption { max-width: 1120px; margin: 6px auto 0; color: #8d8d89; font: 10px/1.6 var(--mono); text-align: center; }
@media (max-width: 760px) {
  .preview-intro { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 36px; }
  .preview-intro > p { max-width: 36ch; }
  .concept-grid { grid-template-columns: 1fr; gap: 16px; }
  .server-concept { max-width: 540px; width: 100%; margin: 0 auto; padding: 24px; }
  .concept-toolbar { align-items: flex-start; gap: 12px; flex-direction: column; }
  .concept-count { padding-left: 36px; }
  .stat { padding: 28px 20px; }
  .stat:first-child { padding-left: 20px; }
  .stat:last-child { padding-right: 20px; }
  .stat h2 { min-height: 2.5em; font-size: 18px; }
  .stat p { min-height: 4.5em; }
}

/* ============================================================
   SHOWCASE: real console screenshots (static PNGs only)
   ============================================================ */
.showcase { overflow: hidden; }
.tour {
  max-width: 1280px;
  margin: 8px auto 0;
}
.tour-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
  align-items: center;
  padding: 44px 0;
}
.tour-row + .tour-row {
  border-top: 1px solid var(--border);
}
.tour-row:nth-child(even) {
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
}
.tour-row:nth-child(even) .tour-copy {
  order: 2;
}
.tour-kicker {
  font: 12px/1.6 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 12px;
}
.tour-copy h3 {
  font-size: 24px;
  margin: 0 0 12px;
}
.tour-copy p:last-child {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 44ch;
}
.tour-shot {
  margin: 0;
  min-width: 0;
}
.tour-shot img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 900px) {
  .tour-row,
  .tour-row:nth-child(even) { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .tour-row:nth-child(even) .tour-copy { order: 0; }
}

/* ============================================================
   PROBLEM FRAMING
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.problem-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--layer-01);
}
.problem-card.pain {
  background: var(--bg);
}
.problem-card .p-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.problem-card .p-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex: none;
}
.problem-card.pain .p-icon {
  background: rgba(160, 160, 160, 0.056);
  color: var(--error);
}
.problem-card.model .p-icon {
  background: rgba(200, 200, 200, 0.056);
  color: var(--accent-text);
}
.problem-card .p-icon .icon {
  width: 20px;
  height: 20px;
}
.problem-card h3 {
  font-size: 20px;
}
.problem-card p {
  color: var(--text-secondary);
  font-size: 15.5px;
}
.problem-card ul {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.problem-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.problem-card li .icon {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
}
.problem-card.pain li .icon { color: var(--error); }
.problem-card.model li .icon { color: var(--success); }

/* ============================================================
   FEATURE BENTO
   ============================================================ */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(178px, auto);
}
/* Children stay in the bento grid. On small screens the groups become catalogs. */
.tile-stack,
.tile-group {
  display: contents;
}
.tile-kicker {
  display: none;
}
.tile {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #272727 0%, #1b1b1b 52%, #181818 100%);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur-med) var(--ease),
    transform var(--dur-med) var(--ease),
    background-color var(--dur-med) var(--ease),
    box-shadow var(--dur-med) var(--ease);
}
/* accent edge sweeps in on hover */
.tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity var(--dur) var(--ease), transform var(--dur-med) var(--ease);
  pointer-events: none;
}
.tile:hover::before {
  opacity: 1;
  transform: scaleX(1);
}
.tile:hover {
  border-color: var(--border-strong);
  will-change: transform;
  transform: translateY(-3px);
}
.tile.span-3 { grid-column: span 3; }
.tile.span-4 { grid-column: span 4; }

.tile .t-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(200, 200, 200, 0.049);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.tile .t-icon .icon {
  width: 22px;
  height: 22px;
}
.tile h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.tile p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 42ch;
}
.tile .t-tags {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tile .t-tags span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2px;
  color: var(--text-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}

/* feature tile with a live mini-visual */
.tile.feature-anchor {
  grid-column: span 3;
  grid-row: span 2;
}
.tile.feature-anchor .anchor-visual {
  margin-top: auto;
  padding-top: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
/* horizontal split at wide viewports: copy left, cluster panel right */
@media (min-width: 1081px) {
  .tile.feature-anchor {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
    align-items: stretch;
  }
  .tile.feature-anchor .anchor-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .tile.feature-anchor .anchor-visual {
    margin-top: 0;
    padding-top: 0;
    justify-content: space-between;
  }
}
.anchor-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--term-bg);
  padding: 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.anchor-visual .row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.anchor-visual .av-rows {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-evenly;
  gap: 8px;
}
.anchor-visual .av-foot {
  font-size: 10px;
  color: var(--text-tertiary);
}
.anchor-visual .av-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px rgba(210, 210, 210, 0.280);
  flex: none;
}
.anchor-visual .node {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  background: var(--layer-01);
}
.anchor-visual .node .nm { color: var(--text-primary); }
.anchor-visual .node .ip { display: block; color: var(--text-tertiary); font-size: 10px; white-space: nowrap; }
.anchor-visual .arrow {
  color: var(--accent-text);
}

/* ---------- Routing table (proxy tile) — shares the tree motif ---------- */
.route-map {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
}
.route-map .rm-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  padding: 0 10px 6px;
}
.route-map .rm-head .arrow { color: var(--accent-text); }
.route-map .rm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.route-map .rm-row:hover {
  border-color: var(--border-strong);
  background: var(--term-bg);
}
.route-map .rm-stem { color: var(--accent-text); }
.route-map .rm-host { color: var(--text-primary); }
.route-map .rm-arrow {
  color: var(--text-tertiary);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.route-map .rm-row:hover .rm-arrow {
  color: var(--accent-text);
  transform: translateX(2px);
}
.route-map .rm-target {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.2px;
  color: var(--accent-text);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  transition: border-color var(--dur) var(--ease);
}
.route-map .rm-row:hover .rm-target {
  border-color: var(--accent);
}

/* ---------- Deep-sleep state cycle ---------- */
.sleep-cycle {
  position: relative;
  height: 46px;
  margin-top: auto;
  padding-top: 18px;
}
.sleep-cycle .sc-pill {
  position: absolute;
  left: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--term-bg);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2px;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity;
  animation: sc-cycle 9s var(--ease) infinite;
}
.sleep-cycle .sc-1 { animation-delay: 0s; }
.sleep-cycle .sc-2 { animation-delay: 3s; }
.sleep-cycle .sc-3 { animation-delay: 6s; }
.sleep-cycle .sc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex: none;
}
.sleep-cycle .sc-1 .sc-dot { background: var(--success); box-shadow: 0 0 6px rgba(210, 210, 210, 0.280); }
.sleep-cycle .sc-2 .sc-dot { background: var(--accent-text); box-shadow: 0 0 6px rgba(220, 220, 220, 0.245); }
.sleep-cycle .sc-3 .sc-dot { background: var(--warning); box-shadow: 0 0 6px rgba(190, 190, 190, 0.280); }
@keyframes sc-cycle {
  0% { opacity: 0; transform: translateY(4px); }
  4% { opacity: 1; transform: none; }
  30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* ---------- Server type ticker ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--grid-line);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ticker-scroll 56s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15px;
  text-rendering: geometricPrecision;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.ticker-item::after {
  content: "";
  width: 3px;
  height: 3px;
  background: var(--accent-text);
  opacity: 0.35;
  border-radius: 50%;
}
@keyframes ticker-scroll {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============ ARCH-SECTION-START ============ */
/* ---------- Architecture (scroll-driven) ---------- */
.arch {
  position: relative;
  border-top: 1px solid var(--grid-line);
}
.arch-track {
  position: relative;
}
.arch-stage {
  padding: 96px 0;
  position: relative;
}
/* light behind the diagram — drifts and brightens with the scrub */
.arch-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 44% at 62% 50%, rgba(200, 200, 200, 0.052) 0%, transparent 72%),
    radial-gradient(ellipse 26% 30% at 28% 30%, rgba(220, 220, 220, 0.021) 0%, transparent 74%);
  opacity: calc(0.55 + var(--p, 0) * 0.45);
  transform: translate3d(0, calc(var(--p, 0) * -18px), 0);
}
.arch-inner {
  display: grid;
  grid-template-columns: minmax(0, 3.4fr) minmax(0, 8.6fr);
  gap: 56px;
  align-items: center;
  max-width: 1560px;
}
.arch-copy h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.14;
  margin-bottom: 16px;
}
.arch-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 32px;
}
.arch-beats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 0 32px;
  padding: 0;
}
.arch-beat h3 {
  font-size: 17px;
  margin-bottom: 6px;
}
.arch-beat h3::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}
.arch-beat p {
  font-size: 14.5px;
  color: var(--text-tertiary);
  max-width: 44ch;
}
.arch-progress {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.arch-progress-bar {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* diagram */
.arch-visual {
  min-width: 0;
}
.arch-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  text-rendering: geometricPrecision;
}
.a-chip { fill: var(--term-bg); stroke: var(--border-strong); stroke-width: 1; }
.a-panel-box { fill: rgba(200, 200, 200, 0.021); stroke: var(--accent); stroke-width: 1.5; filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45)); }
.a-sub-box { fill: var(--layer-01); stroke: var(--border); stroke-width: 1; transition: stroke var(--dur-med) var(--ease); }
.a-card { fill: var(--layer-01); stroke: var(--border-strong); stroke-width: 1; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35)); }
.a-mini { fill: var(--term-bg); stroke: var(--border); stroke-width: 1; }
.a-title { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.a-mono { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--text-secondary); }
.a-mini-t { font-family: var(--mono); font-size: 10px; fill: var(--text-secondary); }
.a-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2px; fill: var(--text-tertiary); }
.a-cap { font-family: var(--mono); font-size: 9px; letter-spacing: 1px; fill: var(--accent-text); }
.a-dot { fill: var(--accent-text); opacity: 0.7; }
.a-dot-mute { fill: var(--text-tertiary); opacity: 0.6; }
.a-line { fill: none; stroke: url(#route-grad); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.a-glow { fill: rgba(200, 200, 200, 0.042); filter: blur(30px); opacity: 0.4; }
.a-packet { fill: var(--accent-text); filter: drop-shadow(0 0 5px rgba(220, 220, 220, 0.280)); }
.a-line-dash { stroke-dasharray: 5 5; stroke: var(--accent-text); opacity: 0.5; }
.a-badge { fill: rgba(220, 220, 220, 0.052); stroke: var(--accent-text); stroke-width: 1; }
.a-badge-t { font-family: var(--mono); font-size: 9px; font-weight: 500; fill: var(--accent-text); }

/* Pinned + scrubbed presentation. Reduced motion keeps the static layout above. */
@media (prefers-reduced-motion: no-preference) {
  .js .arch-track {
    height: 320vh;
  }
  .js .arch-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
  }
  .js .arch-inner {
    width: 100%;
  }

  /* text beats crossfade */
  .js .arch-beats {
    position: relative;
    display: block;
    height: 160px;
  }
  .js .arch-beat {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(10px);
    will-change: transform, opacity;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .js .arch-stage[data-beat="0"] .arch-beat[data-beat-for="0"],
  .js .arch-stage[data-beat="1"] .arch-beat[data-beat-for="1"],
  .js .arch-stage[data-beat="2"] .arch-beat[data-beat-for="2"],
  .js .arch-stage[data-beat="3"] .arch-beat[data-beat-for="3"],
  .js .arch-stage[data-beat="4"] .arch-beat[data-beat-for="4"] {
    opacity: 1;
    transform: none;
  }

  /* diagram element gating (appear-level data-ap) */
  .js .arch-stage .a-anim {
    opacity: 0.62;
    transform: none;
    will-change: transform, opacity;
    transition: opacity var(--dur-med) var(--ease), transform var(--dur-med) var(--ease);
  }
  .js .arch-stage[data-beat="0"] [data-ap="0"],
  .js .arch-stage[data-beat="1"] [data-ap="0"],
  .js .arch-stage[data-beat="2"] [data-ap="0"],
  .js .arch-stage[data-beat="3"] [data-ap="0"],
  .js .arch-stage[data-beat="4"] [data-ap="0"],
  .js .arch-stage[data-beat="1"] [data-ap="1"],
  .js .arch-stage[data-beat="2"] [data-ap="1"],
  .js .arch-stage[data-beat="3"] [data-ap="1"],
  .js .arch-stage[data-beat="4"] [data-ap="1"],
  .js .arch-stage[data-beat="2"] [data-ap="2"],
  .js .arch-stage[data-beat="3"] [data-ap="2"],
  .js .arch-stage[data-beat="4"] [data-ap="2"],
  .js .arch-stage[data-beat="3"] [data-ap="3"],
  .js .arch-stage[data-beat="4"] [data-ap="3"],
  .js .arch-stage[data-beat="4"] [data-ap="4"] {
    opacity: 1;
    transform: none;
  }

  /* active-state highlights */
  .js .arch-stage[data-beat="1"] .a-proxy-box,
  .js .arch-stage[data-beat="2"] .a-proxy-box {
    stroke: var(--accent);
    fill: rgba(200, 200, 200, 0.035);
  }
  .js .arch-stage[data-beat="3"] .a-control-box,
  .js .arch-stage[data-beat="4"] .a-control-box {
    stroke: var(--accent);
    fill: rgba(200, 200, 200, 0.035);
    filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 6px rgba(200, 200, 200, 0.122));
  }

  /* Keep the full route legible while the active parts brighten. */
  .js .arch-stage .a-draw {
    stroke-dasharray: none;
  }

  .js .arch-progress-bar {
    transform: scaleX(var(--p, 0));
    transition: transform 100ms linear;
  }

  /* continuous scrub: the diagram eases closer and the glow intensifies */
  .js .arch-svg {
    transform-origin: center;
    transform: scale(calc(0.99 + 0.03 * clamp(0, var(--p, 0), 1)));
    will-change: transform;
  }
  .js .arch-svg .a-glow {
    opacity: calc(0.25 + var(--p, 0) * 0.55);
  }
}

@media (max-width: 900px) {
  .arch-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .arch-visual {
    min-width: 0;
    overflow: visible;
  }
  .arch-svg {
    min-width: 0;
    width: 100%;
  }
}

/* Phone pin: the same scrub, with the diagram zoomed to the beat so it
   stays inside the screen instead of panning sideways. */
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .js .arch-track {
    height: 280vh;
  }
  .js .arch-stage {
    top: 0;
    height: 100svh;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 8px) 0 12px;
    overflow: hidden;
  }
  .js .arch-inner {
    gap: 16px;
  }
  .js .arch-copy h2 {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .js .arch-sub {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .js .arch-beats {
    height: 108px;
    margin-bottom: 12px;
  }
  .js .arch-beat h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .js .arch-beat p {
    font-size: 13.5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .js .arch-svg {
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) and (max-height: 740px) {
  .js .arch-sub { display: none; }
}
/* ============ ARCH-SECTION-END ============ */

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--layer-01);
  padding: 28px;
}
.step .step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--text-on-accent);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.step p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.step code {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--accent-text);
  background: var(--term-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.step code .prompt { color: var(--text-tertiary); }

.step-connect {
  position: absolute;
  top: 48px;
  right: -30px;
  width: 28px;
  height: 1px;
  background: var(--border-strong);
  z-index: 1;
}
.step-connect::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  transform: rotate(45deg);
}

/* ============================================================
   DEEP DIVE (isolation & security)
   ============================================================ */
.deepdive {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--layer-01) 0%, var(--bg) 100%);
}
.deepdive-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.deepdive-copy {
  padding: 48px;
}
.deepdive-copy h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
  margin: 16px 0 18px;
}
.deepdive-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}
.deepdive-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.deepdive-list li {
  display: flex;
  gap: 12px;
}
.deepdive-list .di {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(200, 200, 200, 0.049);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  flex: none;
}
.deepdive-list .di .icon { width: 17px; height: 17px; }
.deepdive-list h4 {
  font-size: 15.5px;
  margin-bottom: 3px;
}
.deepdive-list p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin: 0;
}

.deepdive-visual {
  border-left: 1px solid var(--border);
  background: var(--term-bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.flow-node {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--layer-01);
  padding: 13px 16px;
}
.flow-node .fn-title {
  color: var(--text-primary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow-node .fn-title .icon { width: 15px; height: 15px; color: var(--accent-text); }
.flow-node .fn-sub { color: var(--text-tertiary); margin-top: 4px; }
.flow-arrow {
  text-align: center;
  color: var(--accent-text);
  font-size: 14px;
  line-height: 1;
}
.flow-node.gated {
  border-color: rgba(210, 210, 210, 0.160);
}
.flow-node.gated .fn-title .icon { color: var(--success); }
.flow-node.blocked {
  border-color: rgba(160, 160, 160, 0.160);
}
.flow-node.blocked .fn-title .icon { color: var(--error); }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.compare-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
  overflow: auto;
  overscroll-behavior-x: contain;
}
table.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}
table.compare thead th {
  text-align: left;
  vertical-align: bottom;
  padding: 20px 22px 16px;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
table.compare thead th:first-child {
  width: 34%;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
table.compare thead th.hl,
table.compare td.col-hl {
  width: 24%;
  background:
    linear-gradient(rgba(200, 200, 200, 0.056), rgba(200, 200, 200, 0.056)),
    var(--layer-01);
  box-shadow:
    inset 1px 0 0 rgba(220, 220, 220, 0.098),
    inset -1px 0 0 rgba(220, 220, 220, 0.098);
}
table.compare thead th.hl {
  color: var(--text-primary);
  border-bottom-color: rgba(220, 220, 220, 0.056);
  box-shadow:
    inset 0 2px 0 var(--accent),
    inset 1px 0 0 rgba(220, 220, 220, 0.098),
    inset -1px 0 0 rgba(220, 220, 220, 0.098);
}
table.compare thead th .prod {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
table.compare thead th .prod .mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
}
table.compare tbody td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-secondary);
  vertical-align: middle;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:last-child td.col-hl {
  border-bottom: none;
  box-shadow:
    inset 1px 0 0 rgba(220, 220, 220, 0.098),
    inset -1px 0 0 rgba(220, 220, 220, 0.098),
    inset 0 -1px 0 rgba(220, 220, 220, 0.098);
}
table.compare tbody tr {
  transition: background-color var(--dur) var(--ease);
}
table.compare tbody tr:hover td {
  background: var(--layer-01);
}
table.compare tbody tr:hover td.col-hl {
  background:
    linear-gradient(rgba(200, 200, 200, 0.091), rgba(200, 200, 200, 0.091)),
    var(--layer-01);
}
table.compare tbody td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}
table.compare td.col-hl {
  color: var(--text-primary);
  font-weight: 500;
  border-bottom-color: rgba(220, 220, 220, 0.049);
}
table.compare .cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
table.compare .yes { color: var(--success); }
table.compare .no { color: var(--error); }
table.compare .partial { color: var(--warning); }
table.compare .icon { width: 16px; height: 16px; flex: none; }
.compare-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}
@media (max-width: 800px) {
  table.compare { min-width: 700px; }
  table.compare thead th,
  table.compare tbody td { padding-left: 14px; padding-right: 14px; }
  table.compare thead th:first-child,
  table.compare tbody td:first-child {
    width: 156px;
    min-width: 156px;
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--bg);
  }
  table.compare thead th.hl,
  table.compare td.col-hl {
    width: 176px;
    min-width: 176px;
    position: sticky;
    left: 156px;
    z-index: 1;
  }
  table.compare thead th:nth-child(n + 3),
  table.compare tbody td:nth-child(n + 3) {
    min-width: 168px;
  }
  table.compare tbody tr:hover td:first-child {
    background: var(--layer-01);
  }
}

/* ============================================================
   OPEN SOURCE BAND
   ============================================================ */
.oss {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--layer-01);
  padding: 56px;
}
.oss::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(244, 244, 244, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 100% 50%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 100% at 100% 50%, #000, transparent 70%);
}
.oss-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.oss h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.12;
  margin: 16px 0 18px;
}
.oss p {
  color: var(--text-secondary);
  font-size: 16.5px;
  margin-bottom: 26px;
  max-width: 52ch;
}
.oss-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.oss-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.oss-point {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  padding: 20px;
}
.oss-point .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.oss-point h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.oss-point p {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item summary .plus {
  position: relative;
  width: 20px;
  height: 20px;
  flex: none;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: "";
  position: absolute;
  background: var(--text-tertiary);
  transition: transform var(--dur-med) var(--ease);
}
.faq-item summary .plus::before {
  top: 9px; left: 0; width: 20px; height: 2px;
}
.faq-item summary .plus::after {
  left: 9px; top: 0; width: 2px; height: 20px;
}
.faq-item[open] summary .plus::after { transform: rotate(90deg); }
.faq-item[open] summary { color: var(--accent-text); }
.faq-item .faq-body {
  padding: 0 44px 26px 0;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.7;
}
.faq-item .faq-body a { color: var(--accent-text); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(140deg, rgba(200, 200, 200, 0.077) 0%, transparent 46%),
    var(--layer-01);
  padding: 72px 56px;
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(244, 244, 244, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 120% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 120% at 50% 0%, #000, transparent 70%);
}
.final-cta h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.final-cta p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0 auto 32px;
}
.final-cta .hero-cta {
  justify-content: center;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--grid-line);
  padding: 64px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-tertiary);
  max-width: 34ch;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}
.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--layer-01);
}
.footer-social .icon { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 18px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-bottom .lic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom .lic .badge {
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
}
.footer-bottom .release-tag {
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.footer-bottom .release-tag:hover { color: var(--text-primary); }

/* ============================================================
   Scroll-reveal (enter animations, staggered)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms var(--ease), transform 500ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
  }
  .js .reveal.in {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:active { scale: 1; }
  .btn-primary:hover { transform: none; }
  .tile:hover { transform: none; }
  .ticker { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ticker-track { animation: none; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .arch-svg .a-packet { display: none; }
  .arch-svg .a-glow { opacity: 0.35; }
  .sleep-cycle .sc-pill { animation: none; opacity: 0; filter: none; }
  .sleep-cycle .sc-1 { opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-sub { max-width: 60ch; }
  .deepdive-grid { grid-template-columns: 1fr; }
  .deepdive-visual { border-left: none; border-top: 1px solid var(--border); }
  .oss-grid { grid-template-columns: 1fr; gap: 36px; }
  .step-connect { display: none; }
}

@media (max-width: 1100px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px 20px 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  /* Keep navigation available when JavaScript cannot open the menu. */
  html:not(.js) .nav { position: static; height: auto; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-top: 12px; }
  html:not(.js) .nav-links {
    display: flex;
    position: static;
    order: 3;
    flex: 0 0 100%;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 8px 0 12px;
    border: 0;
  }
  html:not(.js) .nav-links a { padding: 8px; font-size: 14px; }
  html:not(.js) .nav-toggle { display: none; }
  .gh-star .count { display: none; }
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .problem-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile,
  .tile.span-3,
  .tile.span-4 { grid-column: span 1; }
  .tile.feature-anchor { grid-column: span 2; grid-row: span 1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

html:not(.js) .copy-btn { display: none; }

@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .section { padding: 68px 0; }
  .nav-inner { padding: 0 20px; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 17px; }
  .hero-cta .btn { flex: 1 0 auto; }
  .install { flex-direction: column; }
  .install .copy-btn { border-left: none; border-top: 1px solid var(--border); height: 46px; justify-content: center; }
  .install code { font-size: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile.feature-anchor { grid-column: span 1; }
  .route-map .rm-row { flex-wrap: wrap; row-gap: 4px; }
  .stat { padding: 28px 20px; }
  .deepdive-copy { padding: 32px 24px; }
  .deepdive-visual { padding: 24px; }
  .oss { padding: 36px 24px; }
  .oss-points { grid-template-columns: 1fr; }
  .final-cta { padding: 52px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
}

/* Small screens: repeated cards become one catalog or a timeline.
   Diagram tiles stay cards. Homogenous items stay visible, without a box each. */
@media (max-width: 900px) {
  .bento {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .tile-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: none;
    background: transparent;
    overflow: visible;
  }
  .tile-group {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--layer-01);
    overflow: hidden;
  }
  .tile-kicker {
    display: block;
    margin: 0;
    padding: 14px 16px 2px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .tile-stack .tile {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    grid-column: auto;
    padding: 16px;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .tile-stack .tile:last-child { border-bottom: none; }
  .tile-stack .tile:hover {
    transform: none;
    background: transparent;
    border-bottom-color: var(--border);
  }
  .tile-stack .tile::before { display: none; }
  .tile-stack .t-icon {
    grid-row: 1 / span 3;
    width: 36px;
    height: 36px;
    margin: 1px 0 0;
  }
  .tile-stack .t-icon .icon {
    width: 18px;
    height: 18px;
  }
  .tile-stack h3 {
    font-size: 16px;
    line-height: 1.3;
    margin: 0;
  }
  .tile-stack p {
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
    max-width: 62ch;
  }
  .tile-stack .t-tags { display: none; }

  .steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--layer-01);
    overflow: hidden;
  }
  .step {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    align-items: start;
    position: relative;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 18px 16px 18px;
    border-bottom: 1px solid var(--border);
  }
  .step:last-child { border-bottom: none; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 52px;
    bottom: 0;
    width: 1px;
    background: var(--border-strong);
  }
  .step .step-num {
    grid-row: 1 / span 3;
    width: 32px;
    height: 32px;
    margin: 0;
    font-size: 14px;
    position: relative;
    z-index: 1;
  }
  .step h3 { font-size: 16px; margin: 0; }
  .step p { font-size: 14px; margin: 0; }
  .step code {
    grid-column: 2;
    margin: 2px 0 0;
    min-width: 0;
  }

  .oss-points {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding-top: 4px;
  }
  .oss-point {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: start;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .oss-point:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .oss-point .icon {
    grid-row: 1 / span 2;
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
  }
  .oss-point h4 { margin: 0; }
  .oss-point p { margin: 0; }
}

/* ============================================================
   LIGHT — ambient glow behind the lattice
   ============================================================ */

/* soft light pools; the grid reads through them */
.hero::before {
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.93) 0%, rgba(18, 18, 18, 0.73) 45%, rgba(18, 18, 18, 0.45) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 40%),
    url("./graphite-hero.webp") center / cover no-repeat;
  inset: 0;
  height: auto;
}
#features,
#how,
#compare,
#faq {
  isolation: isolate;
}
#features::before,
#how::before,
#compare::before,
#faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#features::before {
  background:
    radial-gradient(ellipse 55% 45% at 50% 45%, rgba(200, 200, 200, 0.042) 0%, transparent 72%),
    radial-gradient(ellipse 38% 32% at 10% 0%, rgba(200, 200, 200, 0.032) 0%, transparent 70%),
    radial-gradient(ellipse 42% 36% at 94% 96%, rgba(220, 220, 220, 0.028) 0%, transparent 72%);
}
#how::before {
  background: radial-gradient(ellipse 50% 45% at 50% 55%, rgba(200, 200, 200, 0.038) 0%, transparent 72%);
}
#compare::before {
  background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(200, 200, 200, 0.035) 0%, transparent 74%);
}
#faq::before {
  background: radial-gradient(ellipse 45% 35% at 85% 15%, rgba(220, 220, 220, 0.028) 0%, transparent 72%);
}

.tile:hover::before {
  opacity: 0;
}
.tile:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   FLEET OPERATIONS
   ============================================================ */
.fleet {
  position: relative;
  isolation: isolate;
}
.fleet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 38% at 52% 34%, rgba(200, 200, 200, 0.042) 0%, transparent 72%),
    radial-gradient(ellipse 28% 24% at 84% 12%, rgba(220, 220, 220, 0.025) 0%, transparent 74%);
}

.fleet-board {
  margin-bottom: 8px;
}
.fleet-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  text-rendering: geometricPrecision;
}

/* diagram primitives */
.f-corner { fill: none; stroke: rgba(244, 244, 244, 0.16); stroke-width: 1; }
.f-node { fill: var(--layer-01); stroke: var(--border); stroke-width: 1; }
.f-node-hot { stroke: rgba(220, 220, 220, 0.091); }
.f-nodetitle { font-family: var(--sans); font-size: 13px; font-weight: 600; fill: var(--text-primary); }
.f-role { font-family: var(--mono); font-size: 9px; letter-spacing: 1.1px; fill: var(--accent-text); }
.f-val { font-family: var(--mono); font-size: 10.5px; fill: var(--text-tertiary); }
.f-val-hot { fill: var(--warning); }
.f-track { fill: rgba(244, 244, 244, 0.07); }
.f-fill { fill: var(--accent-text); opacity: 0.5; }
.f-fill-hot { fill: var(--warning); opacity: 0.65; }
.f-chip { fill: var(--term-bg); stroke: var(--border); stroke-width: 1; }
.f-chip-hot { fill: rgba(200, 200, 200, 0.035); stroke: rgba(220, 220, 220, 0.168); }
.f-chip-rep { fill: rgba(200, 200, 200, 0.014); stroke: rgba(220, 220, 220, 0.119); stroke-dasharray: 4 3; }
.f-chip-sleep { fill: rgba(22, 22, 22, 0.72); stroke: var(--border); stroke-dasharray: 3 3; }
.f-name { font-family: var(--mono); font-size: 11.5px; font-weight: 500; fill: var(--text-primary); }
.f-meta { font-family: var(--mono); font-size: 9.5px; fill: var(--text-tertiary); }
.f-hr { stroke: var(--grid-line); stroke-width: 1; }
.f-foot { font-family: var(--mono); font-size: 9px; letter-spacing: 0.4px; fill: var(--text-tertiary); }
.f-arc { fill: none; stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 5 5; opacity: 0.55; }
.f-arc-idle { opacity: 0.16; }
.f-anchor { fill: var(--accent-text); opacity: 0.85; }
.f-carrier {
  will-change: transform, opacity;
}
.f-carrier-glow { fill: url(#fleet-glow); }
.f-carrier rect { fill: var(--layer-02); stroke: var(--accent-text); stroke-width: 1; }
.f-carrier text { font-family: var(--mono); font-size: 9.5px; font-weight: 500; fill: var(--text-primary); }
.f-carrier .f-carrier-dot { fill: var(--accent-text); }
.f-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.5px; fill: var(--text-tertiary); }
.f-backup { stroke: var(--accent-text); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.36; }
.f-bar { fill: rgba(38, 38, 38, 0.72); stroke: var(--border); stroke-width: 1; }
.f-dot-ok { fill: var(--success); }

/* ---------- Stacked board: the wide diagram's stand-in on small screens ---------- */
.fleet-stack { display: none; }
.fs-node,
.fs-bar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--layer-01);
  padding: 16px;
}
.fs-bar {
  background: rgba(38, 38, 38, 0.72);
  border-radius: var(--radius-md);
}
.fs-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.fs-name {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.fs-val {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.fs-val-hot { color: var(--warning); }
.fs-meter {
  height: 5px;
  border-radius: 3px;
  background: rgba(244, 244, 244, 0.07);
  margin: 12px 0 14px;
  overflow: hidden;
}
.fs-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--accent-text);
  opacity: 0.5;
}
.fs-fill.hot { background: var(--warning); opacity: 0.7; }
.fs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fs-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--term-bg);
}
.fs-chip b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}
.fs-chip span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: right;
}
.fs-chip.hot { background: rgba(200, 200, 200, 0.035); border-color: rgba(220, 220, 220, 0.168); }
.fs-chip.rep { background: rgba(200, 200, 200, 0.014); border-color: rgba(220, 220, 220, 0.119); border-style: dashed; }
.fs-chip.sleep { border-style: dashed; }
.fs-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--grid-line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--text-tertiary);
}
.fs-foot + .fs-foot {
  margin-top: 6px;
  padding-top: 0;
  border-top: none;
}
.fs-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 2px;
}
.fs-move {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.fs-move::before,
.fs-move::after {
  content: "";
  flex: 1;
  border-top: 1px dashed rgba(220, 220, 220, 0.105);
}
.fs-move-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: var(--accent-text);
  border: 1px solid rgba(220, 220, 220, 0.105);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .f-carrier { display: none; }
}

/* four capabilities, ruled like the rest of the page */
.fleet-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}
.fleet-card {
  padding: 26px 24px 0;
  border-left: 1px solid var(--grid-line);
}
.fleet-card:first-child {
  padding-left: 0;
  border-left: none;
}
.fleet-card:last-child {
  padding-right: 0;
}
.fleet-card .f-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.fleet-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.fleet-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 1100px) and (min-width: 861px) {
  .fleet-cards { grid-template-columns: 1fr 1fr; }
  .fleet-card:nth-child(odd) { padding-left: 0; border-left: none; }
  .fleet-card:nth-child(n + 3) {
    border-top: 1px solid var(--grid-line);
    padding-top: 22px;
  }
}
@media (max-width: 860px) {
  .fleet-cards { grid-template-columns: 1fr; margin-top: 8px; }
  .fleet-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
    border-left: none;
    border-top: 1px solid var(--grid-line);
    padding: 16px 0 0;
  }
  .fleet-card:first-child { border-top: none; padding-top: 0; }
  .fleet-card .f-icon {
    grid-row: 1 / span 2;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
  }
  .fleet-card h3,
  .fleet-card p { margin: 0; }
}


/* ============================================================
   Grid + fleet — responsive
   ============================================================ */

/* fewer rails as the viewport narrows; a cell stays one content column */
@media (max-width: 1100px) {
  :root { --grid-cols: 8; }
}
@media (max-width: 720px) {
  :root { --grid-cols: 4; }
}

/* the board keeps a legible size and pans sideways rather than shrinking */
@media (max-width: 1080px) {
  .fleet-board {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    max-width: 100%;
  }
  .fleet-svg { min-width: 880px; }
}
/* below this the diagram cannot stay legible, so the stacked board takes over */
@media (max-width: 860px) {
  .fleet-board { display: none; }
  .fleet-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
  }
}

/* ============================================================
   GLOW
   Soft light behind the page. Surfaces stay solid.
   ============================================================ */

/* One slow pool behind the lattice, at the top left. It stays put while the page scrolls. */
.page-grid::before {
  content: "";
  position: absolute;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  pointer-events: none;
  top: -18vw;
  left: -12vw;
  background: radial-gradient(circle, rgba(200, 200, 200, 0.070) 0%, rgba(200, 200, 200, 0.017) 42%, transparent 70%);
  animation: glow-drift 36s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(6vw, 4vh, 0); }
}

.brand .mark {
  filter: drop-shadow(0 0 10px rgba(200, 200, 200, 0.158));
}

.section-head.center {
  position: relative;
}
.section-head.center::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(680px, 92vw);
  height: 200px;
  transform: translate(-50%, -55%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(200, 200, 200, 0.056) 0%, transparent 70%);
}

.problem-card.model {
  box-shadow: 0 0 48px -28px rgba(200, 200, 200, 0.193);
}
.tile .t-icon,
.step .step-num {
  box-shadow: 0 0 18px -4px rgba(200, 200, 200, 0.262);
}
.fleet-card .f-icon,
.oss-point .icon {
  filter: drop-shadow(0 0 8px rgba(220, 220, 220, 0.140));
}

.arch-stage::before {
  background:
    radial-gradient(ellipse 46% 50% at 64% 48%, rgba(200, 200, 200, 0.077) 0%, transparent 70%),
    radial-gradient(ellipse 28% 32% at 24% 28%, rgba(220, 220, 220, 0.035) 0%, transparent 74%);
}
.arch-progress-bar {
  box-shadow: 0 0 12px rgba(200, 200, 200, 0.262);
}
.a-panel-box {
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 16px rgba(200, 200, 200, 0.077));
}

.section:has(.oss) {
  isolation: isolate;
}
.section:has(.oss)::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 54%;
  width: min(920px, 88%);
  height: 460px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(200, 200, 200, 0.091) 0%, rgba(200, 200, 200, 0.028) 42%, transparent 70%);
}
.oss::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -30%;
  width: 55%;
  height: 140%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(200, 200, 200, 0.098) 0%, transparent 68%);
}

.faq-item[open] summary {
  text-shadow: 0 0 18px rgba(220, 220, 220, 0.098);
}

@media (prefers-reduced-motion: reduce) {
  .page-grid::before { animation: none; }
  .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 24px -10px rgba(200, 200, 200, 0.315); }
}

@media (forced-colors: active) {
  .page-grid::before,
  .section-head.center::before,
  .oss::after,
  .final-cta::after { display: none; }
}

/* Approved Carbon Panel identity */
.brand .brand-lockup { width: 155px; height: auto; flex: none; }
@media (max-width: 420px) { .brand .brand-lockup { width: 135px; } }

.brand-fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.brand-fleet-node {
  min-width: 0;
  padding: 32px;
  background: var(--layer-01);
}
.brand-fleet-index {
  display: block;
  margin-bottom: 32px;
  color: var(--accent-text);
  font: 500 12px/1.4 var(--mono);
}
.brand-fleet-node h3 {
  margin-bottom: 12px;
  font-size: 20px;
}
.brand-fleet-node p,
.brand-fleet-note {
  color: var(--text-secondary);
}
.brand-fleet-note {
  max-width: 70ch;
  margin-top: 24px;
  font-size: 14px;
}
@media (max-width: 767px) {
  .brand-fleet-grid { grid-template-columns: 1fr; }
  .brand-fleet-node { padding: 24px; }
  .brand-fleet-index { margin-bottom: 16px; }
}
@media (max-width: 620px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-width: 0; }
}
