@import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&family=Geist:wght@400;500;600&display=swap");

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000;
  --hover: #ffffff12;
  --border: #ffffff17;
  --border-strong: #ffffff24;
  --border-hover: #ffffff3d;
  --fg: #ededed;
  --fg-muted: #a0a0a0;
  --fg-faint: #8f8f8f;
  --chip-bg: #ffffff12;
  --code-bg: #ffffff12;
  --code-border: #ffffff17;
  --focus: #47a8ff;
  --up: #00ac3a;
  --up-text: #00ca50;
  --up-bg: #002608;
  --verifying: #ffae00;
  --verifying-text: #ff9300;
  --verifying-bg: #2a1700;
  --down: #f13242;
  --down-text: #ff565f;
  --down-bg: #330a11;
  --down-border: #e2162a;
  --error-solid: #e2162a;
  --neutral-state: #878787;
  --primary: var(--fg);
  --primary-fg: var(--bg);
  --card-shadow: 0 1px 2px rgb(0 0 0 / 16%);
  --popover-shadow:
    0 1px 1px rgb(0 0 0 / 2%), 0 4px 8px -4px rgb(0 0 0 / 4%),
    0 16px 24px -8px rgb(0 0 0 / 6%);
  --modal-shadow:
    0 1px 1px rgb(0 0 0 / 2%), 0 8px 16px -4px rgb(0 0 0 / 4%),
    0 24px 32px -8px rgb(0 0 0 / 6%);

  /* marketing-scope tokens, not part of the app set */
  --surface: #0b0b0b;
  --surface-raised: #111;
  --fade: linear-gradient(to bottom, transparent, #000);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #fff;
  --hover: #0000000d;
  --border: #ebebeb;
  --border-strong: #eaeaea;
  --border-hover: #c9c9c9;
  --fg: #171717;
  --fg-muted: #4d4d4d;
  --fg-faint: #8f8f8f;
  --chip-bg: #f2f2f2;
  --code-bg: #fafafa;
  --code-border: #eaeaea;
  --focus: #006bff;
  --up: #28a948;
  --up-text: #107d32;
  --up-bg: #ecfdec;
  --verifying: #ffae00;
  --verifying-text: #aa4d00;
  --verifying-bg: #fff6de;
  --down: #fc0035;
  --down-text: #d8001b;
  --down-bg: #ffeeef;
  --down-border: #ffd7d6;
  --error-solid: #ea001d;
  --neutral-state: #a8a8a8;
  --card-shadow: 0 2px 2px rgb(0 0 0 / 4%);

  /* marketing-scope tokens, not part of the app set */
  --surface: #fafafa;
  --surface-raised: #fff;
  --fade: linear-gradient(to bottom, transparent, #fff);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 71px;
  scrollbar-gutter: stable;
}

::selection {
  background: color-mix(in srgb, var(--focus) 32%, transparent);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

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

button,
a,
input,
select,
summary {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px var(--focus);
}

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

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

button {
  border: 0;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--primary);
  color: var(--primary-fg);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.shell {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.mono,
.figure,
.section-number,
.app-kicker,
.meta-heading,
.sheet-step,
.command-key,
.node-index {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--border) 70%, transparent) 50%,
    transparent 100%
  );
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
}

.site-header.scrolled::after {
  opacity: 1;
}

.nav {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 42px;
}

.brand,
.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--neutral-state);
  color: var(--neutral-state);
}

.status-dot.md,
.brand .status-dot,
.mini-brand .status-dot {
  width: 10px;
  height: 10px;
}

.status-dot.up,
.status-dot[data-state="UP"] {
  background: var(--up);
  color: var(--up);
}

.status-dot.verifying {
  background: var(--verifying);
  color: var(--verifying);
}

.status-dot.down {
  background: var(--down);
  color: var(--down);
}

.status-dot.pulse::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  content: "";
  animation: status-pulse 2s ease-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  color: var(--fg-muted);
  font-size: 13px;
}

.nav-links a,
.footer a,
.text-link {
  color: var(--fg-muted);
  transition: color 150ms ease;
}

