/* Otter Swarm — launch site */
:root {
  --bg: #070b14;
  --surface: #0d1424;
  --glass: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .08);
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --text: #e8eef8;
  --muted: #8b9bb4;
  --ok: #34d399;
  --fail: #f87171;
  --inc: #fbbf24;
  --grad: linear-gradient(135deg, #22d3ee, #14b8a6);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --nav-h: 64px;
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint global grid + glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(700px 420px at 12% -4%, rgba(34, 211, 238, .09), transparent 65%),
    radial-gradient(800px 500px at 88% 8%, rgba(20, 184, 166, .07), transparent 65%),
    radial-gradient(900px 600px at 50% 110%, rgba(34, 211, 238, .05), transparent 60%),
    var(--bg);
  pointer-events: none;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.05rem; font-weight: 500; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .14);
  border-radius: 5px;
  padding: .08em .38em;
  white-space: nowrap;
}
img, svg, video { display: block; max-width: 100%; }

::selection { background: rgba(34, 211, 238, .28); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ============ shared bits ============ */
.mark { width: 34px; height: 34px; flex: none; }

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .08em;
  color: var(--text);
  white-space: nowrap;
}
.wordmark em {
  font-style: normal;
  margin-left: .45em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px 20px;
}
.section-sub { color: var(--muted); max-width: 62ch; margin-bottom: 34px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}

.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .09), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .93rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 8px 30px rgba(34, 211, 238, .22);
}
.btn-primary:hover { box-shadow: 0 10px 40px rgba(34, 211, 238, .35); text-decoration: none; }
.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(34, 211, 238, .4); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:hover { box-shadow: none; border-color: var(--line); }

.icon { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.icon.big { width: 30px; height: 30px; margin-bottom: 14px; }

.chip {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.chip.first {
  border-color: rgba(34, 211, 238, .5);
  color: var(--cyan);
  background: rgba(34, 211, 238, .07);
}

/* tooltip */
.tip { position: relative; display: inline-flex; }
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(3px);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: .75rem;
  font-family: var(--font-body);
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 60;
}
.tip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  background: rgba(7, 11, 20, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav-brand { display: flex; align-items: center; gap: 11px; }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--glass); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: rgba(34, 211, 238, .4); }
.icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn[disabled]:hover { border-color: var(--line); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: pointer;
  padding: 0 9px;
}
.hamburger span { height: 1.6px; background: var(--text); border-radius: 2px; }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(7, 11, 20, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 34px 26px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--cyan); text-decoration: none; }

/* ============ hero ============ */
.hero {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 48px) 24px 90px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -4;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: linear-gradient(to bottom,
    rgba(7, 11, 20, .92) 0%,
    rgba(7, 11, 20, .72) 40%,
    rgba(7, 11, 20, .78) 70%,
    var(--bg) 100%);
}
.hex-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.055)' stroke-width='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  mask-image: radial-gradient(80% 70% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, black, transparent);
}
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
}

.hero-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.hero-mark { width: 74px; height: 74px; margin-bottom: 26px; }

