:root {
  --ink: #080b13;
  --ink-soft: #111725;
  --paper: #f2f0e9;
  --paper-bright: #faf9f5;
  --muted: #6d7280;
  --line: rgba(8, 11, 19, 0.14);
  --dark-line: rgba(255, 255, 255, 0.12);
  --blue: #2867ff;
  --cyan: #42e8ff;
  --orange: #ff9f2f;
  --lime: #bff84a;
  --white: #f7f8fb;
  --shell: min(1240px, calc(100vw - 64px));
  --ease: cubic-bezier(.2, .75, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

::selection {
  color: var(--ink);
  background: var(--cyan);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: .055;
  pointer-events: none;
  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='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--orange));
  transform: scaleX(0);
  transform-origin: left;
}

/* Navigation */
.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  color: var(--white);
  transition: background .35s ease, border-color .35s ease, transform .35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(7, 11, 20, .82);
  border-color: rgba(255, 255, 255, .09);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 178px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.brand small {
  display: block;
  max-width: 54px;
  color: rgba(255, 255, 255, .45);
  font-size: 7px;
  line-height: 1.2;
  letter-spacing: .16em;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  transform: rotate(-8deg);
}

.brand-mark i {
  position: absolute;
  display: block;
  border-radius: 4px 12px 4px 12px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(66, 232, 255, .5);
}

.brand-mark i:nth-child(1) {
  width: 11px;
  height: 20px;
  left: 2px;
  top: 2px;
}

.brand-mark i:nth-child(2) {
  width: 11px;
  height: 20px;
  right: 1px;
  bottom: 1px;
  background: var(--blue);
}

.brand-mark i:nth-child(3) {
  width: 6px;
  height: 6px;
  left: 10px;
  top: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 159, 47, .7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  margin-right: 44px;
}

.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--cyan);
  transition: right .25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

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

.lang-toggle,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .82);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.lang-toggle {
  width: 42px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.github-link {
  gap: 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
}

.lang-toggle:hover,
.github-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .09);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .25s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 41%, rgba(19, 92, 255, .18), transparent 33%),
    radial-gradient(circle at 91% 72%, rgba(66, 232, 255, .07), transparent 30%),
    linear-gradient(135deg, #070a12 0%, #0a0f1d 54%, #070b15 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .17;
  background-image:
    linear-gradient(rgba(125, 164, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 164, 255, .16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 18, .93) 0%, rgba(7, 10, 18, .42) 52%, rgba(7, 10, 18, .08) 100%);
}

.hero-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: 6%;
  top: 16%;
  border-radius: 50%;
  background: rgba(33, 95, 255, .16);
  filter: blur(100px);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(430px, .94fr);
  align-items: center;
  gap: 24px;
  min-height: 100svh;
  padding-top: 108px;
  padding-bottom: 92px;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 720px;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 7px 12px 7px 9px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .035);
  font-size: 11px;
  letter-spacing: .04em;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(191, 248, 74, .8);
}

.pulse-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(191, 248, 74, .45);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(.6); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-kicker,
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--cyan);
}

.eyebrow > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 20px;
  margin-right: 8px;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--paper-bright);
  background: var(--blue);
  font-size: 9px;
  letter-spacing: .04em;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  color: #f8f9fc;
  font-size: clamp(48px, 5.35vw, 78px);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 800;
}

.hero-title span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(105deg, #3b74ff 5%, #51e5ff 60%, #bff84a 120%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(236, 241, 255, .62);
  font-size: 16px;
  line-height: 1.85;
}

.install-console {
  position: relative;
  max-width: 680px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(3, 6, 13, .72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(14px);
}

.install-console::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.install-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .45);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.install-meta a {
  color: rgba(255, 255, 255, .66);
  transition: color .2s ease;
}

.install-meta a:hover {
  color: var(--cyan);
}

.step-label b {
  margin-right: 7px;
  color: var(--cyan);
}

.command-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 12px 0 18px;
}

.command-row .prompt {
  color: var(--lime);
  font: 700 15px/1 "SFMono-Regular", Consolas, monospace;
}

.command-row code {
  overflow: hidden;
  color: #d7e7ff;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 76px;
  height: 36px;
  padding-inline: 11px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.copy-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  transition: transform .25s var(--ease), color .25s ease, background .25s ease, border-color .25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #061018;
  background: var(--cyan);
  box-shadow: 0 10px 36px rgba(66, 232, 255, .16);
}