.nav-links a:hover,
.footer a:hover,
.text-link:hover {
  color: var(--fg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.button,
.icon-button,
.copy-button,
.text-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-weight: 500;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.button:active:not(:disabled),
.icon-button:active,
.copy-button:active {
  transform: scale(0.97);
}

.button svg,
.icon-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.button {
  padding: 0 16px;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.button.primary:hover {
  opacity: 0.9;
}

.button.primary:active:not(:disabled) {
  opacity: 0.8;
}

.button.secondary {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg);
}

.button.secondary:hover,
.icon-button:hover,
.copy-button:hover {
  border-color: var(--border-hover);
  background: var(--hover);
}

.button.compact {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  border-color: transparent;
  background: var(--chip-bg);
  color: var(--fg-faint);
  opacity: 1;
}

.monitor-sheet .button,
.dialog-card .button {
  padding: 0 10px;
}

.icon-button {
  position: relative;
  width: 36px;
  min-height: 36px;
  border: 1px solid var(--border-strong);
  background: transparent;
  font-size: 18px;
}

.icon-button[data-tooltip]::after,
.command-key[data-tooltip]::after,
.range-wrap[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 20;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--fg);
  content: attr(data-tooltip);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -3px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.icon-button[data-tooltip]:hover::after,
.icon-button[data-tooltip]:focus-visible::after,
.command-key[data-tooltip]:hover::after,
.command-key[data-tooltip]:focus-visible::after,
.range-wrap[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.menu-toggle {
  display: none;
}

.text-link,
.text-button {
  color: var(--fg-muted);
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.text-button {
  min-height: 32px;
  padding: 0 6px;
  background: transparent;
}

.hero {
  min-height: 960px;
  padding-top: clamp(55px, 7.5vw, 95px);
}

.hero-copy {
  max-width: 920px;
}

.eyebrow,
.section-number,
.figure,
.app-kicker,
.meta-heading {
  color: var(--fg-faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin-top: 18px;
  font-size: clamp(62px, 9vw, 112px);
  font-weight: 500;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

.lede {
  max-width: 630px;
  margin-top: 32px;
  color: var(--fg-muted);
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.hero-actions .text-link {
  margin-left: 8px;
}

.product-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--card-shadow);
}

.hero-dashboard {
  height: 570px;
  margin-top: 96px;
  scroll-margin-top: 95px;
  transform: perspective(1500px) rotateX(1.2deg);
  transform-origin: center top;
}

.app-bar {
  display: flex;
  height: 58px;
  align-items: center;
  gap: 28px;
  padding: 0 22px;
  border-bottom: 1px solid var(--border);
}

.app-brand {
  font-size: 14px;
}

.app-tabs {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 24px;
}

.app-tab {
  position: relative;
  padding: 0;
  background: transparent;
  color: var(--fg-muted);
  font-size: 12px;
}

.app-tab:hover,
.app-tab.active {
  color: var(--fg);
}

.app-tab.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--fg);
  content: "";
}

.command-key {
  position: relative;
  min-width: 34px;
  height: 28px;
  margin-left: auto;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--fg-muted);
  font-size: 11px;
}

.dashboard-body {
  padding: 32px 24px 80px;
}

.app-heading-row,
.simulator-header,
.sheet-heading,
.incident-header,
.database-heading,
.storage-overview,
.status-preview-head,
.email-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.app-heading-row h2,
.sheet-heading h3,
.simulator-header h3,
.incident-header h3,
.database-heading h3,
.agent-card h3,
.email-card h3 {
  margin-top: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.table-shell + .app-heading-row {
  margin-top: 32px;
}

.table-shell {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  scrollbar-width: none;
}

.table-shell::-webkit-scrollbar {
  display: none;
}

.monitor-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

.monitor-table th {
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.monitor-table th:first-child,
.monitor-table td:first-child {
  padding-left: 24px;
}

.monitor-table th:last-child,
.monitor-table td:last-child {
  padding-right: 24px;
}

.monitor-table td {
  height: 60px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  white-space: nowrap;
}

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

.monitor-table tbody tr {
  cursor: pointer;
  transition: background 150ms ease;
}

.monitor-table tbody tr:hover,
.monitor-table tbody tr:focus-within {
  background: var(--hover);
}

.monitor-table .numeric {
  text-align: right;
}

.status-cell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.monitor-name {
  display: block;
  font-weight: 500;
}

.monitor-url {
  display: block;
  max-width: 220px;
  overflow: hidden;
  margin-top: 3px;
  color: var(--fg-faint);
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  text-overflow: ellipsis;
}

.mini-timeline {
  display: flex;
  min-width: 170px;
  height: 22px;
  align-items: stretch;
  gap: 2px;
}

.timeline-segment {
  min-width: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border-strong);
  transition: background 350ms ease;
}

.timeline-segment.up {
  background: var(--up);
}
.timeline-segment.verifying {
  background: var(--verifying);
}
.timeline-segment.down {
  background: var(--down);
}

.frame-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100px;
  background: var(--fade);
  pointer-events: none;
}

.section-rule {
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.principles article {
  min-height: 520px;
  padding: 42px 32px;
}

.principles article + article {
  border-left: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.principles h3 {
  margin-top: 56px;
  font-size: 15px;
  font-weight: 500;
}

.principles p:last-child {
  max-width: 280px;
  margin-top: 10px;
  color: var(--fg-muted);
}

.principle-mark {
  display: block;
  width: 200px;
  height: 180px;
  margin: 84px auto 0;
  overflow: visible;
  color: var(--border-hover);
  transition: color 300ms ease;
}

.principle-mark .dot {
  fill: currentColor;
  stroke: none;
  transform-box: fill-box;
  transform-origin: center;
}

/* FIG 0.1 your infrastructure inside your perimeter */

.p-boundary {
  stroke-dasharray: 3 7;
  opacity: var(--o);
  --o: 0.8;
  transition: opacity 300ms ease;
}

.p-orbit {
  stroke: var(--fg-faint);
  stroke-dasharray: 0.05 0.95;
  stroke-width: 1.5;
  opacity: 0;
}

.p-ring {
  stroke: var(--fg-faint);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.p-server-g {
  transform-box: fill-box;
  transform-origin: center;
  transition: translate 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* FIG 0.2 one typed surface, three callers */

.r-wire {
  opacity: 0.7;
  transition: opacity 300ms ease;
}

.r-pulse {
  stroke: var(--fg-faint);
  stroke-dasharray: 0.14 0.86;
  stroke-width: 1.5;
  opacity: 0;
}

/* Scale anchored at the port edge so wires and dots stay connected */

.r-node-g,
.r-hub-g {
  transform-box: fill-box;
  transition: scale 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.r-node-g {
  transform-origin: 100% 50%;
}
.r-hub-g {
  transform-origin: 0% 50%;
}

/* FIG 0.3 compact the routine, preserve the failure */

.s-threshold {
  stroke-dasharray: 3 7;
  opacity: var(--o);
  --o: 0.45;
  transition: opacity 300ms ease;
}

.s-ticks {
  opacity: 0.7;
  transform-box: fill-box;
  transform-origin: bottom;
  transition: scale 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.s-climb {
  stroke: var(--fg-faint);
  stroke-dasharray: 0.14 0.86;
  stroke-width: 1.5;
  opacity: 0;
}

.s-halo {
  stroke: var(--fg-faint);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.s-head {
  fill: currentColor;
  transition: fill 300ms ease;
}

/* Anchored where the leader line meets the spike head */

.s-label-g {
  transform-box: fill-box;
  transform-origin: 0% 100%;
  transition: scale 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Idle motion, only once revealed */

@keyframes orbit-sweep {
  to {
    stroke-dashoffset: -1;
  }
}

@keyframes ring-pulse {
  0% {
    opacity: 0;
    scale: 0.35;
  }
  12% {
    opacity: 0.65;
  }
  40% {
    opacity: 0;
    scale: 1.9;
  }
  100% {
    opacity: 0;
    scale: 1.9;
  }
}

@keyframes wire-pulse {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  6% {
    opacity: 0.9;
  }
  26% {
    opacity: 0.9;
  }
  33% {
    stroke-dashoffset: 0.14;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0.14;
    opacity: 0;
  }
}

@keyframes halo-pulse {
  0% {
    opacity: 0.6;
    scale: 0.45;
  }
  55% {
    opacity: 0;
    scale: 1.8;
  }
  100% {
    opacity: 0;
    scale: 1.8;
  }
}

@keyframes spike-climb {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  42% {
    opacity: 0.95;
  }
  52% {
    stroke-dashoffset: 0.14;
    opacity: 0;
  }
  100% {
    stroke-dashoffset: 0.14;
    opacity: 0;
  }
}

@keyframes head-arrive {
  0%,
  48% {
    scale: 1;
  }
  55% {
    scale: 1.35;
  }
  70%,
  100% {
    scale: 1;
  }
}

.js article.is-visible .p-orbit {
  opacity: 0.85;
  transition: opacity 700ms ease 1300ms;
  animation: orbit-sweep 7s linear infinite;
}

.js article.is-visible .p-ring {
  animation: ring-pulse 5.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.6s infinite;
}

.js article.is-visible .r-pulse {
  animation: wire-pulse 5.4s cubic-bezier(0.4, 0, 0.4, 1) infinite;
}
.js article.is-visible .r-p1 {
  animation-delay: 1.4s;
}
.js article.is-visible .r-p2 {
  animation-delay: 3.2s;
}
.js article.is-visible .r-p3 {
  animation-delay: 5s;
}

.js article.is-visible .s-head {
  fill: var(--fg-faint);
  animation: head-arrive 5.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.6s infinite;
}

.js article.is-visible .s-climb {
  animation: spike-climb 5.2s cubic-bezier(0.4, 0, 0.4, 1) 1.6s infinite;
}
.js article.is-visible .s-halo {
  animation: halo-pulse 5.2s cubic-bezier(0.2, 0.7, 0.2, 1) 3.6s infinite;
}

.story {
  padding-block: clamp(110px, 15vw, 190px);
  scroll-margin-top: calc(95px - clamp(110px, 15vw, 190px));
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 10vw, 130px);
  align-items: start;
}

.section-intro h2,
.final-cta h2 {
  max-width: 540px;
  margin-top: 18px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 0.98;
}

.section-intro > p {
  max-width: 520px;
  padding-top: 34px;
  color: var(--fg-muted);
  font-size: clamp(18px, 2.1vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.scene-panel {
  position: relative;
  min-height: 650px;
  margin-top: 104px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 88px 88px;
}

.scene-context {
  position: absolute;
  inset: 100px 8% 0;
  opacity: 0.34;
}

.ghost-row {
  display: grid;
  grid-template-columns: 160px 1fr 120px;
  gap: 60px;
  padding: 30px;
  border-bottom: 1px solid var(--border);
}

.ghost-row span {
  height: 10px;
  border-radius: 999px;
  background: var(--border-strong);
}

.monitor-sheet {
  position: relative;
  z-index: 1;
  width: min(470px, calc(100% - 32px));
  margin: 70px auto;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--card-shadow);
}

.sheet-step {
  color: var(--fg-faint);
  font-size: 11px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  font-weight: 500;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg);
}

.field input:hover,
.field select:hover {
  border-color: var(--border-hover);
}

.field-grid,
.advanced-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.advanced {
  margin: 22px 0;
  border-block: 1px solid var(--border);
}

.advanced summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.advanced summary::-webkit-details-marker {
  display: none;
}
.advanced summary .chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.advanced[open] summary .chevron-icon {
  transform: rotate(180deg);
}
.advanced-fields {
  padding-bottom: 20px;
}
.advanced-fields .field {
  margin-top: 0;
}

.form-note {
  margin-top: 10px;
  color: var(--fg-faint);
  font-size: 12px;
  text-align: center;
}

.simulation-grid,
.cli-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 20px;
  margin-top: 104px;
}

.panel {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
}

.simulator,
.simulation-control {
  min-height: 410px;
  padding: 28px;
}

.status-badge,
.neutral-badge,
.health-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--fg-muted);
  font-size: 12px;
  font-weight: 500;
  transition:
    background 300ms ease,
    color 300ms ease;
}

.status-badge.up-state {
  background: var(--up-bg);
  color: var(--up-text);
}
.status-badge.verifying-state {
  background: var(--verifying-bg);
  color: var(--verifying-text);
}
.status-badge.down-state {
  background: var(--down-bg);
  color: var(--down-text);
}

.endpoint-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  margin-top: 30px;
  padding: 14px 0;
  border-block: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 12px;
}

.large-timeline {
  display: flex;
  height: 54px;
  gap: 3px;
  margin-top: 42px;
}

.large-timeline .timeline-segment {
  min-width: 5px;
  transform-origin: bottom;
  transition:
    background 350ms ease,
    transform 150ms ease,
    filter 150ms ease;
}

.large-timeline .timeline-segment:hover {
  transform: scaleY(1.08);
  filter: brightness(1.15);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--fg-faint);
  font-size: 10px;
}

.state-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 44px;
}

.state-step {
  position: relative;
  color: var(--fg-faint);
  text-align: center;
  transition: color 300ms ease;
}

.state-step::before {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 50%;
  left: -50%;
  height: 1px;
  background: var(--border-strong);
  content: "";
  transition: background 300ms ease;
}

.state-step:first-child::before {
  display: none;
}

.state-step span {
  position: relative;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  margin: 0 auto 9px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--border-hover);
  box-shadow: 0 0 0 1px var(--border-strong);
  transition: background 300ms ease;
}

.state-step small {
  font-size: 10px;
}
.state-step.complete span,
.state-step.active span {
  background: var(--fg);
}
.state-step.active {
  color: var(--fg);
}
.state-step.complete::before,
.state-step.active::before {
  background: var(--fg-muted);
}

.simulation-control {
  display: flex;
  flex-direction: column;
}

.simulation-control h3 {
  margin-top: 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.simulation-control > p:not(.app-kicker) {
  margin-top: 12px;
  color: var(--fg-muted);
}

.player-controls {
  display: flex;
  gap: 9px;
  margin-top: 40px;
}

.player-controls .player-play {
  flex: 1;
}

.player-step {
  width: 40px;
  min-height: 40px;
}

.player-play .icon-pause {
  display: none;
}
.player-play.playing .icon-pause {
  display: block;
}
.player-play.playing .icon-play {
  display: none;
}

.response-scene {
  position: relative;
  min-height: 700px;
  margin-top: 104px;
}

.incident-panel {
  width: 66%;
  min-height: 540px;
  padding: 30px;
}

.incident-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-block: 1px solid var(--border);
}

.incident-stats div {
  padding: 18px 0;
}

.incident-stats div + div {
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.incident-stats dt {
  color: var(--fg-faint);
  font-size: 11px;
  text-transform: uppercase;
}
.incident-stats dd {
  margin-top: 7px;
  font-size: 12px;
}

.event-trail {
  display: grid;
  gap: 0;
  margin-top: 26px;
}

.event-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  min-height: 51px;
  color: var(--fg-muted);
  font-size: 13px;
}

.event-item::before {
  position: absolute;
  top: 17px;
  bottom: -4px;
  left: 4px;
  width: 1px;
  background: var(--border-strong);
  content: "";
}

.event-item:last-child::before {
  display: none;
}
.event-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--border-hover);
}
.event-item.down-event .event-dot {
  background: var(--down);
}
.event-item.up-event .event-dot {
  background: var(--up);
}
.event-item time {
  color: var(--fg-faint);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
}

