/* ════════════════════════════════════════════════════════════════════════
   kraph · phosphor terminal × refined editorial
   martian mono (body) + instrument serif italic (display)
   phosphor mint-cyan on deep blue-black
   ════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* — colour ─────────────────────────────────────────────────────────── */
  --bg:           #080a0f;
  --bg-elev:      #0c0f17;
  --surface:      #12151f;
  --surface-2:    #161a26;
  --border:       #1d2230;
  --border-strong:#2b3148;

  --text:         #e4e6ee;
  --text-dim:     #8b93a8;
  --text-muted:   #4e566c;

  --accent:       #00ffa3;
  --accent-glow:  #00ffa31a;
  --accent-dim:   #00a36a;
  --warn:         #ffaa44;
  --warn-dim:     #8a5a20;
  --danger:       #ff5c5c;
  --ok:           var(--accent);

  --mainnet:      #ffaa44;
  --devnet:       var(--accent);

  /* — type ───────────────────────────────────────────────────────────── */
  --font-mono:   'Martian Mono', ui-monospace, 'JetBrains Mono', 'SF Mono', monospace;
  --font-serif:  'Instrument Serif', ui-serif, Georgia, serif;

  /*
   * Roles: Martian Mono = chrome, nav, data, card titles, code.
   * Instrument Serif = editorial only (global em, .step-title, .tier-name, .faq-q, .install-quote).
   */
  --fs-hero:            clamp(32px, 6.2vw, 88px);
  --fs-section:         clamp(22px, 4.2vw, 56px);
  --fs-tagline:         clamp(18px, 2.7vw, 30px);
  --fs-editorial-lg:    clamp(28px, 3.4vw, 40px);
  --fs-editorial-mid:   clamp(24px, 3vw, 36px);
  --fs-editorial-sm:    clamp(20px, 2.5vw, 30px);
  --fs-title:           14px;
  --fs-lead:            14px;
  --fs-body:            13px;
  --fs-ui:              12px;
  --fs-caption:         11px;
  --fs-micro:           10px;
  --fs-nano:            9px;
  --fs-logo:            14px;
  --fs-stat-value:      36px;
  --fs-proof:           clamp(12px, 1.2vw, 15px);
  --fs-terminal:        12.5px;
  --fs-tier-price:      30px;
  --fs-footer-brand:    16px;
  --fs-kpi-val:         26px;
  --fs-rep-val:         18px;

  --lh-body:            1.65;
  --lh-tagline:         1.2;
  --lh-hero:            1;
  --lh-section-title:   1.08;
  --lh-editorial:       1.2;
  --lh-editorial-tight: 1.05;
  --lh-title:           1.35;
  --lh-faq-q:           1.25;
  --lh-section-tag:     1.5;
  --lh-micro:           1.4;
  --lh-code-block:      1.75;
  --lh-terminal:        1.7;

  --ls-body:            0.01em;
  --ls-tight:           -0.02em;
  --ls-editorial:       -0.01em;
  --ls-caps:            0.1em;
  --ls-caps-tight:      0.08em;
  --ls-hero-tag:        0.16em;
  --ls-label:           0.06em;

  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;
  --space-8:  32px;
  --space-9:  36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  /* — layout ─────────────────────────────────────────────────────────── */
  --max-w:       1180px;
  --gutter:      clamp(20px, 4vw, 48px);
  --radius:      2px;

  /* — motion ─────────────────────────────────────────────────────────── */
  --ease:        cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 900px) {
  :root { --fs-hero: clamp(30px, 7.6vw, 72px); }
}

@media (max-width: 560px) {
  :root { --fs-hero: clamp(24px, 8.6vw, 52px); }
}

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

body {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  letter-spacing: var(--ls-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "calt" 1, "tnum" 1;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ────────────────────────────────────────────────────────────────────────
   atmosphere layers
   ──────────────────────────────────────────────────────────────────────── */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 255, 163, 0.012) 2px,
    rgba(0, 255, 163, 0.012) 3px
  );
  mix-blend-mode: screen;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* ────────────────────────────────────────────────────────────────────────
   navigation
   ──────────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 14px 0;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--fs-logo);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  transition: color 200ms var(--ease);
}
.logo:hover { color: var(--accent); }
.logo-bracket {
  color: var(--accent);
  font-weight: 500;
}
.logo-name {
  padding: 0 2px;
}