.button-primary:hover {
  background: #81efff;
}

.button-secondary {
  color: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .035);
}

.button-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}

.hero-metrics {
  display: flex;
  gap: 38px;
  margin: 30px 0 0;
}

.hero-metrics div {
  position: relative;
  padding-left: 13px;
}

.hero-metrics div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: rgba(255, 255, 255, .16);
}

.hero-metrics dt {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.hero-metrics dd {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, .38);
  font-size: 9px;
  letter-spacing: .05em;
}

/* Particle mascot */
.particle-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100svh;
  min-width: 0;
  min-height: 0;
  isolation: isolate;
  pointer-events: none;
}

.particle-stage::before {
  content: "";
  position: absolute;
  width: min(48vw, 680px);
  aspect-ratio: 1;
  left: 74%;
  top: 50%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(44, 106, 255, .18) 0, rgba(7, 11, 20, 0) 66%);
  filter: blur(8px);
  opacity: 1;
  transform: translate(-50%, -50%);
  transition: opacity .45s ease;
}

#mascotCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(33, 108, 255, .18));
}

.orbit {
  position: absolute;
  left: 74%;
  top: 50%;
  z-index: -1;
  border: 1px solid rgba(94, 154, 255, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.orbit-a {
  width: min(44vw, 620px);
  aspect-ratio: 1;
  animation: orbit-spin 18s linear infinite;
}

.orbit-a::before { left: 12%; top: 12%; }
.orbit-a::after { right: 7%; bottom: 21%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

.orbit-b {
  width: min(31vw, 440px);
  aspect-ratio: 1;
  border-style: dashed;
  animation: orbit-spin-reverse 24s linear infinite;
}

.orbit-b::before { left: 2%; top: 53%; }
.orbit-b::after { right: 9%; top: 21%; }

@keyframes orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbit-spin-reverse {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.telemetry {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .34);
  font: 600 8px/1.2 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
}

.telemetry::before {
  content: "";
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, .22);
}

.telemetry strong {
  color: var(--lime);
  font-weight: 700;
}

.telemetry-top { top: 19%; right: 7%; }
.telemetry-bottom { right: 27%; bottom: 22%; }
.telemetry-bottom strong { color: var(--cyan); }

.flight-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  color: rgba(255, 255, 255, .6);
  background: rgba(5, 10, 20, .62);
  backdrop-filter: blur(10px);
  font: 700 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
}

.flight-chip span {
  color: var(--cyan);
}

.chip-plan { left: 54%; top: 34%; }
.chip-verify { right: 5%; bottom: 34%; }

.particle-hint {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 100%;
  margin: 0;
  color: rgba(255, 255, 255, .28);
  font-size: 8px;
  letter-spacing: .14em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.particle-stage .orbit,
.particle-stage .telemetry,
.particle-stage .flight-chip,
.particle-stage .particle-hint,
.particle-stage::before {
  transition: opacity .45s ease, transform .6s var(--ease);
}

.particle-stage:not([data-mode="hero"]) .orbit,
.particle-stage:not([data-mode="hero"]) .telemetry,
.particle-stage:not([data-mode="hero"]) .flight-chip,
.particle-stage:not([data-mode="hero"]) .particle-hint,
.particle-stage:not([data-mode="hero"])::before {
  opacity: 0;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, .35);
  transform: translateX(-50%);
}

.scroll-cue span {
  position: relative;
  display: block;
  width: 20px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  animation: scroll-dot 1.7s ease-in-out infinite;
}

.scroll-cue small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(-1px); }
  25% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Shared sections */
.paper-section {
  position: relative;
  color: var(--ink);
  background: var(--paper);
}

.dark-section {
  position: relative;
  color: var(--white);
  background: var(--ink);
}

.paper-section > .shell,
.dark-section > .shell,
.signal-rail {
  position: relative;
  z-index: 3;
}

.section-heading h2,
.protocol-sticky h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(38px, 4.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.section-heading > p:last-child,
.protocol-sticky > p,
.databases .section-heading > p {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.eyebrow-dark {
  color: var(--cyan);
}

.eyebrow-dark > span:first-child {
  color: var(--ink);
  background: var(--cyan);
}

/* Quick start */
.quickstart {
  padding: 0 0 150px;
  overflow: hidden;
}

.signal-rail {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-bright);
}

.signal-rail div {
  width: max-content;
  padding: 18px 0;
  color: rgba(8, 11, 19, .12);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
  will-change: transform;
}

.quickstart-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.32fr);
  gap: 90px;
  align-items: start;
  padding-top: 130px;
}

