/* sentinel\telemetry — site styles
   Dark-first, system fonts + self-hosted Geist Pixel (wordmark only), no JS frameworks. */

@font-face {
  font-family: "Geist Pixel";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geist-pixel-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0b0d;
  --bg-elev: #0f1114;
  --bg-elev-2: #14171b;
  --border: #21262c;
  --border-strong: #2e353d;
  --text: #e7e9ea;
  --muted: #9aa4ad;
  --faint: #6b7480;
  --accent: #3fb950;
  --accent-dim: #2ea043;
  --accent-soft: rgba(63, 185, 80, 0.12);
  --danger: #f0a202;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --maxw: 72rem;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
p a, li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
p a:hover, li a:hover { text-decoration-color: var(--accent); }

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

::selection { background: var(--accent-soft); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #04120a;
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.15rem; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 44rem;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: "Geist Pixel", var(--mono);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark .bs { color: var(--accent); }
.footer-brand .wordmark { font-size: 1.75rem; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a:not(.btn) {
  font-size: 0.9rem;
  color: var(--muted);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 3.75rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 0.75rem 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .btn { margin-top: 1rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #04120a;
}
.btn-primary:hover { background: #4cc75e; color: #04120a; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--faint); color: #fff; }

.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }

/* ---------- Sections ---------- */

section { padding: 5rem 0; }
@media (max-width: 760px) { section { padding: 3.5rem 0; } }

.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head p { margin-top: 0.9rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 6.5rem 0 4.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(63, 185, 80, 0.09), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 85%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 { max-width: 17ch; }
.hero .lede { margin-top: 1.4rem; }

/* two-column hero: copy left, live dashboard right */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-grid .dashboard { width: 100%; }
.hero-grid .dash-kpis { grid-template-columns: repeat(2, 1fr); }
.hero-grid .dash-body { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .hero { padding-top: 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .hero-grid h1 { font-size: clamp(2.1rem, 3.4vw, 2.9rem); max-width: none; }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.chip {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  background: var(--bg-elev);
  white-space: nowrap;
}
.chip::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5rem;
  vertical-align: 1px;
}

/* ---------- Cards & grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card, .plane, .kpi, .band, .plan-tier { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
  .card:hover, .plane:hover { transform: translateY(-3px); border-color: var(--border-strong); }
}

.stat-card .stat {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.stat-note {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2rem;
}

/* ---------- Plane feature blocks ---------- */

.plane {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}
.plane .icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.plane .icon svg { width: 22px; height: 22px; }
.plane .plane-verb {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.plane h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.plane ul { list-style: none; display: grid; gap: 0.8rem; }
.plane li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}
.plane li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- Brand logo chips ---------- */

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1rem;
  padding: 0;
  list-style: none;
}
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-2);
  border-radius: 6px;
  padding: 0.26rem 0.58rem;
  white-space: nowrap;
  line-height: 1;
}
.logo-chip svg { width: 14px; height: 14px; flex: none; display: block; }

.deploy-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-top: 1.75rem;
}
.deploy-strip .deploy-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.deploy-strip .logo-chip { border: 0; background: transparent; padding: 0.15rem 0; }

/* ---------- Coverage columns ---------- */

.coverage-col h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.coverage-col .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}
.agent-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.agent-list li {
  font-family: var(--mono);
  font-size: 0.82rem;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-2);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
}

.callout {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--text);
  font-size: 1.02rem;
  margin-top: 2.5rem;
  text-wrap: pretty;
}
.callout em { color: var(--accent); font-style: normal; }

/* ---------- Diagram ---------- */

.diagram-wrap {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
}
.diagram-wrap svg { margin: 0 auto; }

/* animated "data flow" along diagram connectors (arrows) */
@media (prefers-reduced-motion: no-preference) {
  .diagram-wrap svg path[marker-end] {
    stroke-dasharray: 6 4;
    animation: diagram-flow 0.85s linear infinite;
  }
}
@keyframes diagram-flow { to { stroke-dashoffset: -10; } }

