:root {
  --bg: #02050d;
  --panel: rgba(6, 15, 28, 0.76);
  --panel-strong: rgba(7, 17, 31, 0.94);
  --ink: #edf8ff;
  --ink-dim: #9eb0c8;
  --ink-faint: #65758d;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(94, 234, 212, 0.36);
  --teal: #06d6e0;
  --reef: #5eead4;
  --bio: #a78bfa;
  --ops: #00ff88;
  --warn: #fbbf24;
  --coral: #f472b6;
  --critical: #ff566c;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

/* Hide scrollbars site-wide; wheel / trackpad / touch / keyboard scrolling
   still works (only the visible bar is removed). */
* {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* legacy Edge / IE */
}
*::-webkit-scrollbar {
  display: none;                /* Chromium / WebKit */
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 16%, rgba(167, 139, 250, 0.12), transparent 30%),
    radial-gradient(circle at 12% 74%, rgba(6, 214, 224, 0.12), transparent 34%),
    #02050d;
}

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

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

button {
  border: 0;
  color: inherit;
  font: inherit;
}

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

.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--teal);
  color: #001018;
  font-weight: 800;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 5, 13, 0.66);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 900;
}

.brand img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 14px rgba(6, 214, 224, 0.36));
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.topbar nav a {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topbar nav a:hover {
  color: var(--ink);
}

.pilot-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: var(--radius);
  color: var(--reef) !important;
  background: rgba(94, 234, 212, 0.06);
}

.graph-story {
  position: relative;
}

.graph-shell {
  position: relative;
}

.graph-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
}

#reef-graph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 5, 13, 0.72) 0%, rgba(2, 5, 13, 0.18) 34%, rgba(2, 5, 13, 0.2) 70%, rgba(2, 5, 13, 0.74) 100%),
    linear-gradient(0deg, rgba(2, 5, 13, 0.92) 0%, transparent 24%, transparent 72%, rgba(2, 5, 13, 0.72) 100%);
}

.node-windows {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.node-window {
  --panel-left: 70px;
  --panel-top: 140px;
  --panel-width: 560px;
  --tx: 0px;
  --ty: 0px;
  --scale: 0.1;
  --alpha: 0;
  --blur: 12px;
  --node-color: var(--reef);
  position: absolute;
  left: var(--panel-left);
  top: var(--panel-top);
  width: min(var(--panel-width), calc(100vw - 40px));
  opacity: var(--alpha);
  filter: blur(var(--blur));
  transform: translate3d(var(--tx), var(--ty), 0) scale(var(--scale));
  transform-origin: 0 0;
  pointer-events: none;
  transition: filter 80ms linear;
}

.node-window.is-open {
  pointer-events: auto;
}

.window-shell {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--node-color) 38%, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45), 0 0 42px color-mix(in srgb, var(--node-color) 16%, transparent);
  backdrop-filter: blur(22px);
}

.window-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
  background:
    linear-gradient(rgba(94, 234, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(130deg, black, transparent 70%);
}

.window-shell > * {
  position: relative;
  z-index: 1;
}

.window-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.node-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 18px var(--node-color);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--node-color);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

h1,
h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 3.65vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  max-width: 640px;
  font-size: clamp(1.62rem, 2.35vw, 2.8rem);
  line-height: 1.1;
}

.node-window p:not(.eyebrow) {
  max-width: 590px;
  margin: 14px 0 0;
  color: var(--ink-dim);
  font-size: clamp(0.96rem, 1.03vw, 1.06rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.window-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.92fr);
  gap: 30px;
  align-items: center;
}

.core-slogan {
  max-width: 790px;
  font-size: clamp(2.45rem, 3.95vw, 4.7rem);
  line-height: 1.01;
}

.core-slogan span {
  display: block;
}

.core-slogan span + span {
  margin-top: 0.11em;
  color: color-mix(in srgb, var(--reef) 84%, var(--ink));
}

.window-core .window-grid {
  grid-template-columns: minmax(0, 1.38fr) minmax(220px, 0.62fr);
}