.quickstart .section-heading {
  position: sticky;
  top: 124px;
}

.launch-card {
  overflow: hidden;
  border-radius: 18px;
  color: var(--white);
  background: #0a0e18;
  box-shadow: 0 30px 80px rgba(8, 11, 19, .2);
}

.launch-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.launch-card-head div {
  display: grid;
  gap: 3px;
}

.launch-card-head div span {
  color: rgba(255, 255, 255, .38);
  font-size: 10px;
  letter-spacing: .12em;
}

.launch-card-head div strong {
  font-size: 18px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--lime);
  font: 700 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .12em;
}

.verified-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.big-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 28px;
  padding: 22px 18px 22px 22px;
  border: 1px solid rgba(66, 232, 255, .2);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(38, 98, 255, .14), rgba(66, 232, 255, .04));
}

.big-command code {
  overflow-wrap: anywhere;
  color: #dcedff;
  font-size: 13px;
  line-height: 1.7;
}

.copy-button-light {
  color: var(--ink);
  border-color: transparent;
  background: var(--cyan);
}

.copy-button-light:hover {
  color: var(--ink);
  background: #8af2ff;
}

.agent-request {
  position: relative;
  margin: 0 28px 28px;
  padding: 25px 28px;
  border-left: 2px solid var(--orange);
  background: rgba(255, 255, 255, .045);
}

.agent-request > span {
  color: var(--orange);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.agent-request blockquote {
  margin: 11px 0 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.8;
}

.text-copy {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, .44);
  background: none;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.skill-family {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.skill-family article {
  min-width: 0;
  padding: 24px 28px 26px;
  border-right: 1px solid rgba(255, 255, 255, .09);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.skill-family article:nth-child(even) {
  border-right: 0;
}

.skill-family article:nth-last-child(-n+2) {
  border-bottom: 0;
}

.skill-family article span {
  color: var(--cyan);
  font: 700 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
}

.skill-family article strong {
  display: block;
  overflow: hidden;
  margin-top: 11px;
  color: #fff;
  font: 650 13px/1.4 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
}

.skill-family article p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
  line-height: 1.6;
}

/* Protocol scroll story */
.protocol {
  padding: 150px 0 120px;
  overflow: clip;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    #080b13;
  background-size: 80px 80px;
}

.protocol::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: -320px;
  top: 24%;
  border-radius: 50%;
  background: rgba(43, 102, 255, .12);
  filter: blur(130px);
}

.protocol-layout {
  display: grid;
  grid-template-columns: minmax(320px, .86fr) minmax(480px, 1.14fr);
  gap: 120px;
  align-items: start;
}

.protocol-sticky {
  position: sticky;
  top: 120px;
  min-height: 620px;
}

.protocol-sticky > p {
  color: rgba(255, 255, 255, .45);
}

.flight-path {
  position: relative;
  display: grid;
  gap: 35px;
  margin-top: 54px;
  padding-left: 4px;
}

.path-line {
  position: absolute;
  left: 15px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .13);
}

.path-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--cyan), var(--blue), var(--orange));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s var(--ease);
}

.path-node {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, .24);
  transition: color .4s ease, transform .4s var(--ease);
}

.path-node span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  background: var(--ink);
  font: 700 8px/1 "SFMono-Regular", Consolas, monospace;
  transition: border-color .35s ease, box-shadow .35s ease, background .35s ease;
}

.path-node b {
  font: 700 10px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
}

.path-node.active {
  color: #fff;
  transform: translateX(6px);
}

.path-node.active span {
  color: var(--ink);
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 24px rgba(66, 232, 255, .28);
}

.protocol-steps {
  display: grid;
  gap: 28vh;
  padding: 10vh 0 22vh;
}

.protocol-step {
  position: relative;
  min-height: 410px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: rgba(255, 255, 255, .035);
  opacity: .38;
  transform: scale(.96);
  transition: opacity .6s ease, transform .65s var(--ease), border-color .5s ease, background .5s ease;
}

.protocol-step.is-active {
  opacity: 1;
  border-color: rgba(66, 232, 255, .3);
  background: linear-gradient(145deg, rgba(42, 99, 255, .12), rgba(255, 255, 255, .035));
  transform: scale(1);
}