/* gentle pulse for a diagram's central node */
@media (prefers-reduced-motion: no-preference) {
  .node-pulse { animation: node-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes node-pulse { 0%, 100% { stroke-opacity: 1; } 50% { stroke-opacity: 0.4; } }

/* animated telemetry-signal accent for hero sections without a diagram */
.hero-signal {
  display: block;
  width: 240px;
  max-width: 60%;
  height: 22px;
  margin: 1.5rem 0 0;
  overflow: visible;
}
.hero-signal path { fill: none; stroke-width: 1.6; }
.hero-signal .track { stroke: var(--border-strong); }
.hero-signal .pulse { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 16 250; }
@media (prefers-reduced-motion: no-preference) {
  .hero-signal .pulse { animation: hero-signal-run 2.6s linear infinite; }
}
@keyframes hero-signal-run { from { stroke-dashoffset: 266; } to { stroke-dashoffset: 0; } }

/* ---------- Illustrative live dashboard ---------- */

.dashboard {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-width: 62rem;
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem; margin-bottom: 1.1rem;
}
.dash-title { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.dash-live {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.dash-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) { .dash-live i { animation: live-pulse 1.7s ease-in-out infinite; } }
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(63,185,80,0.55); }
  60% { box-shadow: 0 0 0 6px rgba(63,185,80,0); }
}
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-bottom: 1.1rem; }
.kpi { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.85rem 0.95rem; }
.kpi-label { display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.kpi-val { display: block; font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--text); margin: 0.3rem 0 0.15rem; letter-spacing: -0.01em; }
.kpi-trend { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.kpi-trend.up { color: var(--accent); }
.dash-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0.9rem; }
.dash-panel { background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.panel-label { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.95rem; }
.bar-chart { list-style: none; display: grid; gap: 0.7rem; padding: 0; margin: 0; }
.bar-chart li { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 0.7rem; }
.bar-name { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.bar-track { height: 9px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.bar { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .bar { animation: grow-bar 1.1s cubic-bezier(0.2,0.7,0.2,1) both; } }
@keyframes grow-bar { from { width: 0; } to { width: var(--w); } }
.bar-val { font-family: var(--mono); font-size: 0.74rem; color: var(--text); }
.user-list { list-style: none; display: grid; gap: 0.65rem; padding: 0; margin: 0; }
.user-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.7rem; font-family: var(--mono); }
.u-rank { width: 19px; height: 19px; border-radius: 5px; background: var(--bg); color: var(--faint); display: grid; place-items: center; font-size: 0.66rem; flex: none; }
.u-main { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.u-name { font-size: 0.8rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-model { font-size: 0.66rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.u-model i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.u-tokens { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; }

/* detailed top-users table dashboard */
.user-table { width: 100%; border-collapse: collapse; }
.user-table th {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; text-align: left; padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.user-table td {
  padding: 0.72rem 0.85rem; border-bottom: 1px solid var(--border);
  color: var(--muted); font-family: var(--mono); font-size: 0.82rem; font-weight: 400; white-space: nowrap;
}
.user-table tbody tr:last-child td { border-bottom: 0; }
.user-table .ut-rank { color: var(--faint); }
.user-table .ut-user { color: var(--text); }
.user-table .ut-model { display: inline-flex; align-items: center; gap: 0.45rem; }
.user-table .ut-model i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.user-table .ut-num { color: var(--text); font-weight: 600; text-align: right; }
.user-table th.r, .user-table td.r { text-align: right; }
@media (hover: hover) { .user-table tbody tr { transition: background 0.14s ease; } .user-table tbody tr:hover { background: var(--bg-elev-2); } }
.sparkline { width: 100%; height: 92px; display: block; }
.spark-area { fill: rgba(63,185,80,0.12); stroke: none; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .spark-line { stroke-dasharray: 700; stroke-dashoffset: 700; animation: spark-draw 1.7s ease-out 0.2s forwards; }
}
@keyframes spark-draw { to { stroke-dashoffset: 0; } }
.dash-note { text-align: center; font-family: var(--mono); font-size: 0.68rem; color: var(--faint); margin-top: 0.95rem; }
@media (max-width: 760px) {
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
}

/* ---------- Zeron-style glow + hover interactions ---------- */

/* light traveling around the dashboard border */
@property --st-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.dashboard { position: relative; }
.dashboard::before {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--st-a), rgba(63,185,80,0) 0 62%, rgba(63,185,80,0.85) 80%, rgba(63,185,80,0) 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .dashboard::before { animation: st-border 5s linear infinite; } }
@keyframes st-border { to { --st-a: 360deg; } }
.hero-grid .dashboard { box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 70px -12px rgba(63,185,80,0.22); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover, .plane:hover { border-color: var(--accent-dim); box-shadow: 0 10px 34px rgba(0,0,0,0.4), 0 0 0 1px rgba(63,185,80,0.18); }
  .kpi, .dash-panel { transition: border-color 0.18s ease, box-shadow 0.18s ease; }
  .kpi:hover, .dash-panel:hover { border-color: var(--accent-dim); box-shadow: 0 0 0 1px rgba(63,185,80,0.22); }
  .logo-chip { transition: border-color 0.16s ease, transform 0.16s ease; }
  .logo-chip:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
  .chip { transition: border-color 0.16s ease; }
  .chip:hover { border-color: var(--accent-dim); }
  .btn-primary { transition: background 0.15s ease, box-shadow 0.2s ease, transform 0.12s ease; }
  .btn-primary:hover { box-shadow: 0 8px 26px rgba(63,185,80,0.32); }
  .btn-lg:active { transform: translateY(1px); }
  .bar { transition: filter 0.18s ease; }
  .bar-chart li:hover .bar { filter: brightness(1.2); }
  .band:hover, .plan-tier:hover { border-color: var(--accent-dim); }
}

/* ---------- Hero visuals (right column) ---------- */
.hero-visual { width: 100%; }
.hero-visual .diagram-wrap { box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 70px -12px rgba(63,185,80,0.16); }

/* three-planes card (product) */
.planes-card {
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 0.6rem 1.35rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 70px -12px rgba(63,185,80,0.16);
}
.plane-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.plane-row:last-child { border-bottom: 0; }
.plane-row .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.plane-row .icon svg { width: 21px; height: 21px; }
.plane-row .pr-verb { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.plane-row .pr-name { display: block; font-weight: 600; font-size: 1.05rem; }
.plane-row .pr-bar { width: 92px; height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.plane-row .pr-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; width: var(--w); }
@media (prefers-reduced-motion: no-preference) { .plane-row .pr-bar span { animation: grow-bar 1.1s cubic-bezier(0.2,0.7,0.2,1) both; } }

/* checklist card (security) */
.check-row { display: flex; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.96rem; color: var(--text); }
.check-row:last-child { border-bottom: 0; }
.check-row .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.check-row .ck svg { width: 13px; height: 13px; }

/* terminal panel (features) */
.terminal { background: #0c0e11; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 70px -12px rgba(63,185,80,0.14); }
.term-head { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.term-head i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.term-head i:nth-child(1) { background: #e5484d; }
.term-head i:nth-child(2) { background: #F0A202; }
.term-head i:nth-child(3) { background: #3FB950; }
.term-head span { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }
.terminal pre { margin: 0; padding: 1.15rem 1.25rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.95; color: var(--text); overflow-x: auto; }
.terminal .c { color: var(--faint); }
.terminal .k { color: var(--accent); }
.terminal .p { color: var(--muted); }
.term-cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: -2px; }
@media (prefers-reduced-motion: no-preference) { .term-cursor { animation: term-blink 1.05s steps(1) infinite; } }
@keyframes term-blink { 50% { opacity: 0; } }

/* animated sliding underline on desktop nav links */
@media (min-width: 901px) {
  .site-nav a:not(.btn) { position: relative; }
  .site-nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1.5px;
    background: var(--accent); transition: right 0.24s ease;
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after { right: 0; }
}

.diagram-caption {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.78rem;
  margin-top: 0.9rem;
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.legend span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.legend .swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}
.sw-accent { background: var(--accent); }
.sw-amber { background: var(--danger); }
.sw-muted { background: var(--border-strong); border: 1px solid var(--faint); }

.diagram-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ---------- Numbered step cards ---------- */

.step-num {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ---------- Code block ---------- */

.codeblock {
  font-family: var(--mono);
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.85;
  color: var(--text);
  margin-top: 1.5rem;
  white-space: pre;
  tab-size: 2;
}
.codeblock .c { color: var(--faint); }
.codeblock .k { color: var(--accent); }
.codeblock .p { color: var(--muted); }

/* ---------- Problem → solution ---------- */

.solve { display: flex; flex-direction: column; gap: 0.85rem; }
.solve .s-problem {
  color: var(--muted);
  font-size: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.solve .s-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.solve .s-problem .s-label { color: var(--danger); }
.solve .s-answer .s-label { color: var(--accent); }
.solve .s-answer { color: var(--text); font-size: 1rem; font-weight: 500; }

/* ---------- Integration groups ---------- */

.integ h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.02rem;
  margin-bottom: 0.9rem;
}
.integ .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}

/* ---------- Prose pages ---------- */

.prose { max-width: 46rem; }
.prose h2 { margin: 2.75rem 0 0.9rem; }
.prose h3 { margin: 1.9rem 0 0.5rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }
.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 600; }

/* ---------- CTA band ---------- */

.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 50% 80% at 50% 120%, rgba(63, 185, 80, 0.1), transparent 70%),
    var(--bg-elev);
  text-align: center;
}
.cta-band .lede { margin: 1rem auto 0; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.25rem; max-width: 34rem; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
input, textarea, select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: transparent;
}
.hint { font-size: 0.8rem; color: var(--faint); margin-top: 0.35rem; }

/* ---------- Pricing bands ---------- */

.band {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.band.featured { border-color: var(--accent-dim); }
.band .band-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.band h3 { font-size: 1.4rem; }
.band ul { list-style: none; display: grid; gap: 0.6rem; }
.band li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 1.3rem;
  position: relative;
}
.band li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}
.band .btn { margin-top: auto; }

/* ---------- Single pricing plan ---------- */

.plan {
  background: var(--bg-elev);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 40rem;
  margin: 0 auto;
}
.plan .band-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.plan .price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.25rem;
}
.plan .price {
  font-family: var(--mono);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.plan .price-per { color: var(--muted); font-size: 1.05rem; }
.plan .billing-note { color: var(--faint); font-family: var(--mono); font-size: 0.82rem; margin-bottom: 1.75rem; }
.plan ul { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.plan li {
  color: var(--muted);
  font-size: 0.98rem;
  padding-left: 1.5rem;
  position: relative;
}
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan .btn { width: 100%; text-align: center; }

/* two-tier layout */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 50rem;
  margin: 0 auto;
  align-items: stretch;
}
/* keep the two tiles side by side down to small tablets; stack only on phones */
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }
.plan-tier {
  max-width: none;
  margin: 0;
  padding: 1.5rem 1.4rem;
  border-color: var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan-tier .tier-users { font-size: 0.85rem; margin-top: 0.25rem; }
.plan-tier .billing-note { font-size: 0.74rem; }
.plan-tier ul { gap: 0.5rem; margin-bottom: 1.35rem; }
.plan-tier li { font-size: 0.88rem; padding-left: 1.3rem; }
.plan-tier .btn-lg { padding: 0.68rem 1.1rem; font-size: 0.92rem; }
.plan-tier.featured {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(63, 185, 80, 0.06), transparent 70%),
    var(--bg-elev);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.plan-badge {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #04120a;
  background: var(--accent);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}
.plan-tier .price.price-label {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  color: var(--text);
}
.plan-tier .btn { margin-top: auto; }
.plan-tier.featured { border-color: var(--accent-dim); }
.plan-tier .price { font-size: clamp(1.9rem, 4.5vw, 2.5rem); }
.plan-tier .tier-users {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.4rem 0 0;
}

/* ---------- Contact methods ---------- */

.contact-method .method-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin-bottom: 0.6rem;
}
.contact-method .method-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.contact-method a.method-value:hover { color: var(--accent); }
.contact-method .method-sub { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* ---------- FAQ accordion ---------- */

.faq-list { display: grid; gap: 0.75rem; max-width: 52rem; }
.faq-list details {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.35rem;
  transition: border-color 0.15s ease;
}
.faq-list details[open] { border-color: var(--border-strong); }
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.15rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  color: var(--muted);
  padding: 0 0 1.25rem;
  margin: 0;
  max-width: 46rem;
}
.faq-list details p a { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand p { color: var(--muted); margin-top: 0.75rem; max-width: 24rem; }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a { color: var(--muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--text); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
  color: var(--faint);
  font-size: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

/* ---------- Waveform divider ---------- */

.signal-line { color: var(--border-strong); }
.signal-line .pulse { color: var(--accent); }

/* ---------- Mobile refinements ---------- */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }

@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  .wordmark { font-size: 1.4rem; }
  .footer-brand .wordmark { font-size: 1.55rem; }
  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 3rem 0; }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.6rem); }
  .lede { font-size: 1.02rem; }
  .section-head { margin-bottom: 2rem; }

  /* full-width, comfortable tap targets */
  .cta-row { gap: 0.7rem; }
  .cta-row .btn { width: 100%; text-align: center; }
  .btn-lg { padding: 0.9rem 1.25rem; }

  /* tighter cards and chips */
  .card, .plane, .plan, .plan-tier, .band { padding: 1.4rem 1.2rem; }
  .plane { padding-top: 1.6rem; }
  .chip { font-size: 0.7rem; padding: 0.28rem 0.7rem; }
  .trust-strip { gap: 0.45rem; }
  .callout { padding: 1.1rem 1.15rem; font-size: 0.98rem; }
  .faq-list summary { font-size: 0.96rem; gap: 0.75rem; }
  .diagram-wrap { padding: 1rem; }

  /* footer stacks to two tidy columns */
  .footer-legal { flex-direction: column; gap: 0.5rem; }
}

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