/* =========================================================
   Poly Syncer — Stylesheet
   Dark, modern, prediction-market vibe.
   ========================================================= */

/* ---- Tokens ---- */
:root {
  --bg:          #0b0f1a;
  --bg-2:        #0f1424;
  --bg-3:        #141b30;
  --surface:     #131a2c;
  --surface-2:   #1a2238;
  --border:      rgba(255,255,255,.08);
  --border-2:    rgba(255,255,255,.14);

  --text:        #e6ecff;
  --text-muted:  #8b96b3;
  --text-dim:    #5d6685;

  --accent:      #22d3ee;       /* cyan */
  --accent-2:    #22c55e;       /* green */
  --accent-3:    #a78bfa;       /* violet */
  --danger:      #f87171;
  --warn:        #fbbf24;

  --gradient:    linear-gradient(135deg,#22d3ee 0%,#22c55e 100%);
  --gradient-soft: linear-gradient(135deg, rgba(34,211,238,.18), rgba(34,197,94,.18));

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.25);
  --shadow:    0 10px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 80px rgba(0,0,0,.45);

  --container: 1200px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
code { font-family: var(--font-mono); font-size: .9em; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(34,211,238,.35); color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 999;
  padding: 12px 16px; background: var(--accent); color: #000;
  border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, rgba(11,15,26,.85) 0%, rgba(11,15,26,.65) 100%);
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.35) 30%, rgba(34,197,94,.35) 70%, transparent 100%);
  pointer-events: none;
}
.nav-wrap {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  flex-shrink: 0;
  position: relative;
  transition: transform .2s var(--ease);
  text-decoration: none;
}
.brand:hover { transform: translateY(-1px); }
.brand-mark {
  flex-shrink: 0;
  filter: drop-shadow(0 6px 18px rgba(34,211,238,.4));
  transition: filter .3s, transform .35s var(--ease);
}
.brand:hover .brand-mark {
  filter: drop-shadow(0 10px 26px rgba(34,211,238,.65));
  transform: scale(1.06);
}

/* Subtle 5-second "copy" pulse on the trailing chevron — soft glide
   toward the leader, then a gentle return. Almost imperceptible at first,
   reads as the brand "duplicating itself" once you notice it. */
.brand-mark .chevron-back {
  transform-origin: center;
  animation: chevron-copy 5s ease-in-out infinite;
}
@keyframes chevron-copy {
  0%, 100%   { transform: translateX(0); opacity: 1; }
  42%        { transform: translateX(2.6px); opacity: .85; }
  58%        { transform: translateX(2.6px); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark .chevron-back { animation: none; }
}
.brand-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text);
  font-feature-settings: 'ss01' on, 'cv11' on;
  line-height: 1;
  white-space: nowrap;
}
.brand-accent {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative;
  transition: filter .25s;
}
.brand:hover .brand-accent {
  filter: brightness(1.15) drop-shadow(0 0 8px rgba(34,211,238,.4));
}
.nav { flex: 1; }
.nav ul {
  display: flex; gap: 2px;
  justify-content: center;
}
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  color: var(--text-muted); font-weight: 500; font-size: 14px;
  transition: color .2s, background .2s, transform .15s;
  position: relative;
  border-radius: 8px;
  letter-spacing: -.005em;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav-icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: currentColor;
  opacity: .85;
  transition: color .2s, opacity .2s;
}
.nav a:hover .nav-icon,
.nav a.active .nav-icon {
  color: var(--accent);
  opacity: 1;
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons — premium gradient, shimmer-on-hover, animated arrow */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 20px; font-weight: 600; font-size: 14.5px;
  border-radius: 12px; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s, background-position .4s, color .2s, border-color .2s;
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden;
  letter-spacing: -.005em;
  isolation: isolate;
}
.btn span[aria-hidden] {
  display: inline-block;
  transition: transform .25s var(--ease);
}
.btn:hover span[aria-hidden] { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }

/* Primary — glass body in the same language as the hero trust badges.
   Translucent white sheen + cyan border accent + cyan halo on hover. */
/* Primary — v10 palette restored (glass body + mint→cyan→indigo ring),
   solid box-shadow ring instead of gradient-border so corners are
   pixel-perfect with zero seams. */
.btn-primary {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 0;
  font-weight: 600;
  letter-spacing: -.005em;
  box-shadow:
    /* triple-layer outer ring fakes a gradient stroke without seams */
    0 0 0 1px rgba(34,211,238,.45),                           /* cyan main ring */
    0 0 0 2px rgba(99,102,241,.18),                           /* indigo soft halo */
    /* inset highlights + outer glow */
    0 1px 0 rgba(255,255,255,.18) inset,
    0 8px 22px -12px rgba(34,211,238,.40),
    0 16px 38px -22px rgba(99,102,241,.30);
  transition:
    transform .22s var(--ease),
    background .25s ease,
    box-shadow .3s ease;
}
.btn-primary::before { display: none; }

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.025) 100%);
  box-shadow:
    0 0 0 1px rgba(52,230,164,.55),
    0 0 0 2px rgba(99,102,241,.30),
    0 1px 0 rgba(255,255,255,.24) inset,
    0 14px 30px -12px rgba(34,211,238,.60),
    0 22px 50px -22px rgba(99,102,241,.45);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(34,211,238,.40),
    0 0 0 2px rgba(99,102,241,.16),
    0 1px 0 rgba(255,255,255,.14) inset,
    0 6px 14px -10px rgba(34,211,238,.40);
}

/* Dashboard grid icon */
.btn-primary .btn-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: #22d3ee;
  position: relative;
  transition: transform .25s var(--ease), color .25s;
}
.btn-primary:hover .btn-icon {
  transform: scale(1.06);
  color: #34e6a4;
}

.btn-primary > * { position: relative; }
.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 0 rgba(255,255,255,.10) inset,
    0 6px 14px -10px rgba(34,211,238,.45);
}