.empty-trail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 180px;
  color: var(--fg-muted);
}

.status-preview {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 48%;
  min-height: 300px;
  padding: 24px;
  background: var(--surface-raised);
  box-shadow: var(--card-shadow);
}

.status-preview-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 11px;
}

.public-state {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 16px;
  border-radius: 6px;
  background: var(--up-bg);
  color: var(--up-text);
  transition:
    background 300ms ease,
    color 300ms ease;
}

.public-state.verifying-state {
  background: var(--verifying-bg);
  color: var(--verifying-text);
}
.public-state.down-state {
  background: var(--down-bg);
  color: var(--down-text);
}

.public-monitor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
}

.public-monitor div {
  display: grid;
  gap: 3px;
}
.public-monitor span {
  color: var(--fg-muted);
  font-size: 12px;
}
.public-monitor .mono {
  color: var(--fg-faint);
  font-size: 10px;
}

.email-card {
  position: absolute;
  z-index: 2;
  right: 0;
  top: 84px;
  width: min(360px, 34%);
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--popover-shadow);
}

.email-meta {
  color: var(--fg-faint);
  font-size: 10px;
}

.email-card h3 {
  margin-top: 24px;
}
.email-card > p {
  margin-top: 10px;
  color: var(--fg-muted);
}

.email-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.terminal {
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  height: 54px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 11px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
}

.terminal-bar .copy-button {
  min-height: 28px;
  margin-left: auto;
  padding: 0 9px;
  font-size: 10px;
}

.terminal-bar .copy-button svg {
  width: 12px;
  height: 12px;
}

.output-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.output-toggle button {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 4px;
  background: transparent;
  color: var(--fg-faint);
  font-size: 10px;
}

.output-toggle button.active {
  background: var(--hover);
  color: var(--fg);
}

.terminal-body {
  padding: 18px;
  background: var(--code-bg);
}

.command-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.command {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 10px;
}

.command span:last-child {
  color: var(--fg-faint);
}
.command.active {
  border-color: var(--border-hover);
  color: var(--fg);
}

.terminal-output {
  min-height: 220px;
  margin: 18px 0 0;
  overflow: auto;
  color: var(--fg);
  font:
    12px / 1.75 "Geist Mono",
    monospace;
  white-space: pre-wrap;
}

.terminal-output .t-prompt {
  color: var(--fg-faint);
}
.terminal-output .t-up {
  color: var(--up-text);
}
.terminal-output .t-down {
  color: var(--down-text);
}
.terminal-output .t-verifying {
  color: var(--verifying-text);
}
.terminal-output .t-muted {
  color: var(--fg-faint);
}

.copy-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 11px;
}

.agent-card {
  align-self: stretch;
  padding: 28px;
}

.agent-card > p:not(.app-kicker) {
  margin: 14px 0 28px;
  color: var(--fg-muted);
}

.agent-prompt {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--code-bg);
}

.agent-prompt code {
  display: block;
  color: var(--fg-muted);
  font:
    11px / 1.7 "Geist Mono",
    monospace;
}

.agent-prompt .copy-button {
  margin-top: 14px;
}

.database-panel {
  margin-top: 104px;
  padding: 30px;
}

.database-heading > div > p:last-child {
  margin-top: 6px;
  color: var(--fg-muted);
}

.health-label.healthy {
  background: var(--up-bg);
  color: var(--up-text);
}
.health-label.watching,
.health-label.optimizing,
.health-label.protecting {
  background: var(--verifying-bg);
  color: var(--verifying-text);
}
.health-label.critical {
  background: var(--down-bg);
  color: var(--down-text);
}

.storage-overview {
  margin-top: 40px;
}

.storage-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.storage-stat strong {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.storage-stat span {
  color: var(--fg-muted);
}

.storage-bar {
  height: 9px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--border-strong);
}

.storage-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--up);
  transition:
    width 300ms ease,
    background 150ms ease;
}

.storage-bar span.watching,
.storage-bar span.optimizing,
.storage-bar span.protecting {
  background: var(--verifying);
}
.storage-bar span.critical {
  background: var(--down);
}

.storage-range {
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.storage-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-strong) 45%, transparent);
}

.storage-range::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -6.5px;
  appearance: none;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--fg);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.storage-range:hover::-webkit-slider-thumb,
.storage-range:active::-webkit-slider-thumb {
  box-shadow: 0 0 0 1px var(--border-hover);
  transform: scale(1.15);
}

.storage-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border-strong) 45%, transparent);
}

.storage-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--fg);
  transition: box-shadow 150ms ease;
}

.storage-range:hover::-moz-range-thumb,
.storage-range:active::-moz-range-thumb {
  box-shadow: 0 0 0 1px var(--border-hover);
}

.range-wrap {
  position: relative;
  margin-top: 16px;
}

.range-wrap[data-tooltip]::after {
  left: var(--thumb-x, 50%);
}

.database-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.breakdown-list,
.retention-list {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.breakdown-list > div {
  display: grid;
  grid-template-columns: 120px 1fr 56px;
  gap: 12px;
  align-items: center;
  color: var(--fg-muted);
  font-size: 12px;
}

.breakdown-list .bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--border-strong);
}

.breakdown-list .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--fg-muted);
}

.retention-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--fg-muted);
  font-size: 12px;
}

.retention-list dd {
  color: var(--fg);
  text-align: right;
}

.architecture-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 110px 1fr 150px 1fr;
  align-items: center;
  min-height: 500px;
  margin-top: 100px;
  padding: 60px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
}