.window-core .panel-visual {
  min-height: 240px;
}

.compact-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.8fr);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}

.metric-row div {
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

dt {
  margin: 0 0 7px;
  color: var(--ink-faint);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
}

dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.panel-actions a,
.primary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 850;
}

.primary-action {
  color: #011017 !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--teal), var(--reef));
}

.panel-visual {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(2, 5, 13, 0.5);
}

.visual-core {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--node-color) 24%, transparent), transparent 42%),
    rgba(2, 5, 13, 0.58);
}

.visual-core span {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--node-color) 50%, transparent);
  border-radius: 50%;
  animation: orbit-ring 7s linear infinite;
}

.visual-core span:nth-child(2) {
  width: 36%;
  animation-duration: 5.2s;
  animation-direction: reverse;
}

.visual-core span:nth-child(3),
.visual-core span:nth-child(4) {
  width: 10px;
  height: 10px;
  aspect-ratio: auto;
  background: var(--node-color);
  box-shadow: 0 0 20px var(--node-color);
}

.visual-core span:nth-child(3) {
  animation: orbital-dot 4.4s linear infinite;
}

.visual-core span:nth-child(4) {
  animation: orbital-dot 6.2s linear infinite reverse;
}

.visual-identity {
  min-height: 210px;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.visual-identity span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--node-color) 28%, transparent);
  border-radius: var(--radius);
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  animation: sign-pulse 4s ease-in-out infinite;
}

.visual-identity span:nth-child(2) { animation-delay: -0.8s; }
.visual-identity span:nth-child(3) { animation-delay: -1.6s; }
.visual-identity span:nth-child(4) { animation-delay: -2.4s; }

.visual-security {
  min-height: 230px;
  display: grid;
  gap: 10px;
  padding: 16px;
  background:
    radial-gradient(circle at 74% 22%, color-mix(in srgb, var(--node-color) 18%, transparent), transparent 38%),
    rgba(2, 5, 13, 0.5);
}

.visual-security span {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 36px;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--node-color) 30%, transparent);
  border-radius: var(--radius);
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.04);
}

.visual-security span::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--node-color);
  box-shadow: 0 0 16px var(--node-color);
  animation: security-lock 2.8s ease-in-out infinite;
}

.visual-security span:nth-child(2)::before { animation-delay: -0.7s; }
.visual-security span:nth-child(3)::before { animation-delay: -1.4s; }
.visual-security span:nth-child(4)::before { animation-delay: -2.1s; }

.visual-discovery {
  min-height: 260px;
}

.visual-discovery::before,
.visual-discovery::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 16%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--node-color) 58%, transparent), transparent);
  transform: rotate(24deg);
  box-shadow: 0 0 14px color-mix(in srgb, var(--node-color) 24%, transparent);
}

.visual-discovery::after {
  transform: rotate(-31deg);
}

.visual-discovery i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid var(--node-color);
  border-radius: 50%;
  background: color-mix(in srgb, var(--node-color) 14%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--node-color) 38%, transparent);
  animation: float-chip 5s ease-in-out infinite;
}

.visual-discovery i:nth-child(1) { left: 47%; top: 42%; width: 34px; height: 34px; }
.visual-discovery i:nth-child(2) { left: 15%; top: 22%; animation-delay: -1s; }
.visual-discovery i:nth-child(3) { right: 18%; top: 18%; animation-delay: -2s; }
.visual-discovery i:nth-child(4) { left: 24%; bottom: 18%; animation-delay: -3s; }
.visual-discovery i:nth-child(5) { right: 18%; bottom: 22%; animation-delay: -4s; }

.visual-memory {
  min-height: 220px;
  padding: 18px;
}

.visual-memory span {
  position: absolute;
  left: 18px;
  right: 18px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--node-color) 28%, transparent);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--node-color) 20%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.04);
  animation: memory-rise 4.8s ease-in-out infinite;
}