/* Arrow — cyan→green gradient chevron matching hero gradient text */
.btn-primary span[aria-hidden] {
  background: linear-gradient(135deg, #22d3ee 0%, #22c55e 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-weight: 700;
  transition: transform .25s var(--ease);
}
.btn-primary:hover span[aria-hidden] { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .btn-primary { transition: none; }
}

/* `content-visibility: auto` lets the browser skip rendering off-screen
   sections until they scroll near the viewport. Cuts initial layout
   cost dramatically on long pages. The intrinsic-size hint reserves
   roughly the right space so scrollbars and CLS stay correct. */
.metrics,
.how,
.leaders,
.features,
.compare,
.categories,
.pricing,
.testimonials,
.faq,
.team-strip,
.cta {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* Reveal-on-scroll — class-based so JS doesn't write inline styles
   (which would force a layout invalidation per element). */
.is-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
  /* No will-change — promoting 60+ elements to their own compositor
     layer would cost more memory and cause its own reflow during
     layer changes. The transition happens once per element anyway. */
}
.is-reveal.is-revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .is-reveal { opacity: 1; transform: none; transition: none; }
}

/* Mini — same identity, smaller footprint */
.btn-mini.btn-primary {
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 100%);
  color: #fff;
  border: 0;
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(34,211,238,.40),
    0 0 0 2px rgba(99,102,241,.14),
    0 1px 0 rgba(255,255,255,.14) inset,
    0 6px 14px -10px rgba(34,211,238,.30);
}
.btn-mini.btn-primary .btn-icon { width: 14px; height: 14px; color: #22d3ee; }

/* Secondary — subtle surface with gradient hover border */
.btn-secondary {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  color: var(--text);
  border-color: var(--border-2);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover {
  background: linear-gradient(180deg, rgba(34,211,238,.08), rgba(34,197,94,.04));
  border-color: rgba(34,211,238,.5);
  transform: translateY(-1px);
}

/* Ghost — minimal text-button */
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--border-2);
}

/* Large — bigger padding, slightly bolder */
.btn-lg {
  padding: 15px 28px;
  font-size: 15.5px;
  border-radius: 14px;
  font-weight: 700;
}

/* Mini */
.btn-mini {
  padding: 6px 12px; font-size: 13px; border-radius: 8px;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2);
}
.btn-mini.btn-primary { background: var(--gradient); color: #06241a; border-color: transparent; }
.btn-block { width: 100%; }

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  flex-direction: column; justify-content: center; align-items: center; gap: 4px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
  background: rgba(11,15,26,.95);
}
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -.005em;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: color .2s;
}
.mobile-nav a:not(.btn):last-of-type {
  border-bottom: 0;
}
.mobile-nav a:not(.btn):active,
.mobile-nav a:not(.btn):hover {
  color: var(--text);
  background: transparent;
}

.mobile-nav .mn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--text-muted);
  flex-shrink: 0;
  background: transparent;
  border: 0;
  transition: color .2s;
}
.mobile-nav .mn-icon svg { width: 19px; height: 19px; }
.mobile-nav a:not(.btn):hover .mn-icon,
.mobile-nav a:not(.btn):active .mn-icon { color: var(--accent); }

.mobile-nav .mn-label { flex: 1; }
.mobile-nav .mn-arrow {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1;
  transition: color .2s, transform .2s var(--ease);
  opacity: .6;
}
.mobile-nav a:not(.btn):hover .mn-arrow,
.mobile-nav a:not(.btn):active .mn-arrow {
  color: var(--accent);
  transform: translateX(2px);
  opacity: 1;
}

.mobile-nav .btn { margin-top: 18px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 80%);
}
.glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .4;
}
.glow-1 { top: -100px; left: -100px; width: 480px; height: 480px; background: #22d3ee; }
.glow-2 { bottom: -100px; right: -100px; width: 520px; height: 520px; background: #22c55e; }

.hero-wrap {
  position: relative; z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(440px, 62vh, 680px);
  padding: 40px 24px 60px;
}
.hero-copy {
  max-width: 940px;
  width: 100%;
  text-align: center;
}
.hero h1 { text-align: center; }
.hero-copy .lede { margin: 0 auto 32px; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto 28px;
  padding: 7px 16px 7px 12px;
  background: linear-gradient(135deg, rgba(34,211,238,.1), rgba(34,197,94,.08));
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 100px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .01em;
  backdrop-filter: blur(6px);
}
.eyebrow-mark { width: 16px; height: 16px; flex-shrink: 0; }

.hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

/* ---- Team strip (homepage E-E-A-T anchor) ---- */
.team-strip { padding: 80px 0; }
.team-grid {
  list-style: none; padding: 0; margin: 30px 0 18px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.team-card {
  position: relative;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border-2);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, transform .25s;
}
.team-card:hover { border-color: rgba(34,211,238,.32); transform: translateY(-2px); }
.team-card-head { display: flex; align-items: center; gap: 12px; }
.team-card-head strong {
  display: block; font-size: 15.5px; letter-spacing: -.012em; color: var(--text);
}
.team-card-head span {
  display: block; font-size: 11.5px; color: var(--text-muted);
  font-family: var(--font-mono); letter-spacing: .03em;
}
.team-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.team-card-link {
  margin-top: auto;
  font-size: 12.5px; font-weight: 600;
  color: var(--accent); text-decoration: none;
}
.team-card-link:hover { text-decoration: underline; }
.team-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 0 1px rgba(0,0,0,.4);
}
.team-avatar[data-i="1"] { background: conic-gradient(from 30deg, #22d3ee, #22c55e, #a78bfa, #22d3ee); }
.team-avatar[data-i="2"] { background: conic-gradient(from 110deg, #a78bfa, #ec4899, #fbbf24, #a78bfa); }
.team-avatar[data-i="3"] { background: conic-gradient(from 200deg, #f87171, #fb923c, #22d3ee, #f87171); }
.team-foot { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-muted); }
.team-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.team-foot a:hover { color: #67e8f9; }
@media (max-width: 880px) { .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } .team-strip { padding: 56px 0; } }

/* ---- Compare section (homepage) ---- */
.compare { padding: 80px 0; }
.compare-table-wrap {
  margin-top: 30px;
  overflow-x: auto;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 760px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-weight: 700;
  letter-spacing: -.005em;
  color: var(--text);
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--border-2);
}
.compare-table thead th strong { display: block; font-size: 14.5px; color: var(--text); }
.compare-table thead th span {
  display: block; font-size: 11.5px; font-weight: 500;
  color: var(--text-muted); margin-top: 2px;
}
.compare-table tbody th {
  font-weight: 600; color: var(--text-muted);
  font-size: 13px;
  width: 28%;
}
.compare-table td { color: var(--text-muted); }
.compare-table .is-us { background: linear-gradient(180deg, rgba(34,211,238,.06), rgba(34,197,94,.04)); }
.compare-table thead th.is-us strong {
  background: linear-gradient(135deg,#22d3ee,#22c55e);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 6px;
  letter-spacing: .01em;
}
.compare-table .pill.is-good { background: rgba(34,197,94,.12); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.compare-table .pill.is-meh  { background: rgba(251,191,36,.10); color: #fbbf24; border: 1px solid rgba(251,191,36,.28); }
.compare-table .pill.is-bad  { background: rgba(248,113,113,.10); color: #fca5a5; border: 1px solid rgba(248,113,113,.28); }
.compare-foot {
  margin-top: 18px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}
.compare-foot a { color: var(--text); }
@media (max-width: 720px) {
  .compare { padding: 56px 0; }
  .compare-table thead th, .compare-table tbody th, .compare-table td { padding: 11px 12px; }
}

/* Premium trust badges — glass cards with gradient-border icon containers */
.hero-trust {
  display: flex; flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
  text-align: left;
}
.trust-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 0 1px rgba(34,211,238,.1);
}
.trust-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34,211,238,.15), rgba(34,197,94,.1));
  border: 1px solid rgba(34,211,238,.3);
  flex-shrink: 0;
  position: relative;
}
.trust-icon-wrap svg {
  width: 18px; height: 18px;
  filter: drop-shadow(0 0 4px rgba(34,211,238,.3));
}
.trust-text {
  display: flex; flex-direction: column;
  line-height: 1.3;
}
.trust-text strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.005em;
}
.trust-text span {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.25);
  color: #a5f3fc;
  border-radius: 100px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.pill .dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 0 4px rgba(34,211,238,.2);
}
.pill .dot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(34,211,238,.5);
  animation: pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
/* Animate transform + opacity only — GPU-composited, no layout/paint. */
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: .9; }
  50%      { transform: scale(2.6); opacity: 0;  }
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 22px;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px; line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-size: 14.5px; color: var(--text-muted);
}
.hero-trust li {
  display: inline-flex; align-items: center; gap: 10px;
}
.trust-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(34,211,238,.25));
}

