/* DBX — ice on navy, SaaS surface
   Public marketing site. Isolation is the product; the chrome can still move. */

:root {
  --bg: #040910;
  --bg-raised: #0a1522;
  --zinc: #0d1c2b;
  --hairline: rgba(158, 231, 255, 0.14);
  --text: #f1f6fb;
  --muted: #8ea8bd;
  --faint: #6d869c;
  --copper: #7dd3f0;
  --ember: #c4f0ff;
  --sage: #5ee4b0;
  --sage-line: #1f4a3d;
  --code: #061018;
  --danger: #ff8a80;
  --warn: #ffc46b;
  --violet: #c4b5fd;
  --navy: #051c33;
  --ice: #9ee7ff;
  --acme: #5ee4ff;
  --harbor: #ffc46b;
  --lumen: #c4b5fd;
  --glow: 0 18px 50px rgba(0, 12, 24, 0.45);
  --max: 72rem;
  --wide: 86rem;
  --header-h: 3.65rem;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --mx: 50%;
  --my: 20%;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.2rem;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
  letter-spacing: 0;
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    repeating-linear-gradient(
      to right,
      transparent 0 31px,
      rgba(158, 231, 255, 0.018) 31px 32px
    ),
    repeating-linear-gradient(
      to bottom,
      transparent 0 31px,
      rgba(158, 231, 255, 0.018) 31px 32px
    );
}

body::after {
  background:
    radial-gradient(ellipse 70% 48% at var(--mx) -8%, rgba(94, 228, 255, 0.16), transparent 55%),
    radial-gradient(ellipse 52% 40% at 92% 8%, rgba(196, 181, 253, 0.12), transparent 50%),
    radial-gradient(ellipse 46% 34% at 8% 88%, rgba(94, 228, 176, 0.1), transparent 52%);
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { filter: hue-rotate(0deg) saturate(1); }
  to { filter: hue-rotate(18deg) saturate(1.15); }
}

::selection {
  background: var(--ice);
  color: #051c33;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

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

a {
  color: var(--copper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ember);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

h1 em,
h2 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--ice);
  box-shadow: inset 0 -1px 0 var(--ice);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.12rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38rem;
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 40;
  background: var(--ice);
  color: #051c33;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip:focus {
  top: 0.75rem;
}

/* ——— Header ——— */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(4, 9, 16, 0.72);
  backdrop-filter: saturate(1.4) blur(18px);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transition: min-height 180ms ease, background 180ms ease;
}

.site-header.is-compact .header-inner {
  min-height: 3.1rem;
}

.header-inner {
  position: relative;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 0.95rem;
  transition: min-height 180ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  line-height: 1;
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--hairline);
}

.brand:hover {
  opacity: 0.92;
}

.footer-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  background: var(--zinc);
  color: var(--text);
  border: 1px solid var(--hairline);
  padding: 0.4rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--copper);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex: 1;
}

.site-nav ul {
  display: flex;
  gap: 0.1rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

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

.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] {
  box-shadow: inset 0 -1px 0 var(--copper);
}

.has-sub {
  position: relative;
}

.has-sub > .sub {
  display: none;
  position: absolute;
  top: calc(100% - 0.1rem);
  left: -0.7rem;
  min-width: 12.5rem;
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 0;
  z-index: 32;
  flex-direction: column;
}

.has-sub:hover > .sub,
.has-sub:focus-within > .sub {
  display: block;
}

.has-sub .sub a {
  display: block;
  padding: 0.38rem 0.9rem;
  box-shadow: none;
  font-size: 0.8rem;
}

.has-sub .sub a[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--ice);
  color: var(--text);
}

.brand { order: 1; }
.live-meta { order: 2; }
.site-nav { order: 3; }
.cmdk-launch { order: 4; }
.nav-toggle { order: 5; }

.cmdk-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(10, 21, 34, 0.7);
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.28rem 0.55rem 0.28rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.cmdk-launch:hover,
.cmdk-launch:focus-visible {
  color: var(--text);
  border-color: var(--ice);
}

.cmdk-launch kbd {
  font: inherit;
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: #061018;
  color: var(--ice);
}

.cmdk-launch--bar {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: 0.4rem;
}