.badge {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .06em;
  color: var(--cyan);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 999px;
  padding: 7px 15px;
  margin-bottom: 24px;
}
.hero-h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  letter-spacing: -.02em;
  margin-bottom: 20px;
  max-width: 13ch;
}
.hero-h1 .w { display: inline-block; }
.hero-sub {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 54ch;
  margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-devin {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .84rem;
}
.hero-devin img {
  width: 22px; height: 22px;
  filter: invert(1);
  mix-blend-mode: screen;
  border-radius: 5px;
}
.hero-devin:hover { color: var(--text); text-decoration: none; }

/* terminal card */
.term {
  background: rgba(10, 15, 27, .88);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #f87171; }
.term-bar i:nth-child(2) { background: #fbbf24; }
.term-bar i:nth-child(3) { background: #34d399; }
.term-bar span {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}
.term-body {
  font-family: var(--font-mono);
  font-size: .79rem;
  line-height: 1.75;
  padding: 16px 18px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 340px;
}
.term-body code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.term-body.static { min-height: 0; }
.term-body .dim { color: var(--muted); }
.term-body .c-cmd { color: var(--cyan); }
.term-body .c-uid { color: var(--amber); }
.term-body .c-ok { color: var(--ok); }
.term-body .c-out { color: var(--muted); }
.caret {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--cyan);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ marquee ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  overflow: hidden;
  background: rgba(13, 20, 36, .5);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ============ proof ============ */
.proof { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 30px; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-label { color: var(--muted); font-size: .85rem; }
.proof-note {
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted);
  margin-top: 18px;
}

/* ============ how ============ */
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}
.pillars { display: grid; gap: 14px; }
.pillar {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pillar .icon { grid-row: span 2; margin-top: 3px; }
.pillar h3 { margin-bottom: 4px; }
.pillar p { color: var(--muted); font-size: .9rem; grid-column: 2; }

.how-diagram { text-align: center; }
#swarm-diagram { width: 100%; max-width: 480px; margin: 0 auto; }
.dg-lead-t { fill: var(--text); font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.dg-lead-s { fill: var(--muted); font-family: var(--font-mono); font-size: 10.5px; }
.dg-roles text { fill: var(--text); font-size: 10.5px; }
.diagram-cap { color: var(--muted); font-size: .82rem; margin-top: 8px; }

/* ============ roles ============ */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.role-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.role-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, .08), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.role-card:hover::before { opacity: 1; }
.role-card h3 { font-family: var(--font-mono); font-weight: 500; color: var(--cyan); margin-bottom: 8px; }
.role-card p { color: var(--muted); font-size: .9rem; min-height: 3.4em; }
.access {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}
.access.write { color: var(--inc); border-color: rgba(251, 191, 36, .35); }
.access.exec { color: var(--amber); border-color: rgba(245, 158, 11, .35); }

.band {
  position: relative;
  margin-top: 46px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: clamp(240px, 38vw, 440px);
}
.band-img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}
.band-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 11, 20, .55), transparent 30%, transparent 55%, rgba(7, 11, 20, .92));
}
.band-cap {
  position: absolute;
  left: 26px; bottom: 20px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text);
}

/* ============ pins ============ */
.pins-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 34px;
  align-items: start;
  margin-top: 12px;
}
.pin-points { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.pin-points li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: .93rem;
}
.pin-points li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 9px; height: 9px;
  border: 1.6px solid var(--cyan);
  transform: rotate(45deg);
  border-radius: 2px;
}
.pin-points code { white-space: normal; }

.seg {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg-btn {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 8px 18px;
  cursor: pointer;
  transition: color .18s, background .18s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on {
  background: var(--grad);
  color: #04121a;
  font-weight: 500;
}

.preset-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.chain-table { margin-top: 18px; display: grid; gap: 9px; }
.chain-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 12px;
}
.chain-role {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
}
.chain-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.chain-links .arrow { color: var(--muted); font-size: .72rem; }
.chain-links .chip { font-size: .7rem; padding: 4px 10px; }

.pins-note { color: var(--muted); font-size: .85rem; margin-top: 16px; }
.pins-right .term-body { font-size: .78rem; }

/* ============ pipeline ============ */
.assurance { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 8px 0 30px; }
.assurance-desc {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  min-height: 1.4em;
  flex: 1 1 280px;
}
.risk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.risk {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--inc);
  border: 1px solid rgba(251, 191, 36, .3);
  background: rgba(251, 191, 36, .06);
  border-radius: 999px;
  padding: 4px 12px;
}
.risk-chips em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-left: 6px; }

