/* ══════════════════════════════════════════════════════════════
   Archonum — WordPress block theme stylesheet (ported from src/styles/globals.css)
   paper #F6F5F2 · ink #0A0A0B · accent #2342FF (cobalt)

   FONTS: Self-hosting is not possible (public/fonts is empty), so the two
   typefaces are loaded from Google Fonts via @import below. Variable axes are
   requested to match the weights used in code (Space Grotesk 300–700,
   JetBrains Mono 400–600). If/when woff2 binaries are dropped into
   assets/fonts/, replace this @import with @font-face declarations and a
   fontFace block in theme.json.

   TOKENS: theme.json owns the canonical palette/typography/spacing presets
   (var(--wp--preset--*) and var(--wp--custom--*)). The short aliases below
   (--paper, --ink, --accent, …) are re-pointed at those tokens so the ported
   class CSS reads exactly like the original and stays editable from the
   Site Editor.
   ══════════════════════════════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400..600;1,400&family=Space+Grotesk:wght@300..700&display=swap");

/* ─── Token aliases → theme.json presets/custom ─────────────────────────────── */
:root {
  --paper: var(--wp--custom--paper, #F6F5F2);
  --paper-2: var(--wp--custom--paper-2, #EFEDE6);
  --ink: var(--wp--custom--ink, #0A0A0B);
  --ink-2: var(--wp--custom--ink-2, #1C1C1F);
  --ink-3: var(--wp--custom--ink-3, #3C3C41);
  --muted: var(--wp--custom--muted, #6B6B70);
  --muted-2: var(--wp--custom--muted-2, #A4A49F);
  --rule: var(--wp--custom--rule, rgba(10, 10, 11, 0.12));
  --rule-strong: var(--wp--custom--rule-strong, rgba(10, 10, 11, 0.24));

  --accent: var(--wp--custom--accent, #2342FF);
  --accent-ink: var(--wp--custom--accent-ink, #FFFFFF);

  --danger: var(--wp--custom--danger, #E5382A);
  --success: var(--wp--custom--success, #18A957);

  --container: var(--wp--custom--container, 1280px);
  --gutter: var(--wp--custom--gutter, 24px);

  --eased: var(--wp--custom--eased, cubic-bezier(0.22, 0.61, 0.36, 1));

  /* Font-family aliases (theme.json exposes these as --wp--custom--font-*) */
  --font-space-grotesk: var(--wp--custom--font-display, "Space Grotesk");
  --font-jetbrains-mono: var(--wp--custom--font-mono, "JetBrains Mono");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "Inter Tight", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ─── Layout ─────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Sticky footer: fill the viewport so short pages (404, thin pages) still
   push the footer to the bottom. WordPress wraps all template output in
   .wp-site-blocks; templates give <main> the .flex-1 class. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.flex-1 { flex: 1 0 auto; }

.rule { height: 1px; background: var(--ink); border: 0; }
.rule--soft { background: var(--rule); }

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.025em;
  font-weight: 500;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 7.2vw, 104px); line-height: 0.96; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; letter-spacing: -0.028em; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }

p { margin: 0; line-height: 1.55; }

.body-lg { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.body { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.caption { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--muted); }

/* Section label — caps + leading line */
.label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--ink);
  display: inline-block;
}

.cap {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}
.mono { font-family: "JetBrains Mono", monospace; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

.accent-text { color: var(--accent); }
.accent-bg { background: var(--accent); color: var(--accent-ink); }
.accent-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  color: var(--accent);
}

/* ─── Topbar ─────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 245, 242, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
  line-height: 1;
}
.brand-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}
.foot .brand-mark { width: 28px; height: 28px; }
.foot .brand { color: var(--paper); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav-right { align-items: center; gap: 10px; }
.nav-right--desktop { display: flex; }

/* ─── Header: mobile menu (site-nav block) ─── */
/* Desktop: the hamburger and the mobile panel are hidden; the center .nav
   and .nav-right--desktop carry the navigation. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

.nav-mobile { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.nav-mobile__inner { display: flex; flex-direction: column; gap: 2px; padding-top: 16px; padding-bottom: 20px; }
.nav-mobile__link {
  padding: 10px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav-mobile__link:hover { color: var(--ink); }
.nav-mobile__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.nav-mobile__cta .btn { width: 100%; justify-content: center; }

/* At the same breakpoint where the inline .nav collapses, swap to the
   hamburger + toggle-driven mobile panel and hide the desktop CTAs. */
@media (max-width: 960px) {
  .nav-right--desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile[data-open="true"] { display: block; }
}

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 2px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms var(--eased), background 120ms, color 120ms, border-color 120ms;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); padding: 10px 14px; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 10px 14px; font-size: 13px; }
.btn .arrow { transition: transform 180ms var(--eased); }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Section shells ─────────────────────────────── */
section { position: relative; }
.section { padding: 96px 0; border-top: 1px solid var(--ink); }
.section--tight { padding: 64px 0; }
.section--hero { padding: 56px 0 96px; border-top: 0; }
.section--dark { background: var(--ink); color: var(--paper); border-top: 1px solid var(--ink); }
.section--dark .body,
.section--dark .body-lg,
.section--dark .body-sm { color: rgba(246, 245, 242, 0.75); }
.section--dark .label { color: rgba(246, 245, 242, 0.6); }
.section--dark .label::before { background: var(--paper); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--dark .rule { background: var(--paper); }
.section--dark .rule--soft { background: rgba(246, 245, 242, 0.14); }

/* ─── Grid ─────────────────────────────── */
.grid { display: grid; gap: 32px; }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ─── Section head ─────────────────────────────── */
.sect-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  margin-bottom: 56px;
}
.sect-head__lede { max-width: 520px; }
.sect-head__body { max-width: 640px; }

/* ─── Key/value rows ─────────────────────────────── */
.kv-list { display: flex; flex-direction: column; }
.kv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.kv:last-child { border-bottom: 0; }
.kv__k {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.kv__v { font-size: 17px; color: var(--ink); }

/* ─── Tags / pills ─────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  background: var(--paper);
}
.tag--success::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}
.tag--fail::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--danger);
}

/* ─── Live dot ─────────────────────────────── */
.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 50%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}

/* ─── Underline link ─────────────────────────────── */
.ulink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.ulink:hover { color: var(--accent); }

/* ─── HERO ─────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 32px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  margin-bottom: 32px;
}
.hero__h1 { max-width: 720px; }
.hero__sub { margin-top: 28px; max-width: 580px; }
.hero__support {
  margin-top: 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.hero__cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__specs {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  max-width: 620px;
}
.hero__specs-v {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.hero__visual {
  position: relative;
  width: 100%;
  height: 560px;
  border: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}

/* code-forward hero variant */
.hero-code {
  background: var(--ink);
  color: var(--paper);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hero-code__bar {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(246, 245, 242, 0.12);
  display: flex;
  align-items: center;
}
.hero-code__pre {
  flex: 1;
  margin: 0;
  padding: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper);
  white-space: pre-wrap;
  overflow: auto;
}
.hero-code__out {
  border-top: 1px solid rgba(246, 245, 242, 0.12);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-code__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 12px;
}

/* browser-window chrome for the hero session demo */
.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(246, 245, 242, 0.12);
}
.browser__dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}
.browser__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(246, 245, 242, 0.18);
}
.browser__url {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(246, 245, 242, 0.12);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(246, 245, 242, 0.7);
}
.browser__chip {
  flex-shrink: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(246, 245, 242, 0.55);
}

/* ─── PROBLEM / DIAGRAM ─────────────────────────────── */
.problem__body { align-items: start; }

.diagram {
  border: 1px solid var(--ink);
  background: var(--paper);
}
.diagram__grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
}
.diagram__col { padding: 24px; }
.diagram__head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.diagram__head h3 { margin-top: 8px; font-size: 18px; }
.diagram__head p { margin-top: 6px; }
.diagram__col--good { background: color-mix(in oklab, var(--accent) 6%, var(--paper)); }
.diagram__col--bad { background: color-mix(in oklab, var(--danger) 4%, var(--paper)); }
.diagram__divider {
  position: relative;
  border-left: 1px dashed var(--rule-strong);
  border-right: 1px dashed var(--rule-strong);
}
.diagram__divider-label {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  background: var(--paper);
  padding: 2px 4px;
}

.diagram__flow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}
.diag-node {
  border: 1px solid var(--rule-strong);
  padding: 10px 12px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
}
.diag-node .cap { font-size: 10px; color: var(--muted); padding-top: 2px; }
.diag-node__t {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.diag-node__s {
  grid-column: 2 / span 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.diag-node--server, .diag-node--proxy { border-color: var(--danger); }
.diag-node--device {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.diag-node--device .diag-node__s,
.diag-node--device .cap { color: color-mix(in oklab, var(--accent-ink) 75%, transparent); }
.diag-node--target {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.diag-node--target .diag-node__s,
.diag-node--target .cap { color: rgba(246, 245, 242, 0.6); }
.diag-edge {
  padding: 2px 0 2px 30px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.diag-empty {
  margin-top: 8px;
  border: 1px dashed var(--rule-strong);
  padding: 12px;
  background: transparent;
}
.diag-empty__note {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

.diag-sigs { display: flex; flex-direction: column; }
.diag-sig {
  display: grid;
  grid-template-columns: 110px 1fr 14px;
  gap: 12px;
  padding: 10px 4px;
  border: none;
  border-top: 1px solid var(--rule);
  background: transparent;
  cursor: help;
  text-align: left;
  transition: background 100ms;
  align-items: start;
}
.diag-sig__k, .diag-sig__v { line-height: 1.4; }
.diag-sig:hover, .diag-sig.is-hover { background: rgba(10, 10, 11, 0.04); }
.diag-sig__k {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.diag-sig__v {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}
.diag-sig__icon { text-align: right; font-size: 13px; }
.diag-sig--bad .diag-sig__icon { color: var(--danger); }
.diag-sig--good .diag-sig__icon { color: var(--accent); }

.diag-tip {
  border-top: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 20px 24px;
  min-height: 120px;
}
.diag-tip__hint {
  font-size: 12px;
  color: rgba(246, 245, 242, 0.6);
  letter-spacing: 0.04em;
  padding: 12px 0;
}
.diag-tip__grid {
  display: grid;
  grid-template-columns: 160px 1fr 1fr;
  gap: 24px;
}
.diag-tip__kt {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.diag-tip__col .cap { color: rgba(246, 245, 242, 0.55); }
.diag-tip__col .body-sm { color: rgba(246, 245, 242, 0.85); margin-top: 8px; }
.diag-tip__col--bad .cap { color: #ff8977; }
.diag-tip__col--good .cap { color: var(--accent); }

/* ─── ARCHITECTURE ─────────────────────────────── */
.arch-rows { border-top: 1px solid rgba(246, 245, 242, 0.18); }
.arch-row {
  display: grid;
  grid-template-columns: 60px 280px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(246, 245, 242, 0.12);
  align-items: baseline;
}
.arch-row__n {
  font-size: 12px;
  color: rgba(246, 245, 242, 0.5);
  letter-spacing: 0.06em;
}
.arch-row__k {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--paper);
}
.arch-row__v {
  font-size: 16px;
  color: rgba(246, 245, 242, 0.75);
  line-height: 1.55;
  max-width: 520px;
}
.arch-foot {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}

/* ─── MOBILE ─────────────────────────────── */
.mobile-table { border: 1px solid var(--ink); }
.mobile-table__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
}
.mobile-table__head .cap { color: rgba(246, 245, 242, 0.6); text-align: center; }
.mobile-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--rule);
}
.mobile-row__k { font-size: 15px; }
.mobile-row__c {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.mobile-row__c .tick { color: var(--success); font-size: 16px; }
.mobile-row__c .cross { color: var(--danger); font-size: 16px; }
.mobile-row__lbl { color: var(--muted); }
.mobile-row__c.fail .cross { font-size: 18px; }

.mobile-cards { display: flex; flex-direction: column; gap: 16px; }
.mobile-cards--row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.mobile-card {
  border: 1px solid var(--rule-strong);
  padding: 20px;
  background: var(--paper);
}
.mobile-card h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ─── ANTIBOTS ─────────────────────────────── */
.antibots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.antibot {
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.antibot__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.antibot__detail { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .antibots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .antibots { grid-template-columns: 1fr; }
}

/* ─── BENCHMARK ─────────────────────────────── */
.bench { border-top: 1px solid rgba(246, 245, 242, 0.2); }
.bench__head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  padding: 20px 0;
  border-bottom: 1px solid rgba(246, 245, 242, 0.2);
}
.bench__prov { text-align: right; }
.bench__prov-s {
  font-size: 11px;
  color: rgba(246, 245, 242, 0.45);
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bench__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid rgba(246, 245, 242, 0.1);
}
.bench__rk {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.bench__rn {
  font-size: 10px;
  color: rgba(246, 245, 242, 0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.bench__rv {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  letter-spacing: -0.025em;
  font-weight: 500;
  text-align: right;
  color: rgba(246, 245, 242, 0.75);
  font-variant-numeric: tabular-nums;
}
.bench__rv--best { color: var(--accent); }
.bench-foot {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}
.bench-foot__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.bench-callout {
  margin-top: 56px;
  padding: 40px;
  border: 1px solid rgba(246, 245, 242, 0.2);
  background: rgba(246, 245, 242, 0.03);
}
.bench-callout__quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
  max-width: 900px;
  color: var(--paper);
}
.bench-callout__sig {
  margin-top: 20px;
  font-size: 11px;
  color: rgba(246, 245, 242, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─── USE CASES ─────────────────────────────── */
.uc {
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.uc__card {
  padding: 32px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.uc__n {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.uc__h {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.uc__stack {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ─── PRICING ─────────────────────────────── */
.pricing-toggle {
  display: inline-flex;
  border: 1px solid var(--ink);
  padding: 4px;
  gap: 2px;
}
.pricing-toggle button {
  padding: 8px 14px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pricing-toggle button.on { background: var(--ink); color: var(--paper); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.pricing-grid--4 { grid-template-columns: repeat(4, 1fr); }
.price {
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.price--hl { background: var(--ink); color: var(--paper); }
.price--hl h1, .price--hl h2, .price--hl h3, .price--hl h4 { color: var(--paper); }
.price__name {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.7;
}
.price__price {
  margin-top: 24px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price__cur {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--muted);
}
.price--hl .price__cur { color: rgba(246, 245, 242, 0.5); }
.price__n {
  font-family: "Space Grotesk", sans-serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price__u {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--muted);
}
.price--hl .price__u { color: rgba(246, 245, 242, 0.6); }
.price__sub { margin-top: 8px; font-size: 14px; color: var(--muted); }
.price--hl .price__sub { color: rgba(246, 245, 242, 0.7); }
.price--hl .btn--primary { background: var(--accent); color: var(--accent-ink); }
.price--hl .btn--secondary { color: var(--paper); border-color: var(--paper); }
.price--hl .btn--secondary:hover { background: var(--paper); color: var(--ink); }
.price__rows { margin-top: 24px; border-top: 1px solid var(--rule); }
.price--hl .price__rows { border-color: rgba(246, 245, 242, 0.15); }
.price__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
}
.price--hl .price__row { border-color: rgba(246, 245, 242, 0.1); }
.price--hl .price__row .muted { color: rgba(246, 245, 242, 0.55); }
.price-ent {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.price-ent__t { margin-top: 4px; font-size: 16px; }
.price-callout {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
}
.price-callout__n {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 6px;
  display: inline-block;
  width: fit-content;
}
.price-callout .body { color: rgba(246, 245, 242, 0.85); }

/* ─── INTEGRATION CODE ─────────────────────────────── */
.code {
  border: 1px solid rgba(246, 245, 242, 0.15);
  background: #121214;
}
.code__tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(246, 245, 242, 0.1);
  padding-right: 12px;
  flex-wrap: nowrap;
}
.code__tab {
  padding: 12px 18px;
  background: transparent;
  border: 0;
  color: rgba(246, 245, 242, 0.55);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-right: 1px solid rgba(246, 245, 242, 0.1);
  transition: color 100ms;
  white-space: nowrap;
  flex-shrink: 0;
}
.code__tab:hover { color: var(--paper); }
.code__tab.on {
  color: var(--paper);
  background: rgba(246, 245, 242, 0.04);
  position: relative;
}
.code__tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}
.code__filename {
  flex: 1;
  padding-left: 16px;
  font-size: 11px;
  color: rgba(246, 245, 242, 0.4);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.code__copy {
  background: transparent;
  border: 1px solid rgba(246, 245, 242, 0.15);
  color: rgba(246, 245, 242, 0.7);
  padding: 5px 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  flex-shrink: 0;
}
.code__copy:hover {
  color: var(--paper);
  border-color: var(--paper);
}
.code__pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.75;
  color: var(--paper);
  overflow: auto;
}
.code__line {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
}
.code__ln {
  color: rgba(246, 245, 242, 0.3);
  user-select: none;
  text-align: right;
}
.code__lc { white-space: pre; }
.tk-kw { color: var(--accent); }
.tk-str { color: #c1e0a4; }
.tk-com { color: rgba(246, 245, 242, 0.4); font-style: italic; }
.integrate-foot {
  margin-top: 28px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* ─── FINAL CTA ─────────────────────────────── */
.section--cta {
  padding: 120px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--ink);
}
.cta-wrap { max-width: 900px; }
.cta-h {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.cta-btns {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-trust {
  margin-top: 80px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 32px;
  border-top: 1px solid var(--rule-strong);
}

/* ─── FOOTER ─────────────────────────────── */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 56px var(--gutter) 32px;
}
/* Match the site container (1280px, centered) like every .section above,
   instead of the block layout's narrower content size. */
.foot__row,
.foot__rule,
.foot__fine {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.foot__nav {
  display: flex;
  gap: 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246, 245, 242, 0.7);
  flex-wrap: wrap;
}
.foot__nav a:hover { color: var(--paper); }
/* The footer nav is a core navigation block; its links live in an inner
   .wp-block-navigation__container <ul>, so target that for layout/wrapping. */
.foot__nav .wp-block-navigation__container {
  gap: 14px 28px;
  justify-content: flex-end;
}
.foot__mail {
  color: var(--accent);
  text-transform: none;
  letter-spacing: 0;
}
.foot__rule {
  margin: 32px auto 20px;
  height: 1px;
  background: rgba(246, 245, 242, 0.15);
}
.foot__fine {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(246, 245, 242, 0.4);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Hero terminal cursor ─────────────────────────────── */
.hero-code__cursor {
  display: inline-block;
  color: var(--accent);
  margin-left: 1px;
  font-weight: 500;
}
.hero-code__cursor.is-blinking {
  animation: cursor-blink 1s steps(2, jump-none) infinite;
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ─── Hero terminal row reveal ─────────────────────────────── */
.hero-code__row--reveal {
  animation: row-reveal 0.34s var(--eased) both;
}
@keyframes row-reveal {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-code__row--reveal {
    animation: none;
  }
  .hero-code__cursor.is-blinking {
    animation: none;
  }
}

/* ─── Animation helpers (kept for renderer pages) ─────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fade-up 0.6s var(--eased) both; }
.delay-0 { animation-delay: 0ms; }
.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 160ms; }
.delay-3 { animation-delay: 260ms; }
.delay-4 { animation-delay: 380ms; }

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--eased), transform 0.6s var(--eased);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--eased);
}
.faq-answer[data-open="true"] { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }

.nav-link:hover > span { transform: scaleX(1); }

/* ─── Contact form (Contact Form 7) ─────────────────────────────── */
.cform { max-width: 640px; }
.cform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.cform__field { margin: 0 0 20px; }
.cform__field--full { margin-top: 0; }
.cform__grid + .cform__field--full { margin-top: 4px; }
.cform__label {
  display: block;
  margin-bottom: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cform__req { color: var(--accent); }
.cform__input,
input.cform__input,
textarea.cform__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 120ms var(--eased);
}
textarea.cform__input { min-height: 120px; resize: vertical; }
.cform__input:focus { outline: none; border-color: var(--ink); }
.cform__input::placeholder { color: var(--muted-2); }
.cform__actions { margin-top: 8px; }
.cform__actions .btn { cursor: pointer; }

/* CF7 validation + response states */
.wpcf7-not-valid-tip { color: var(--danger); font-size: 13px; margin-top: 6px; }
.cform__input.wpcf7-not-valid { border-color: var(--danger); }
.wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 12px 16px !important;
  border: 1px solid var(--rule) !important;
  border-radius: 2px;
  font-size: 14px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output { border-color: var(--danger) !important; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--success) !important; }
.wpcf7-spinner { background-color: var(--muted); }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 960px) {
  .hero { display: flex; flex-direction: column; gap: 40px; }
  .hero__visual { order: 1; width: 100%; min-width: 0; height: 480px; }
  .hero__text   { order: 2; width: 100%; min-width: 0; }
  .hero__h1, .hero__sub { max-width: 100%; overflow-wrap: anywhere; }
  .sect-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .diagram__grid { grid-template-columns: 1fr; }
  .diagram__divider { display: none; }
  .arch-row { grid-template-columns: 40px 1fr; }
  .arch-row__v { grid-column: 2; }
  .bench__head, .bench__row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bench__prov { text-align: left; }
  .nav { display: none; }
  .mobile-cards--row { grid-template-columns: 1fr; }
  .arch-foot, .bench-foot { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 64px 0; }
  .section--cta { padding: 80px 0; }
  .diag-tip__grid { grid-template-columns: 1fr; gap: 16px; }
  .topbar-inner { gap: 16px; }
}

@media (max-width: 768px) {
  .code__tabs { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 48px 0; }
  .section--hero { padding: 24px 0 32px; }
  .section--cta { padding: 56px 0; }
  .hero { gap: 24px; }
  .hero__visual { height: 400px; }
  .mobile-row, .mobile-table__head { grid-template-columns: 1fr; gap: 12px; }
  .mobile-table__head .cap { text-align: left; }
  .cform__grid { grid-template-columns: 1fr; }
  .foot__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .foot__nav .wp-block-navigation__container { justify-content: flex-start; gap: 12px 20px; }
  .btn { padding: 12px 16px; }
  .btn--sm { padding: 10px 12px; }
  .diag-tip__col .body-sm,
  .diag-sig__v { word-break: break-word; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero__specs { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero__specs-v { font-size: 26px; }
  .pricing-grid--4 { grid-template-columns: 1fr; }
  .uc__card { padding: 16px; }
  .foot__nav .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: 10px; }
  .diag-sig__v { max-width: 140px; }
}

@media (max-width: 380px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up,
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .dot-live { animation: none; }
  .faq-answer { transition: none; }
  .consent { animation: none; }
}

/* ─── Consent banner ─────────────────────────────── */
.consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  animation: consent-up 220ms var(--eased);
}
.consent__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.consent__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 720px;
}
.consent__text a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@keyframes consent-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@media (max-width: 640px) {
  .consent__inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .consent__actions { justify-content: flex-end; }
}