.step-index {
  color: var(--cyan);
  font: 700 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .16em;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 46px 0 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  color: var(--orange);
  font-size: 26px;
}

.protocol-step h3 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -.04em;
}

.protocol-step p {
  max-width: 540px;
  margin: 15px 0 28px;
  color: rgba(255, 255, 255, .52);
  font-size: 14px;
  line-height: 1.9;
}

.protocol-step code {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  color: rgba(255, 255, 255, .64);
  background: rgba(0, 0, 0, .24);
  font-size: 11px;
}

/* Capabilities */
.capabilities {
  padding: 150px 0;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: end;
  gap: 90px;
}

.section-heading-row > p:last-child {
  margin-bottom: 6px;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  margin-top: 70px;
}

.bento-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-bright);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(8, 11, 19, .1);
}

.card-code {
  color: rgba(8, 11, 19, .34);
  font: 700 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .14em;
}

.bento-card h3 {
  margin: 26px 0 8px;
  font-size: 24px;
  letter-spacing: -.04em;
}

.bento-card p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.dependency-visual {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 34px;
}

.dependency-visual strong {
  color: var(--blue);
  font-size: 140px;
  font-weight: 850;
  line-height: .8;
  letter-spacing: -.09em;
}

.dependency-visual span {
  padding-bottom: 8px;
  color: rgba(8, 11, 19, .34);
  font: 700 9px/1.35 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bento-safety {
  color: #fff;
  background: #111827;
}

.bento-safety .card-code,
.bento-safety p {
  color: rgba(255, 255, 255, .46);
}

.shield-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  margin: 31px auto 18px;
}

.shield-visual i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(66, 232, 255, .35);
  border-radius: 46% 46% 52% 52% / 32% 32% 68% 68%;
  box-shadow: inset 0 0 35px rgba(66, 232, 255, .08), 0 0 40px rgba(66, 232, 255, .05);
}

.shield-visual i::before,
.shield-visual i::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(66, 232, 255, .18);
  border-radius: inherit;
}

.shield-visual i::after {
  inset: 30px;
  border-style: solid;
}

.shield-visual span {
  color: var(--cyan);
  font: 800 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .16em;
}

.bento-wide {
  display: grid;
  grid-template-columns: minmax(270px, .9fr) minmax(0, 1.1fr);
  align-items: center;
  grid-column: 1 / -1;
  min-height: 250px;
}

.bento-wide .card-code {
  position: absolute;
  left: 32px;
  top: 32px;
}

.exit-codes {
  display: flex;
  gap: 8px;
}

.exit-codes span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(8, 11, 19, .35);
  background: var(--paper);
  font: 700 13px/1 "SFMono-Regular", Consolas, monospace;
}

.exit-codes .ok {
  color: var(--ink);
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 10px 24px rgba(191, 248, 74, .24);
}

.bento-boot {
  grid-column: 1 / -1;
  min-height: 300px;
  background: linear-gradient(120deg, #e4eafa, #f9f8f2 65%);
}

.boot-versions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 36px 0 12px;
}

.boot-versions span {
  color: rgba(8, 11, 19, .34);
  font: 700 10px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .13em;
}

.boot-versions strong {
  margin-left: 4px;
  color: var(--blue);
  font-size: 78px;
  line-height: .8;
  letter-spacing: -.08em;
}

.boot-versions i {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

/* Databases */
.databases {
  padding: 160px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 73% 50%, rgba(32, 95, 255, .15), transparent 32%),
    #080b13;
}

.databases-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 80px;
  align-items: center;
}

.databases .section-heading > p {
  color: rgba(255, 255, 255, .45);
}

.inline-link {
  display: inline-flex;
  margin-top: 28px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
}

.database-orbit {
  position: relative;
  width: min(620px, 100%);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.database-orbit::before,
.database-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.database-orbit::before { inset: 15%; }
.database-orbit::after { inset: 32%; }

.orbit-core {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(66, 232, 255, .24);
  border-radius: 50%;
  background: rgba(13, 25, 49, .9);
  box-shadow: 0 0 65px rgba(38, 103, 255, .25);
  transform: translate(-50%, -50%);
}

.orbit-core img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.orbit-core span {
  color: rgba(255, 255, 255, .54);
  font: 800 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: .16em;
}

.db-item {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 7px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 999px;
  background: rgba(12, 18, 30, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  animation: db-float 5s ease-in-out infinite;
}

.db-item b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 4px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cyan);
  font: 800 9px/1 "SFMono-Regular", Consolas, monospace;
}