.nav-version {
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: var(--fs-ui);
  font-weight: 400;
}
.nav-links a {
  color: var(--text-dim);
  position: relative;
  padding-bottom: 2px;
  transition: color 200ms var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  background: var(--surface);
}
.nav-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 0 transparent;
  transition: background 300ms, box-shadow 300ms;
}
.nav-status.live .dot {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  animation: pulse 2s infinite ease-out;
}
.nav-status.offline .dot {
  background: var(--danger);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr auto; }
  .nav-status { display: none; }
}

.nav-mobile {
  display: none;
  gap: 12px;
  padding: 10px var(--gutter);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.nav-mobile a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-caps-tight);
  text-transform: lowercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

@media (max-width: 900px) {
  .nav-mobile { display: flex; }
}

/* ────────────────────────────────────────────────────────────────────────
   typography helpers
   ──────────────────────────────────────────────────────────────────────── */

em,
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--ls-editorial);
  color: var(--text);
}

.ac { color: var(--accent); }
.kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
}

/* ────────────────────────────────────────────────────────────────────────
   hero
   ──────────────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(48px, 7vh, 88px);
  position: relative;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-meta-sep { color: var(--accent); font-size: var(--fs-nano); }
.hero-meta-live time { color: var(--text-dim); }

.hero-brand {
  margin-bottom: 10px;
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--accent);
}

.hero-tagline {
  margin-bottom: 28px;
  font-size: var(--fs-tagline);
  line-height: var(--lh-tagline);
  letter-spacing: var(--ls-editorial);
  color: var(--text);
  max-width: 760px;
}

/* ─── hero headline: uppercase mono, stacked tags ────────────────────────
   Uppercase so there are no descenders to clip. The [NN] tag sits as a
   small monospace label ABOVE each line (not inline beside it). On viewports
   under 720px, .line-text may wrap to avoid horizontal overflow; wider screens
   keep single-line treatment.
*/
.hero-headline {
  font-family: var(--font-mono);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: var(--lh-hero);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin-bottom: 28px;
  max-width: 100%;
}

.hero-headline .line {
  display: block;
  overflow: visible;
  margin-bottom: 0.24em;
}
.hero-headline .line:last-child { margin-bottom: 0; }

.hero-headline .line-tag {
  display: block;
  font-family: var(--font-mono);
  /* Tag is a FIXED px size, not relative to the huge headline — the
     ratio-based sizing was making the tag 18px+ and eating horizontal
     space. Keep it as a small chip at a readable, constant size. */
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-hero-tag);
  color: var(--text-muted);
  margin-bottom: 0.18em;
  text-transform: none;
}
.hero-headline .line-tag::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--text-muted);
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 2px;
}

.hero-headline .line-text {
  display: block;
  /* Allow wrapping on narrow viewports so stacked headlines never clip;
     keep single-line treatment on wider screens for the editorial look. */
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: none;
}
@media (min-width: 720px) {
  .hero-headline .line-text {
    white-space: nowrap;
  }
}

.hero-headline .line-text-thin {
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: var(--ls-editorial);
}

.hero-headline .line-text-accent {
  font-weight: 600;
  background: linear-gradient(180deg, var(--text) 0%, #a8b2c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .dot-accent {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-weight: 700;
  margin-left: 0.08em;
}

.hero-sub {
  max-width: 760px;
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--text-dim);
  margin-bottom: 32px;
  font-weight: 300;
}
.hero-sub .ac { font-weight: 500; }

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 36px;
  max-width: 860px;
}

.hero-proof li {
  font-size: var(--fs-proof);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface));
  box-shadow:
    inset 0 0 0 1px rgba(0,255,163,0.035),
    0 0 18px -14px var(--accent);
}

