/* Shared vanilla CSS for every landing site — semantic, component-based
   classes (named for what they ARE), not a hand-cloned Tailwind utility
   scale. Each site's own inline <style> block layers brand-specific
   tokens/animations (terminal panels, route cards, topology diagrams,
   etc.) on top of the primitives below; nothing here is generated. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img, svg { max-width: 100%; }
[x-cloak] { display: none !important; }

/* --- layout primitives --- */

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

.section { border-top: 1px solid var(--hairline, rgba(255,255,255,.08)); }
.section-pad { padding: 5rem 0; }

.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.row-wrap { display: flex; align-items: center; flex-wrap: wrap; }
.row-gap-sm { gap: .5rem; }
.row-gap { gap: 1rem; }

.stack { display: flex; flex-direction: column; }
.stack-gap-sm { gap: .5rem; }
.stack-gap { gap: 1rem; }
.stack-gap-lg { gap: 1.5rem; }

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.desktop-only { display: none; }
@media (min-width: 768px) {
  .desktop-only { display: block; }
  .desktop-row { display: flex; }
}

/* --- typography --- */

.h1 { font-size: 2.5rem; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h2 { font-size: 2rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
.h3 { font-size: 1.25rem; font-weight: 600; margin: 0; }
@media (min-width: 768px) {
  .h1 { font-size: 3.75rem; }
  .h2 { font-size: 2.75rem; }
}
.lede { font-size: 1.125rem; line-height: 1.6; }
.muted { opacity: .7; }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* --- nav --- */

.nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--hairline, rgba(255,255,255,.08)); backdrop-filter: blur(12px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; max-width: 72rem; margin: 0 auto; padding: 1rem 1.5rem; }
.nav-links { display: none; align-items: center; gap: 2rem; font-size: .9rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; color: inherit; opacity: .8; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; color: inherit; }
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-mobile { border-top: 1px solid var(--hairline, rgba(255,255,255,.08)); padding: 1rem 1.5rem; font-size: .9rem; }
@media (min-width: 768px) { .nav-mobile { display: none; } }
.nav-mobile a { display: block; padding: .5rem 0; text-decoration: none; color: inherit; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; color: inherit; }

/* --- buttons / badges --- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .75rem 1.5rem; font-weight: 500; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: opacity .15s, transform .15s; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-sm { padding: .4rem 1rem; font-size: .8rem; }
.btn-primary { background: var(--accent, #00d4ff); color: var(--accent-fg, #04101a); }
.btn-primary:hover { opacity: .85; }
.btn-outline { border-color: var(--hairline-strong, rgba(255,255,255,.2)); color: inherit; background: transparent; }
.btn-outline:hover { border-color: var(--accent, #00d4ff); }
.btn-dark { background: var(--fg, #1a1a1a); color: var(--bg, #fff); }
.btn-dark:hover { opacity: .85; }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .35rem .9rem; font-size: .75rem; font-weight: 500; border: 1px solid var(--hairline-strong, rgba(255,255,255,.2)); }
.dot { width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }

/* --- content components --- */

.card { border-radius: 1rem; border: 1px solid var(--hairline-strong, rgba(255,255,255,.1)); padding: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-size: 1.875rem; font-weight: 600; }
.stat-label { font-size: .875rem; opacity: .65; margin-top: .25rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab { border-radius: 999px; padding: .4rem 1rem; font-size: .875rem; border: 1px solid var(--hairline-strong, rgba(255,255,255,.1)); background: transparent; color: inherit; cursor: pointer; }
.tab.is-active { background: var(--accent, #00d4ff); color: var(--accent-fg, #04101a); border-color: transparent; }

/* --- forms --- */

.form-card { border-radius: 1rem; border: 1px solid var(--hairline-strong, rgba(255,255,255,.1)); padding: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: block; }
.field span { display: block; font-size: .875rem; margin-bottom: .35rem; opacity: .8; }
.field input, .field textarea, .field select {
  width: 100%; border-radius: .5rem; border: 1px solid var(--hairline-strong, rgba(255,255,255,.15));
  background: var(--input-bg, rgba(255,255,255,.04)); color: inherit; padding: .6rem .75rem;
  font: inherit; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent, #00d4ff); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .5rem; }
.form-status { border-radius: .5rem; padding: .75rem 1rem; font-size: .875rem; }
.form-status-ok { border: 1px solid rgba(16,185,129,.3); background: rgba(16,185,129,.1); }
.form-status-err { border: 1px solid rgba(244,63,94,.3); background: rgba(244,63,94,.1); }

/* --- footer --- */

.footer { border-top: 1px solid var(--hairline, rgba(255,255,255,.08)); }
.footer-row { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: .875rem; opacity: .75; }
@media (min-width: 768px) { .footer-row { flex-direction: row; } }
.footer-row a { color: inherit; text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }

/* --- per-site theme tokens ---
   Each site's <html>/<body> carries data-site="<slug>"; the semantic
   classes above read colors from these custom properties so the visual
   identity of every brand stays exactly what it was pre-refactor. */

[data-site="boltleap"] {
  --bg: #020617; --fg: #f1f5f9; --hairline: rgba(255,255,255,.05); --hairline-strong: rgba(255,255,255,.15);
  --accent: #22d3ee; --accent-fg: #020617; --input-bg: rgba(2,6,23,.6);
  background: var(--bg); color: var(--fg);
}

[data-site="lienket"] {
  --bg: #fdf6ec; --fg: #1c1917; --hairline: rgba(28,25,23,.1); --hairline-strong: rgba(28,25,23,.15);
  --accent: #d97706; --accent-fg: #fffbeb; --input-bg: #ffffff;
  background: var(--bg); color: var(--fg);
}

[data-site="agencyplane"] {
  --bg: #04080f; --fg: #c8e6f0; --hairline: rgba(0,212,255,.08); --hairline-strong: rgba(0,212,255,.15);
  --accent: #00d4ff; --accent-fg: #04080f; --input-bg: rgba(13,21,32,.9);
  background: var(--bg); color: var(--fg);
}

[data-site="zingago"] {
  --bg: #0a0d0f; --fg: #e8f4ff; --hairline: rgba(212,244,0,.08); --hairline-strong: rgba(212,244,0,.15);
  --accent: #d4f400; --accent-fg: #0a0d0f; --input-bg: rgba(255,255,255,.04);
  background: var(--bg); color: var(--fg);
}