.db-item span {
  color: rgba(255, 255, 255, .66);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.db-1 { left: 44%; top: -4%; animation-delay: -.4s; }
.db-2 { right: 2%; top: 17%; animation-delay: -1.8s; }
.db-3 { right: -7%; top: 47%; animation-delay: -2.4s; }
.db-4 { right: 10%; bottom: 9%; animation-delay: -1s; }
.db-5 { left: 37%; bottom: -4%; animation-delay: -3.1s; }
.db-6 { left: -4%; bottom: 16%; animation-delay: -1.5s; }
.db-7 { left: -8%; top: 40%; animation-delay: -2.7s; }
.db-8 { left: 5%; top: 9%; animation-delay: -.7s; }
.db-4 b, .db-8 b { background: var(--orange); }
.db-5 b, .db-6 b { background: var(--lime); }

@keyframes db-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Final CTA and footer */
.final-cta {
  padding: 130px 0;
}

.final-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 90px;
  align-items: end;
  padding: 70px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(130deg, transparent 0 60%, rgba(38, 103, 255, .08)),
    var(--paper-bright);
}

.cta-command {
  min-width: 0;
}

.cta-command code {
  display: block;
  margin-bottom: 15px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.button-dark {
  width: 100%;
  color: #fff;
  background: var(--ink);
}

.button-dark:hover {
  background: var(--blue);
}

.site-footer {
  padding: 76px 0 28px;
  color: rgba(255, 255, 255, .56);
  background: #05070d;
}

.footer-main {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 55px;
}

.footer-main p {
  margin: 0;
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 25px;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .28);
  font-size: 9px;
  letter-spacing: .05em;
}

.copy-toast {
  position: fixed;
  z-index: 1300;
  left: 50%;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 10, 18, .92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .25s ease, transform .3s var(--ease);
  backdrop-filter: blur(12px);
  font-size: 11px;
}