.nav-actions a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #c9f4ff 0%, var(--ice) 100%);
  color: #051c33 !important;
  text-decoration: none !important;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  padding: 0.62rem 1.15rem;
  border: 1px solid rgba(201, 244, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(94, 228, 255, 0.18);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.45) 48%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 520ms ease;
}

.btn:hover {
  background: linear-gradient(180deg, #e8fbff 0%, var(--ember) 100%);
  border-color: var(--ember);
  color: #051c33 !important;
  box-shadow: 0 14px 36px rgba(94, 228, 255, 0.28);
  transform: translateY(-1px);
}

.btn:hover::after {
  transform: translateX(130%);
}

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

.btn-ghost {
  background: rgba(10, 21, 34, 0.55);
  color: var(--text) !important;
  border-color: var(--hairline);
  box-shadow: none;
}

.btn-ghost::after {
  display: none;
}

.btn-ghost:hover {
  border-color: var(--copper);
  background: rgba(158, 231, 255, 0.08);
  color: var(--text) !important;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ——— Layout ——— */

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.wrap-wide {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}

main {
  position: relative;
  z-index: 1;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.22rem 0.62rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(158, 231, 255, 0.06);
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(94, 228, 176, 0.18);
  animation: pulse-dot 2.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.rule {
  height: 1px;
  background: var(--hairline);
  border: 0;
  margin: 0;
}

.section {
  padding: 4.25rem 0;
}

.section-tight {
  padding: 3rem 0;
}

.plate {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
}

.plate::before,
.plate::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--copper);
  pointer-events: none;
}

.plate::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.plate::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  padding: 2.6rem 0 3.25rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 28rem;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(158, 231, 255, 0.14), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid,
.hero > p {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.hero-copy {
  max-width: 40rem;
}

.hero-copy h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--ice);
  box-shadow: inset 0 -1px 0 var(--ice);
}

.hero-copy .lede {
  margin-top: 1.15rem;
}

.isolation {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 0.65rem;
  align-items: stretch;
}

.iso-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--zinc);
  min-height: 20rem;
}

.iso-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 20rem;
}

.iso-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(5, 12, 20, 0.94));
  color: var(--text);
}

.iso-caption s {
  text-decoration: line-through;
  text-decoration-color: var(--copper);
  color: var(--muted);
}

.iso-caption span {
  color: var(--copper);
}

@keyframes plate-reveal {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.hero-draw {
  height: 1px;
  background: var(--copper);
  margin: 1.25rem 0 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-rule 0.9s 0.7s ease forwards;
}

@keyframes draw-rule {
  to { transform: scaleX(1); }
}

/* ——— Limits strip ——— */

.limits {
  border-block: 1px solid var(--hairline);
  background: var(--bg-raised);
}

.limits-inner {
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
  padding: 0.95rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.5rem;
  align-items: center;
}

.limits .stamp {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  border: 1px solid var(--sage-line);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.limits p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.limits strong {
  color: var(--text);
  font-weight: 550;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

/* ——— Problem catalog ——— */

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 0;
}

.catalog-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  margin: 0 0 0.85rem;
}

.pain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain-num {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

.pain-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
  border-left: 2px solid transparent;
  padding-left: 0.85rem;
  margin-left: -0.85rem;
  transition: border-color 180ms ease, background 180ms ease;
}

.pain-list li:hover {
  border-left-color: var(--danger);
  background: linear-gradient(90deg, rgba(255, 138, 128, 0.08), transparent 55%);
}

.pain-list h3 {
  margin-bottom: 0.25rem;
}

.pain-list p {
  margin: 0;
  color: var(--muted);
}

/* ——— USP index (not a card grid) ——— */

.usp-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
}

.usp {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 1rem 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--hairline);
}

.usp:last-child {
  border-bottom: 1px solid var(--hairline);
}

.usp-num {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1;
  color: var(--ice);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--ice), var(--sage));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.usp p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.usp .onramp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 0.35rem;
}

/* ——— Split / who ——— */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
}

.split > div {
  padding: 1.6rem 1.5rem;
}

.split > div + div {
  border-left: 1px solid var(--hairline);
}

.split--go {
  background: linear-gradient(180deg, rgba(94, 228, 176, 0.08), transparent 70%);
}

.split--go h3 {
  color: var(--sage);
}

