/* ═══════════════════════════════════════════
   Meterflow — Shared Design System
   Import this in every page:
   <link rel="stylesheet" href="/site/shared.css">
   ═══════════════════════════════════════════ */

/* ─── Reset ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ─── Scrollbar ─── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
::-webkit-scrollbar-corner { background: transparent; }

/* ─── Tokens ─── */
:root {
  --bg: #03060c;
  --bg-deep: #02040a;
  --surface: #0a1018;
  --surface-2: #0e1622;
  --surface-3: #0c1320;
  --border: #142033;
  --border-light: #20324d;
  --text: #eaf2ff;
  --text-dim: #93a8c4;
  --text-muted: #4f6480;
  /* Primary: deep oceanic blue */
  --accent: #3d7df0;
  --accent-2: #5a96ff;
  --accent-deep: #1d4ed8;
  --accent-dim: #2563c8;
  --accent-glow: rgba(61, 125, 240, 0.08);
  /* Secondary: warm amber for receipts/revenue/value indicators */
  --amber: #f5b544;
  --amber-2: #ffc964;
  --amber-deep: #b07c1c;
  --amber-glow: rgba(245, 181, 68, 0.1);
  /* Tertiary: teal for live/healthy/streaming */
  --teal: #2dd4bf;
  --teal-2: #5eead4;
  --teal-deep: #0d9488;
  --teal-glow: rgba(45, 212, 191, 0.1);
  /* Status semantic */
  --green: #4fdc82;
  --red: #ff5f57;
  --blue: #00d4ff;
  --warm: #ff6b35;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  /* Spacing scale — snap all paddings/margins to these */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.03), 0 12px 32px rgba(0,0,0,0.4);
  --shadow-elev: 0 1px 0 rgba(255,255,255,0.04), 0 24px 60px rgba(0,0,0,0.55);
  --section-pad: clamp(48px, 5vw, 72px);
  --container: 1200px;
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--bg); }

/* ─── Focus States ─── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Typography ─── */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 100px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
  font-weight: 750;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.24;
  letter-spacing: 0;
  font-weight: 700;
}

.heading-sm {
  font-family: var(--font-display);
  font-size: 20px;
}

.label-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}

.accent { color: var(--accent); }
.dim { color: var(--text-dim); }
.muted { color: var(--text-muted); }

/* ─── Legal Pages ─── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 132px 24px 96px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #fff 0%, #c5dafe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 36px 0 12px;
  color: var(--text);
}

.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--text); font-weight: 600; }

/* ─── Master Nav (used by site pages only — scoped to top-level body > nav) ─── */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: 72px;
  padding: 0 40px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  background: rgba(3, 8, 18, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(90, 140, 240, 0.12);
}

body > nav::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 125, 240, 0.28), transparent);
  pointer-events: none;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease;
}

.nav-logo:hover { opacity: 0.85; }

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.nav-logo .brand-mark {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: 28px;
  align-items: center;
  height: 100%;
}

.nav-actions {
  display: flex;
  margin-left: auto;
  gap: 24px;
  align-items: center;
}