.topology-caption {
  margin-top: 14px;
  max-width: 760px;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-mono);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  text-transform: lowercase;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  position: relative;
  transition: all 220ms var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.btn .arrow {
  transition: transform 300ms var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  box-shadow:
    0 0 0 1px var(--accent),
    0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

/* topology */

.topology {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(0,255,163,0.03),
    0 60px 120px -60px rgba(0,255,163,0.1),
    0 0 80px -20px rgba(0,0,0,0.8);
}
.topology-frame {
  position: relative;
  padding: 24px;
  min-height: 260px;
}
.frame-label {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: var(--fs-nano);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 2px 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
}

.topology-svg {
  width: 100%;
  height: auto;
  font-family: var(--font-mono);
}

.topology-svg .node rect {
  fill: var(--surface);
  stroke: var(--border-strong);
  stroke-width: 1;
  transition: stroke 300ms, fill 300ms;
}
.topology-svg .node-title {
  font-size: var(--fs-nano);
  font-weight: 600;
  letter-spacing: var(--ls-caps-tight);
  text-anchor: middle;
  fill: var(--text);
  text-transform: uppercase;
}
.topology-svg .node-sub {
  font-size: 8px;
  font-weight: 400;
  text-anchor: middle;
  fill: var(--text-dim);
}
.topology-svg .node-rtt { fill: var(--accent); }

.topology-svg .node-agent rect,
.topology-svg .node-gateway rect {
  stroke: var(--accent-dim);
}
.topology-svg .node-attested rect {
  stroke: var(--accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent));
}
.topology-svg .node-attested .attestation-badge {
  fill: var(--accent);
  stroke: var(--accent);
}

.topology-svg .edges .edge {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.topology-svg .edges .edge-wal {
  stroke: var(--accent);
  stroke-opacity: 0.35;
  stroke-dasharray: 3 3;
  animation: walFlow 6s linear infinite;
}
@keyframes walFlow {
  0%   { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -24; }
}
.topology-svg .edge-label {
  font-size: 8px;
  fill: var(--accent);
  letter-spacing: var(--ls-caps);
  text-anchor: middle;
}

/* ────────────────────────────────────────────────────────────────────────
   stats strip
   ──────────────────────────────────────────────────────────────────────── */

.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  margin-top: 40px;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 8px 24px;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat:first-child { padding-left: 0; }

.stat-label {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: var(--ls-label);
  margin-bottom: 12px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: var(--fs-stat-value);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: var(--lh-hero);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.stat-unit {
  font-size: var(--fs-title);
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 2px;
}
.stat-sub {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  letter-spacing: var(--ls-label);
}
.stat-sub .ac { color: var(--accent); }

@media (max-width: 820px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .stat:nth-child(odd) { padding-right: 16px; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
}

/* ────────────────────────────────────────────────────────────────────────
   sections
   ──────────────────────────────────────────────────────────────────────── */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 104px) var(--gutter);
  position: relative;
}

/* Title + // tag share one column so long one-line titles never overlap the tag. */
.section-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: var(--space-5);
  row-gap: var(--space-3);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.section-num {
  grid-row: 1;
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: var(--ls-caps);
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius);
}

.section-title {
  grid-row: 1;
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-section);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: var(--lh-section-title);
  color: var(--text);
  min-width: 0;
}
.section-title em {
  font-size: 1.1em;
}

/* Keep section headings on one line once the header grid gives the title a
   real column; wrapping mid-phrase (e.g. “one” / “tool call”) looked broken. */
@media (min-width: 721px) {
  .section-title {
    white-space: nowrap;
  }
}

.section-tag {
  grid-row: 2;
  grid-column: 2;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: var(--ls-label);
  max-width: 52em;
  text-align: left;
  line-height: var(--lh-section-tag);
  justify-self: start;
}

@media (max-width: 720px) {
  .section-head {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 14px;
  }
  .section-num,
  .section-title,
  .section-tag {
    grid-column: 1;
    grid-row: auto;
  }
  .section-tag {
    max-width: none;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   services section
   ──────────────────────────────────────────────────────────────────────── */

.services-section {
  padding-top: clamp(48px, 7vh, 88px);
}

.services-intro {
  max-width: 900px;
  margin-bottom: 32px;
}

.services-intro p {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--text-dim);
  font-weight: 300;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, transparent), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  opacity: 0.8;
}

.service-card h3 {
  margin: 36px 0 14px;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  color: var(--text);
  text-transform: lowercase;
}

.service-card p {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--text-dim);
}

.service-card-next {
  border-color: color-mix(in srgb, var(--warn) 38%, var(--border));
}

.service-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-nano);
  line-height: var(--lh-micro);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
}

.service-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.service-status.live {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
}

.service-status.live::before {
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.service-status.next {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 42%, var(--border));
}

.service-status.next::before {
  background: var(--warn);
}