.visual-memory span:nth-child(1) { top: 34px; }
.visual-memory span:nth-child(2) { top: 82px; animation-delay: -1.2s; }
.visual-memory span:nth-child(3) { top: 130px; animation-delay: -2.4s; }

.visual-tools {
  min-height: 230px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.visual-tools span {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.visual-tools i {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--node-color), transparent 76%),
    rgba(255, 255, 255, 0.07);
  background-size: 180% 100%;
  animation: lane-flow 2.6s ease-in-out infinite;
}

.visual-tools span:nth-child(2) i { animation-delay: -0.7s; }
.visual-tools span:nth-child(3) i { animation-delay: -1.4s; }
.visual-tools span:nth-child(4) i { animation-delay: -2.1s; }

.visual-routing {
  min-height: 230px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.visual-routing span {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
}

.visual-routing i {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--node-color), color-mix(in srgb, var(--teal) 60%, transparent), transparent 78%),
    rgba(255, 255, 255, 0.07);
  background-size: 180% 100%;
  animation: lane-flow 2.4s ease-in-out infinite;
}

.visual-routing span:nth-child(2) i { animation-delay: -0.6s; }
.visual-routing span:nth-child(3) i { animation-delay: -1.2s; }
.visual-routing span:nth-child(4) i { animation-delay: -1.8s; }

.visual-reefos {
  min-height: 286px;
  padding: 14px;
}

.visual-reefos section {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--node-color) 22%, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius);
  background: rgba(8, 19, 34, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.visual-reefos section:nth-child(1) {
  left: 16px;
  top: 42px;
  width: 58%;
  height: 168px;
}

.visual-reefos section:nth-child(2) {
  right: 16px;
  top: 20px;
  width: 36%;
  height: 142px;
}

.visual-reefos section:nth-child(3) {
  right: 38px;
  bottom: 20px;
  width: 46%;
  height: 92px;
}

.visual-reefos strong {
  display: block;
  padding: 11px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.visual-reefos em {
  display: block;
  height: 18px;
  margin: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--node-color) 48%, transparent), transparent);
  animation: os-meter 2.8s ease-in-out infinite;
}

.visual-reefos small {
  display: block;
  padding: 14px;
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
}

.visual-govern {
  min-height: 230px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--node-color) 18%, transparent), transparent 58%);
}

.visual-govern span {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--node-color) 36%, transparent);
  border-radius: 50%;
  animation: govern-ring 4.8s ease-out infinite;
}

.visual-govern span:nth-child(2) { width: 42%; animation-delay: -1.6s; }
.visual-govern span:nth-child(3) { width: 22%; animation-delay: -3.2s; }