.nav-links a:not(.nav-cta):not(.nav-docs) {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #8fa3bf;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):not(.nav-docs):hover,
.nav-links a:not(.nav-cta):not(.nav-docs).active { color: #ffffff; }

.nav-links a:not(.nav-cta):not(.nav-docs)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:not(.nav-cta):not(.nav-docs):hover::after { width: 100%; }

/* Docs text link */
.nav-docs {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #8fa3bf;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  margin-right: -4px;
}
.nav-docs:hover { color: #ffffff; }

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 4px;
}

.nav-cta {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 700;
  text-transform: none;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, #7eb2ff 0%, #3d7df0 52%, #1d4ed8 100%);
  color: #020711;
  border: 1px solid rgba(174, 216, 255, 0.86);
  border-radius: 10px;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.34) inset,
    0 0 0 1px rgba(255,255,255,0.08),
    0 10px 28px rgba(46, 128, 232, 0.34);
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06) saturate(1.05);
  border-color: rgba(220, 241, 255, 0.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 0 0 1px rgba(255,255,255,0.12),
    0 14px 34px rgba(61, 125, 240, 0.46);
}

.nav-cta.ghost {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(61, 125, 240, 0.22);
  color: var(--text-dim);
  box-shadow: none;
}

.nav-cta.ghost:hover {
  background: rgba(61, 125, 240, 0.08);
  border-color: rgba(61, 125, 240, 0.45);
  color: var(--text);
  transform: translateY(-1px);
  filter: none;
  box-shadow: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: rgba(3, 6, 12, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(61, 125, 240, 0.16);
  padding: 24px 28px;
  flex-direction: column;
  gap: 16px;
  z-index: 299;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.25s;
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu a.active { color: var(--text); }

body > nav .nav-links a.active:not(.nav-cta):not(.nav-docs)::after,
.mobile-menu a.active::after { width: 100%; }

.mobile-menu a.mobile-menu-cta {
  color: var(--text);
  border: 1px solid rgba(61, 125, 240, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: rgba(61, 125, 240, 0.06);
  text-align: center;
}

.mobile-menu a.mobile-menu-cta.primary {
  color: #020711;
  border-color: rgba(174, 216, 255, 0.86);
  background: linear-gradient(180deg, #7eb2ff 0%, #3d7df0 52%, #1d4ed8 100%);
  box-shadow: 0 10px 28px rgba(46, 128, 232, 0.28);
}

@media (max-width: 1180px) {
  body > nav { height: 64px; padding: 0 20px; gap: 16px; }
  body > nav .nav-links { display: none; }
  body > nav .hamburger { display: flex; }
  .mobile-menu { top: 64px; padding: 20px; }
}

@media (max-width: 480px) {
  body > nav { height: 60px; padding: 0 16px; }
  .mobile-menu { top: 60px; }
}

/* ─── Buttons ─── */
.btn-primary {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 26px;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 60%, var(--accent-deep) 100%);
  color: var(--bg-deep);
  border: 1px solid var(--accent);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px rgba(31, 95, 184, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 14px 36px rgba(61, 125, 240, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 26px;
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(61, 125, 240, 0.06);
  transform: translateY(-1px);
}

.btn-primary.disabled,
.btn-secondary.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm.primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.btn-sm.primary:hover { background: #fff; }
.btn-sm.danger:hover { border-color: var(--red); color: var(--red); }
.btn-sm.accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}
.btn-sm.accent:hover { background: #fff; border-color: #fff; }
.btn-sm.accent:disabled { opacity: 0.4; cursor: not-allowed; }

.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.btn.accent:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(61, 125, 240, 0.2);
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color 0.3s;
}

.card:hover { border-color: var(--border-light); }
.card.interactive:hover { border-color: var(--accent); background: var(--surface-2); }

/* ─── Section Helpers ─── */
.section-label,
.site-subpage-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 12px;
  border: 1px solid rgba(61, 125, 240, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(61, 125, 240, 0.05);
}

.section-label::before,
.site-subpage-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

/* ─── Stats Grid ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.3s;
}

.stat-card:hover { border-color: var(--border-light); }

.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.stat-card .stat-value.accent { color: var(--accent); }
.stat-card .stat-value.green { color: var(--green); }

.stat-card .stat-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Tools Grid ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.tool-card:hover { border-color: var(--accent); background: var(--surface-2); }

.tool-card .tool-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-card .tool-icon { font-size: 24px; }

.tool-card .tool-status {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 3px 8px;
  border: 1px solid var(--green);
  color: var(--green);
}

.tool-card .tool-status.coming { border-color: var(--text-muted); color: var(--text-muted); }

.tool-card .tool-name {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
}

.tool-card .tool-desc {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.6;
  flex: 1;
}

.tool-card .tool-launch {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  margin-top: 16px;
  letter-spacing: 1px;
}

/* ─── Models List ─── */
.models-list { display: flex; flex-direction: column; gap: 2px; }

.model-row {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 120px 100px 80px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  transition: border-color 0.2s;
}

.model-row:hover { border-color: var(--border-light); }
.model-name { color: var(--text); font-weight: 500; }
.model-provider { color: var(--text-muted); }
.model-tier { color: var(--text-dim); }
.model-status { text-align: right; }

.model-status .live {
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.model-status .live::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ─── Code Block ─── */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-dim);
}

.code-block .comment { color: var(--text-muted); }
.code-block .string { color: var(--accent); }
.code-block .key { color: #ff9f43; }

/* ─── Master Footer (used by all pages) ─── */
footer, .footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: linear-gradient(180deg, transparent, rgba(61, 125, 240, 0.025));
}

.footer-left {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--accent); }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: 1fr; }
  .model-row { grid-template-columns: 1fr 1fr; gap: 4px; }
  .footer { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav-logo { font-size: 13px; letter-spacing: 0; }
  .nav-cta { font-size: 13px; padding: 8px 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 16px; }
  .section-label { font-size: 9px; }
  .code-block { font-size: 11px; padding: 16px; }
  .models-list { gap: 6px; }
  .model-row { grid-template-columns: 1fr; gap: 6px; padding: 12px; }
  .footer-links { gap: 16px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .heading-xl { font-size: clamp(32px, 8vw, 48px); }
  .heading-lg { font-size: clamp(28px, 7vw, 36px); }
  .heading-md { font-size: clamp(20px, 5vw, 28px); }
  .stats-row { gap: 6px; }
  .stat-card .stat-value { font-size: 24px; }
  .tool-card { padding: 20px; }
  .tool-name { font-size: 16px; }
  .btn-primary { padding: 14px 24px; font-size: 13px; }
  .btn-secondary { padding: 14px 24px; font-size: 13px; }
}

.site-subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 40px 76px;
  border-bottom: 1px solid rgba(61, 125, 240, 0.1);
}

.site-subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 125, 240, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 125, 240, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 15%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 45%, black 15%, transparent 72%);
  pointer-events: none;
}

.site-subpage-hero::after {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  top: -280px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 125, 240, 0.06), transparent 70%);
  pointer-events: none;
}