.split--not {
  background: linear-gradient(180deg, rgba(255, 138, 128, 0.07), transparent 70%);
}

.split--not h3 {
  color: var(--danger);
}

.split ul {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.split li {
  padding: 0.45rem 0 0.45rem 1.1rem;
  position: relative;
  color: var(--muted);
}

.split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 1px;
  background: var(--sage);
}

.split--not li::before {
  background: var(--danger);
}

/* ——— Tables ——— */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  margin: 1.25rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 36rem;
}

caption {
  text-align: left;
  padding: 0.75rem 1rem 0.15rem;
  caption-side: top;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

th, td {
  text-align: left;
  padding: 0.7rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--hairline);
}

th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  background: var(--zinc);
}

td {
  color: var(--muted);
}

td:first-child,
td strong {
  color: var(--text);
}

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

.metric {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  color: var(--text);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.metric-unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.65rem;
  margin: 1.75rem 0;
}

.metric-cell {
  grid-column: span 4;
  padding: 1.1rem 1rem;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
}

.metric-cell:nth-child(4),
.metric-cell:nth-child(5) {
  grid-column: span 6;
}

.metric-cell p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ——— Code ——— */

.code-panel {
  position: relative;
  background: var(--code);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--copper);
  margin: 1rem 0 1.5rem;
}

.code-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.copy-btn:hover,
.copy-btn:focus-visible {
  border-color: var(--copper);
  color: var(--copper);
}

.copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d7e4ee;
}

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

p code, li code, td code, h3 code {
  background: var(--zinc);
  border: 1px solid var(--hairline);
  padding: 0.05em 0.35em;
  color: var(--text);
}

/* ——— Callouts ——— */

.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ice);
  padding: 1.05rem 1.15rem;
  margin: 1.35rem 0;
  background: var(--bg-raised);
}

.callout--limits {
  border-color: var(--sage-line);
  border-left-color: var(--sage);
}

.callout--limits .kicker {
  color: var(--sage);
}

.callout p {
  margin: 0;
  color: var(--muted);
}

.callout p:last-child {
  margin-bottom: 0;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 2px solid var(--copper);
  padding-left: 0.9rem;
  margin: 1.25rem 0;
}

/* ——— Architecture schematic ——— */

.schematic {
  background: var(--code);
  border: 1px solid var(--hairline);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.schematic svg {
  display: block;
  width: 100%;
  min-width: 40rem;
  height: auto;
}

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}

.flow li::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--copper);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

.flow p {
  margin: 0;
  color: var(--muted);
}

.flow strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-body);
  font-weight: 600;
}

/* ——— License columns ——— */

.license-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 1.5rem 0;
}

.license-col {
  padding: 1.3rem 1.2rem;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
}

.license-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.license-col--yes h3 { color: var(--sage); }
.license-col--no h3 { color: var(--danger); }

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

.license-col li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
}

.license-col li:first-of-type {
  border-top: 0;
}

/* ——— Page title band ——— */

.page-band {
  padding: 2.5rem 0 1.85rem;
  border-bottom: 1px solid var(--hairline);
}

.page-band p {
  max-width: 40rem;
  color: var(--muted);
  margin: 0;
}

/* ——— Footer ——— */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0 1.35rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.6rem;
  width: min(100% - 2rem, var(--wide));
  margin: 0 auto;
}

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 500;
  margin-bottom: 0.55rem;
}

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

.site-footer li {
  margin: 0.28rem 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-brand span {
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}

.legal {
  width: min(100% - 2rem, var(--wide));
  margin: 1.15rem auto 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.15rem;
  justify-content: space-between;
}

/* ——— CTA close ——— */

.cta-band {
  padding: 3.4rem 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 50% 120%, rgba(94, 228, 176, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 70% at 90% 0%, rgba(196, 181, 253, 0.12), transparent 50%),
    var(--bg-raised);
  border-top: 1px solid var(--hairline);
}

.cta-band h2 {
  max-width: 22ch;
}

/* ——— Console figure ——— */

.figure {
  margin: 1.5rem 0 0;
  border: 1px solid var(--hairline);
  background: #040910;
  box-shadow: inset 0 0 0 1px rgba(166, 217, 239, 0.12);
}

.figure img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: center;
}