@media (max-width: 920px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 0;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   install section
   ──────────────────────────────────────────────────────────────────────── */

/* Surface toggle ─ topmost choice between native MCP and the Claude skill
   wrapper for clients that can't complete /mcp oauth on their own. Mirrors
   the mode-toggle card style so the visual hierarchy stays: surface > mode
   > tier > client. */
.surface-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.surface-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
  position: relative;
  overflow: hidden;
}
.surface-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 180ms var(--ease);
}
.surface-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.surface-btn.active {
  color: var(--text);
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 10px 30px -20px var(--accent),
    0 0 0 1px var(--accent-glow);
}
.surface-btn.active::before { opacity: 1; }
.surface-letter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.surface-btn.active .surface-letter {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.surface-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.surface-title {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: lowercase;
  color: inherit;
}
.surface-btn.active .surface-title { color: var(--accent); }
.surface-sub {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  text-transform: lowercase;
}
.surface-pane[hidden] { display: none !important; }
@media (max-width: 720px) {
  .surface-toggle { grid-template-columns: 1fr; gap: 10px; }
  .surface-btn { padding: 14px 16px; gap: 12px; }
  .surface-letter { width: 32px; height: 32px; font-size: 16px; }
}

/* Skill surface ─ reuse the install-tab styling for the client picker, and
   the install-pane grid layout for the terminal + narrative columns. */
.install-tab-skill {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  white-space: nowrap;
}
.install-tab-skill:hover { color: var(--text); }
.install-tab-skill.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.install-skill-pane {
  grid-column: 1;
  grid-row: 1;
}
.install-skill-pane[hidden] { display: none !important; }

/* Mode toggle ─ primary A/B choice (local keypair vs remote privy).
   Card-style: letter badge + title + sub-label. Most prominent of the
   three toggles because it fundamentally changes how payments are signed. */
.mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.mode-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  font-family: var(--font-mono);
  color: var(--text-muted);
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
  position: relative;
  overflow: hidden;
}
.mode-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 180ms var(--ease);
}
.mode-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.mode-btn.active {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-elev);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 10px 30px -20px var(--accent),
    0 0 0 1px var(--accent-glow);
}
.mode-btn.active::before { opacity: 1; }

.mode-letter {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}
.mode-btn.active .mode-letter {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.mode-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mode-title {
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: lowercase;
  color: inherit;
}
.mode-btn.active .mode-title { color: var(--accent); }
.mode-sub {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  text-transform: lowercase;
}

/* Tier toggle ─ pill/segmented-control. Mainnet variant tints warn/orange
   to signal "real USDC". Second-most prominent. */
.tier-toggle {
  display: inline-flex;
  gap: 0;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.tier-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
  white-space: nowrap;
}
.tier-btn:hover { color: var(--text); }
.tier-btn.active {
  color: var(--accent);
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-glow);
}
.tier-btn[data-tier="mainnet"].active {
  color: var(--mainnet);
  border-color: var(--mainnet);
  box-shadow: 0 0 0 1px rgba(255, 170, 68, 0.12);
}
.tier-badge-inline {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--ls-caps);
  padding: 3px 8px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}
.tier-btn.active .tier-badge-inline {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.tier-btn[data-tier="mainnet"].active .tier-badge-inline,
.tier-badge-inline.main {
  color: var(--bg);
  background: var(--mainnet);
  border-color: var(--mainnet);
}
.tier-btn:not(.active) .tier-badge-inline.main {
  /* keep mainnet label tinted even when inactive, so the user sees the
     distinction at a glance */
  color: var(--mainnet);
  background: transparent;
  border-color: var(--warn-dim);
}
.tier-sub {
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  text-transform: lowercase;
}

@media (max-width: 720px) {
  .mode-toggle {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .mode-btn { padding: 14px 16px; gap: 12px; }
  .mode-letter { width: 32px; height: 32px; font-size: var(--fs-ui); }
  .tier-toggle {
    display: flex;
    width: 100%;
  }
  .tier-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
  }
  .tier-sub { display: none; }
}

.install-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.install-tab {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: var(--ls-label);
  color: var(--text-muted);
  padding: 14px 22px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  white-space: nowrap;
}
.install-tab:hover { color: var(--text); }
.install-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.install-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}

/* Inactive panes get `hidden` attribute from JS, which browsers render as
   display:none by default. The CSS below is a belt-and-suspenders hide
   in case the HTML somehow loses the attribute. All visible panes occupy
   the same grid cell (column 1, row 1). */