.stepper-wrap { position: relative; }
.pipe-stage.pinning {
  display: flex;
  flex-direction: column;
}
.stepper-pin { padding: 34px 0 10px; overflow: hidden; }
.stepper-progress {
  height: 2px;
  background: rgba(255, 255, 255, .08);
  border-radius: 2px;
  margin: 0 2px 40px;
  overflow: hidden;
}
.stepper-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
}
.stepper-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 0 2px;
  will-change: transform;
}
.pl-step { width: 292px; flex: none; }
.pl-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  transition: border-color .3s, box-shadow .3s;
}
.pl-node b { font-family: var(--font-mono); font-weight: 500; font-size: .95rem; }
.pl-step.lit .pl-node {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(34, 211, 238, .3);
}
.pl-step.waived { opacity: .45; }
.pl-step.waived .pl-node { border-style: dashed; }
.pl-step.cond { opacity: .78; }
.pl-step.cond .pl-node { border-style: dashed; border-color: rgba(34, 211, 238, .4); }
.pl-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
  min-height: 178px;
}
.pl-card h3 { margin-bottom: 7px; }
.pl-card p { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.pl-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 999px;
  padding: 3px 10px;
}
.pl-tag.lead { color: var(--text); border-color: var(--line); }
.pl-state {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--inc);
}
.pl-state:empty { display: none; }

.pipe-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 22px;
  margin-top: 46px;
}
.wt-svg { width: 100%; margin-top: 12px; }
.wt-t { fill: var(--text); font-size: 11.5px; }
.wt-s { fill: var(--muted); font-size: 10px; }
.wt-note { fill: var(--muted); font-size: 10.5px; }
.bench { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .82rem; }
.bench th, .bench td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .76rem;
}
.bench th { color: var(--muted); font-weight: 400; }
.bench td:first-child { color: var(--text); }
.bench td { color: var(--muted); }

/* ============ research ============ */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.flag {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--inc);
  border: 1px solid rgba(251, 191, 36, .4);
  border-radius: 999px;
  padding: 3px 9px;
  vertical-align: 3px;
}
.flow { margin-top: 22px; }
#research-flow { width: 100%; }
.rf-t { fill: var(--text); font-size: 11px; }
.rf-s { fill: var(--muted); font-size: 9.5px; }
.rf-pill { font-size: 8.5px; }
.rf-pill.ok { fill: var(--ok); }
.rf-pill.inc { fill: var(--inc); }
.rf-pill.fail { fill: var(--fail); }

/* ============ reports ============ */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.telemetry-card { display: grid; gap: 14px; }
.tc-prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-prompts .chip { font-style: normal; }
@media (min-width: 900px) {
  .telemetry-card {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
  }
  .tc-prompts { flex-direction: column; align-items: flex-end; }
}

.mock {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(13, 20, 36, .9), rgba(9, 14, 26, .9));
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.mock-flag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 4px 11px;
}
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.mstat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, .02);
}
.mstat b { display: block; font-family: var(--font-display); font-size: 1.35rem; }
.mstat span { color: var(--muted); font-size: .72rem; font-family: var(--font-mono); }
.mock-bars { display: grid; gap: 13px; margin-bottom: 22px; }
.mbar-label { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); display: block; margin-bottom: 5px; }
.mbar-track {
  height: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
  overflow: hidden;
}
.mbar-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--grad);
}
.mock-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.mock-legend span { font-size: .76rem; color: var(--muted); }
.lg { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; }
.lg.exact { color: var(--ok); }
.lg.pin { color: var(--cyan); }
.lg.aux { color: var(--inc); }
.lg.un { color: var(--muted); }
.lg.lead { color: var(--cyan); }
.lg.otter { color: var(--teal); }
.lg.sub { color: var(--inc); }
.lg.house { color: var(--muted); }