/* Hero card (leaderboard preview) */
.hero-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.hero-card::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.4), transparent 40%, rgba(34,197,94,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.card-title {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14px; color: var(--text);
}
.live-dot {
  position: relative;
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.2);
}
.live-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(34,197,94,.55);
  animation: pulse-g 1.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-g {
  0%,100% { transform: scale(1);   opacity: .9; }
  50%     { transform: scale(2.6); opacity: 0;  }
}
.card-link { font-size: 13px; color: var(--accent); font-weight: 500; }
.card-link:hover { color: #67e8f9; }

.leaderboard { display: flex; flex-direction: column; gap: 6px; }
.lb-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  transition: background .2s, border-color .2s, transform .2s;
}
.lb-row:hover { background: rgba(34,211,238,.04); border-color: rgba(34,211,238,.25); transform: translateX(2px); }
.lb-rank { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); font-weight: 700; }
.lb-addr {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.04);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.lb-stats { display: flex; flex-direction: column; align-items: flex-end; }
.pnl { font-family: var(--font-mono); font-weight: 700; font-size: 13.5px; }
.pnl.up { color: #22c55e; }
.pnl.down { color: var(--danger); }
.roi { font-size: 11.5px; color: var(--text-muted); }

.card-foot {
  margin-top: 16px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.ticker { color: var(--accent-2); font-weight: 500; }


/* ---- Section ---- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(34,211,238,.08);
  color: var(--accent);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 100px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 20px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.025em;
}
.section-lede {
  font-size: 17px; color: var(--text-muted); line-height: 1.65;
}

/* ---- Metrics ---- */
.metrics {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(34,211,238,.03), transparent);
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric { text-align: center; }
.metric-value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 13.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}

/* ---- How ---- */
.how { padding: 100px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.3);
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: .1em;
}
.step h3 { font-size: 22px; margin-bottom: 12px; }
.step p { color: var(--text-muted); font-size: 15.5px; }
.step-icon {
  position: absolute; top: 24px; right: 24px;
  width: 36px; height: 36px;
  color: var(--text-dim); opacity: .5;
}
.step-tech {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
.step-tech li {
  position: relative;
  padding-left: 14px;
  letter-spacing: -.01em;
}
.step-tech li::before {
  content: '›';
  position: absolute; left: 0; top: -1px;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Technical deep-dive (under "How it works") ---- */
.tech-panel {
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.tech-panel::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(34,211,238,.08), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(34,197,94,.06), transparent 50%);
  pointer-events: none;
}
.tech-panel > * { position: relative; }
.tech-head { text-align: center; margin-bottom: 36px; }
.tech-head h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 12px 0 12px;
  letter-spacing: -.02em;
}
.tech-lede {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 580px;
  margin: 0 auto;
}
.tech-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Code panel — looks like a real editor */
.code-panel {
  margin: 0;
  background: #0a0e18;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.code-head {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-dim);
}
.dots { display: inline-flex; gap: 6px; }
.dots i {
  width: 11px; height: 11px;
  display: inline-block;
  border-radius: 50%;
  background: #3a4258;
}
.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.code-file {
  font-family: var(--font-mono);
  color: var(--text-muted);
  flex: 1;
}
.code-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  background: rgba(34,197,94,.15);
  color: #4ade80;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(34,197,94,.3);
  position: relative;
}
.code-tag::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 6px;
  vertical-align: 1px;
  animation: pulse-g 1.4s ease-in-out infinite;
}
.code-panel pre {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 12.8px;
  line-height: 1.7;
  color: #c8d3eb;
  overflow-x: auto;
  flex: 1;
}
.code-panel code { font-family: inherit; font-size: inherit; }
.code-panel .cm  { color: #5d6685; font-style: italic; }
.code-panel .kw  { color: #c084fc; }
.code-panel .fn  { color: #22d3ee; }
.code-panel .str { color: #4ade80; }
.code-panel .num { color: #fbbf24; }

/* Architecture flow panel */
.arch-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.arch-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.arch-flow {
  display: flex; flex-direction: column;
  gap: 0;
}
.arch-node {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  transition: border-color .2s, transform .2s;
}
.arch-node:hover {
  border-color: rgba(34,211,238,.3);
  transform: translateX(2px);
}
.arch-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gradient-soft);
  border-radius: 8px;
  color: var(--accent);
  flex-shrink: 0;
  border: 1px solid rgba(34,211,238,.2);
}
.arch-icon svg { width: 16px; height: 16px; }
.arch-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.arch-body strong { font-size: 13.5px; font-weight: 600; }
.arch-body span {
  font-size: 11.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.arch-lat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,.04);
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.arch-lat--total {
  background: var(--gradient);
  color: #06241a;
  font-weight: 700;
}
.arch-edge {
  height: 14px;
  display: flex; justify-content: center; align-items: center;
  position: relative;
  margin-left: 30px;
}
.arch-edge::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 16px;
  width: 1px;
  background: linear-gradient(180deg, var(--border-2), var(--border));
}
.arch-edge span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  background: var(--surface);
  padding: 1px 8px;
  border-radius: 4px;
  position: absolute;
  left: 30px;
}
.arch-node--leader { border-color: rgba(34,211,238,.35); }
.arch-node--engine { border-color: rgba(167,139,250,.35); }
.arch-node--engine .arch-icon { background: rgba(167,139,250,.1); color: #a78bfa; border-color: rgba(167,139,250,.25); }
.arch-node--user   { border-color: rgba(34,197,94,.4); background: linear-gradient(135deg, rgba(34,197,94,.05), var(--surface)); }
.arch-node--user .arch-icon { background: rgba(34,197,94,.12); color: #22c55e; border-color: rgba(34,197,94,.25); }

/* Tech credibility strip */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.tech-stack li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.tech-stack li:hover {
  border-color: rgba(34,211,238,.3);
  background: rgba(34,211,238,.03);
}
.tech-stack strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.005em;
}
.tech-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .tech-split { grid-template-columns: 1fr; }
  .tech-stack { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .tech-panel { padding: 24px; }
  .tech-stack { grid-template-columns: repeat(2, 1fr); }
  .code-panel pre { font-size: 11.5px; padding: 14px; }
}

/* ---- Leaders ---- */
.leaders {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--bg-2), transparent);
}
.leader-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.leader-table {
  min-width: 760px;
}
.leader-table th, .leader-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
}
.leader-table th {
  color: #c5cfe0;          /* darker than --text-dim for WCAG AA contrast on dark bg */
  font-size: 12px;
  text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700;
  background: rgba(255,255,255,.04);
}
.leader-table tbody tr { transition: background .15s; }
.leader-table tbody tr:hover { background: rgba(34,211,238,.04); }
.leader-table tbody tr:last-child td { border-bottom: 0; }
.leader-table .num { text-align: right; font-family: var(--font-mono); }
.leader-table .up { color: #22c55e; }
.trader-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  background-image: linear-gradient(135deg, transparent 30%, rgba(255,255,255,.18));
}
.leader-table .addr {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.04);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: .02em;
}
.streak {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--warn); font-weight: 600;
}
.streak-icon {
  width: 14px; height: 14px;
  filter: drop-shadow(0 0 4px rgba(251,191,36,.4));
}
.ticker {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent-2); font-weight: 500;
}
.ticker-icon { width: 12px; height: 12px; }
.leader-table code {
  color: var(--text-muted); font-size: 12.5px;
  background: rgba(255,255,255,.04);
  padding: 3px 8px; border-radius: 6px;
}
.leaders-cta { text-align: center; margin-top: 32px; }