.install-pane {
  grid-column: 1;
  grid-row: 1;
}
.install-pane[hidden] { display: none !important; }

/* Shell prompt for one-liner style terminals */
.terminal-body-shell {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-body-shell .shell-prompt {
  color: var(--accent);
  font-weight: 700;
  user-select: none;
  flex-shrink: 0;
}
.terminal-body-shell code {
  display: inline;
  white-space: pre-wrap;
  word-break: break-all;
  flex: 1;
}

.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: var(--fs-micro);
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.terminal-foot code {
  color: var(--text-dim);
  background: transparent;
  padding: 0;
}
.terminal-foot .foot-label { color: var(--text-muted); }

.install-narrative {
  grid-column: 2;
  grid-row: 1;
}

@media (max-width: 900px) {
  .install-grid { grid-template-columns: 1fr; gap: 32px; }
  .install-narrative { grid-column: 1; grid-row: auto; }
}

/* Install notes (auth + scope cards) */
.install-notes {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 820px) {
  .install-notes { grid-template-columns: 1fr; }
}

.install-note-card {
  padding: 28px 28px 26px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.install-note-card .note-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.install-note-card .note-num {
  font-size: var(--fs-micro);
  font-weight: 700;
  padding: 4px 9px;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius);
  letter-spacing: var(--ls-caps);
}
.install-note-card .note-title {
  font-family: var(--font-mono);
  font-size: var(--fs-title);
  font-weight: 600;
  color: var(--text);
  letter-spacing: var(--ls-label);
  text-transform: lowercase;
}
.install-note-card p {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--text-dim);
  margin-bottom: 14px;
}
.install-note-card p.note-sub {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  margin-bottom: 0;
}
.install-note-card p strong.ac { color: var(--accent); font-weight: 600; }
.install-note-card p strong.warn { color: var(--warn); font-weight: 600; }
.install-note-card .note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 4px;
  counter-reset: notelist;
}
.install-note-card .note-list li {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--text-dim);
  padding-left: 28px;
  position: relative;
  counter-increment: notelist;
}
.install-note-card .note-list li::before {
  content: counter(notelist, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: var(--ls-label);
  padding-top: 2px;
}

/* scope card uses the same accent as the auth card — no warning tone */

.terminal {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(0,255,163,0.04),
    0 30px 80px -40px rgba(0,255,163,0.15),
    0 0 60px -20px rgba(0,0,0,0.6);
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 255, 163, 0.02) 3px,
    rgba(0, 255, 163, 0.02) 4px
  );
  mix-blend-mode: screen;
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-dot.red    { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green  { background: #27c93f; }

.term-title {
  margin-left: 10px;
  font-size: var(--fs-caption);
  color: var(--text-dim);
  letter-spacing: var(--ls-label);
}

.copy-btn {
  margin-left: auto;
  font-size: var(--fs-micro);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  text-transform: lowercase;
  letter-spacing: var(--ls-label);
  transition: all 200ms var(--ease);
}
.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.copy-btn.copied {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.terminal-body {
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: var(--fs-terminal);
  line-height: var(--lh-terminal);
  color: var(--text);
  overflow-x: auto;
  position: relative;
  z-index: 1;
  font-weight: 400;
}
.terminal-body code { display: block; white-space: pre; }

/* install narrative */

.install-narrative {
  padding: 8px 0 0;
}

.install-h {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: var(--ls-label);
  margin-bottom: 12px;
  font-weight: 500;
}

.install-quote {
  font-family: var(--font-serif);
  font-size: var(--fs-editorial-sm);
  font-style: italic;
  line-height: var(--lh-editorial);
  color: var(--text);
  margin-bottom: 28px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.quote-mark {
  color: var(--accent);
  font-size: 1.5em;
  line-height: 0;
  position: relative;
  top: 0.15em;
  padding: 0 0.1em;
}
.cursor {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.7em;
  font-style: normal;
  animation: blink 1.1s steps(2, end) infinite;
  transform: translateY(-0.08em);
  margin: 0 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.install-note {
  font-size: var(--fs-ui);
  color: var(--text-dim);
  line-height: var(--lh-body);
  margin-bottom: 20px;
}

.install-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-caption);
  color: var(--text-dim);
}
.install-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.li-bullet {
  color: var(--accent);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────────────────
   how it works · steps
   ──────────────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding: 36px 34px;
  background: var(--bg);
  position: relative;
  transition: background 240ms var(--ease);
}
.step:hover { background: var(--bg-elev); }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 500ms var(--ease);
}
.step:hover::before { width: 100%; }

.step-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.step-num {
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: var(--ls-label);
  font-family: var(--font-mono);
}
.step-label {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  flex: 1;
}
.step-time {
  font-size: var(--fs-micro);
  color: var(--text-dim);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-editorial-sm);
  font-weight: 400;
  line-height: var(--lh-editorial);
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: var(--ls-editorial);
}

.step-body {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--text-dim);
  margin-bottom: 22px;
  max-width: 38em;
}