.figure--mark {
  max-width: 16rem;
  box-shadow: none;
  background: transparent;
}

.figure--mark img {
  max-height: none;
  object-fit: contain;
}

.figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--hairline);
}

/* ——— Persistence layers ——— */

.layers {
  display: grid;
  gap: 0;
  margin: 1.5rem 0;
}

.layer {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  background: var(--bg-raised);
}

.layer:last-child {
  border-bottom: 1px solid var(--hairline);
}

.layer-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  padding-top: 0.2rem;
}

.layer p {
  margin: 0;
  color: var(--muted);
}

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

/* ——— Live header clock ——— */

.live-meta {
  display: none;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  padding: 0.18rem 0.5rem;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.live-port {
  color: var(--ice);
}

@media (min-width: 1100px) {
  .live-meta {
    display: inline-flex;
  }
}

/* ——— Isolation bench ——— */

.bench {
  border: 1px solid var(--hairline);
  background: #070e16;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glow), inset 0 0 0 1px rgba(158, 231, 255, 0.06);
}

.bench-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(94, 228, 176, 0.2);
  flex-shrink: 0;
  animation: pulse-dot 2.2s ease-in-out infinite;
}

.cabinet[data-cabinet="acme"] { --tenant: var(--acme); }
.cabinet[data-cabinet="harbor"] { --tenant: var(--harbor); }
.cabinet[data-cabinet="lumen"] { --tenant: var(--lumen); }

.cabinet.is-live {
  background: color-mix(in srgb, var(--tenant, var(--ice)) 10%, transparent);
  box-shadow: inset 0 2px 0 0 var(--tenant, var(--ice));
}

.cabinet h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenant, var(--copper));
  margin: 0 0 0.65rem;
}

.term-prompt {
  color: var(--tenant, var(--copper));
}

.bench-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  background: #061018;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
}

.bench-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.82rem;
  color: var(--muted);
  background: #08121c;
}

.bench-picks {
  display: flex;
  gap: 0.3rem;
}

.chip {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.26rem 0.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.chip:hover,
.chip.is-on {
  border-color: var(--tenant, var(--copper));
  color: var(--tenant, var(--text));
}

.chip.is-on {
  background: color-mix(in srgb, var(--tenant, var(--ice)) 14%, transparent);
  color: var(--tenant, var(--ice));
}

.chip[data-pick="acme"] { --tenant: var(--acme); }
.chip[data-pick="harbor"] { --tenant: var(--harbor); }
.chip[data-pick="lumen"] { --tenant: var(--lumen); }

.auth-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--tenant, var(--sage));
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tenant, var(--sage)) 45%, transparent);
  background: color-mix(in srgb, var(--tenant, var(--sage)) 12%, transparent);
}

.cabinets {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.cabinet {
  padding: 0.85rem 0.9rem 1rem;
  border-right: 1px solid var(--hairline);
  min-height: 9.5rem;
}

.cabinet:last-child {
  border-right: 0;
}

.cab-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.18rem 0;
}

.cab-row b {
  color: var(--text);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 9.5rem;
  font-variant-numeric: tabular-nums;
}

.term {
  border-top: 1px solid var(--hairline);
  background: #050a10;
}

.term-out {
  margin: 0;
  min-height: 9.5rem;
  max-height: 11.5rem;
  overflow: auto;
  padding: 0.75rem 0.9rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.55;
}

.term-line {
  color: #d7e4ee;
}

.term-line--out {
  color: var(--sage);
  padding-left: 0.15rem;
}

.term-line--meta {
  color: var(--faint);
  font-style: normal;
}

.scribble {
  display: inline;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ice);
  border-bottom: 1px solid var(--hairline);
}

/* ——— Tabs / steps ——— */