.system-node {
  position: relative;
  display: flex;
  min-height: 130px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  text-align: left;
  transition:
    border-color 150ms ease,
    transform 150ms ease;
}

.system-node:hover,
.system-node:focus-visible {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.system-node strong {
  font-size: 16px;
  font-weight: 500;
}
.system-node small {
  color: var(--fg-muted);
}
.system-node .status-dot {
  position: absolute;
  top: 16px;
  right: 16px;
}
.node-index {
  color: var(--fg-faint);
  font-size: 10px;
}

.pulse-node {
  background: var(--fg);
  color: var(--bg);
}
.pulse-node small,
.pulse-node .node-index {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}

.connector {
  position: relative;
  height: 1px;
  background: var(--border-hover);
}
.connector i {
  position: absolute;
  z-index: 1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 2px var(--bg);
}
.connector.first i {
  top: -2px;
  left: 50%;
  animation: connector-flow 2.4s linear infinite;
}

.connector.horizontal.first {
  margin-inline: 16px;
}

.connector.branch {
  margin-left: 16px;
  margin-right: 30px;
}

.connector.branch::after {
  position: absolute;
  top: -130px;
  right: 0;
  bottom: -130px;
  width: 1px;
  background: var(--border-hover);
  content: "";
}

.connector.branch i {
  right: -2px;
  animation: dot-blink 2.4s ease-in-out infinite;
}
.connector.branch i:nth-child(1) {
  top: -132px;
}
.connector.branch i:nth-child(2) {
  top: -2px;
  animation-delay: 400ms;
}
.connector.branch i:nth-child(3) {
  top: 128px;
  animation-delay: 800ms;
}

.destination-nodes {
  display: grid;
  gap: 18px;
}

.destination-nodes .system-node {
  min-height: 110px;
}

.system-description {
  position: absolute;
  right: 60px;
  bottom: 25px;
  left: 60px;
  color: var(--fg-faint);
  font:
    11px "Geist Mono",
    monospace;
  text-align: center;
}

.architecture-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.architecture-principles > div {
  min-height: 150px;
  padding: 32px;
}

.architecture-principles > div + div {
  border-left: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.architecture-principles > div:nth-child(3n + 1) {
  border-left: 0;
}
.architecture-principles > div:nth-child(n + 4) {
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.architecture-principles span {
  color: var(--fg-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.architecture-principles strong {
  display: block;
  margin-top: 20px;
  font-weight: 500;
}
.architecture-principles p {
  margin-top: 7px;
  color: var(--fg-muted);
}

.final-cta {
  text-align: center;
  scroll-margin-top: calc(95px - clamp(140px, 18vw, 240px));
}

.final-cta .shell {
  padding-block: clamp(140px, 18vw, 240px);
}

.final-cta h2 {
  max-width: 820px;
  margin-inline: auto;
}
.final-cta > div > p:nth-child(3) {
  margin-top: 28px;
  color: var(--fg-muted);
  font-size: 18px;
}
.hero-actions.centered {
  justify-content: center;
}

.footer {
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 1;
}
.footer-inner .brand {
  color: var(--fg);
  font-size: 14px;
}
.footer-inner div {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
.footer-inner div a {
  color: var(--fg-muted);
}

.monitor-dialog {
  width: min(500px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--fg);
}

.monitor-dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(4px);
}

.dialog-card {
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--modal-shadow);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 28px;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 300px;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  box-shadow: var(--popover-shadow);
  color: var(--fg);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.toast.visible {
  opacity: 1;
  transform: none;
}

@keyframes status-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(3);
  }
}

@keyframes connector-flow {
  from {
    transform: translateX(-52px);
  }
  to {
    transform: translateX(52px);
  }
}

@media (max-width: 980px) {
  .nav {
    gap: 18px;
  }
  .nav-links {
    gap: 17px;
  }
  .hero {
    min-height: 840px;
  }
  .hero-dashboard {
    height: 450px;
  }
  .principles article {
    min-height: 440px;
    padding: 30px 22px;
  }
  .principle-mark {
    width: 158px;
    height: 142px;
    margin-top: 64px;
  }
  .simulation-grid,
  .cli-grid {
    grid-template-columns: 1fr;
  }
  .simulation-control {
    min-height: auto;
  }
  .response-scene {
    display: grid;
    min-height: 0;
    gap: 16px;
  }
  .incident-panel,
  .status-preview,
  .email-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
  }
  .status-preview {
    order: 3;
  }
  .email-card {
    order: 2;
  }
  .architecture-map {
    grid-template-columns: 1fr 60px 1fr 80px 1fr;
    padding-inline: 28px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 61px;
  }
  .shell {
    width: min(100% - 28px, 1200px);
  }
  .nav {
    min-height: 62px;
    gap: 12px;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    width: auto;
    margin: 0;
    padding: 6px 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--popover-shadow);
    font-size: 15px;
  }
  .nav-links.open {
    display: grid;
    gap: 2px;
    animation: menu-in 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .nav-links a {
    padding: 13px 10px;
    border-radius: 8px;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--hover);
    color: var(--fg);
  }
  .nav-links .menu-cta {
    display: inline-flex;
    margin-top: 10px;
    padding: 0 16px;
  }
  .nav-links .menu-cta:hover {
    background: var(--primary);
  }
  .menu-toggle {
    display: inline-flex;
  }
  .hero {
    min-height: 770px;
    padding-top: 56px;
  }
  h1 {
    font-size: clamp(52px, 17vw, 82px);
  }
  .lede {
    margin-top: 24px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .text-link {
    width: 100%;
    margin: 6px 0 0;
  }
  .hero-dashboard {
    height: 400px;
    margin-top: 70px;
    scroll-margin-top: 60px;
  }
  .app-tabs {
    display: none;
  }
  .dashboard-body {
    padding: 22px 14px 60px;
  }
  .principles {
    grid-template-columns: 1fr;
  }
  .principles article {
    min-height: 410px;
  }
  .principles article + article {
    border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    border-left: 0;
  }
  .principles h3 {
    margin-top: 24px;
  }
  .principle-mark {
    margin-top: 46px;
  }
  .story {
    padding-block: 100px;
    scroll-margin-top: -40px;
  }
  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .section-intro > p {
    padding-top: 0;
  }
  .scene-panel,
  .simulation-grid,
  .response-scene,
  .cli-grid,
  .database-panel,
  .architecture-map {
    margin-top: 66px;
  }
  .field-grid,
  .advanced-fields {
    grid-template-columns: 1fr;
  }
  .simulator,
  .simulation-control {
    padding: 20px;
  }
  .state-step small {
    display: none;
  }
  .response-scene {
    display: grid;
    min-height: 0;
    gap: 16px;
  }
  .incident-panel,
  .status-preview,
  .email-card {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: auto;
  }
  .incident-panel {
    padding: 22px;
  }
  .incident-stats {
    grid-template-columns: 1fr;
  }
  .incident-stats div + div {
    border-top: 1px solid var(--border);
    border-left: 0;
    padding-left: 0;
  }
  .status-preview {
    order: 3;
  }
  .email-card {
    order: 2;
  }
  .database-panel {
    padding: 22px;
  }
  .database-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .architecture-map {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px;
  }
  .connector {
    width: 1px;
    height: 42px;
    margin: auto;
  }
  .connector.horizontal.first {
    margin-inline: auto;
  }
  .connector.branch {
    display: none;
  }
  .destination-nodes {
    width: 100%;
  }
  .system-description {
    position: static;
    grid-row: auto;
  }
  .architecture-principles {
    grid-template-columns: 1fr;
  }
  .architecture-principles > div + div {
    border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    border-left: 0;
  }
  .footer {
    padding: 64px 0 72px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
  .footer-inner .brand {
    font-size: 21px;
    gap: 12px;
  }
  .footer-inner .brand .status-dot {
    width: 11px;
    height: 11px;
  }
  .footer-inner p {
    margin: 0;
    font-size: 14px;
  }
  .footer-inner div {
    margin: 26px 0 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
  }
  .footer-inner div a {
    padding: 6px 0;
    color: var(--fg);
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero-actions .button {
    width: 100%;
  }
  .hero-actions .text-link {
    justify-content: center;
  }
  .app-heading-row {
    align-items: flex-end;
  }
  .monitor-sheet {
    padding: 22px;
  }
  .endpoint-line {
    grid-template-columns: auto 1fr;
  }
  .endpoint-line span:last-child {
    grid-column: 2;
  }
  .breakdown-list > div {
    grid-template-columns: 105px 1fr 48px;
    gap: 8px;
  }
  .terminal-body {
    padding: 12px;
  }
  .command-list {
    display: grid;
  }
  .command {
    justify-content: space-between;
  }
}

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

/* ---- Icons ---- */

.github-mark {
  width: 16px;
  height: 16px;
}

.arrow-icon {
  width: 13px;
  height: 13px;
  transition: transform 150ms ease;
}

.text-link:hover .arrow-icon {
  transform: translate(1px, -1px);
}

.app-tab .arrow-icon {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}

.theme-toggle-icon {
  position: absolute;
  transition:
    opacity 250ms ease,
    transform 400ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="dark"] .icon-sun {
  opacity: 1;
  transform: none;
}
[data-theme="dark"] .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
[data-theme="light"] .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
[data-theme="light"] .icon-moon {
  opacity: 1;
  transform: none;
}

.menu-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 250ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-line-top {
  transform: translateY(2.5px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-line-bottom {
  transform: translateY(-2.5px) rotate(-45deg);
}

.field select {
  appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23898989' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}

.copy-button svg {
  width: 13px;
  height: 13px;
}

.copy-button.success {
  border-color: color-mix(in srgb, var(--up) 45%, transparent);
  background: var(--up-bg);
  color: var(--up-text);
}

/* ---- Brand ---- */

.brand .status-dot {
  background: var(--fg);
  color: var(--fg);
}

.brand > .status-dot::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  content: "";
  animation: soft-pulse 3s ease-out infinite;
}

/* ---- Scroll reveal ---- */

.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity 700ms ease,
    translate 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

.js .principles article[data-reveal]:nth-child(2),
.js .simulation-control[data-reveal],
.js .status-preview[data-reveal],
.js .agent-card[data-reveal] {
  transition-delay: 120ms;
}

.js .principles article[data-reveal]:nth-child(3),
.js .email-card[data-reveal] {
  transition-delay: 240ms;
}

.js article[data-reveal] .principle-mark .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1000ms cubic-bezier(0.5, 0, 0.2, 1)
    var(--d, 0ms);
}

.js article[data-reveal].is-visible .principle-mark .draw {
  stroke-dashoffset: 0;
}

.js article[data-reveal] .principle-mark .fade {
  opacity: 0;
  transition: opacity 800ms ease var(--d, 0ms);
}

.js article[data-reveal].is-visible .principle-mark .fade {
  opacity: var(--o, 1);
}

.js article[data-reveal] .principle-mark .dot {
  opacity: 0;
  scale: 0.3;
  transition:
    opacity 400ms ease var(--d, 0ms),
    scale 550ms cubic-bezier(0.2, 0.7, 0.3, 1.35) var(--d, 0ms);
}

.js article[data-reveal].is-visible .principle-mark .dot {
  opacity: 1;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js article[data-reveal] .principle-mark .draw {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    transition: none;
  }

  .js article[data-reveal] .principle-mark .fade,
  .js article[data-reveal] .principle-mark .dot {
    opacity: var(--o, 1);
    scale: none;
    transition: none;
  }

  .principle-mark .p-orbit,
  .principle-mark .p-ring,
  .principle-mark .r-pulse,
  .principle-mark .s-climb,
  .principle-mark .s-halo,
  .principle-mark .s-head {
    animation: none !important;
  }

  .js article.is-visible .p-orbit {
    opacity: 0;
  }
  .js article.is-visible .s-head {
    fill: var(--fg-faint);
  }
}

/* ---- Navigation ---- */

.nav-links a.active {
  color: var(--fg);
}

/* ---- Demo micro-interactions ---- */

.terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  background: var(--fg);
  vertical-align: -2px;
  animation: cursor-blink 1s steps(2, jump-none) infinite;
}

.event-item.event-enter {
  animation: event-in 450ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.email-card.email-pop {
  animation: email-pop 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

tr.row-enter {
  animation: row-flash 1.4s ease;
}

.monitor-dialog[open] {
  animation: dialog-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.monitor-dialog[open]::backdrop {
  animation: backdrop-in 280ms ease;
}

.system-node.active {
  border-color: var(--border-hover);
}

.system-description.fade-in {
  animation: desc-fade 350ms ease;
}

/* ---- Keyframes ---- */

@keyframes soft-pulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@keyframes dot-blink {
  0%,
  100% {
    background: color-mix(in srgb, var(--up) 35%, var(--bg));
  }
  50% {
    background: var(--up);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes event-in {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
}

@keyframes email-pop {
  0% {
    transform: scale(0.97) translateY(6px);
  }
}

@keyframes row-flash {
  0% {
    opacity: 0;
    background: var(--up-bg);
  }
  30% {
    opacity: 1;
  }
  100% {
    background: transparent;
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
}

@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}

@keyframes desc-fade {
  from {
    opacity: 0;
  }
}

/* ---- Architecture zoom detail ---- */

.architecture-map > :not(.system-detail) {
  transition: opacity 400ms ease;
}

.architecture-map > .system-node {
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    opacity 400ms ease;
}

.architecture-map.zoomed > :not(.system-detail) {
  opacity: 0.1;
  pointer-events: none;
}

.system-detail[hidden] {
  display: none;
}

.system-detail {
  position: absolute;
  z-index: 5;
  inset: -1px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--modal-shadow);
  transform-origin: top left;
  will-change: transform;
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.system-detail h3 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.detail-copy {
  max-width: 580px;
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.55;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 640px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.detail-stats dt {
  color: var(--fg-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-stats dd {
  margin-top: 8px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
}

.detail-flow {
  margin-top: 28px;
  color: var(--fg-faint);
  font-size: 11px;
}

@media (max-width: 760px) {
  .system-detail {
    justify-content: flex-start;
    padding-top: 64px;
  }
  .detail-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ---- Command palette ---- */

.command-key[data-tooltip]::after {
  right: 0;
  left: auto;
  transform: translateY(-3px);
}

.command-key[data-tooltip]:hover::after,
.command-key[data-tooltip]:focus-visible::after {
  transform: translateY(0);
}

.command-palette {
  width: min(560px, calc(100% - 28px));
  margin-top: 12vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
}

.command-palette::backdrop {
  background: rgb(0 0 0 / 72%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.command-palette[open] {
  animation: dialog-in 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.command-palette[open]::backdrop {
  animation: backdrop-in 280ms ease;
}

.palette-card {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--modal-shadow);
}

.palette-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-faint);
}

.palette-input-row svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.palette-input-row input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--fg);
  outline: none;
}

.palette-input-row input::placeholder {
  color: var(--fg-faint);
}

.palette-input-row kbd {
  padding: 3px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
}

.palette-list {
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.palette-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 13px;
}

.palette-item.selected {
  background: var(--hover);
  color: var(--fg);
}

.palette-item .hint {
  color: var(--fg-faint);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.palette-empty {
  padding: 22px;
  color: var(--fg-faint);
  font-size: 13px;
  text-align: center;
}

/* ---- Thin scrollbars ---- */

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

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--border-hover);
  background-clip: content-box;
}

html,
.palette-list,
.terminal-output {
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

/* ---- Palette input (borderless, cmdk-style) ---- */

.palette-input-row input:focus,
.palette-input-row input:focus-visible {
  box-shadow: none;
}

/* ---- Status page section ---- */

.status-frame {
  max-width: 860px;
  margin: 104px auto 0;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-faint);
}

.browser-bar .terminal-dots {
  flex: 0 0 auto;
}

.url-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-inline: auto;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--fg-muted);
  font-size: 11px;
}

.url-pill svg {
  width: 11px;
  height: 11px;
}

.status-page-body {
  max-width: 660px;
  margin-inline: auto;
  padding: 40px 24px 44px;
}

.sp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.sp-head h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sp-updated {
  color: var(--fg-faint);
  font-size: 11px;
}

.sp-banner {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 300ms ease,
    color 300ms ease,
    border-color 300ms ease;
}

.sp-banner.up-state {
  border-color: color-mix(in srgb, var(--up) 40%, transparent);
  background: var(--up-bg);
  color: var(--up-text);
}

.sp-banner.verifying-state {
  border-color: color-mix(in srgb, var(--verifying) 40%, transparent);
  background: var(--verifying-bg);
  color: var(--verifying-text);
}

.sp-banner.down-state {
  border-color: color-mix(in srgb, var(--down) 40%, transparent);
  background: var(--down-bg);
  color: var(--down-text);
}

.sp-incident {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--down) 40%, transparent);
  border-radius: 12px;
  background: var(--down-bg);
}

.sp-incident-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}

.sp-incident p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 13px;
}

.sp-incident .sp-cause {
  color: var(--down-text);
}

.sp-card {
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 14%);
}

.sp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 12px;
}

.sp-card-head h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.sp-link {
  color: var(--fg-muted);
  font-size: 12px;
}

.sp-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(200px, 1.4fr) 72px;
  gap: 14px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.sp-row-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}

.sp-row-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-row .mini-timeline {
  height: 18px;
  min-width: 0;
}

.sp-row-uptime {
  text-align: right;
}

.sp-recent-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
}