.step-code {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: var(--lh-code-block);
  color: var(--text-dim);
  padding: 14px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  white-space: pre;
  overflow-x: auto;
}
.step-code .kw  { color: var(--accent); font-weight: 500; }
.step-code .rt  { color: var(--text); }
.step-code .dim { color: var(--text-muted); }
.step-code .ok  { color: var(--accent); }

/* ────────────────────────────────────────────────────────────────────────
   tiers
   ──────────────────────────────────────────────────────────────────────── */

.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
/* Product plans: up to four columns on wide viewports */
.tiers.tiers-product {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
  .tiers.tiers-product { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .tiers { grid-template-columns: 1fr; }
  .tiers.tiers-product { grid-template-columns: 1fr; }
}

.tier-networks-block {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px dashed var(--border);
}
.tier-networks-head {
  margin-bottom: 20px;
}
.tier-networks-head .section-tag {
  margin-top: 6px;
}
.tier-networks-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-editorial-mid);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}
.tier-networks-sub {
  font-size: var(--fs-ui);
  color: var(--text-dim);
  line-height: var(--lh-body);
  max-width: 42em;
  margin-top: 10px;
}
.tier-tier-muted .tier-badge {
  border-color: var(--border-strong);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--text-muted) 6%, transparent);
}
.tier-contact .tier-price-val {
  font-size: var(--fs-editorial-mid);
}

.tier-plans-note {
  margin-bottom: 28px;
}

.operators-cta {
  margin-top: 1rem;
}
.operators-cta-btn {
  display: inline-flex;
}

.btn-tier-secondary {
  width: 100%;
  justify-content: center;
  border-color: var(--border-strong);
}

.tier {
  padding: 36px 32px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: border-color 300ms var(--ease), transform 300ms var(--ease);
}
.tier:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.tier-badge {
  font-size: var(--fs-micro);
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  text-transform: lowercase;
  letter-spacing: var(--ls-caps);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.tier-badge-main {
  border-color: var(--mainnet);
  color: var(--mainnet);
  background: color-mix(in srgb, var(--mainnet) 10%, transparent);
}

.tier-price {
  text-align: right;
  font-family: var(--font-mono);
}
.tier-price-val {
  font-size: var(--fs-tier-price);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.tier-price-label {
  display: block;
  font-size: var(--fs-micro);
  color: var(--text-muted);
  text-transform: lowercase;
  letter-spacing: var(--ls-label);
  margin-top: 2px;
}

.tier-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-editorial-lg);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  line-height: var(--lh-editorial-tight);
}

.tier-desc {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--text-dim);
  margin-bottom: 28px;
  max-width: 34em;
}

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: var(--fs-ui);
  color: var(--text);
  line-height: var(--lh-body);
}
.tier-features li.muted { color: var(--text-muted); }
.tier-features li strong.em { color: var(--accent); font-weight: 500; }
.tier-mainnet .tier-features li strong.em { color: var(--mainnet); }

.tick {
  display: inline-block;
  width: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-caption);
  flex-shrink: 0;
  line-height: var(--lh-micro);
}
.tick-dim { color: var(--text-muted); }
.tier-mainnet .tick { color: var(--mainnet); }

.btn-devnet {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  width: 100%;
  justify-content: center;
  font-weight: 600;
}
.btn-devnet:hover {
  background: var(--text);
  border-color: var(--accent);
}

.btn-mainnet {
  background: var(--mainnet);
  color: var(--bg);
  border-color: var(--mainnet);
  width: 100%;
  justify-content: center;
  font-weight: 600;
}
.btn-mainnet:hover {
  background: var(--text);
  border-color: var(--mainnet);
  box-shadow: 0 0 20px color-mix(in srgb, var(--mainnet) 35%, transparent);
}