.copy-toast span {
  color: var(--lime);
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Reveal */
.motion-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease) var(--delay, 0ms), transform .8s var(--ease) var(--delay, 0ms);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1120px) {
  :root { --shell: min(100% - 48px, 980px); }

  .nav-links { gap: 22px; margin-right: 24px; }
  .hero-layout { grid-template-columns: 1.05fr .95fr; }
  .hero-title { font-size: clamp(48px, 6vw, 65px); }
  .quickstart-layout { gap: 50px; }
  .protocol-layout { gap: 70px; }
  .database-orbit { width: 500px; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 40px); }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100vw;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    margin: 0;
    padding: 88px 36px 40px;
    background: rgba(5, 8, 15, .97);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity .3s ease, transform .35s var(--ease);
  }

  .nav-inner > .brand,
  .nav-actions {
    position: relative;
    z-index: 2;
  }

  .nav-links a { font-size: 30px; letter-spacing: -.04em; }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

  .hero { min-height: auto; }
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
    padding-top: 150px;
    padding-bottom: 80px;
  }
  .hero-copy { max-width: 760px; }
  .scroll-cue { display: none; }

  .quickstart-layout { grid-template-columns: 1fr; padding-top: 100px; }
  .quickstart .section-heading { position: static; }
  .quickstart .section-heading > p:last-child { max-width: 650px; }

  .protocol-layout { grid-template-columns: 1fr; gap: 30px; }
  .protocol-sticky { position: static; min-height: 0; }
  .flight-path { grid-template-columns: repeat(4, 1fr); gap: 0; padding-left: 0; }
  .path-line { left: 16px; right: 16px; top: 15px; bottom: auto; width: auto; height: 1px; }
  .path-line i { transform: scaleX(0); transform-origin: left; }
  .path-node { grid-template-columns: 32px; justify-items: start; gap: 10px; }
  .path-node.active { transform: translateY(-4px); }
  .protocol-steps { gap: 90px; padding: 60px 0 0; }

  .section-heading-row { grid-template-columns: 1fr; gap: 20px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide, .bento-boot { grid-column: auto; }
  .bento-wide { grid-template-columns: 1fr; gap: 35px; }

  .databases-layout { grid-template-columns: 1fr; gap: 90px; }
  .database-orbit { justify-self: center; }

  .final-cta-inner { grid-template-columns: 1fr; gap: 50px; padding: 50px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }

  html { scroll-padding-top: 72px; }
  .nav-inner { height: 68px; }
  .brand { min-width: 0; font-size: 20px; }
  .brand small { display: none; }
  .github-link { width: 38px; padding: 0; }
  .github-link span { display: none; }
  .hero-layout { padding-top: 110px; }
  .release-pill { margin-bottom: 23px; }
  .hero-kicker { font-size: 8px; }
  .hero-title { font-size: clamp(42px, 13vw, 58px); line-height: 1.03; }
  .hero-lead { font-size: 14px; line-height: 1.8; }
  .install-console { margin-top: 24px; }
  .install-meta { align-items: flex-start; }
  .install-meta a { display: none; }
  .command-row { grid-template-columns: auto minmax(0, 1fr) 38px; gap: 8px; padding-left: 12px; }
  .command-row code { font-size: 10px; }
  .command-row .copy-button { width: 36px; min-width: 36px; padding: 0; }
  .command-row .copy-button span { display: none; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-metrics { gap: 22px; }
  .hero-metrics dt { font-size: 14px; }
  .telemetry-top { right: 0; }
  .flight-chip { display: none; }

  .signal-rail div { padding-block: 14px; }
  .quickstart { padding-bottom: 100px; }
  .quickstart-layout { gap: 45px; padding-top: 80px; }
  .section-heading h2, .protocol-sticky h2, .final-cta h2 { font-size: 39px; }
  .launch-card-head { padding: 20px; }
  .verified-badge { display: none; }
  .big-command { grid-template-columns: 1fr; margin: 20px; padding: 18px; }
  .big-command .copy-button { width: 100%; }
  .agent-request { margin: 0 20px 20px; padding: 22px; }
  .skill-family { grid-template-columns: 1fr; }
  .skill-family article,
  .skill-family article:nth-child(even),
  .skill-family article:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .skill-family article:last-child { border-bottom: 0; }

  .protocol { padding: 100px 0; }
  .flight-path { overflow-x: auto; padding-bottom: 10px; }
  .path-node b { font-size: 8px; }
  .protocol-step { min-height: 380px; padding: 30px; }
  .protocol-step h3 { font-size: 27px; }
  .protocol-step code { max-width: 100%; overflow-wrap: anywhere; }

  .capabilities { padding: 100px 0; }
  .bento-grid { margin-top: 50px; }
  .bento-card { min-height: 330px; padding: 25px; }
  .dependency-visual strong { font-size: 115px; }
  .bento-wide { min-height: 340px; }
  .exit-codes { gap: 5px; }
  .exit-codes span { width: 36px; height: 48px; }
  .boot-versions { gap: 12px; }
  .boot-versions strong { font-size: 55px; }
  .boot-versions i { width: 35px; }

  .databases { padding: 100px 0 150px; }
  .database-orbit { width: 86vw; margin-top: 30px; }
  .db-item { padding-right: 7px; }
  .db-item span { display: none; }
  .db-3, .db-7 { right: -2%; left: auto; }
  .db-7 { left: -2%; right: auto; }

  .final-cta { padding: 75px 0; }
  .final-cta-inner { gap: 38px; padding: 34px 25px; }
  .site-footer { padding-top: 60px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .protocol-step { opacity: 1; transform: none; }
  .signal-rail div { transform: none !important; }
}

/* The mascot is viewport-resident at every breakpoint. These rules deliberately
   come last so section-specific responsive layout cannot turn it back into a block. */
@media (max-width: 1120px) {
  .particle-stage {
    position: fixed;
    inset: 0;
    z-index: 4;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .particle-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    margin: 0;
  }

  .particle-stage::before,
  .orbit {
    left: 58%;
    top: 76%;
  }

  .orbit-a { width: min(82vw, 460px); }
  .orbit-b { width: min(58vw, 330px); }
  .telemetry-top { top: auto; right: 4%; bottom: 29%; }
  .telemetry-bottom { right: auto; left: 5%; bottom: 10%; }
  .particle-hint { bottom: 5%; }
}

@media (max-width: 620px) {
  .particle-stage {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    margin: 0;
  }

  .particle-stage .flight-chip,
  .particle-stage .telemetry,
  .particle-stage .particle-hint {
    display: none;
  }

  .particle-stage::before {
    width: 92vw;
  }
}