/* ---- Features ---- */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), border-color .3s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.3);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 22px;
  border: 1px solid rgba(34,211,238,.25);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ---- Categories ---- */
.categories {
  padding: 80px 0 40px;
}
.cat-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  max-width: 920px;
  margin: 0 auto;
}
.cat-chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  font-size: 14px; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 100px;
  transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s;
  cursor: default;
}
.cat-chip:hover {
  background: var(--gradient-soft);
  border-color: rgba(34,211,238,.4);
  color: var(--text);
  transform: translateY(-2px);
}
.cat-chip:nth-child(7n+1)  { border-color: rgba(34,211,238,.25); }
.cat-chip:nth-child(7n+3)  { border-color: rgba(34,197,94,.25); }
.cat-chip:nth-child(7n+5)  { border-color: rgba(167,139,250,.25); }

/* ---- Pricing ---- */
.pricing {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--bg-2), transparent);
}
.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 720px;
  margin-left: auto; margin-right: auto;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  position: relative;
  padding: 36px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s;
}
.plan:hover { transform: translateY(-4px); }
.plan h3 { font-size: 18px; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.plan-price .num { font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.plan-price .per { color: var(--text-muted); font-size: 14px; }
.plan-tagline { color: var(--text-muted); font-size: 14.5px; margin-bottom: 24px; }
.plan-list {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 0;
  font-size: 14.5px;
  flex: 1 1 auto;
}
/* CTA + footer pinned to a uniform bottom line across all plan cards */
.plan > .btn {
  margin-top: 28px;
  margin-bottom: 0;
}
.plan > .plan-foot {
  margin-top: 12px;
  margin-bottom: 0;
}
.plan-list li { padding-left: 26px; position: relative; color: var(--text); }
.plan-list li::before {
  content: '✓';
  position: absolute; left: 0;
  width: 18px; height: 18px;
  background: rgba(34,197,94,.15); color: #22c55e;
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  top: 3px;
}
.plan-featured {
  background: linear-gradient(180deg, rgba(34,211,238,.08), var(--surface));
  border-color: rgba(34,211,238,.55);
  box-shadow:
    0 0 0 1px rgba(34,211,238,.35),
    0 24px 60px -20px rgba(34,211,238,.35);
}
.plan-featured:hover { transform: translateY(-4px); }
.plan-featured .plan-price .num {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.plan-elite {
  position: relative;
  background: linear-gradient(180deg, rgba(167,139,250,.08), var(--surface));
  border-color: rgba(167,139,250,.45);
  box-shadow: 0 20px 60px rgba(167,139,250,.15);
}
.plan-elite::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167,139,250,.6), rgba(34,211,238,.4) 50%, rgba(34,197,94,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.plan-elite .plan-price .num {
  background: linear-gradient(135deg, #a78bfa 0%, #22d3ee 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.plan-foot {
  margin-top: 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}
.ribbon {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--gradient);
  color: #06241a;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
}
.ribbon-elite {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #0b0f1a;
}
.btn-elite {
  background: linear-gradient(135deg, #a78bfa, #22d3ee);
  color: #0b0f1a;
  box-shadow: 0 8px 24px rgba(167,139,250,.3);
}
.btn-elite:hover {
  box-shadow: 0 12px 32px rgba(167,139,250,.45);
  transform: translateY(-1px);
}

/* ---- Testimonials ---- */
.testimonials { padding: 100px 0; }
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card {
  margin: 0;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.t-card blockquote {
  margin: 0 0 20px;
  font-size: 16px; line-height: 1.7;
  color: var(--text);
  position: relative; padding-top: 12px;
}
.t-card blockquote::before {
  content: '“';
  position: absolute; top: -20px; left: -8px;
  font-size: 60px; line-height: 1;
  color: var(--accent); opacity: .4;
  font-family: Georgia, serif;
}
.t-card figcaption { color: var(--text-muted); font-size: 14px; }
.t-card figcaption strong { color: var(--text); font-weight: 600; }

/* ---- FAQ ---- */
.faq {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, var(--bg-2), transparent);
}
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: rgba(34,211,238,.3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600; font-size: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.caret {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(34,211,238,.1);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400;
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item[open] .caret { transform: rotate(45deg); }
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---- CTA — premium glass card with gradient border ---- */
.cta { padding: 90px 0; }
.cta-card {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: 56px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(34,211,238,.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34,197,94,.10), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
/* Gradient hairline border */
.cta-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(34,211,238,.5), rgba(255,255,255,.06) 35%, rgba(255,255,255,.06) 65%, rgba(34,197,94,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Subtle grid backdrop */
.cta-card::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
  pointer-events: none;
  opacity: .5;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.25);
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .015em;
  color: #a5f3fc;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.cta-eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34,211,238,.2);
  animation: pulse 1.6s ease-in-out infinite;
}
.cta-card h2 {
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 14px;
  letter-spacing: -.022em;
  line-height: 1.15;
  font-weight: 700;
}
.cta-card p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 24px;
}
.cta-microlist {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin: 0 auto 28px;
  padding: 12px 20px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
}
.cta-microlist li {
  display: inline-flex; align-items: center; gap: 6px;
}
.cta-microlist svg {
  width: 14px; height: 14px;
  color: var(--accent-2);
  flex-shrink: 0;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.fineprint {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 12.5px;
  letter-spacing: .005em;
}

@media (max-width: 720px) {
  .cta { padding: 60px 0; }
  .cta-card { padding: 44px 24px; border-radius: 22px; }
  .cta-card h2 { font-size: 26px; }
  .cta-microlist { border-radius: 16px; padding: 14px 18px; }
}

/* ---- Footer — premium gradient ---- */
.site-footer {
  position: relative;
  padding: 100px 0 32px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(34,211,238,.10), transparent 55%),
    radial-gradient(ellipse 60% 60% at 90% 100%, rgba(34,197,94,.07), transparent 55%),
    radial-gradient(ellipse 90% 50% at 50% 120%, rgba(167,139,250,.05), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, #060912 100%);
  overflow: hidden;
  isolation: isolate;
}
/* Glowing top hairline */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(34,211,238,.5) 30%, rgba(34,197,94,.5) 70%, transparent 100%);
  z-index: 1;
}
/* Subtle grid pattern fading from top */
.site-footer::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.site-footer > * { position: relative; z-index: 2; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(5, 1fr);
  gap: 40px 32px;
  margin-bottom: 64px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 18px 0 24px;
  max-width: 320px;
  line-height: 1.65;
}
.social { display: flex; gap: 10px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  color: var(--text-muted);
  border: 1px solid var(--border-2);
  transition: color .25s, border-color .25s, transform .25s, box-shadow .25s;
  backdrop-filter: blur(6px);
}
.social a:hover {
  color: var(--accent);
  border-color: rgba(34,211,238,.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(34,211,238,.18);
}

.site-footer h3 {
  font-size: 12px;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.site-footer h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -7px;
  width: 16px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 11px; }
.site-footer ul a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 14px;
  transition: color .25s ease, transform .18s var(--ease);
}
.site-footer ul a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
}
.footer-bottom .disclaimer {
  max-width: 600px;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid, .steps, .plans, .t-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .nav { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
}

/* Hide the desktop "Open panel" button on phones — hamburger sits alone on the right.
   The Open panel CTA is still inside the mobile menu drawer. */
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .nav-wrap { justify-content: space-between; }
}

/* ========== Contact form ========== */
.contact-form {
  position: relative;
  display: flex; flex-direction: column;
  gap: 18px;
  margin: 1.4em 0 1.6em;
  padding: 26px 28px 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.025) 0%, rgba(255,255,255,.008) 100%);
  border: 1px solid var(--border-2);
  border-radius: 18px;
}
.cf-row { display: flex; flex-direction: column; gap: 7px; }
.cf-label {
  font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim);
}
.cf-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-dim); opacity: .8; }
.cf-help {
  font-size: 12px; color: var(--text-dim);
  margin-top: 2px;
}
.cf-help code {
  font-family: var(--font-mono); font-size: 11.5px;
  background: rgba(255,255,255,.05);
  padding: 1px 6px; border-radius: 4px;
  color: var(--text-muted);
}