.sp-recent-row .sp-row-name {
  color: var(--fg);
}

.sp-empty {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 13px;
}

.sp-powered {
  margin-top: 24px;
  color: var(--fg-faint);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .status-frame {
    margin-top: 66px;
  }
  .status-page-body {
    padding: 28px 14px 32px;
  }
  .sp-row {
    grid-template-columns: 1fr 72px;
  }
  .sp-row .mini-timeline {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .sp-recent-row {
    grid-template-columns: 1fr auto;
  }
  .sp-recent-row time {
    display: none;
  }
}

/* ---- System node hover caption + arrow ---- */

.node-caption {
  position: relative;
  display: block;
  overflow: hidden;
}

.node-caption small {
  display: block;
  transition:
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 200ms ease;
}

.node-caption .caption-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(120%);
}

.system-node:hover .node-caption small:first-child,
.system-node:focus-visible .node-caption small:first-child {
  opacity: 0;
  transform: translateY(-120%);
}

.system-node:hover .caption-hover,
.system-node:focus-visible .caption-hover {
  opacity: 1;
  transform: none;
}

.node-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 13px;
  height: 13px;
  color: var(--fg-muted);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition:
    opacity 200ms ease,
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pulse-node .node-arrow {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}

.system-node:hover .node-arrow,
.system-node:focus-visible .node-arrow {
  opacity: 1;
  transform: none;
}