.tabs,
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.tabs button,
.steps button {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 0.38rem 0.7rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.tabs button.is-on,
.steps button.is-on {
  color: var(--text);
  border-color: var(--copper);
}

/* ——— Packet hop ——— */

.hop {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr 0.9fr;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.hop-stage {
  border: 1px solid var(--hairline);
  padding: 0.9rem 0.85rem;
  background: var(--bg-raised);
  min-height: 6.5rem;
}

.hop-stage.is-hot {
  border-color: var(--copper);
  box-shadow: inset 3px 0 0 var(--copper);
}

.hop-stage span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.hop-stage p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.proof-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.32rem 0.65rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(10, 21, 34, 0.55);
}

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

.proof-dot--ice { background: var(--acme); box-shadow: 0 0 0 3px rgba(94, 228, 255, 0.16); }
.proof-dot--sage { background: var(--sage); box-shadow: 0 0 0 3px rgba(94, 228, 176, 0.16); }
.proof-dot--warn { background: var(--harbor); box-shadow: 0 0 0 3px rgba(255, 196, 107, 0.16); }
.proof-dot--violet { background: var(--lumen); box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.16); }

.product-shots figure,
.shot-stack figure,
.film-stage,
.docs-toc a,
.secure-card,
.license-col,
.table-scroll,
.code-panel,
.callout,
.has-sub > .sub,
.metric-cell,
.hop-stage {
  border-radius: var(--radius);
}

.product-shots figure,
.shot-stack figure,
.film-stage {
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-shots figure:hover,
.shot-stack figure:hover,
.film-stage:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.docs-toc a {
  transition: border-color 160ms ease, transform 160ms ease;
}

.docs-toc a:hover {
  transform: translateY(-2px);
}

.limits {
  backdrop-filter: blur(10px);
}

.limits .stamp {
  border-radius: 999px;
  background: rgba(94, 228, 176, 0.1);
}

.page-band {
  position: relative;
  overflow: hidden;
}

.page-band::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 28rem;
  height: 10rem;
  background: radial-gradient(closest-side, rgba(158, 231, 255, 0.12), transparent);
  pointer-events: none;
}

.change time {
  color: var(--ice);
}

.secure-card:nth-child(odd) { border-top: 2px solid var(--acme); }
.secure-card:nth-child(even) { border-top: 2px solid var(--lumen); }

.usp {
  transition: background 180ms ease;
}

.usp:hover {
  background: linear-gradient(90deg, rgba(158, 231, 255, 0.05), transparent 70%);
}

html.js [data-in] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}


html.js [data-in].is-in {
  opacity: 1;
  transform: none;
}

[hidden] {
  display: none !important;
}

.product-shots {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.product-shots figure,
.shot-stack figure {
  margin: 0;
  border: 1px solid var(--hairline);
  background: #040910;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(166, 217, 239, 0.12);
}

.product-shots figure::before,
.shot-stack figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.7rem;
  right: 0.7rem;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--ice) 0 2px,
    transparent 2px 9px
  );
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

.product-shots img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 26rem;
  object-fit: cover;
  object-position: top left;
}

.shot-stack {
  display: grid;
  gap: 0.7rem;
}

.shot-stack img {
  max-height: 12.2rem;
}

.product-shots figcaption,
.shot-stack figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--hairline);
}

@media (max-width: 880px) {
  .product-shots {
    grid-template-columns: 1fr;
  }
}

/* ——— Docs ——— */

.docs-shell {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  gap: 2.75rem;
  width: min(100% - 2rem, var(--wide));
  margin: 2rem auto 4.5rem;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 4.4rem;
  padding: 0.4rem 0 1rem;
  border-right: 1px solid var(--hairline);
}

.docs-nav-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.65rem;
}

.docs-nav a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.32rem 0.85rem 0.32rem 0;
}

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

.docs-nav a[aria-current="page"] {
  box-shadow: inset 2px 0 0 var(--ice);
  padding-left: 0.7rem;
}

.docs-body h1 {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
}

.docs-body h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.docs-body .limits {
  border: 1px solid var(--hairline);
  margin: 1.1rem 0;
}

.docs-body .limits-inner {
  width: auto;
  margin: 0;
  padding: 0.9rem 1rem;
}

.docs-body blockquote {
  margin: 1.25rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--ice);
}

.docs-body blockquote p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}

.docs-toc {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
}

.docs-toc a {
  display: block;
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
}

.docs-toc a:hover {
  border-color: var(--ice);
}

.docs-toc span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.2rem;
}

.walk-video {
  margin: 0;
}

.walk-video video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #040910;
  border: 1px solid var(--hairline);
}

.walk-video figcaption {
  margin-top: 0.75rem;
}

/* ——— Pricing ——— */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
}