.site-subpage-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.site-subpage-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 98px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 800;
  max-width: 950px;
  margin-bottom: 22px;
}

.site-subpage-title .accent {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(61, 125, 240, 0.25), 0 0 120px rgba(61, 125, 240, 0.1);
}

.site-subpage-sub {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dim);
  font-weight: 300;
}

footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-compliance {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  body > nav { height: 64px; padding: 0 20px; }
  body > nav .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { top: 64px; }
  .site-subpage-hero { padding: 118px 20px 56px; }
  footer { flex-direction: column; gap: 20px; text-align: center; }
}

@media (max-width: 480px) {
  body > nav { height: 60px; padding: 0 16px; }
  .mobile-menu { top: 60px; }
  .site-subpage-hero { padding: 104px 16px 44px; }
  .site-subpage-title { font-size: clamp(42px, 12vw, 58px); }
}

/* ═══════════════════════════════════════════
   Premium polish — top-tier subtle effects (site-wide)
   ═══════════════════════════════════════════ */

/* Mouse spotlight on cards */
.hook-card,
.tool-card,
.tier-card,
.stat-block,
.stats-hero-block,
.how-step,
.funded-step,
.card,
.feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hook-card::before,
.tool-card::before,
.tier-card::before,
.stat-block::before,
.stats-hero-block::before,
.how-step::before,
.funded-step::before,
.card::before,
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(61, 125, 240, 0.08),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hook-card:hover::before,
.tool-card:hover::before,
.tier-card:hover::before,
.stat-block:hover::before,
.stats-hero-block:hover::before,
.how-step:hover::before,
.funded-step:hover::before,
.card:hover::before,
.feature-card:hover::before {
  opacity: 1;
}

/* Subtle noise texture (page film grain) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  opacity: 0.05;
  z-index: 9999;
}

/* Headline text gradient */
.hero-headline,
.hero h1,
.tools-headline,
.tiers-headline,
.funded-headline,
.demo-headline,
.agent-headline,
.faq-headline,
.cta-section h2,
.how-headline,
.section-title {
  background: linear-gradient(180deg, #ffffff 0%, #c5dafe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Keep accent spans colorful */
.hero-headline .accent,
.cta-section h2 .accent,
.agent-headline .accent,
.roadmap-headline .accent {
  background: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}
.hero-headline .thin {
  background: none;
  -webkit-text-fill-color: var(--text-dim);
  color: var(--text-dim);
}

/* Button micro-press */
.btn-primary:active,
.btn-secondary:active,
.btn:active,
.btn-sm:active,
.nav-cta:active {
  transform: scale(0.98);
  transition-duration: 0.08s !important;
}

/* Refined focus ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(61, 125, 240, 0.7);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Brand mark glow */
.nav-logo .brand-mark {
  filter: drop-shadow(0 0 8px rgba(61, 125, 240, 0.25));
  transition: filter 0.3s ease;
}
.nav-logo:hover .brand-mark {
  filter: drop-shadow(0 0 14px rgba(61, 125, 240, 0.45));
}

/* Subtle hero-trust item lift */
.hero-trust .trust-item {
  transition: color 0.2s ease, transform 0.2s ease;
}
.hero-trust .trust-item:hover { transform: translateY(-1px); }

/* ─── Production: prevent horizontal page overflow on mobile.
   Use overflow-x:clip (not hidden) — clip doesn't create a scroll container,
   so it preserves position:sticky behavior on inner elements like sidebars. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100vw; }
img, video, iframe, table, pre, code { max-width: 100%; }
/* min-width:0 only on flex/grid descendants where overflow protection is needed,
   not on every element (was breaking certain layouts). */
.app, .docs-container, .hero-content, .hooks-inner, .tools-grid, .tiers-grid {
  min-width: 0;
}