.cf-select-wrap { position: relative; }
.cf-select,
.cf-input,
.cf-textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.cf-select { padding-right: 38px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.cf-select option { background: var(--bg-2); color: var(--text); }
.cf-select-caret {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 8px;
  color: var(--text-muted);
  pointer-events: none;
}
.cf-textarea { resize: vertical; min-height: 120px; line-height: 1.55; font-family: inherit; }
.cf-input::placeholder, .cf-textarea::placeholder { color: var(--text-dim); }

.cf-select:focus,
.cf-input:focus,
.cf-textarea:focus {
  border-color: rgba(34,211,238,.5);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(34,211,238,.12);
}

.cf-actions {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.cf-submit {
  min-width: 180px;
  transition: opacity .2s, transform .15s;
}
.cf-submit[disabled] { cursor: progress; opacity: .85; }
.cf-submit.is-loading .cf-submit-label::after {
  content: '…';
  animation: cf-dots 1s steps(4, end) infinite;
}
@keyframes cf-dots {
  0%   { content: '·'; }
  25%  { content: '··'; }
  50%  { content: '···'; }
  100% { content: '····'; }
}
.cf-note {
  font-size: 12.5px; color: var(--text-dim);
  flex: 1; min-width: 220px;
}
.cf-note a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.cf-note a:hover { color: var(--text); }

/* Success state */
.cf-success {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 28px 16px 16px;
  gap: 10px;
}
.cf-success[hidden] { display: none; }
.cf-success strong { font-size: 18px; color: var(--text); letter-spacing: -.01em; }
.cf-success > span { font-size: 14.5px; color: var(--text-muted); max-width: 420px; line-height: 1.55; }
.cf-success .cf-reset {
  margin-left: 4px;
  background: none; border: 0; padding: 0;
  color: var(--accent); font: inherit; font-size: inherit;
  text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer;
}
.cf-success .cf-reset:hover { color: #67e8f9; }

.cf-check {
  width: 64px; height: 64px;
  color: var(--accent-2);
  filter: drop-shadow(0 0 14px rgba(34,197,94,.35));
}
.cf-check-circle {
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: cf-draw-circle .6s cubic-bezier(.2,.8,.2,1) .05s forwards;
}
.cf-check-tick {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: cf-draw-tick .35s cubic-bezier(.2,.8,.2,1) .55s forwards;
}
@keyframes cf-draw-circle { to { stroke-dashoffset: 0; } }
@keyframes cf-draw-tick   { to { stroke-dashoffset: 0; } }
@keyframes cf-fade-in     { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.contact-form.is-sent .cf-row,
.contact-form.is-sent .cf-actions { display: none; }

/* Office postal address */
.office-address {
  display: inline-flex; flex-direction: column; gap: 3px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 1.2em 0;
  font-style: normal;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.office-address strong {
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.office-address a {
  color: var(--accent);
  text-decoration: none;
  margin-top: 4px;
}
.office-address a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .contact-form { padding: 18px 16px 16px; gap: 14px; border-radius: 14px; }
  .cf-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .cf-submit { width: 100%; }
  .cf-note { min-width: auto; text-align: center; }
}

/* ========== Sub-page layout (hero-style title + centered prose) ========== */
.page-hero {
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
}
/* Soft separator from hero into the prose — no hard frame, just a kissing hairline */
.page-hero::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: min(1280px, 92%);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.08) 50%, transparent 100%);
  pointer-events: none;
}
.page-hero-wrap {
  position: relative; z-index: 1;
  max-width: clamp(720px, 94vw, 1280px);
  margin: 0 auto;
  text-align: center;
  padding: 8px clamp(20px, 3vw, 40px) 18px;
}
.page-hero h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  letter-spacing: -.022em;
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.15;
}
.page-hero .lede {
  font-size: 15.5px;
  color: var(--text-muted);
  margin: 0 auto 14px;
  max-width: 640px;
  line-height: 1.6;
}
.page-meta {
  font-size: 12.5px;
  color: var(--text-dim);
}
.page-meta time { color: var(--text-muted); font-weight: 500; }

/* Tinted column with crisp edges, 5px breathing room below the hero */
.page-content {
  position: relative;
  max-width: clamp(720px, 94vw, 1280px);
  margin: 5px auto 0;
  padding: 52px clamp(24px, 4vw, 56px) 80px;
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text-muted);
  background:
    radial-gradient(ellipse 80% 240px at 50% 0%, rgba(34,211,238,.07), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.022) 55%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.04) inset,
    0 24px 60px rgba(0,0,0,.18);
}
.page-content > * + * { margin-top: 1.1em; }