.window-core { --node-color: var(--reef); }
.window-identity { --node-color: var(--teal); }
.window-security { --node-color: #38bdf8; }
.window-discovery { --node-color: var(--ops); }
.window-memory { --node-color: var(--bio); }
.window-tools { --node-color: var(--warn); }
.window-routing { --node-color: #22d3ee; }
.window-reefos { --node-color: var(--coral); }
.window-govern { --node-color: var(--critical); }

.node-rail {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  scrollbar-width: none;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(2, 5, 13, 0.58);
  backdrop-filter: blur(16px);
}

.node-rail::-webkit-scrollbar {
  display: none;
}

body[data-scene="story"] .node-rail {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.node-rail button {
  min-width: max-content;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-faint);
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.node-rail button span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.node-rail button:hover,
.node-rail button.is-active {
  color: var(--reef);
  border-color: rgba(94, 234, 212, 0.26);
  background: rgba(94, 234, 212, 0.07);
  transform: translateY(-2px);
}

.ambient-mark {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  color: var(--ink-faint);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  opacity: 0.8;
  transition: opacity 260ms ease, transform 260ms ease;
}

.ambient-mark span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ambient-mark span::before {
  content: "";
  width: 22px;
  height: 34px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 28%, var(--reef) 0 2px, transparent 3px);
}

body[data-scene="story"] .ambient-mark {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.scroll-track {
  height: 760vh;
}

.pricing-backdrop,
.docs-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 76% 38%, rgba(94, 234, 212, 0.1), transparent 28%),
    linear-gradient(90deg, transparent 0%, rgba(2, 5, 13, 0.18) 48%, rgba(2, 5, 13, 0.58) 100%);
  transition: opacity 220ms ease;
}

.docs-backdrop {
  background:
    radial-gradient(circle at 67% 24%, rgba(167, 139, 250, 0.14), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(6, 214, 224, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(2, 5, 13, 0.08) 0%, rgba(2, 5, 13, 0.48) 100%);
}

.pricing-drawer {
  position: fixed;
  z-index: 60;
  top: 92px;
  right: 26px;
  width: min(68vw, 1040px);
  max-height: calc(100svh - 118px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 12%, rgba(94, 234, 212, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(2, 5, 13, 0.94));
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.5), 0 0 80px rgba(6, 214, 224, 0.09), inset 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  transform: translate3d(calc(100% + 46px), -8px, 0) scale(0.98);
  transform-origin: 100% 0;
  transition: opacity 220ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.pricing-open .pricing-backdrop {
  pointer-events: auto;
  opacity: 1;
}

body.pricing-open .pricing-drawer {
  transform: translate3d(0, 0, 0) scale(1);
}

body.docs-open .docs-backdrop {
  pointer-events: auto;
  opacity: 1;
}

.pricing-drawer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 14px;
  align-items: start;
}

.pricing-close,
.docs-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 0;
  line-height: 1;
}

.pricing-close::before,
.docs-close::before {
  content: "\00d7";
  font-size: 1.35rem;
}

.pricing-close:hover,
.docs-close:hover {
  color: var(--ink);
  border-color: rgba(94, 234, 212, 0.32);
  background: rgba(94, 234, 212, 0.08);
}

.docs-close {
  margin-top: 10px;
}

.pricing-copy {
  max-width: 720px;
}

.pricing-copy h2 {
  font-size: clamp(2rem, 3.05vw, 3.35rem);
  line-height: 1.02;
}

.pricing-copy p:not(.eyebrow) {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.pricing-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.07), transparent 34%),
    rgba(7, 17, 31, 0.76);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.featured-plan {
  border-color: rgba(94, 234, 212, 0.42);
  box-shadow: 0 22px 58px rgba(6, 214, 224, 0.12);
}

.plan-label {
  color: var(--reef);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.pricing-card h3 {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 1.02rem;
  letter-spacing: 0;
}

.pricing-card p {
  min-height: 0;
  margin: 9px 0 0;
  color: var(--ink-dim);
  font-size: 0.84rem;
}

.pricing-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 1.56rem;
  line-height: 1;
}

.pricing-card small {
  color: var(--ink-faint);
  font-size: 0.76rem;
  font-weight: 600;
}

.pricing-card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.pricing-card li {
  position: relative;
  padding-left: 18px;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--reef);
  box-shadow: 0 0 14px rgba(94, 234, 212, 0.44);
}

.pricing-card a,
.subscription-notes a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(94, 234, 212, 0.34);
  border-radius: var(--radius);
  color: var(--reef);
  font-weight: 850;
  background: rgba(94, 234, 212, 0.07);
}

.featured-plan a {
  color: #011017;
  border-color: transparent;
  background: linear-gradient(135deg, var(--teal), var(--reef));
}

.subscription-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.subscription-notes p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.82rem;
}

.docs-console {
  position: fixed;
  z-index: 60;
  top: 80px;
  right: 28px;
  width: min(82vw, 1240px);
  max-height: calc(100svh - 104px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 10% 8%, rgba(94, 234, 212, 0.12), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(167, 139, 250, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(7, 17, 31, 0.96), rgba(2, 5, 13, 0.94));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.54), 0 0 90px rgba(167, 139, 250, 0.1), inset 1px 1px rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(24px);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 56px), -8px, 0) scale(0.98);
  transform-origin: 100% 0;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.docs-console::before {
  content: "";
  position: absolute;
  inset: -40% -18% auto auto;
  width: 52%;
  height: 140%;
  pointer-events: none;
  opacity: 0.4;
  background: linear-gradient(105deg, transparent 0%, rgba(94, 234, 212, 0.12) 46%, rgba(237, 248, 255, 0.2) 50%, rgba(167, 139, 250, 0.08) 56%, transparent 100%);
  filter: blur(18px);
  transform: translateX(34%) rotate(8deg);
}