.system-node > .status-dot {
  transition: opacity 200ms ease;
}

.system-node:hover > .status-dot,
.system-node:focus-visible > .status-dot {
  opacity: 0;
}

/* ---- Demo control + agent card refinements ---- */

.simulation-control,
.agent-card {
  border: 0;
  box-shadow: none;
}

#step-back {
  transition:
    width 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
    margin 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 200ms ease,
    border-color 150ms ease,
    background 150ms ease;
  overflow: hidden;
}

#step-back.hidden-step {
  width: 0;
  min-width: 0;
  margin-right: -9px;
  padding: 0;
  border-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.player-step .icon-restart {
  display: none;
}
#step-forward.is-reset .icon-next {
  display: none;
}
#step-forward.is-reset .icon-restart {
  display: block;
}

/* ---- Dependencies (4.0 Attribute) ---- */

.dependency-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  margin-top: 104px;
}

.dep-sheet,
.dep-table {
  padding: 28px;
}

.dep-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  margin-top: 22px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--fg-faint);
}

.dep-search svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.dep-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  outline: none;
}

.dep-search input:focus,
.dep-search input:focus-visible {
  box-shadow: none;
}

.dep-search input::placeholder {
  color: var(--fg-faint);
}

.dep-group {
  margin-top: 22px;
  color: var(--fg-faint);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dep-catalog-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

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

.dep-catalog-name {
  overflow: hidden;
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dep-region {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-faint);
  font-size: 10px;
}

.dep-add {
  min-height: 28px;
  padding: 0 12px;
  font-size: 11px;
}

.dep-add:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--fg-faint);
  cursor: default;
}

.dep-empty {
  padding: 20px 0;
  color: var(--fg-faint);
  font-size: 13px;
  text-align: center;
}

.dep-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--fg-muted);
}

.dep-mark-mono {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--fg-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
}

.dep-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.provider-tag {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--fg-faint);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dep-rows {
  margin-top: 18px;
}

.dep-row {
  display: grid;
  grid-template-columns: 96px minmax(150px, 1.1fr) minmax(110px, 1fr) 104px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.dep-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.dep-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dep-name-text {
  display: grid;
  min-width: 0;
}

.dep-name-text strong {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dep-name-text small {
  color: var(--fg-faint);
  font-size: 11px;
}

.dep-timeline {
  height: 16px;
}

.dep-incident {
  overflow: hidden;
  color: var(--fg-faint);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.dep-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  color: var(--fg-faint);
  font-size: 11px;
}

.logo-strip {
  overflow: hidden;
  margin-top: 72px;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-marquee 44s linear infinite;
}

.logo-strip:hover .logo-track {
  animation-play-state: paused;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: 56px;
  color: var(--fg-faint);
  font-size: 14px;
  transition: color 200ms ease;
  white-space: nowrap;
}

.logo-item:hover {
  color: var(--fg);
}

.logo-item .dep-mark {
  width: 22px;
  height: 22px;
  color: currentColor;
}

.logo-item .dep-mark-mono {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  font-size: 11px;
}

@keyframes logo-marquee {
  to {
    transform: translateX(-50%);
  }
}

.logo-caption {
  margin-top: 44px;
  color: var(--fg-faint);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.overlap-card {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--code-bg);
  animation: event-in 450ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.overlap-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.overlap-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.overlap-copy {
  min-width: 0;
  flex: 1;
}

.overlap-copy strong {
  font-size: 13px;
  font-weight: 500;
}

.overlap-copy p {
  margin-top: 2px;
  color: var(--fg-muted);
  font-size: 12px;
}

.overlap-link {
  flex: 0 0 auto;
  font-size: 12px;
}

@media (max-width: 980px) {
  .dependency-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dependency-grid {
    margin-top: 66px;
  }
  .dep-sheet,
  .dep-table {
    padding: 20px;
  }
  .dep-row {
    grid-template-columns: 90px 1fr;
  }
  .dep-timeline {
    grid-column: 1 / -1;
  }
  .dep-incident {
    text-align: left;
  }
  .overlap-line {
    flex-wrap: wrap;
  }
  .logo-strip {
    gap: 12px 18px;
  }
}

/* ---- Data breakdown hover ---- */

.breakdown-list > div {
  transition: opacity 250ms ease;
}

.breakdown-list:hover > div:not(:hover) {
  opacity: 0.45;
}

.breakdown-list .bar i {
  transition:
    background 250ms ease,
    width 300ms ease;
}

.breakdown-list > div:hover .bar i {
  background: var(--fg);
}

.breakdown-value {
  position: relative;
  display: block;
  overflow: hidden;
}

.breakdown-value span {
  display: block;
  transition:
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 200ms ease;
}

.breakdown-value .value-pct {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(120%);
}

.breakdown-list > div:hover .value-mb {
  opacity: 0;
  transform: translateY(-120%);
}

.breakdown-list > div:hover .value-pct {
  opacity: 1;
  transform: none;
}

/* ---- Terminal typed input ---- */

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  font:
    12px / 1.75 "Geist Mono",
    ui-monospace,
    monospace;
}

.terminal-prompt .t-prompt {
  color: var(--fg-faint);
}

.terminal-prompt input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  caret-color: var(--fg);
  color: var(--fg);
  font: inherit;
  outline: none;
}

.terminal-prompt input:focus,
.terminal-prompt input:focus-visible {
  box-shadow: none;
}

.terminal-prompt input::placeholder {
  color: var(--fg-faint);
  opacity: 0.7;
}

.terminal-output {
  max-height: 300px;
}

.terminal-output {
  scrollbar-width: none;
}

.terminal-output::-webkit-scrollbar {
  display: none;
}

/* ---- System detail visuals ---- */

.system-detail {
  overflow-y: auto;
}

.detail-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.detail-inner.has-visual {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
}

.detail-text,
.detail-visual {
  min-width: 0;
}

.dv-frame {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--code-bg);
}

.dv-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-faint);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dv-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--up-text);
  letter-spacing: 0;
  text-transform: none;
}

.dv-rows {
  padding: 5px 0;
}