.tier-network {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: var(--fs-micro);
  letter-spacing: var(--ls-label);
}
.tier-network-label { color: var(--text-muted); }
.tier-network-val { color: var(--text); }
.tier-mainnet .tier-network-val { color: var(--mainnet); }

/* mainnet seal */
.tier-mainnet {
  border-color: color-mix(in srgb, var(--mainnet) 35%, var(--border));
}
.tier-mainnet::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--mainnet) 10%, transparent), transparent 60%);
  pointer-events: none;
}

.tier-seal {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 96px;
  height: 96px;
  border: 1px solid var(--mainnet);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}
.tier-seal::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed var(--mainnet);
  border-radius: 50%;
}
.seal-inner {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--fs-nano);
  font-weight: 700;
  color: var(--mainnet);
  letter-spacing: var(--ls-caps-tight);
  line-height: 1.3;
}
.seal-dots {
  font-size: 6px;
  margin-top: 2px;
}

.tier-mainnet .tier-header,
.tier-mainnet .tier-name,
.tier-mainnet .tier-desc,
.tier-mainnet .tier-features,
.tier-mainnet .btn-mainnet,
.tier-mainnet .tier-network {
  position: relative;
  z-index: 1;
}

/* migrate strip */

.migrate {
  margin-top: 48px;
  padding: 36px 34px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 820px) {
  .migrate { grid-template-columns: 1fr; gap: 24px; }
}

.migrate-label {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  letter-spacing: var(--ls-caps);
  text-transform: lowercase;
  margin-bottom: 8px;
}
.migrate-h {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-editorial-mid);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.migrate-p {
  font-size: var(--fs-caption);
  color: var(--text-dim);
}

.migrate-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: mig;
}
.migrate-steps li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--fs-ui);
  color: var(--text);
  background: var(--bg);
  transition: border-color 240ms var(--ease);
}
.migrate-steps li:hover { border-color: var(--accent); }
.m-num {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--fs-title);
}
.m-sub {
  font-size: var(--fs-micro);
  color: var(--text-muted);
  letter-spacing: var(--ls-label);
  text-align: right;
}
@media (max-width: 640px) {
  .migrate-steps li { grid-template-columns: 24px 1fr; }
  .m-sub { grid-column: 2; text-align: left; }
}

/* ────────────────────────────────────────────────────────────────────────
   dashboard
   ──────────────────────────────────────────────────────────────────────── */

.dashboard {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  box-shadow:
    0 40px 120px -60px rgba(0,255,163,0.15),
    0 0 100px -40px rgba(0,0,0,0.6);
  position: relative;
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-caption);
}
.dash-chrome-left { display: flex; gap: 8px; }
.dash-chrome-title {
  flex: 1;
  text-align: center;
  color: var(--text-dim);
  letter-spacing: var(--ls-label);
}
.dash-chrome-right {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.dash-live {
  color: var(--accent);
  letter-spacing: var(--ls-caps-tight);
}

.dash-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
@media (max-width: 880px) {
  .dash-body { grid-template-columns: 1fr; }
}

.dash-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 20px 22px;
  position: relative;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.panel-title {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--text);
  font-weight: 600;
}
.panel-tag {
  font-size: var(--fs-nano);
  color: var(--text-muted);
  letter-spacing: var(--ls-label);
}

.dash-nodes { grid-column: 1; grid-row: 1; }
.dash-replication { grid-column: 2; grid-row: 1; }
.dash-payments { grid-column: 1; grid-row: 2; }
.dash-kpi { grid-column: 2; grid-row: 2; }
@media (max-width: 880px) {
  .dash-nodes, .dash-replication, .dash-payments, .dash-kpi {
    grid-column: 1;
    grid-row: auto;
  }
}

/* nodes panel */
.node-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.node-row {
  display: grid;
  grid-template-columns: 1.5fr 1.4fr 1fr 0.7fr 0.8fr;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: var(--fs-caption);
  border-bottom: 1px solid var(--border);
}
.node-row:last-child { border-bottom: none; }
.node-col { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.node-id {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}
.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background 300ms;
  flex-shrink: 0;
}
.node-row.online .node-dot {
  background: var(--accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 50%, transparent);
}
.node-row.offline .node-dot { background: var(--danger); }