body.docs-open .docs-console {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.docs-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 16px;
  align-items: start;
}

.docs-copy {
  max-width: 780px;
}

.docs-copy h2 {
  font-size: clamp(2rem, 3.25vw, 3.55rem);
  line-height: 1.01;
}

.docs-copy p:not(.eyebrow) {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.docs-layout {
  position: relative;
  z-index: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 14px;
}

.docs-index {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(2, 5, 13, 0.5);
}

.docs-index button {
  min-height: 38px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-dim);
  cursor: pointer;
  text-align: left;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
}

.docs-index button:hover,
.docs-index button.is-active {
  border-left-color: var(--reef);
  background: rgba(94, 234, 212, 0.08);
  color: var(--ink);
}

.docs-content {
  min-height: 0;
  min-width: 0;
  max-height: calc(100svh - 248px);
  display: grid;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.docs-section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(7, 17, 31, 0.66);
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--reef);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.docs-section h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.75vw, 1.7rem);
  line-height: 1.08;
}

.docs-section p {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-size: 0.86rem;
}

.docs-console code {
  color: var(--reef);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.doc-steps {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: doc-step;
}

.doc-steps li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink-dim);
  font-size: 0.84rem;
}

.doc-steps li::before {
  counter-increment: doc-step;
  content: counter(doc-step, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: var(--radius);
  color: var(--reef);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  background: rgba(94, 234, 212, 0.07);
}

.doc-steps strong,
.concept-grid strong,
.security-grid strong {
  display: block;
  color: var(--ink);
  font-size: 0.91rem;
}

.doc-steps strong,
.doc-steps span {
  grid-column: 2;
}

.doc-steps span,
.concept-grid span,
.security-grid span {
  display: block;
  margin-top: 3px;
}

.concept-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.concept-grid article,
.security-grid div {
  min-width: 0;
  min-height: 94px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(94, 234, 212, 0.08), transparent 42%),
    rgba(255, 255, 255, 0.035);
  color: var(--ink-dim);
  font-size: 0.83rem;
}

.doc-callout {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: var(--radius);
  background: rgba(94, 234, 212, 0.055);
}