/* H2 — full-width gradient underline + short accent dash */
.page-content h2 {
  position: relative;
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 2.2em;
  margin-bottom: .55em;
  padding-bottom: 14px;
  letter-spacing: -.02em;
  color: var(--text);
  font-weight: 700;
  line-height: 1.25;
  border-bottom: 1px solid var(--border);
}
.page-content h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
/* First H2 has a tighter top margin so it's flush with the wrapper */
.page-content > h2:first-child,
.page-content > h2:first-of-type:not(:has(~ *)) { margin-top: 0; }

/* H3 — left-aligned vertical accent bar */
.page-content h3 {
  position: relative;
  font-size: 18.5px;
  margin-top: 1.7em;
  margin-bottom: .35em;
  padding-left: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}
.page-content h3::before {
  content: '';
  position: absolute;
  left: 0; top: .25em;
  width: 3px; height: calc(100% - .35em);
  background: var(--gradient);
  border-radius: 2px;
}

/* H4 — uppercase mini-label with dotted leader */
.page-content h4 {
  font-size: 12.5px;
  margin-top: 1.6em;
  margin-bottom: .25em;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-content h4::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
}
.page-content p   { color: var(--text-muted); }
.page-content strong { color: var(--text); font-weight: 600; }
.page-content em  { color: var(--text); }
.page-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(34,211,238,.45);
  text-underline-offset: 3px;
  transition: text-decoration-color .2s, color .2s;
}
.page-content a:hover {
  color: #67e8f9;
  text-decoration-color: var(--accent);
}
/* Keyword anchor links to home — minimal: bolder text, accent on hover, no decoration */
.page-content a.kw-link,
.page-content a.kw-link:hover {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  background: none;
  padding: 0;
  border-radius: 0;
  transition: color .2s;
}
.page-content a.kw-link:hover {
  color: var(--accent);
}
.page-content ul,
.page-content ol {
  padding-left: 22px;
  margin-top: 1em;
}
.page-content ul { list-style: none; padding-left: 0; }
.page-content ul li {
  position: relative;
  padding-left: 24px;
  margin-top: .5em;
}
.page-content ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.page-content ol { padding-left: 26px; }
.page-content ol li { margin-top: .5em; }
.page-content ol li::marker { color: var(--accent); font-weight: 700; }

/* Tables in long-form content: wrapped in .pc-table-scroll by main.js so
   they can scroll horizontally on narrow viewports without breaking the
   surrounding page layout. */