.node-region, .node-tee, .node-rtt-cell, .node-status {
  color: var(--text-dim);
  font-size: var(--fs-micro);
}
.node-rtt-cell { color: var(--accent); font-variant-numeric: tabular-nums; }
.node-status {
  font-size: var(--fs-nano);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-tight);
  color: var(--text-muted);
}
.node-row.online .node-status { color: var(--accent); }
.node-row.offline .node-status { color: var(--danger); }

.node-badge {
  font-size: 8px;
  padding: 2px 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  letter-spacing: var(--ls-caps-tight);
  margin-left: 6px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  font-weight: 600;
}

.node-attested-row {
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

/* replication panel */
.rep-graph {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.rep-row {
  display: grid;
  grid-template-columns: 120px 1fr 70px;
  gap: 12px;
  align-items: center;
  font-size: var(--fs-micro);
  color: var(--text-dim);
}
.rep-label { letter-spacing: var(--ls-label); }
.rep-val {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.rep-bar {
  height: 4px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.rep-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 40%, transparent);
  position: relative;
}
.rep-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s linear infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.rep-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.rep-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rs-label {
  font-size: var(--fs-nano);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-tight);
}
.rs-val {
  font-size: var(--fs-rep-val);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
}

/* payment feed */
.pay-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pay-row {
  display: grid;
  grid-template-columns: 70px 1fr 60px 100px;
  gap: 12px;
  padding: 11px 0;
  font-size: var(--fs-micro);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.pay-row:last-child { border-bottom: none; }
.pay-time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pay-action { color: var(--text); }
.pay-amt { color: var(--accent); text-align: right; font-variant-numeric: tabular-nums; }
.pay-tx { color: var(--text-dim); text-align: right; }

.pay-row.incoming {
  animation: incoming 600ms var(--ease);
}
@keyframes incoming {
  from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--accent) 10%, transparent); }
  to   { opacity: 1; transform: translateY(0); background: transparent; }
}

/* KPIs */
.dash-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px 22px;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.kpi-label {
  font-size: var(--fs-nano);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps-tight);
  color: var(--text-muted);
}
.kpi-val {
  font-size: var(--fs-kpi-val);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-hero);
}
.kpi-val.ac { color: var(--accent); }
.kpi-unit {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin-left: 2px;
}

/* ────────────────────────────────────────────────────────────────────────
   faq
   ──────────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 780px) { .faq { grid-template-columns: 1fr; } }

.faq-item {
  padding: 32px 30px;
  background: var(--bg);
}

.faq-q {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-editorial-sm);
  font-weight: 400;
  line-height: var(--lh-faq-q);
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: var(--ls-editorial);
}

.faq-a {
  font-size: var(--fs-ui);
  line-height: var(--lh-body);
  color: var(--text-dim);
}
.faq-a strong { color: var(--accent); font-weight: 500; }
.faq-a code.kbd { color: var(--accent); }

/* floating social actions */
.social-dock {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), background 180ms var(--ease);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-btn:hover,
.social-btn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .social-dock {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .social-btn {
    width: 36px;
    height: 36px;
  }
  .social-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   footer
   ──────────────────────────────────────────────────────────────────────── */

.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

.footer-logo {
  font-size: var(--fs-footer-brand);
  font-weight: 700;
  margin-bottom: 14px;
}
.footer-tag {
  font-size: var(--fs-ui);
  color: var(--text-dim);
  max-width: 22em;
  line-height: var(--lh-body);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-h {
  font-size: var(--fs-nano);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.footer-col a {
  font-size: var(--fs-caption);
  color: var(--text-dim);
  transition: color 200ms var(--ease);
}
.footer-col a:hover { color: var(--accent); }

.footer-ascii {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  line-height: var(--lh-micro);
  color: var(--text-muted);
  white-space: pre;
  overflow-x: auto;
  padding: 0;
  background: transparent;
  border: none;
  margin: 0 0 28px;
}

.footer-legal {
  max-width: 800px;
  font-size: var(--fs-micro);
  line-height: var(--lh-body);
  color: var(--text-muted);
  letter-spacing: var(--ls-body);
}

/* ────────────────────────────────────────────────────────────────────────
   reveal animations
   ──────────────────────────────────────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ────────────────────────────────────────────────────────────────────────
   selection + scrollbar
   ──────────────────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border: 2px solid var(--bg);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-dim); }

/* ────────────────────────────────────────────────────────────────────────
   responsive
   ──────────────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