.doc-callout span {
  color: var(--reef);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.flow-line {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.flow-line span {
  position: relative;
  min-height: 40px;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 6px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: var(--radius);
  background: rgba(94, 234, 212, 0.055);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.flow-line span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  width: 10px;
  height: 1px;
  background: rgba(94, 234, 212, 0.32);
}

.agent-card {
  max-width: 100%;
  min-width: 0;
  margin: 12px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--radius);
  background: rgba(2, 5, 13, 0.68);
  color: var(--ink-dim);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.faq-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.faq-list summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 780;
}

.faq-list p {
  margin: 0;
  padding: 0 12px 12px;
}

@keyframes orbit-ring {
  0% { transform: rotate(0deg) scale(0.96); }
  50% { transform: rotate(180deg) scale(1.05); }
  100% { transform: rotate(360deg) scale(0.96); }
}

@keyframes orbital-dot {
  0% { transform: rotate(0deg) translateX(74px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(74px) rotate(-360deg); }
}

@keyframes sign-pulse {
  0%, 100% { transform: translateX(0); border-color: rgba(255, 255, 255, 0.1); }
  45% { transform: translateX(8px); border-color: color-mix(in srgb, var(--node-color) 50%, transparent); }
}

@keyframes security-lock {
  0%, 100% { transform: scale(0.82); opacity: 0.58; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes float-chip {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(7px, -10px, 0); }
}

@keyframes memory-rise {
  0%, 100% { transform: translateY(0); opacity: 0.56; }
  50% { transform: translateY(-9px); opacity: 1; }
}

@keyframes lane-flow {
  0%, 100% { background-position: 0 0; opacity: 0.58; }
  50% { background-position: 100% 0; opacity: 1; }
}

@keyframes os-meter {
  0%, 100% { transform: scaleX(0.46); transform-origin: 0 50%; opacity: 0.55; }
  50% { transform: scaleX(0.92); transform-origin: 0 50%; opacity: 1; }
}

@keyframes govern-ring {
  0% { opacity: 0; transform: scale(0.72); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.16); }
}

@media (max-width: 1120px) {
  .window-grid,
  .compact-grid,
  .window-core .window-grid {
    grid-template-columns: 1fr;
  }

  .panel-visual {
    min-height: 190px;
  }
}

@media (max-width: 900px) {
  .topbar {
    height: 64px;
    padding: 0 20px;
  }

  .topbar nav {
    gap: 14px;
    font-size: 0.86rem;
  }

  .node-rail {
    left: 18px;
    right: 18px;
    top: 76px;
    bottom: auto;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    transform: translateY(-10px);
    padding-bottom: 6px;
  }

  body[data-scene="story"] .node-rail {
    transform: translateY(0);
  }

  .node-rail button {
    min-width: max-content;
  }

  .node-window {
    width: min(var(--panel-width), calc(100vw - 28px));
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .pricing-drawer {
    top: 84px;
    right: 18px;
    width: min(88vw, 760px);
    max-height: calc(100svh - 108px);
    overflow: auto;
  }

  .docs-console {
    top: 78px;
    right: 18px;
    width: min(94vw, 980px);
    max-height: calc(100svh - 102px);
    padding: 18px;
  }

  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-index {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px;
  }

  .docs-index button {
    min-width: max-content;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .docs-index button:hover,
  .docs-index button.is-active {
    border-bottom-color: var(--reef);
  }

  .docs-content {
    max-height: calc(100svh - 274px);
  }

  .concept-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .subscription-notes {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .topbar nav a:not(.pilot-link) {
    display: none;
  }

  .topbar {
    padding: 0 18px;
  }

  .pilot-link {
    min-height: 36px;
    padding: 0 12px;
  }

  .window-shell {
    padding: 16px;
  }

  h1,
  h2 {
    font-size: clamp(1.75rem, 8.4vw, 2.78rem);
    line-height: 1.08;
  }

  .core-slogan {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.03;
  }

  .node-window p:not(.eyebrow) {
    margin-top: 13px;
    font-size: 0.94rem;
  }

  .window-topline {
    margin-bottom: 12px;
  }

  .panel-visual,
  .metric-row {
    display: none;
  }

  .panel-actions {
    margin-top: 18px;
  }

  .panel-actions a {
    width: 100%;
  }

  .ambient-mark {
    display: none;
  }

  .pricing-drawer {
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100svh - 92px);
    padding: 16px;
    overflow: auto;
  }

  .docs-console {
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    max-height: calc(100svh - 92px);
    padding: 15px;
  }

  .pricing-drawer-head {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .docs-head {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .pricing-close,
  .docs-close {
    width: 36px;
    height: 36px;
  }

  .pricing-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .docs-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.55rem);
  }

  .pricing-copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .docs-copy p:not(.eyebrow) {
    font-size: 0.92rem;
  }

  .docs-content {
    max-height: calc(100svh - 248px);
  }

  .docs-section {
    padding: 14px;
  }

  .doc-steps li {
    grid-template-columns: 1fr;
  }

  .doc-steps li::before,
  .doc-steps strong,
  .doc-steps span {
    grid-column: auto;
    grid-row: auto;
  }

  .flow-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-line span:not(:last-child)::after {
    display: none;
  }

  .pricing-card {
    padding: 15px;
  }

  .pricing-card p {
    min-height: 0;
  }

  .pricing-card strong {
    font-size: 1.72rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
