/* ============================================================================
   Whisper · Agent Infrastructure Platform - marketing site design system
   Translated VERBATIM from whisper.security's globals.css (the real dark
   design system). Conservative in what we emit: strict, deterministic CSS;
   no framework, no build step. Loaded on whisper.online + agents.whisper.online.
   ========================================================================== */

/* ─── Design tokens (from whisper-website globals.css :root) ─── */
:root {
  /* Background colors */
  --bg-primary: #010103;
  --bg-secondary: #111025;
  --bg-card: #0d0d1a;
  --bg-purple: rgba(53, 28, 117, 0.1);
  --bg-purple-gradient: linear-gradient(135deg, #351c75 0%, #7a40ff 50%, #5363c9 100%);

  /* Text colors */
  --text-primary: #dddddd;
  --text-secondary: #9b9b9b;
  --text-muted: #666666;

  /* Accent colors */
  --accent-purple: #7a40ff;
  --accent-purple-light: #b794ff;
  --accent-blue: #5363c9;
  --accent-cyan: #00d4ff;

  /* Border colors */
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(122, 64, 255, 0.2);
  --border-purple-subtle: rgb(53, 28, 117);

  /* Extra background shades */
  --bg-card-hover: #111025;
  --bg-card-deep: #0a0a14;
  --bg-nav: #050310;
  --bg-sidebar: #08080f;
  --bg-inset: #12122a;
  --bg-inset-deep: #1a1a35;

  /* Shadows */
  --glow-purple: 0 0 20px rgba(122, 64, 255, 0.5);
  --glow-purple-strong: 0 0 40px rgba(122, 64, 255, 0.7);

  /* Layout */
  --maxw: 1400px;
}

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

/* ─── Base styles (verbatim) ─── */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #030108;
  color: var(--text-secondary);
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Fixed background via pseudo-element - the signature 5-ellipse radial
   purple/blue backdrop (copied exactly from globals.css). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #030108;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(53, 28, 117, 0.55), transparent 60%),
    radial-gradient(ellipse 65% 45% at 90% 10%, rgba(83, 99, 201, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 45%, rgba(53, 28, 117, 0.20), transparent 55%),
    radial-gradient(ellipse 65% 45% at 75% 65%, rgba(138, 92, 199, 0.16), transparent 50%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(17, 10, 37, 0.9), transparent 60%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* Gradient text for "God Mode" (verbatim) */
.gradient-text {
  background: linear-gradient(99deg, rgb(83, 99, 201), rgb(138, 92, 199));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(rgb(53, 28, 117) 5px 6px 20px) saturate(2);
}

/* Section heading gradient - animated shimmer with purple tint (verbatim) */
.gradient-heading {
  background: linear-gradient(
    130deg,
    #a78bfa 0%,
    #c4b0f5 25%,
    #d8ccf8 45%,
    #a78bfa 60%,
    #d0c0f6 80%,
    #9171e8 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heading-shimmer 8s ease-in-out infinite;
}

@keyframes heading-shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* Section label with horizontal gradient lines (verbatim) */
.section-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}
.section-label span {
  color: #9466ff;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 64, 255, 0.5), rgba(255, 255, 255, 0.15));
}
.section-label::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), rgba(122, 64, 255, 0.5), transparent);
}

/* ─── Button styles (verbatim + inline-flex for anchors) ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-purple);
  color: #ffffff;
  border-radius: 64px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-purple-light);
  box-shadow: var(--glow-purple);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-purple);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 64px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--accent-purple);
  background: rgba(122, 64, 255, 0.1);
}

.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ─── Card styles - glassmorphism base (verbatim) ─── */
.card {
  background: rgba(13, 13, 26, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--border-card); }
/* #171 — a bare `.card` (one that is NOT a `.trio-card`/`.card-inner`/`.mcard`, which each set
   their own padding) holds its content directly, so it needs default padding; without it the text
   sits flush against the border (the "text almost outside the box" bug). `.trio-card`/`.mcard`
   come later in this file and re-set padding, so they win by source order — the trio cards are
   unchanged. Callout `.card`s on the NIC pages now render padded, like every other card. */