.price-card {
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--bg-raised) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.35rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  border-radius: var(--radius);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ice) 50%, var(--hairline));
  box-shadow: var(--glow);
}

.price-card.is-featured {
  border-color: color-mix(in srgb, var(--ice) 70%, transparent);
  box-shadow: 0 0 0 1px rgba(158, 231, 255, 0.35), 0 24px 60px rgba(94, 228, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(158, 231, 255, 0.08), transparent 42%),
    var(--bg-raised);
}

.price-card .kicker {
  margin-bottom: 0.35rem;
}

.price-amt {
  font-family: var(--font-mono);
  font-size: 2.15rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  font-variant-numeric: tabular-nums;
}

.price-card ul {
  margin: 0.6rem 0 1.2rem;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.price-card li + li {
  margin-top: 0.35rem;
}

/* ——— Contact form ——— */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.form-stack {
  display: grid;
  gap: 0.85rem;
}

.form-stack label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  width: 100%;
  background: var(--code);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.62rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-stack textarea {
  min-height: 9rem;
  resize: vertical;
  font-family: var(--font-body);
}

.form-stack button {
  justify-self: start;
}

.form-stack .btn-row {
  margin-top: 0.2rem;
}

.form-stack .chip {
  justify-self: start;
}

.form-status {
  margin: 0.4rem 0 0;
  color: var(--sage);
  font-size: 0.92rem;
}

/* ——— Security / changelog ——— */

.secure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 1.35rem 0;
}

.secure-card {
  border: 1px solid var(--hairline);
  background: var(--bg-raised);
  padding: 1.1rem 1.15rem;
}

.secure-card h3 {
  margin-bottom: 0.4rem;
}

.secure-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.change-list {
  margin: 1.5rem 0 0;
}

.change {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--hairline);
}

.change time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--copper);
  padding-top: 0.35rem;
}

.change h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.legal-prose {
  max-width: 40rem;
}

.legal-prose h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* ——— Filmstrip ——— */

.film {
  margin-top: 1.25rem;
}

.film-stage {
  margin: 0;
  border: 1px solid var(--hairline);
  background: #040910;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(166, 217, 239, 0.12);
}

.film-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--ice) 0 2px,
    transparent 2px 9px
  );
  opacity: 0.32;
  pointer-events: none;
  z-index: 1;
}

.film-stage img {
  width: 100%;
  max-height: 28rem;
  object-fit: cover;
  object-position: top left;
}

.film-stage figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--hairline);
}

.film-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.film-thumbs {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  overflow-x: auto;
}

.film-thumbs button {
  flex: 0 0 5.4rem;
  padding: 0;
  border: 1px solid var(--hairline);
  background: var(--zinc);
  cursor: pointer;
  line-height: 0;
  border-radius: var(--radius);
}

.film-thumbs button.is-on {
  border-color: var(--ice);
}

.film-thumbs img {
  width: 100%;
  height: 2.6rem;
  object-fit: cover;
  object-position: top left;
}

.film-controls > button {
  background: var(--zinc);
  color: var(--text);
  border: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.film-controls > button:hover {
  border-color: var(--copper);
}

/* ——— Mobile ——— */

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .has-sub > .sub {
    position: static;
    display: block;
    border: 0;
    background: transparent;
    min-width: 0;
    padding: 0 0 0.2rem 0.75rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(5, 12, 20, 0.97);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li a {
    display: block;
    padding: 0.55rem 0;
  }

  .nav-actions {
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--hairline);
  }

  .hero-grid,
  .isolation,
  .catalog,
  .split,
  .license-grid,
  .footer-grid,
  .usp {
    grid-template-columns: 1fr;
  }

  .split > div + div {
    border-left: 0;
    border-top: 1px solid var(--hairline);
  }

  .metric-cell,
  .metric-cell:nth-child(4),
  .metric-cell:nth-child(5) {
    grid-column: span 12;
  }

  .layer {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  h1 {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }

  .docs-shell,
  .price-grid,
  .contact-grid,
  .secure-grid,
  .change {
    grid-template-columns: 1fr;
  }

  .docs-nav {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
    padding-bottom: 0.75rem;
  }

  .cabinets,
  .hop {
    grid-template-columns: 1fr;
  }

  .cabinet {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }

  .auth-badge {
    margin-left: 0;
    width: 100%;
  }
}

body:has(.saas-bg)::before {
  opacity: 0.28;
}

body:has(.saas-bg)::after {
  display: none;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(158, 231, 255, 0.38) #071018;
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(158, 231, 255, 0.32) rgba(7, 16, 24, 0.8);
}

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #071018;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(158, 231, 255, 0.55), rgba(94, 228, 176, 0.45));
  border-radius: 999px;
  border: 2px solid #071018;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--ice), var(--sage));
}