/* ============ commands ============ */
.quick-pick { padding: 22px 24px; margin-top: 18px; }
.qp-title {
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.qp-rows { display: flex; flex-direction: column; }
.qp-row {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px 20px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.qp-row:first-child { border-top: 0; }
.qp-row.qp-head {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 8px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.qp-row > span:first-child { color: var(--text); font-size: .86rem; }
.qp-row > span:last-child { color: var(--muted); font-size: .84rem; }
.qp-row code {
  font-family: var(--font-mono);
  color: var(--cyan);
  background: none;
  border: 0;
  padding: 0;
  font-size: .8rem;
  white-space: normal;
}
.qp-row i { color: var(--muted); font-style: normal; font-size: .8rem; }

.cmd-groups { margin-top: 34px; display: flex; flex-direction: column; gap: 30px; }
.cmd-group-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 4px;
}
.cmd-group-sub { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.cmd-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr) minmax(0, .9fr);
  gap: 14px 26px;
  padding: 18px 22px;
  margin-bottom: 10px;
  align-items: start;
}
.cmd-row:last-child { margin-bottom: 0; }
.cmd-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cmd-name {
  font-family: var(--font-mono);
  color: var(--cyan);
  background: none;
  border: 0;
  padding: 0;
  font-size: .88rem;
  font-weight: 500;
  white-space: normal;
  word-break: break-word;
}
.cmd-chip {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: normal;
}
.cmd-what, .cmd-when { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: 0; }
.cmd-what b, .cmd-when b {
  display: block;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.cmd-what code, .cmd-when code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
  white-space: normal;
}
.cmd-right { display: flex; flex-direction: column; gap: 10px; }
.cmd-ex {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, .28);
  padding: 9px 10px;
}
.cmd-ex code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--text);
  background: none;
  border: 0;
  padding: 0;
  white-space: normal;
  word-break: break-word;
}
.copy-btn {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .3);
  border-radius: 7px;
  padding: 4px 9px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.copy-btn:hover { background: rgba(34, 211, 238, .16); border-color: rgba(34, 211, 238, .55); }
.copy-note { font-family: var(--font-mono); font-size: .68rem; color: var(--ok); align-self: center; }

/* ============ safety ============ */
.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 18px;
  align-items: stretch;
}
.safety-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
}
.safety-media video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.safety-media-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 11, 20, .9), rgba(7, 11, 20, .35) 55%, rgba(7, 11, 20, .55));
}
.safety-cap {
  position: absolute;
  left: 22px; bottom: 18px;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
}
.safety-cards { display: grid; gap: 13px; align-content: start; }
.safety-cards .card { padding: 18px 20px; }
.safety-cards h3 { font-size: .98rem; }
.safety-cards p { font-size: .87rem; }

/* ============ install ============ */
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 16px;
}
.install-req {
  grid-row: span 2;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.install-req h3 { margin-bottom: 14px; }
.install-req ul { list-style: none; display: grid; gap: 12px; }
.install-req li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: .92rem;
}
.install-req li::before {
  content: "";
  position: absolute;
  left: 0; top: .48em;
  width: 9px; height: 9px;
  border: 1.6px solid var(--teal);
  transform: rotate(45deg);
  border-radius: 2px;
}
.install-req code { white-space: normal; }
.soon {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}
.soon h3 { margin-bottom: 6px; }
.soon p { color: var(--muted); font-size: .92rem; max-width: 52ch; }

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--line);
  margin-top: 90px;
  background: rgba(13, 20, 36, .4);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 24px 38px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-devin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .84rem;
  margin-left: 10px;
}
.footer-devin img { width: 22px; height: 22px; filter: invert(1); mix-blend-mode: screen; border-radius: 5px; }
.footer-devin:hover { color: var(--text); text-decoration: none; }
.footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; color: var(--muted); font-size: .85rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-small { color: var(--muted); font-size: .76rem; margin-top: 4px; }

/* ============ reveal / motion states ============ */
html.js [data-reveal] { opacity: 0; transform: translateY(24px); }
html.no-gsap [data-reveal],
html.jump-mode [data-reveal] { opacity: 1; transform: none; }
html.jump-mode .caret,
html.reduced .caret { display: none; }
html.jump-mode .marquee-track,
html.reduced .marquee-track { animation: none; }
html.jump-mode .mbar-track i,
html.reduced .mbar-track i { width: calc(var(--w, 0) * 1%); }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .caret { display: none; }
  .band-img { height: 100%; }
}