.dv-row {
  display: flex;
  gap: 12px;
  overflow: hidden;
  padding: 6px 14px;
  color: var(--fg-muted);
  font:
    11px / 1.5 "Geist Mono",
    ui-monospace,
    monospace;
  white-space: nowrap;
}

.dv-row time {
  flex: 0 0 auto;
  color: var(--fg-faint);
}

.dv-ok {
  color: var(--up-text);
  flex: 0 0 auto;
}
.dv-path {
  overflow: hidden;
  color: var(--fg);
  text-overflow: ellipsis;
}
.dv-msg {
  overflow: hidden;
  margin-left: auto;
  color: var(--fg-faint);
  text-overflow: ellipsis;
}

.dv-code {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  color: var(--fg-muted);
  font:
    11px / 1.7 "Geist Mono",
    ui-monospace,
    monospace;
  white-space: pre;
}

.dv-code .dv-key {
  color: var(--fg-faint);
}
.dv-code .dv-str {
  color: var(--fg);
}
.dv-code .dv-num {
  color: var(--up-text);
}
.dv-code .dv-tbl {
  color: var(--fg);
  font-weight: 600;
}
.dv-code .dv-type {
  color: var(--fg-faint);
}

@media (max-width: 980px) {
  .detail-inner.has-visual {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .detail-visual {
    display: none;
  }
}

.dv-row {
  align-items: center;
}

/* ---- Pulse detail: browser + CLI duo ---- */

.dv-duo {
  position: relative;
  padding-bottom: 76px;
}

.dv-duo .dv-browser {
  position: relative;
  z-index: 1;
  width: 88%;
}

.dv-duo .dv-terminal {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 72%;
  background: var(--bg);
  box-shadow: var(--popover-shadow);
}

.dep-catalog {
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: none;
}

.dep-catalog::-webkit-scrollbar {
  display: none;
}

/* ---- Mobile menu ---- */

/* biome-ignore lint/style/noDescendingSpecificity: base hide rule stays first, the responsive override lives in the mobile media query */
.menu-cta {
  display: none;
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---- Command palette v2 ---- */

.palette-group {
  padding: 11px 12px 5px;
  color: var(--fg-faint);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.palette-item {
  justify-content: flex-start;
  gap: 11px;
}

.palette-icon {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--fg-faint);
}

.palette-icon svg {
  width: 100%;
  height: 100%;
}

.palette-item.selected .palette-icon {
  color: var(--fg);
}

.palette-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palette-label b {
  color: var(--fg);
  font-weight: 600;
}

.palette-enter {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.palette-item.selected .palette-enter {
  opacity: 1;
}

.palette-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  color: var(--fg-faint);
  font-size: 11px;
}

.palette-keys {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.palette-keys kbd {
  padding: 2px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
}

.palette-keys span {
  margin-right: 6px;
}

/* ---- Header icon buttons: circular, borderless ---- */

.nav-actions .icon-button {
  width: 38px;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.nav-actions .icon-button:hover {
  border-color: transparent;
  background: var(--hover);
}

.nav-actions .icon-button svg {
  width: 18px;
  height: 18px;
}

/* ---- Security section (9.0 Harden) ---- */

.security-scene {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(0, 2fr) minmax(
      190px,
      0.75fr
    );
  gap: 40px;
  align-items: center;
  margin-top: 104px;
}

.security-callouts {
  display: grid;
  gap: 44px;
}

.callout h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
}

.callouts-left .callout h3::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-strong);
}

.callouts-right .callout {
  text-align: right;
}

.callouts-right .callout h3::before {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-strong);
}

.callout p {
  margin-top: 8px;
  color: var(--fg-muted);
  font-size: 13px;
}

.security-window {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  box-shadow: var(--card-shadow);
}

.security-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  background: var(--code-bg);
}

.security-tree {
  display: grid;
  gap: 2px;
  align-content: start;
  padding: 14px 10px;
  border-right: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-faint);
}

.security-tree button {
  padding: 5px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: nowrap;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.security-tree button:hover {
  background: var(--hover);
  color: var(--fg-muted);
}

.security-tree .active,
.security-tree .active:hover {
  background: var(--hover);
  color: var(--fg);
}

.security-trace {
  padding: 16px 18px;
}

.security-trace .t-label {
  color: var(--fg-faint);
}

.security-blocked {
  border-top: 1px solid var(--border);
  padding: 12px 18px 16px;
}

.blocked-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.blocked-head .mono {
  color: var(--fg-faint);
  font-size: 10px;
  font-weight: 400;
}

.blocked-row {
  display: flex;
  gap: 9px;
  padding: 4px 0;
  color: var(--fg-muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}

.blocked-why {
  margin-left: auto;
  color: var(--fg-faint);
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1100px) {
  .security-scene {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .security-callouts {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .callouts-left {
    order: 2;
  }
  .security-window {
    order: 1;
  }
  .callouts-right {
    order: 3;
  }
  .callouts-right .callout {
    text-align: left;
  }
  .callouts-right .callout h3::before {
    display: none;
  }
  .callouts-left .callout h3::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .security-scene {
    margin-top: 66px;
  }
  .security-callouts {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .security-tree {
    display: none;
  }
  .security-body {
    grid-template-columns: 1fr;
  }
  .blocked-row {
    white-space: normal;
  }
  .blocked-why {
    margin-left: 0;
  }
}

.status-dot.info {
  background: var(--focus);
  color: var(--focus);
}

.security-window .dv-live {
  color: var(--focus);
}

.security-trace {
  min-height: 206px;
}

.security-trace.fade-in {
  animation: desc-fade 250ms ease;
}

.callout code {
  padding: 1px 5px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--code-bg);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
}

.security-docs {
  margin-top: 64px;
  color: var(--fg-muted);
  text-align: center;
}

.security-docs .text-link {
  margin-left: 8px;
  color: var(--fg);
}

/* ---- Demo control hint ---- */

.control-hint {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  color: var(--fg-faint);
  font-size: 12px;
  transition: color 400ms ease;
}

.control-hint .status-dot {
  width: 7px;
  height: 7px;
}

.hint-caption {
  position: relative;
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.hint-caption span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition:
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 200ms ease;
}

.hint-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(120%);
  font-size: 11px;
  line-height: inherit;
}

.control-hint:hover .hint-default {
  opacity: 0;
  transform: translateY(-120%);
}

.control-hint:hover .hint-alt {
  opacity: 1;
  transform: none;
}

.control-hint.ping {
  color: var(--fg-muted);
}

.control-hint.ping .status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: status-pulse 900ms ease-out 1;
}

/* ---- Control heading dot + interactive dependency rows ---- */

.control-heading-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

#control-hint-dot.ping::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: currentColor;
  animation: status-pulse 900ms ease-out 1;
}

.dep-row,
.sp-row {
  transition: opacity 250ms ease;
}

.dep-rows:hover .dep-row:not(:hover),
#sp-monitors:hover .sp-row:not(:hover) {
  opacity: 0.5;
}

.dep-row .timeline-segment,
.sp-row .timeline-segment {
  transform-origin: bottom;
  transition:
    background 350ms ease,
    transform 150ms ease,
    filter 150ms ease;
}

.dep-row:hover .timeline-segment:hover,
.sp-row:hover .timeline-segment:hover {
  transform: scaleY(1.35);
  filter: brightness(1.15);
}

.dep-row:hover .dep-incident {
  color: var(--fg-muted);
}

/* ---- Hero release link ---- */

.release-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg-faint);
  transition: color 200ms ease;
}

.release-link:hover {
  color: var(--fg);
}

.release-link .status-dot {
  width: 5px;
  height: 5px;
}

.release-link .arrow-icon {
  width: 12px;
  height: 12px;
}

.release-link:hover .arrow-icon {
  transform: translateX(2px);
}

/* ---- Final CTA command chip ---- */

.cta-command {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--code-bg);
  color: var(--fg);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 13px;
  transition:
    border-color 150ms ease,
    background 150ms ease,
    transform 150ms ease;
}

.cta-command:hover {
  border-color: var(--border-hover);
  background: var(--hover);
}

.cta-command:active {
  transform: scale(0.98);
}

.cta-command .t-prompt {
  color: var(--fg-faint);
}

.cta-command-copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--fg-faint);
  font-size: 11px;
  transition: color 200ms ease;
}

.cta-command:hover .cta-command-copy {
  color: var(--fg);
}

.cta-command-copy svg {
  width: 13px;
  height: 13px;
}