::-webkit-scrollbar-corner {
  background: #071018;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: var(--scroll, 0%);
  background: linear-gradient(90deg, var(--acme), var(--sage), var(--lumen));
  box-shadow: 0 0 12px rgba(158, 231, 255, 0.45);
  pointer-events: none;
}

.saas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.saas-bg__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(94, 228, 255, 0.1), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(196, 181, 253, 0.08), transparent 46%),
    linear-gradient(180deg, transparent 40%, rgba(4, 9, 16, 0.85) 100%);
}

.saas-bg__grid {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 22%;
  height: 92%;
  background-image:
    linear-gradient(rgba(158, 231, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 231, 255, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(820px) rotateX(58deg) translate3d(0, calc(var(--sy, 0) * -0.12px), 0);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 62%, transparent);
}

.saas-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.42;
  mix-blend-mode: screen;
  will-change: transform;
}

.saas-bg__orb--a {
  width: 34rem;
  height: 34rem;
  background: #4fd6ff;
  top: -10rem;
  left: -7rem;
  animation: float-a 20s ease-in-out infinite;
}

.saas-bg__orb--b {
  width: 28rem;
  height: 28rem;
  background: #c4b5fd;
  top: 8%;
  right: -8rem;
  animation: float-b 24s ease-in-out infinite;
}

.saas-bg__orb--c {
  width: 26rem;
  height: 26rem;
  background: #5ee4b0;
  bottom: -8rem;
  left: 28%;
  animation: float-c 22s ease-in-out infinite;
}

.saas-bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 8%, 0) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-8%, 10%, 0) scale(1.12); }
}

@keyframes float-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10%, -12%, 0); }
}

.tip {
  position: fixed;
  z-index: 70;
  max-width: 17rem;
  padding: 0.55rem 0.7rem;
  transform: translate(-50%, calc(-100% - 10px));
  background: rgba(10, 21, 34, 0.94);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--glow);
  font-size: 0.8rem;
  line-height: 1.45;
  pointer-events: none;
}

.tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transform: translateX(-50%) rotate(45deg);
}