.card { padding: 1.5rem 1.6rem; }
/* #171 — `.trio-h` / `.trio-body` are the colored heading + body of a card. They were styled ONLY
   as descendants of `.trio-card`, so a bare `.card` using them rendered with an UNCOLORED heading
   (the "headers not colored" bug). Promote them to standalone selectors so the colored heading and
   the body styling apply in ANY card; `.trio-card .trio-h` below keeps the same values. */
.trio-h {
  font-size: 1.12rem; line-height: 1.3; color: var(--accent-purple-light);
  margin: 0 0 0.6rem;
}
.trio-body {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; margin: 0;
}

/* Card hover glow + lift - desktop only (verbatim) */
.use-case-card { transition: box-shadow 0.4s ease, transform 0.4s ease; }
@media (hover: hover) {
  .use-case-card:hover {
    box-shadow: 0 0 25px var(--glow-color, rgba(122,64,255,.35)), 0 0 50px var(--glow-color, rgba(122,64,255,.18)), 0 4px 20px rgba(0,0,0,0.3);
    transform: translateY(-4px);
  }
}

/* ─── Scroll reveal animations - progressive enhancement, never invisible ───
   Hiding is scoped to html.js, set by the one-line guard script at the top of every
   <head>. No JS (blocked, failed, disabled) means no .js class - the page renders as
   plain, fully-visible HTML. site.js then adds .revealed as sections approach. */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.revealed { animation: revealUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.reveal-stagger > .reveal:nth-child(1) { animation-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { animation-delay: 90ms; }
.reveal-stagger > .reveal:nth-child(3) { animation-delay: 180ms; }
.reveal-stagger > .reveal:nth-child(4) { animation-delay: 270ms; }
.reveal-stagger > .reveal:nth-child(5) { animation-delay: 360ms; }
.reveal-stagger > .reveal:nth-child(6) { animation-delay: 450ms; }

/* ─── Hero badge - animated gradient border via @property (verbatim) ─── */
.hero-badge-wrapper { position: relative; display: inline-block; }
.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  overflow: hidden;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-badge > * { position: relative; z-index: 1; }
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #23d18b; box-shadow: 0 0 8px #23d18b;
}
.hero-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1px;
  background: conic-gradient(
    from var(--badge-angle, 0deg),
    #7a40ff 0%,
    #5363c9 25%,
    #06b6d4 50%,
    #8a5cc7 75%,
    #7a40ff 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: badge-rotate 4s linear infinite;
}
.hero-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(13, 13, 26, 0.85);
  z-index: 0;
}
@keyframes badge-rotate {
  from { --badge-angle: 0deg; }
  to { --badge-angle: 360deg; }
}
@property --badge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Selection + scrollbar (verbatim) */
::selection { background: var(--accent-purple); color: white; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple-light); }

/* ============================================================================
   Layout primitives
   ========================================================================== */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 4rem; } }

main { display: block; }
section.band { padding: 5rem 0; position: relative; }
@media (max-width: 640px) { section.band { padding: 3.25rem 0; } }

.eyebrow { margin-bottom: 1.1rem; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 2.75rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; }
.section-head p { margin-top: 1rem; color: var(--text-secondary); font-size: 1.05rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent-purple); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Visually-hidden text for screen readers (e.g. "(opens in a new tab)" on external links). */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* External-link affordance: a small, unobtrusive arrow rendered after the link text. */
.ext-link::after { content: " \2197"; font-size: 0.85em; opacity: 0.7; }

/* ============================================================================
   Navbar - fixed, bg #050310/95, border-bottom (per Navbar.tsx)
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(5, 3, 16, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .nav-inner { padding: 1rem 4rem; } }
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-center { display: none; align-items: center; gap: 1.75rem; }
.nav-center a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s ease;
}
.nav-center a:hover, .nav-center a[aria-current="page"] { color: #fff; }
.nav-right { display: none; align-items: center; gap: 0.75rem; }
.nav-right .btn-primary { padding: 8px 20px; font-size: 14px; }
.nav-signin {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 20px; font-size: 14px; font-weight: 400;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  transition: all 0.2s ease;
}
.nav-signin:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
@media (min-width: 1024px) {
  .nav-center { display: flex; }
  .nav-right { display: flex; }
}

.nav-burger {
  display: inline-flex; padding: 10px; margin: -6px; color: var(--text-primary);
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger svg { width: 24px; height: 24px; }

/* Mobile menu (accordion) */
.nav-mobile {
  display: none;
  background: rgba(13, 13, 26, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
}
.nav-mobile.open { display: block; }
.nav-mobile .inner { padding: 1rem 1.5rem; max-height: 75vh; overflow-y: auto; }
.nav-mobile a { display: block; color: var(--text-primary); font-size: 1rem; padding: 0.65rem 0; }
.nav-mobile .actions { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--border-subtle); display: grid; gap: 0.75rem; }
.nav-mobile .actions a { text-align: center; }