.cta-command-copy.success {
  color: var(--up-text);
}

.cta-command-copy.success svg {
  width: 12px;
  height: 12px;
}

.cta-command-note {
  margin-top: 14px;
  color: var(--fg-faint);
  font-size: 11px;
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}

.cta-links .text-link {
  gap: 7px;
  font-size: 15px;
}

/* ---- Performance section (10.0 Accelerate) ---- */

.monitor-added {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  animation: event-in 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.monitor-added[hidden] {
  display: none;
}

.monitor-added-text {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  text-align: left;
}

.monitor-added-text strong {
  font-size: 13px;
  font-weight: 500;
}

.monitor-added-text small {
  overflow: hidden;
  color: var(--fg-faint);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-added-state {
  flex: 0 0 auto;
  color: var(--fg-muted);
  font-size: 11px;
}

.perf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 64px;
}

.perf-card {
  overflow: hidden;
}

.perf-metric {
  color: var(--fg);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}

.perf-card-rows {
  padding: 12px 14px;
  background: var(--code-bg);
}

.perf-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font:
    11px / 1.7 "Geist Mono",
    ui-monospace,
    monospace;
  transition: opacity 200ms ease;
}

.perf-line span:first-child {
  overflow: hidden;
  color: var(--fg-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.perf-line span:last-child {
  color: var(--fg);
  white-space: nowrap;
}

.perf-card-rows:hover .perf-line:not(:hover) {
  opacity: 0.45;
}

.perf-foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--fg-faint);
  font:
    11px / 1.4 "Geist Mono",
    ui-monospace,
    monospace;
}

.js .perf-cards .perf-line {
  animation: event-in 300ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-play-state: paused;
  animation-delay: calc(var(--card-delay, 0ms) + var(--line, 0) * 110ms);
}

.js .perf-cards.is-visible .perf-line {
  animation-play-state: running;
}

.perf-col:nth-child(2) .perf-card {
  --card-delay: 280ms;
}
.perf-col:nth-child(3) .perf-card {
  --card-delay: 560ms;
}

.perf-principle {
  padding-inline: 2px;
}

.perf-col .perf-card {
  margin-top: 30px;
}

.perf-principle span {
  color: var(--fg-faint);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.perf-principle strong {
  display: block;
  margin-top: 20px;
  font-weight: 500;
}

.perf-principle p {
  margin-top: 7px;
  color: var(--fg-muted);
}
.perf-line:nth-child(1) {
  --line: 0;
}
.perf-line:nth-child(2) {
  --line: 1;
}
.perf-line:nth-child(3) {
  --line: 2;
}
.perf-line:nth-child(4) {
  --line: 3;
}
.perf-line:nth-child(5) {
  --line: 4;
}
.perf-line:nth-child(6) {
  --line: 5;
}
.perf-line:nth-child(7) {
  --line: 6;
}

@media (prefers-reduced-motion: reduce) {
  .js .perf-cards .perf-line {
    animation: none;
  }
}

@media (max-width: 980px) {
  .perf-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .perf-cards {
    margin-top: 44px;
  }
}

/* ---- Principle figure micro-interactions ---- */

.js .principles article:hover .principle-mark {
  color: var(--fg-faint);
}

/* Hover, FIG 0.1: the perimeter tightens around a lifted server */

.js .principles article:hover .p-boundary {
  opacity: 1;
}
.js .principles article:hover .p-server-g {
  translate: 0 -3px;
}
.js .principles article:hover .principle-mark:not(.ping) .p-ring {
  animation-duration: 2.2s;
  animation-delay: 0s;
}
.js .principles article:hover .p-orbit {
  animation-duration: 3s;
}

/* Hover, FIG 0.2: callers lean in and traffic picks up */

.js .principles article:hover .r-wire {
  opacity: 1;
}
.js .principles article:hover .r-node-g {
  scale: 1.06;
}
.js .principles article:hover .r-hub-g {
  scale: 1.03;
}
.js .principles article:hover .principle-mark:not(.ping) .r-pulse {
  animation-duration: 2.4s;
}
.js .principles article:hover .principle-mark:not(.ping) .r-p1 {
  animation-delay: 0s;
}
.js .principles article:hover .principle-mark:not(.ping) .r-p2 {
  animation-delay: 0.8s;
}
.js .principles article:hover .principle-mark:not(.ping) .r-p3 {
  animation-delay: 1.6s;
}

/* Hover, FIG 0.3: routine compresses, the comment leans in */

.js .principles article:hover .s-ticks {
  scale: 1 0.8;
}
.js .principles article:hover .s-label-g {
  scale: 1.06;
}
.js .principles article:hover .s-threshold {
  opacity: 0.8;
}

/* Click, FIG 0.1: sonar burst from the server */

@keyframes ring-burst {
  0% {
    opacity: 0.9;
    scale: 0.3;
  }
  100% {
    opacity: 0;
    scale: 2.6;
  }
}

@keyframes server-jolt {
  30% {
    translate: 0 -6px;
  }
}

@keyframes boundary-flash {
  25% {
    opacity: 1;
    stroke: var(--fg-faint);
  }
}

.js article .principle-mark.ping .p-ring {
  animation: ring-burst 750ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js article .principle-mark.ping .p-server-g {
  animation: server-jolt 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js article .principle-mark.ping .p-boundary {
  animation: boundary-flash 750ms ease 150ms;
}

/* Click, FIG 0.2: all three callers fire at once */

@keyframes wire-shot {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0.14;
    opacity: 0;
  }
}

@keyframes hub-pop {
  40% {
    scale: 1.05;
  }
}

.js article .principle-mark.ping .r-pulse {
  animation: wire-shot 650ms cubic-bezier(0.4, 0, 0.4, 1) both;
}
.js article .principle-mark.ping .r-p2 {
  animation-delay: 90ms;
}
.js article .principle-mark.ping .r-p3 {
  animation-delay: 180ms;
}
.js article .principle-mark.ping .r-hub-g {
  animation: hub-pop 500ms cubic-bezier(0.2, 0.7, 0.2, 1) 380ms;
}

/* Click, FIG 0.3: the comment pops out of the dot */

@keyframes stroke-redraw {
  0% {
    stroke-dashoffset: 1;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes halo-burst {
  0% {
    opacity: 0.85;
    scale: 0.35;
  }
  100% {
    opacity: 0;
    scale: 2.2;
  }
}

@keyframes head-pop {
  45% {
    scale: 1.6;
  }
}

@keyframes ticks-dip {
  35% {
    scale: 1 0.72;
  }
}

.js article .principle-mark.ping .s-ticks {
  animation: ticks-dip 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js article .principle-mark.ping .s-head {
  animation: head-pop 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js article .principle-mark.ping .s-halo {
  animation: halo-burst 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 60ms;
}
.js article .principle-mark.ping .s-leader {
  animation: stroke-redraw 320ms cubic-bezier(0.5, 0, 0.2, 1) 140ms both;
}
.js article .principle-mark.ping .s-label-box {
  animation: stroke-redraw 380ms cubic-bezier(0.5, 0, 0.2, 1) 340ms both;
}
.js article .principle-mark.ping .s-label-text {
  animation: stroke-redraw 320ms cubic-bezier(0.5, 0, 0.2, 1) 600ms both;
}

/* ---- Demo UI selection lock ---- */
/* Fake interface mockups read as renderings, not copyable text. Real prose
   (section copy, hero, callouts, perf principles) and copyable code blocks
   like the agent prompt live outside these containers and stay selectable. */

.hero-dashboard,
.monitor-scene,
.simulator,
.simulation-control,
.incident-panel,
.status-preview,
.email-card,
.dep-sheet,
.dep-table,
.status-frame,
.terminal,
.database-panel,
.architecture-map,
.security-window,
.perf-card,
.cta-command {
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

/* Real form controls inside the locked demos stay editable and selectable. */

.monitor-sheet input,
.monitor-sheet select,
.dep-search input,
#terminal-input {
  -webkit-user-select: text;
  user-select: text;
  cursor: auto;
}

/* ---- Timeline bar hover, reduced motion ---- */
/* Drop the vertical lift, keep the tonal brightness cue only. */

@media (prefers-reduced-motion: reduce) {
  .large-timeline .timeline-segment:hover,
  .dep-row:hover .timeline-segment:hover,
  .sp-row:hover .timeline-segment:hover {
    transform: none;
  }
}