.lightbox,
.pop {
  width: min(92vw, 64rem);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #08131e;
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.pop {
  width: min(92vw, 26rem);
}

.lightbox::backdrop,
.pop::backdrop,
.toast-layer::backdrop {
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}

.lightbox-inner {
  display: grid;
  gap: 0;
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #040910;
}

.lightbox figcaption,
.pop-body {
  padding: 0.75rem 1rem 1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.pop-head,
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
}

.pop-close,
.lightbox-close {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.pop-close:hover,
.lightbox-close:hover {
  border-color: var(--ice);
}

.pop-kv {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.pop-kv div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pop-kv dt { color: var(--muted); }
.pop-kv dd { margin: 0; color: var(--text); }

.toast {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 55;
  width: min(calc(100vw - 2rem), 22rem);
  padding: 0.9rem 1rem 1rem;
  background: rgba(10, 21, 34, 0.94);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
}

.toast.is-on {
  transform: none;
  opacity: 1;
}

.toast p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.toast .btn-row {
  margin-top: 0;
}

.cabinet {
  cursor: pointer;
}

.cabinet:focus-visible {
  outline: 2px solid var(--tenant, var(--ice));
  outline-offset: -2px;
}

.product-shots figure,
.shot-stack figure,
.film-stage {
  cursor: zoom-in;
}

.proof-row li[data-tip] {
  cursor: help;
}

.cmd-rail {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid var(--hairline);
  background: rgba(7, 16, 24, 0.55);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.cmd-rail__track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  padding: 0.72rem 0;
  animation: rail-run 28s linear infinite;
}

.cmd-rail span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  opacity: 0.72;
}

.cmd-rail span::before {
  content: "·";
  margin-right: 2.4rem;
  color: var(--sage);
  opacity: 0.7;
}

@keyframes rail-run {
  to { transform: translateX(-50%); }
}

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 54;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(10, 21, 34, 0.92);
  color: var(--ice);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  border-color: var(--ice);
}

body:has(.toast.is-on) .to-top {
  bottom: 7.4rem;
}

.lightbox,
.pop {
  overflow: auto;
}

.table-scroll {
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  .saas-bg__orb,
  .saas-bg__grid,
  .toast,
  .cmd-rail__track,
  .to-top {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .iso-panel[data-reveal] {
    animation: plate-reveal 0.7s ease both;
  }

  .iso-panel--old {
    animation: plate-reveal 0.7s ease both;
  }

  .iso-panel--new {
    animation: plate-reveal 0.7s 0.12s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body::after {
    animation: none !important;
  }

  .iso-panel,
  .hero-draw,
  .site-header,
  .header-inner,
  .btn,
  .hop-stage,
  .term-prompt,
  .kicker::before,
  .bench-title::before,
  .cabinet,
  .cmdk,
  main {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    clip-path: none !important;
    opacity: 1 !important;
  }
}

/* ——— Dynamic UX ——— */

html.js main {
  animation: page-in 520ms ease both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.cabinet.is-flash {
  animation: cab-flash 640ms ease;
}

@keyframes cab-flash {
  0% { background: color-mix(in srgb, var(--tenant, var(--ice)) 22%, transparent); }
  100% { background: transparent; }
}

.term-form {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem 0.6rem;
  border-top: 1px solid var(--hairline);
  background: #061018;
}

.term-form .term-prompt {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.term-form input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  outline: none;
}

.term-form input::placeholder {
  color: var(--faint);
}

.cmdk {
  width: min(92vw, 34rem);
  max-height: min(72vh, 28rem);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 19, 30, 0.96);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.cmdk::backdrop {
  background: rgba(2, 6, 12, 0.72);
  backdrop-filter: blur(8px);
}

.cmdk-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--hairline);
}

.cmdk-head input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  outline: none;
}

.cmdk-head kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.cmdk-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 18rem;
  overflow: auto;
}

.cmdk-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font: inherit;
}

.cmdk-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.82rem;
}

.cmdk-item.is-on,
.cmdk-item:hover {
  background: color-mix(in srgb, var(--ice) 10%, transparent);
}

.cmdk-empty {
  padding: 0.9rem 0.75rem;
  color: var(--muted);
}

.cmdk-foot {
  margin: 0;
  padding: 0.45rem 0.85rem 0.6rem;
  border-top: 1px solid var(--hairline);
  color: var(--faint);
  font-size: 0.75rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.crumbs a {
  color: var(--ice);
  text-decoration: none;
}

.sec-dots {
  position: fixed;
  right: 0.85rem;
  top: 50%;
  z-index: 28;
  transform: translateY(-50%);
  display: grid;
  gap: 0.45rem;
}

.sec-dots a {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(158, 231, 255, 0.28);
  border: 0;
  display: block;
}

.sec-dots a.is-on {
  background: var(--ice);
  box-shadow: 0 0 0 4px rgba(158, 231, 255, 0.16);
}

.form-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  outline: 2px solid var(--ice);
  outline-offset: 1px;
  border-color: var(--ice);
}

.form-stack :user-invalid {
  border-color: var(--danger);
}

.pain-list li {
  transition: background 180ms ease, box-shadow 180ms ease;
  border-radius: var(--radius-sm);
}

.pain-list li.is-hot {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

.docs-body h2.has-anchor {
  scroll-margin-top: 5.2rem;
}

.table-scroll tbody tr {
  transition: background 160ms ease;
}

.table-scroll tbody tr:hover {
  background: color-mix(in srgb, var(--ice) 7%, transparent);
}

@media (max-width: 880px) {
  .sec-dots {
    display: none;
  }

  .cmdk-launch--bar {
    display: inline-flex;
    margin-left: auto;
  }

  .cmdk-launch--nav {
    display: none;
  }

  .cmdk-launch span {
    display: none;
  }

  .nav-toggle {
    margin-left: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js main,
  .cabinet.is-flash {
    animation: none !important;
  }
}