.pc-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  /* Right-edge fade hint when there's more content to scroll to */
  background-image:
    linear-gradient(to left,  rgba(11,15,26,0), rgba(11,15,26,0)),
    linear-gradient(to right, rgba(11,15,26,0), rgba(11,15,26,0)),
    linear-gradient(to left,  rgba(255,255,255,0), rgba(255,255,255,.05)),
    linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.05));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 14px 100%, 14px 100%, 6px 100%, 6px 100%;
  background-attachment: local, local, scroll, scroll;
}
.page-content table,
.pc-table-scroll > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
/* If a table somehow ends up un-wrapped, still don't break the layout. */
.page-content > table:not(.pc-table-scroll *) {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.page-content table th, .page-content table td,
.pc-table-scroll table th, .pc-table-scroll table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.page-content table tr:last-child td,
.pc-table-scroll table tr:last-child td { border-bottom: 0; }
.page-content table th,
.pc-table-scroll table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.03);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}
.page-content table td,
.pc-table-scroll table td {
  word-break: normal;
  overflow-wrap: anywhere;
}
/* Mobile: tighter padding + smaller font + don't force every cell to nowrap */
@media (max-width: 640px) {
  .pc-table-scroll table { font-size: 12.5px; min-width: 480px; }
  .pc-table-scroll table th,
  .pc-table-scroll table td { padding: 9px 11px; }
  .page-content table th,
  .pc-table-scroll table th { font-size: 11px; letter-spacing: .04em; }
}

.page-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 18px;
  margin: 1.4em 0;
  color: var(--text);
  font-style: italic;
}
.page-content code {
  font-family: var(--font-mono);
  background: rgba(255,255,255,.05);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
  color: var(--text);
}
.page-content pre {
  background: #0a0e18;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  margin: 1.4em 0;
}
.page-content pre code { background: none; padding: 0; }
.page-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

/* TOC for long-form pages */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.toc h2 {
  font-size: 11.5px !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin: 0 0 14px !important;
}
.toc ul { padding: 0 !important; margin: 0 !important; }
.toc ul li { padding-left: 0 !important; margin-top: 6px !important; }
.toc ul li::before { display: none; }
.toc ul a {
  font-size: 14.5px;
  color: var(--text-muted);
  text-decoration: none;
}
.toc ul a:hover { color: var(--text); text-decoration: underline; }

/* Author / E-E-A-T byline */
.author-block {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2em 0;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  color: #06241a;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  letter-spacing: -.02em;
}
.author-info { display: flex; flex-direction: column; }
.author-info strong { color: var(--text); font-size: 14.5px; }
.author-info span { color: var(--text-muted); font-size: 13px; line-height: 1.4; }

/* Trust callouts (key takeaways / notes) */
.callout {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(34,211,238,.04), rgba(255,255,255,.01));
  border-radius: var(--radius);
  margin: 1.6em 0;
}
.callout strong { color: var(--accent); }

/* Related-pages strip */
.related-pages {
  max-width: clamp(720px, 94vw, 1280px);
  margin: 48px auto 80px;
  padding: 0 clamp(20px, 3vw, 40px);
}
.related-pages h2 {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: 16px !important;
  margin-top: 0 !important;
  font-weight: 600;
}
.related-pages ul {
  display: flex; flex-wrap: wrap; gap: 8px !important;
  list-style: none; padding: 0 !important; margin: 0 !important;
}
.related-pages li { padding-left: 0 !important; margin-top: 0 !important; }
.related-pages li::before { display: none; }
.related-pages li a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s, border-color .2s, transform .15s;
}
.related-pages li a:hover {
  border-color: rgba(34,211,238,.4);
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .page-hero { padding: 44px 0 28px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 32px); }
  .page-hero .lede { font-size: 14.5px; }

  /* Tame the gradient glows on mobile — they were drowning text on small screens */
  .hero-bg .glow,
  .page-hero .glow {
    filter: blur(50px) !important;
    opacity: .18 !important;
  }
  .hero-bg .glow-1,
  .page-hero .glow-1 {
    width: 260px; height: 260px;
    top: -120px; left: -160px;
  }
  .hero-bg .glow-2,
  .page-hero .glow-2 {
    width: 300px; height: 300px;
    bottom: -120px; right: -180px;
  }
  /* Page-hero specifically — even softer (it's a short band, not the marketing hero) */
  .page-hero .glow { opacity: .12 !important; }
  .page-content {
    padding: 12px 18px 44px;
    font-size: 15.5px;
    line-height: 1.7;
  }
  .page-content h2 {
    font-size: clamp(20px, 5vw, 24px);
    padding-bottom: 12px;
  }
  .page-content h2::after { width: 48px; }
  .page-content h3 { font-size: 17px; }
  .author-block { padding: 14px 16px; }
  .related-pages { margin: 32px auto 56px; padding: 0 18px; max-width: 920px; }
}

/* ========== MOBILE — comprehensive pass ========== */