/* Spacer so fixed nav doesn't overlap content */
.nav-spacer { height: 69px; }

/* ============================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: 6.5rem 0 4rem; text-align: center; }
@media (max-width: 640px) { .hero { padding: 4.5rem 0 2.5rem; } }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 18ch;
  margin: 1.4rem auto 0;
}
.hero .lede {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.18rem;
  color: var(--text-secondary);
}
.hero .lede .em { color: var(--text-primary); font-weight: 700; }
.hero-cta { margin-top: 2.25rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Install band - the "$ curl -fsSL https://get.whisper.online | sh" centerpiece ─── */
.installband {
  margin: 2.5rem auto 0;
  max-width: 44rem;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(53,28,117,0.28), rgba(0,40,60,0.18));
  padding: 1.4rem 1.6rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(122,64,255,0.12);
}
.installband .cmd-row {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 1.15rem; font-weight: 700;
}
.installband .cmd-row .prompt { color: var(--accent-purple-light); }
.installband .cmd-row code {
  color: #fff; background: none; border: 0; padding: 0;
  font-family: inherit; font-size: inherit;
}
.installband .ilcap { margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: 'Lato', sans-serif; font-size: 0.72rem; font-weight: 600;
  color: var(--accent-purple-light);
  background: rgba(122,64,255,0.12);
  border: 1px solid var(--border-card);
  border-radius: 7px; padding: 4px 9px; cursor: pointer;
  transition: all 0.2s ease;
}
.copy-btn:hover { background: rgba(122,64,255,0.22); color: #fff; }
.copy-btn.copied { color: #23d18b; border-color: rgba(35,209,139,0.4); }

/* ============================================================================
   Problem → Answer columns (Today YOU / WITH Whisper)
   ========================================================================== */
.pcell {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(13, 13, 26, 0.5);
  padding: 1.4rem 1.5rem;
}
.pcell .s { display: block; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 0.02em; }
.pcell.problem .s { color: #e0608a; }
.pcell.answer .s { color: var(--accent-purple-light); }
.pcell p { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.55; }
.pcell.answer { border-color: var(--border-card); background: rgba(53,28,117,0.12); }

.arrow-divider { text-align: center; color: var(--accent-purple); font-size: 1.6rem; margin: 1.75rem 0 1.25rem; }

/* ============================================================================
   Layer teaser cards (3 layers)
   ========================================================================== */
.layer-card { padding: 1.75rem; display: flex; flex-direction: column; height: 100%; }
.layer-card .lc-num {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.8rem; color: var(--accent-purple); font-weight: 700; letter-spacing: 0.1em;
}
.layer-card h3 { font-size: 1.5rem; margin-top: 0.4rem; }
.layer-card .lc-sub { color: var(--accent-purple-light); font-weight: 600; margin-top: 0.3rem; font-size: 0.95rem; }
.layer-card p { color: var(--text-secondary); margin-top: 0.85rem; font-size: 0.95rem; line-height: 1.55; flex: 1; }
.layer-card .lc-link { margin-top: 1.1rem; color: var(--accent-purple-light); font-weight: 600; font-size: 0.9rem; }
.layer-card .lc-link:hover { color: #fff; }
.layer-card .lc-link .arr { transition: transform 0.2s ease; display: inline-block; }
.layer-card:hover .lc-link .arr { transform: translateX(4px); }

/* ============================================================================
   The .proc command panel - DARK re-skin of the deck's command panel.
   Deep-purple header bar + monospace body with colored verbs/args/results.
   ========================================================================== */
.proc {
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: rgba(8, 6, 20, 0.85);
  overflow: hidden;
  box-shadow: 0 0 30px rgba(122,64,255,0.10);
}
.proc .ph {
  font-size: 0.72rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #351c75, #5b21b6);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 9px 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.proc .ph .dots { display: inline-flex; gap: 5px; }
.proc .ph .dots i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; opacity: 0.85; }
.proc .ph .dots i:nth-child(1){ background:#ff5f57; } .proc .ph .dots i:nth-child(2){ background:#febc2e; } .proc .ph .dots i:nth-child(3){ background:#28c840; }
.proc .pb {
  padding: 12px 15px;
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.82rem; line-height: 1.65;
  overflow-x: auto;
}
.proc .row { white-space: nowrap; }
.proc .row .cn {
  display: inline-block; width: 15px; height: 15px; line-height: 15px; text-align: center;
  border-radius: 50%; background: var(--accent-purple); color: #fff;
  font-size: 0.62rem; font-weight: 700; margin-right: 8px;
  font-family: 'Lato', sans-serif; vertical-align: 1px;
}
.proc .row .verb { color: var(--accent-purple-light); font-weight: 700; }
.proc .row .arr { color: var(--accent-purple); padding: 0 7px; font-weight: 700; }
.proc .row .res { color: #8fe3a4; }
.proc .row .lit { color: #a5d6ff; }
.proc .row .key { color: #c9a6ff; }
.proc .row .num { color: #f2cc60; }
.proc .row .type { color: var(--accent-cyan); }
.proc .row .ok { color: #23d18b; font-weight: 700; }
.proc .row .no { color: #ff6b81; font-weight: 700; }
.proc .row .ev { color: var(--text-secondary); }
.proc .row .cmt { color: #6f6890; font-style: italic; }

/* ============================================================================
   In-plain-terms note + close lines (platform/connect)
   ========================================================================== */
.plain {
  margin-top: 1.25rem;
  padding: 0.95rem 1.25rem;
  border-left: 3px solid var(--accent-purple);
  background: rgba(53,28,117,0.10);
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem; color: var(--text-secondary); line-height: 1.6;
}
.plain b { color: var(--accent-purple-light); }
.close-line {
  text-align: center; max-width: 52rem; margin: 2.25rem auto 0;
  color: var(--accent-purple-light); font-weight: 600; font-size: 1.05rem; line-height: 1.5;
}

/* Deep layer section (platform) */
.layer-deep { padding: 4rem 0; border-top: 1px solid var(--border-subtle); }
.layer-deep:first-of-type { border-top: 0; }
.layer-deep .lh { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.layer-deep .lh .num { color: var(--accent-purple); font-size: 1.6rem; font-weight: 700; }
.layer-deep .lh h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.layer-deep .state {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; background: rgba(35,209,139,0.12);
  color: #23d18b; border: 1px solid rgba(35,209,139,0.3);
}
.layer-deep .sub { color: var(--accent-purple-light); font-weight: 600; margin-top: 0.5rem; font-size: 1.1rem; }
.layer-deep .lead { color: var(--text-secondary); margin-top: 0.85rem; max-width: 58rem; font-size: 1.02rem; line-height: 1.6; }
.itembox { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 1.5rem; align-items: start; margin-top: 1.5rem; }
@media (max-width: 900px) { .itembox { grid-template-columns: 1fr; } }
.itembox > * { min-width: 0; }
.explain { border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(13,13,26,0.5); padding: 1.25rem 1.4rem; }
.explain h4 { font-size: 0.75rem; font-weight: 700; color: var(--accent-purple-light); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.6rem; }
.explain p { margin: 0 0 0.7rem; font-size: 0.94rem; line-height: 1.55; color: var(--text-secondary); }
.explain p .em { color: var(--text-primary); font-weight: 700; }
.explain ul { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.explain li { font-size: 0.93rem; line-height: 1.5; margin: 0.45rem 0; padding-left: 1.1rem; position: relative; color: var(--text-secondary); }
.explain li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-purple); }
.explain li b { color: var(--accent-purple-light); }
.explain code, .lead code, .plain code, .step code {
  font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em;
  background: rgba(122,64,255,0.12); color: var(--accent-purple-light);
  padding: 1px 6px; border-radius: 4px; border: 1px solid var(--border-card);
}
.cn-inline {
  display: inline-block; width: 14px; height: 14px; line-height: 14px; text-align: center;
  border-radius: 50%; background: var(--accent-purple); color: #fff;
  font-size: 0.6rem; font-weight: 700; vertical-align: 1px;
}

/* ============================================================================
   Trio cards - the three-item groupings (home gifts, platform adoption), each
   a glass .card with a rounded purple icon tile holding a small inline SVG.
   One consistent family across every trio: same tile, same stroke, same scan.
   ========================================================================== */
.trio-grid { margin-top: 1.75rem; align-items: stretch; }
.trio-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.6rem 1.5rem; height: 100%;
}
/* The accent tile: ~46px rounded square, the brand purple gradient, the icon
   centered inside it in white. */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 13px;
  background: var(--bg-purple-gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(122, 64, 255, 0.28);
  margin-bottom: 1.1rem;
}
.icon-tile svg { width: 26px; height: 26px; display: block; }
.trio-card .trio-h {
  font-size: 1.12rem; line-height: 1.3; color: var(--accent-purple-light);
  margin: 0 0 0.6rem;
}
.trio-card .trio-body {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; margin: 0;
}
@media (prefers-reduced-motion: reduce) { .icon-tile { box-shadow: none; } }

/* ============================================================================
   Moat grid + survey + team (platform)
   ========================================================================== */
.moat-lead { text-align: center; font-size: 1.35rem; font-weight: 700; color: var(--text-primary); max-width: 48rem; margin: 0 auto 2rem; line-height: 1.35; }
.moat-lead span { color: var(--accent-purple-light); }
.mcard { padding: 1.3rem 1.4rem; }
.mcard b { display: block; color: var(--accent-purple-light); font-size: 1.02rem; margin-bottom: 0.5rem; }
.mcard p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }

.survey { margin-top: 2.5rem; border: 1px solid var(--border-subtle); border-radius: 14px; background: rgba(13,13,26,0.4); padding: 1.5rem 1.75rem; }
.survey h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-purple-light); margin-bottom: 0.7rem; }
.survey p { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); }
.survey p .n { color: var(--text-primary); font-weight: 600; }

.team { margin-top: 2.5rem; }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }
.tmember { border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(13,13,26,0.4); padding: 1.1rem 1.25rem; }
.tmember .nm { font-weight: 700; color: var(--accent-purple-light); font-size: 1.05rem; }
.tmember .role { color: var(--text-primary); font-weight: 600; margin-left: 0.5rem; font-size: 0.9rem; }
.tmember .cred { color: var(--text-secondary); font-size: 0.86rem; margin-top: 0.35rem; line-height: 1.5; }
.advisory { margin-top: 1.25rem; font-size: 0.92rem; color: var(--text-secondary); }
.advisory b { color: var(--accent-purple-light); }

/* ============================================================================
   Connect page - quickstart + tiers + code samples
   ========================================================================== */
.step { border: 1px solid var(--border-subtle); border-radius: 14px; background: rgba(13,13,26,0.5); padding: 1.5rem 1.6rem; margin-bottom: 1.25rem; }
.step .step-h { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem; }
.step .step-n { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-purple); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.step .step-h h3 { font-size: 1.2rem; }
.step p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }
.step .note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }

.codeblock { position: relative; margin-top: 0.9rem; border: 1px solid var(--border-card); border-radius: 10px; background: rgba(8,6,20,0.85); overflow: hidden; text-align: left; }
/* Standalone codeblocks (direct children of a section container) center in their own
   column on the same centerline as the centered .section-head headings, instead of
   leaning to the left edge of the wider 60rem container. 52rem holds long dig/curl/RDAP
   and TLSA-digest lines cleanly. Codeblocks inside .itembox / .step grid cells are NOT
   direct container children, so they still fill their cell. */
.container > .codeblock { margin: 0.9rem auto 0; max-width: 52rem; }
.codeblock .cb-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 12px; border-bottom: 1px solid var(--border-subtle); background: rgba(53,28,117,0.18); }
.codeblock .cb-head .cb-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent-purple-light); font-weight: 700; }
.codeblock pre { margin: 0; padding: 12px 14px; overflow-x: auto; }
.codeblock code {
  font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.84rem; line-height: 1.6; color: var(--text-primary);
  background: none; border: 0; padding: 0; white-space: pre;
}
.codeblock code .c-prompt { color: var(--accent-purple-light); }
.codeblock code .c-cmd { color: var(--accent-cyan); }
.codeblock code .c-str { color: #a5d6ff; }
.codeblock code .c-flag { color: var(--accent-purple-light); }
.codeblock code .c-cmt { color: #6f6890; font-style: italic; }
.codeblock code .c-out { color: #8fe3a4; }

.tier { border: 1px solid var(--border-subtle); border-radius: 12px; background: rgba(13,13,26,0.45); padding: 1.3rem 1.4rem; }
.tier .badge { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-purple-light); background: rgba(122,64,255,0.12); border: 1px solid var(--border-card); border-radius: 999px; padding: 3px 10px; margin-bottom: 0.6rem; }
.tier h3 { font-size: 1.12rem; }
.tier p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; margin-top: 0.4rem; }

/* ============================================================================
   CTA band (console)
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band .card-inner {
  border: 1px solid var(--border-card);
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(53,28,117,0.30), rgba(0,40,60,0.16));
  padding: 3rem 2rem;
  box-shadow: 0 0 50px rgba(122,64,255,0.12);
  margin-left: auto;
  margin-right: auto;
}
.cta-band .card-inner > h2 { text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.cta-band p { margin: 1rem auto 0; max-width: 38rem; color: var(--text-secondary); font-size: 1.05rem; }
.cta-band .hero-cta { margin-top: 2rem; }

/* ============================================================================
   Agents page - live stats showcase (the centerpiece)
   ========================================================================== */
.stats-band { padding: 4.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  padding: 1.9rem 1.6rem; text-align: center; position: relative;
}
.stat-card .stat-num {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(130deg, #a78bfa 0%, #d8ccf8 45%, #5363c9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heading-shimmer 8s ease-in-out infinite;
  font-variant-numeric: tabular-nums;
}
.stat-card .stat-label { margin-top: 0.6rem; color: var(--text-secondary); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }
.stat-card .stat-sub { margin-top: 0.2rem; color: var(--text-muted); font-size: 0.78rem; }

.as-facts { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.as-fact { border: 1px solid var(--border-card); border-radius: 999px; padding: 8px 18px; font-size: 0.88rem; color: var(--text-secondary); background: rgba(53,28,117,0.12); }
.as-fact b { color: var(--accent-purple-light); font-family: 'SF Mono', Menlo, monospace; }
.stats-updated { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.82rem; }
.stats-updated .v { color: var(--accent-purple-light); font-family: 'SF Mono', Menlo, monospace; }

/* ============================================================================
   Footer - logo + tagline + social + columns + legal (per Footer.tsx)
   ========================================================================== */
.footer { position: relative; padding: 4rem 0 2rem; margin-top: 3rem; }
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(1,1,3,0.4) 8%, rgba(1,1,3,0.75) 20%, #010103 40%);
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
@media (min-width: 1024px) { .footer-inner { padding: 0 4rem; } }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 3rem; margin-bottom: 3rem; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand img { height: 32px; width: auto; display: block; margin-bottom: 1rem; }
.footer-brand .tagline { color: var(--text-secondary); font-size: 0.9rem; max-width: 24rem; margin-bottom: 1.5rem; line-height: 1.55; }
.footer-social { display: flex; align-items: center; gap: 1rem; }
.footer-social a {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: color 0.2s ease;
}
.footer-social a:hover { color: var(--accent-purple); }
.footer-social svg { width: 20px; height: 20px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 560px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-col .ftitle { color: var(--accent-purple); font-weight: 700; font-size: 0.88rem; margin-bottom: 0.85rem; display: block; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.15rem 0; }
.footer-col a { color: var(--text-secondary); font-size: 0.88rem; transition: color 0.2s ease; display: inline-block; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding-top: 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom .copy { color: rgba(155,155,155,0.6); font-size: 0.85rem; }
.footer-bottom .legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-bottom .legal a { color: rgba(155,155,155,0.6); font-size: 0.85rem; transition: color 0.2s ease; }
.footer-bottom .legal a:hover { color: var(--text-secondary); }

/* ============================================================================
   Reduced motion - fail soft to no animation
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gradient-heading, .stat-card .stat-num { animation: none; }
  .hero-badge::before { animation: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal.revealed { animation: none !important; }
  * { transition: none !important; }
}
/* ============================================================================
   Diagrams — hand-authored inline SVG (proof chain · journey home · three
   planes). Scoped under .diagram; append to whisper.css. No JS required.
   ========================================================================== */
.diagram { margin: 2.25rem auto 0; max-width: 720px; }
.diagram svg { display: block; width: 100%; height: auto; margin: 0 auto; color: var(--text-secondary, #9b9b9b); }
.diagram--narrow svg { max-width: 520px; }
.diagram figcaption { margin-top: 0.9rem; text-align: center; font-size: 0.85rem; color: var(--text-muted, #666666); line-height: 1.5; }
.diagram figcaption code { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.92em; color: var(--accent-purple-light, #b794ff); }

/* text — real, selectable, inherits the page face */
.diagram text { font-family: inherit; fill: currentColor; }
.diagram .d-mono { font-family: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace; }
.diagram .d-strong { fill: var(--text-primary, #dddddd); font-weight: 700; }
.diagram .d-accent { fill: var(--accent-purple-light, #b794ff); }
.diagram .d-tool { fill: var(--accent-cyan, #00d4ff); }
.diagram .d-ok { fill: #23d18b; }
.diagram .d-dim { fill: var(--text-muted, #666666); }

/* shapes */
.diagram .d-node { fill: #0a0a14; fill-opacity: 0.92; stroke: var(--border-subtle, rgba(255,255,255,0.1)); }
.diagram .d-node--accent { stroke: var(--accent-purple, #7a40ff); }
.diagram .d-pill { fill: rgba(122, 64, 255, 0.08); stroke: var(--border-card, rgba(122,64,255,0.2)); }
.diagram .d-arrow { fill: var(--accent-purple, #7a40ff); }
.diagram .d-ring { fill: none; stroke: var(--border-subtle, rgba(255,255,255,0.1)); }
.diagram .d-spoke { stroke: var(--accent-purple, #7a40ff); stroke-opacity: 0.45; stroke-dasharray: 2 5; }
.diagram .d-wire-dim { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 1.5; }

/* the through-line: a slow dash flow on the signed/identity path */
.diagram .flow {
  fill: none;
  stroke: var(--accent-purple, #7a40ff);
  stroke-width: 2;
  stroke-dasharray: 5 9;
  animation: d-flow 2.8s linear infinite;
}
@keyframes d-flow { to { stroke-dashoffset: -28; } }

/* gentle pulse on the /128 core */
.diagram .pulse { animation: d-pulse 3.6s ease-in-out infinite; }
@keyframes d-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* pure-CSS interactive layer: hops / beats / planes lift on hover */
.diagram .hop, .diagram .beat, .diagram .plane { opacity: 0.88; transition: opacity 0.25s ease; }
@media (hover: hover) {
  .diagram .hop:hover, .diagram .beat:hover, .diagram .plane:hover { opacity: 1; }
  .diagram .plane:hover .d-node, .diagram .hop:hover .d-node { stroke: var(--accent-purple, #7a40ff); }
}

/* the deliberately disconnected box (Whisper API — not in the trust path) */
.diagram .offchain { opacity: 0.5; }
.diagram .offchain rect { fill: none; stroke: var(--border-subtle, rgba(255,255,255,0.1)); stroke-dasharray: 5 5; }

@media (prefers-reduced-motion: reduce) {
  .diagram .flow, .diagram .pulse { animation: none; }
  .diagram .pulse { opacity: 0.7; }
}

/* ============================================================================
   Docs (#290) — self-hosted /docs: left sidebar + content, dark, whisper.css.
   ========================================================================== */
.docs { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem;
  padding: 6rem 1.5rem 4rem; align-items: start; }
@media (min-width: 1024px) { .docs { padding: 6.5rem 4rem 5rem; gap: 3.5rem; } }
.docs-side { position: sticky; top: 6rem; align-self: start; }
.docs-search { width: 100%; background: var(--bg-inset); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 0.55rem 0.8rem; color: var(--text-primary); font-size: 0.85rem;
  font-family: inherit; margin-bottom: 1.25rem; }
.docs-search::placeholder { color: var(--text-muted); }
.docs-search:focus { outline: none; border-color: var(--accent-purple); }
.docs-nav { list-style: none; margin: 0; padding: 0; }
.docs-nav .sect { color: var(--accent-purple); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 1.4rem 0 0.5rem; }
.docs-nav .sect:first-child { margin-top: 0; }
.docs-nav a { display: block; color: var(--text-secondary); font-size: 0.9rem; padding: 0.32rem 0.7rem;
  border-radius: 8px; border-left: 2px solid transparent; transition: color .15s, background .15s; }
.docs-nav a:hover { color: var(--text-primary); background: var(--bg-card); }
.docs-nav a[aria-current="page"] { color: #fff; background: var(--bg-purple);
  border-left-color: var(--accent-purple); font-weight: 600; }
.docs-main { min-width: 0; max-width: 52rem; }
.docs-main .eyebrow { color: var(--accent-purple); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; }
.docs-main h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em;
  margin: 0.4rem 0 0.6rem; line-height: 1.12; }
.docs-main .lead { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.6; margin-bottom: 2rem; max-width: 42rem; }
.docs-main h2 { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.01em; margin: 2.5rem 0 0.9rem;
  padding-top: 0.5rem; scroll-margin-top: 6rem; }
.docs-main h3 { font-size: 1.15rem; font-weight: 700; margin: 1.8rem 0 0.6rem; scroll-margin-top: 6rem; }
.docs-main p, .docs-main li { color: var(--text-secondary); line-height: 1.68; }
.docs-main ul, .docs-main ol { padding-left: 1.3rem; margin: 0.8rem 0; }
.docs-main li { margin: 0.35rem 0; }
.docs-main a:not(.btn-primary) { color: var(--accent-cyan); text-decoration: none; border-bottom: 1px solid rgba(0,212,255,.25); }
.docs-main a:not(.btn-primary):hover { border-bottom-color: var(--accent-cyan); }
.docs-main strong { color: var(--text-primary); font-weight: 700; }
.docs-main code { font-family: var(--mono, ui-monospace, "JetBrains Mono", Menlo, monospace);
  font-size: 0.86em; background: var(--bg-inset); border: 1px solid var(--border-subtle); border-radius: 5px; padding: 0.1em 0.4em; color: var(--accent-purple-light, #b794ff); }
.docs-main pre { background: var(--bg-card-deep); border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 1.1rem 1.25rem; overflow-x: auto; margin: 1rem 0; line-height: 1.6; }
.docs-main pre code { background: none; border: 0; padding: 0; color: var(--text-primary); font-size: 0.85rem; }
.docs-main pre .c { color: var(--text-muted); }        /* comment */
.docs-main pre .k { color: #b794ff; }                     /* keyword/verb */
.docs-main pre .s { color: #a5d6ff; }                     /* string */
.docs-main pre .o { color: var(--accent-cyan); }          /* output/result */
.docs-callout { display: flex; gap: 0.85rem; background: var(--bg-purple); border: 1px solid var(--border-card);
  border-radius: 12px; padding: 1rem 1.15rem; margin: 1.4rem 0; }
.docs-callout .ico { color: var(--accent-purple); flex-shrink: 0; font-weight: 800; }
.docs-callout p { margin: 0; font-size: 0.92rem; }
.docs-table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.9rem; display: block; overflow-x: auto; }
.docs-table th, .docs-table td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.docs-table th { color: var(--text-primary); font-weight: 700; }
.docs-table td code { white-space: nowrap; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.docs-cardlink { display: block; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 14px;
  padding: 1.1rem 1.2rem; transition: border-color .2s, transform .2s; }
.docs-cardlink:hover { border-color: var(--accent-purple); transform: translateY(-2px); }
.docs-cardlink .t { color: var(--text-primary); font-weight: 700; font-size: 1rem; display: block; margin-bottom: 0.2rem; }
.docs-cardlink .d { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }
.docs-prevnext { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); }
.docs-prevnext a { color: var(--text-secondary); font-size: 0.9rem; }
.docs-burger { display: inline-flex; }
@media (max-width: 860px) {
  .docs { grid-template-columns: 1fr; }
  .docs-side { position: static; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; }
}