/* ============ flat pipeline — vertical stepper (mobile / reduced / jump) ============ */
.stepper-wrap.flat .stepper-pin { overflow: visible; padding-top: 10px; }
.stepper-wrap.flat .stepper-progress span { width: 100%; }
.stepper-wrap.flat .stepper-track {
  position: relative;
  width: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: none !important;
}
.stepper-wrap.flat .stepper-track::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(34, 211, 238, .5), rgba(20, 184, 166, .3));
}
.stepper-wrap.flat .pl-step {
  width: auto;
  display: flex;
  gap: 16px;
  align-items: stretch;
}
.stepper-wrap.flat .pl-node {
  flex: none;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.stepper-wrap.flat .pl-card { flex: 1; min-height: 0; }

/* ============ responsive ============ */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 42px; }
  .hero-term { max-width: 620px; }
  .how-grid { grid-template-columns: 1fr; }
  .pins-grid { grid-template-columns: 1fr; }
  .pipe-lower { grid-template-columns: 1fr; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-media { min-height: 240px; }
  .install-grid { grid-template-columns: 1fr; }
  .install-req { grid-row: auto; }
}
@media (max-width: 860px) {
  .roles-grid, .research-grid, .reports-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cmd-row { grid-template-columns: 1fr; }
  .qp-row { grid-template-columns: 1fr; gap: 4px; }
  .qp-row.qp-head { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 84px 18px 14px; }
  .roles-grid, .research-grid, .reports-grid { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--nav-h) + 34px) 18px 70px; }
  .hero-mark { width: 58px; height: 58px; }
  .term-body { font-size: .72rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .soon { flex-direction: column; align-items: flex-start; }
  .band { height: 220px; }
}

/* ---------- pipeline page ---------- */
.sub-hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 84px) 24px 10px;
}
.sub-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -.02em;
  margin-bottom: 16px;
  max-width: 22ch;
}
.sub-hero .section-sub { margin-bottom: 26px; }
.anchor-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.anchor-chips a:hover { border-color: rgba(34, 211, 238, .45); text-decoration: none; }

.pf-toggle { margin: 4px 0 20px; }
.pf-scroll { overflow-x: auto; }
#pipeline-flow { width: 100%; min-width: 1100px; }
.pf-band { fill: rgba(255, 255, 255, .018); }
.pf-lane {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
}
/* .pf-node opacity is GSAP-driven — a CSS transition here corrupts gsap.from()
   end-value capture (mid-transition reads become the recorded "to"). */
.rf-pill.acc { fill: var(--cyan); }
.pf-link { stroke: rgba(255, 255, 255, .14); stroke-width: 1.4; fill: none; }
.pf-link-dash {
  stroke: rgba(245, 158, 11, .45);
  stroke-width: 1.4;
  fill: none;
  stroke-dasharray: 5 5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.step-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.step-num {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--cyan);
}
.step-head h3 { flex: 1; min-width: 40%; }
.step-card > p { color: var(--muted); font-size: .88rem; }
.pl-tag.you { color: var(--muted); border-color: var(--line); }
.step-ev {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}
.step-ev > span {
  display: block;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 3px;
}
.step-ev code { white-space: normal; }

.pf-term { margin-top: 30px; max-width: 880px; }

.state-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.state-grid code, .bene-grid code, .cav-grid code { white-space: normal; }

.pf-table { padding: 12px 18px; overflow-x: auto; }
.pf-table .bench { margin-top: 4px; }
.pf-table .bench td, .pf-table .bench th { padding: 9px 10px; font-size: .8rem; }

.bene-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.bene-grid > .card { flex: 1 1 300px; max-width: 386px; }
.cav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.bene-grid h3, .cav-grid h3 { font-size: .98rem; line-height: 1.35; }

.deep-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
}
.deep-cta.center { justify-content: center; margin-top: 10px; }
.deep-cta-sub { color: var(--muted); font-size: .84rem; }

@media (max-width: 860px) {
  .steps-grid, .state-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sub-hero { padding: calc(var(--nav-h) + 56px) 18px 6px; }
  .deep-cta .btn { width: 100%; justify-content: center; }
}