/* Tablet & smaller */
@media (max-width: 720px) {
  .container       { padding: 0 18px; }

  /* Header */
  .site-header     { backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
  .nav-wrap        { padding: 12px 16px; gap: 10px; }
  .brand           { gap: 11px; }
  .brand-mark      { width: 38px !important; height: 38px !important; }
  .brand-text      { font-size: 22px; letter-spacing: -.035em; }
  .nav-cta         { gap: 6px; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }

  /* Mobile menu — premium */
  .mobile-nav {
    padding: 10px 16px 20px;
    gap: 2px;
    background: linear-gradient(180deg, rgba(11,15,26,.97), rgba(11,15,26,.92));
  }
  /* Mobile drawer link sizing — visual style is set in the main-block rule above */
  .mobile-nav a:not(.btn) { font-size: 15.5px; }
  .mobile-nav .btn { margin-top: 18px; padding: 14px 16px; font-size: 15px; }

  /* Hero */
  .hero            { padding: 48px 0 36px; }
  .hero-wrap       { padding: 24px 16px 36px; min-height: auto; }
  .hero-eyebrow    { font-size: 12px; padding: 6px 14px 6px 10px; margin-bottom: 20px; }
  .eyebrow-mark    { width: 14px; height: 14px; }
  .hero h1         { font-size: clamp(30px, 9vw, 40px); }
  .hero h1 .hero-dash { display: none; }
  .hero-copy .lede { font-size: 15px; line-height: 1.55; margin-bottom: 24px; }
  .hero-actions    { gap: 10px; margin-bottom: 28px; }
  .hero-actions .btn { padding: 13px 22px; font-size: 14.5px; }
  .hero-trust      { gap: 10px; flex-direction: column; align-items: stretch; }
  .trust-badge     { padding: 11px 14px 11px 12px; gap: 11px; }
  .trust-icon-wrap { width: 32px; height: 32px; border-radius: 9px; }
  .trust-icon-wrap svg { width: 16px; height: 16px; }
  .trust-text strong { font-size: 13px; }
  .trust-text span { font-size: 11.5px; }

  /* Section heads */
  .section-head    { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(24px, 6.5vw, 32px); }
  .section-lede    { font-size: 15px; }
  .eyebrow         { font-size: 11px; padding: 4px 10px; margin-bottom: 14px; }

  /* Section paddings */
  .how, .leaders, .features, .pricing, .testimonials, .faq { padding: 60px 0; }
  .categories      { padding: 50px 0 24px; }
  .cta             { padding: 50px 0; }

  /* Steps & cards stack */
  .features-grid, .steps, .plans, .t-grid { grid-template-columns: 1fr; gap: 16px; }
  .step            { padding: 24px; }
  .step h3         { font-size: 19px; }
  .step-icon       { width: 28px; height: 28px; top: 20px; right: 20px; }
  .feature         { padding: 24px; }
  .feature h3      { font-size: 17.5px; }
  .feature-icon    { width: 42px; height: 42px; margin-bottom: 16px; }

  /* Tech panel — keep readable */
  .tech-panel      { margin-top: 36px; padding: 20px; border-radius: 20px; }
  .tech-head       { margin-bottom: 24px; }
  .tech-head h3    { font-size: clamp(22px, 5.5vw, 26px); }
  .tech-lede       { font-size: 14px; }
  .tech-split      { gap: 14px; }
  .code-panel pre  { font-size: 11px; padding: 12px 14px; line-height: 1.6; }
  .code-head       { padding: 9px 12px; font-size: 11.5px; }
  .arch-panel      { padding: 16px; }
  .arch-title      { font-size: 11.5px; margin-bottom: 14px; }
  .arch-node       { padding: 10px 12px; gap: 10px; }
  .arch-icon       { width: 28px; height: 28px; border-radius: 7px; }
  .arch-icon svg   { width: 14px; height: 14px; }
  .arch-body strong { font-size: 12.5px; }
  .arch-body span   { font-size: 10.5px; }
  .arch-lat        { font-size: 10px; padding: 2px 6px; }
  .arch-edge       { height: 12px; margin-left: 22px; }
  .arch-edge span  { font-size: 9.5px; left: 22px; padding: 1px 6px; }
  .tech-stack      { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 22px; margin-top: 22px; }
  .tech-stack li   { padding: 11px 12px; }
  .tech-stack strong { font-size: 12.5px; }
  .tech-stack span   { font-size: 10.5px; }

  /* Categories */
  .cat-chip        { padding: 6px 12px; font-size: 12.5px; }

  /* Leader table — thinner padding for mobile horizontal scroll */
  .leader-table-wrap { border-radius: 14px; }
  .leader-table    { min-width: 640px; }
  .leader-table th, .leader-table td { padding: 11px 12px; font-size: 12.5px; }
  .avatar          { width: 22px; height: 22px; }
  .leader-table .addr { font-size: 12px; padding: 3px 7px; }
  .leaders-cta     { margin-top: 24px; }

  /* Pricing */
  .plan            { padding: 28px 22px; }
  .plan h3         { font-size: 17px; margin-bottom: 12px; }
  .plan-price .num { font-size: 38px; }
  .plan-list       { font-size: 14px; gap: 8px; }
  .plan-featured   { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }

  /* Testimonials */
  .t-card          { padding: 24px; }

  /* FAQ */
  .faq-item summary { padding: 16px 18px; font-size: 14.5px; }
  .faq-answer      { padding: 0 18px 18px; font-size: 14px; }

  /* CTA */
  .cta-card        { padding: 40px 22px; border-radius: 22px; }
  .cta-eyebrow     { font-size: 11.5px; padding: 6px 12px 6px 10px; margin-bottom: 18px; }
  .cta-card h2     { font-size: clamp(22px, 6vw, 28px); margin-bottom: 12px; }
  .cta-card p      { font-size: 14.5px; margin-bottom: 22px; }
  .cta-microlist   { gap: 8px 14px; padding: 11px 16px; font-size: 12px; border-radius: 14px; margin-bottom: 22px; }
  .cta-microlist svg { width: 12px; height: 12px; }
  .cta-actions     { width: 100%; }
  .cta-actions .btn { flex: 1; padding: 13px 16px; }
  .fineprint       { font-size: 11.5px; margin-top: 18px; }

  /* Footer */
  .site-footer     { padding: 64px 0 24px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 32px 24px; margin-bottom: 40px; }
  .footer-brand    { grid-column: 1 / -1; text-align: left; }
  .footer-brand p  { font-size: 13.5px; max-width: 100%; margin: 14px 0 0; }
  .site-footer h3  { font-size: 11px; margin-bottom: 16px; }
  .site-footer ul a { font-size: 13.5px; }
  .footer-bottom   { flex-direction: column; text-align: center; padding-top: 22px; }
  .footer-bottom .disclaimer { text-align: center; font-size: 11.5px; }
}

/* Phone */
@media (max-width: 480px) {
  .container       { padding: 0 16px; }
  .nav-wrap        { padding: 11px 14px; }
  .nav-cta .btn-primary span[aria-hidden] { display: none; }
  .nav-cta .btn-primary { padding: 9px 12px; font-size: 13px; }

  .hero            { padding: 36px 0 28px; }
  .hero-wrap       { padding: 16px 12px 24px; }
  .hero h1         { font-size: clamp(28px, 9vw, 34px); letter-spacing: -.025em; }
  .hero-copy .lede { font-size: 14.5px; }
  .hero-actions    { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .metrics         { padding: 40px 0; }
  .metrics-grid    { grid-template-columns: 1fr 1fr; gap: 22px; }
  .metric-value    { font-size: 26px; }
  .metric-label    { font-size: 11.5px; }

  /* Stack CTA buttons on narrow phones */
  .cta-actions     { flex-direction: column; width: 100%; }
  .cta-actions .btn { width: 100%; flex: none; }

  /* Hide non-essential leader-table columns to fit small phones */
  .leader-table th:nth-child(5), .leader-table td:nth-child(5),
  .leader-table th:nth-child(6), .leader-table td:nth-child(6) {
    display: none;
  }
  .leader-table    { min-width: auto; }

  /* Footer single column */
  .footer-grid     { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand    { grid-column: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
