/* ==========================================================================
   Nitrotick — site stylesheet
   Pure CSS, no build step, no external fonts (GDPR-friendly, zero third-party requests).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark;

  --brand: #137c6d;
  --brand-600: #0f6a5d;
  --teal: #2dd4bf;
  --teal-soft: #5eead4;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --danger: #f87171;
  --amber: #fbbf24;

  --bg: #070b14;
  --bg-2: #0a111d;
  --surface: #0d1624;
  --surface-2: #111c2d;
  --border: #1c2a3e;
  --border-strong: #27405c;

  --text: #e6edf5;
  --text-2: #b4c2d3;
  --muted: #8193a8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 0 1px rgba(45, 212, 191, .18), 0 10px 40px -12px rgba(34, 211, 238, .28);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(52px, 6.5vw, 92px);

  --font-sans: "Segoe UI", "Noto Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, rgba(19, 124, 109, .28), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(34, 211, 238, .08), transparent 60%),
    linear-gradient(rgba(28, 42, 62, .35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 42, 62, .35) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-attachment: scroll;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .6em; color: #fff; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
strong { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  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; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: #03201b; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(10, 17, 29, .0), rgba(10, 17, 29, .85) 12%, rgba(10, 17, 29, .85) 88%, rgba(10, 17, 29, 0)); }
.section-head { max-width: 780px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); }
.muted { color: var(--muted); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head--center .eyebrow::before { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, .45); background: rgba(19, 124, 109, .16);
  color: var(--teal-soft); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: linear-gradient(135deg, var(--teal), var(--brand)); color: #031a16; box-shadow: 0 10px 30px -10px rgba(45, 212, 191, .6); }
.btn--primary:hover { color: #031a16; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(45, 212, 191, .8); }
.btn--ghost { border-color: var(--border-strong); color: var(--text); background: rgba(13, 22, 36, .6); }
.btn--ghost:hover { border-color: var(--teal); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / navigation (CSS-only mobile menu) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(28, 42, 62, .8);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: .01em; }
.brand img { width: 40px; height: 40px; }
.brand:hover { color: #fff; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--border-strong);
  align-items: center; justify-content: center; cursor: pointer; color: #fff;
}
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }
.nav-toggle:focus-visible + .nav-toggle-label { outline: 2px solid var(--cyan); outline-offset: 3px; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu a {
  display: block; padding: 10px 14px; border-radius: 10px;
  color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #fff; background: rgba(28, 42, 62, .6); }
.nav-menu .btn { margin-left: 8px; min-height: 42px; padding: 10px 18px; color: #031a16; }
.nav-menu .btn:hover { background: linear-gradient(135deg, var(--teal), var(--brand)); color: #031a16; }

@media (max-width: 980px) {
  .nav-toggle-label { display: inline-flex; }
  .nav-menu {
    position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(7, 11, 20, .97); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-menu a { padding: 14px 12px; font-size: 1.05rem; }
  .nav-menu .btn { margin: 10px 0 0; }
  .nav-toggle:checked ~ .nav-menu { display: flex; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px); }
.hero .pill { margin-bottom: 26px; }
.hero h1 .accent, .accent {
  background: linear-gradient(100deg, var(--teal-soft), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 620px; margin-bottom: 32px; }
.hero-visual { position: relative; }
.hero-visual svg { width: 100%; filter: drop-shadow(0 30px 60px rgba(34, 211, 238, .12)); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .92rem; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--surface); padding: 28px 24px; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.1; color: #fff; font-weight: 800; letter-spacing: -.02em; }
.stat b .accent { font-size: inherit; }
.stat > span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; height: 100%;
  background: linear-gradient(180deg, rgba(17, 28, 45, .92), rgba(13, 22, 36, .92));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: rgba(45, 212, 191, .45); box-shadow: var(--shadow-glow); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--text-2); }
.card--glow { border-color: rgba(34, 211, 238, .5); box-shadow: var(--shadow-glow); }
.card--featured { background: linear-gradient(180deg, rgba(19, 124, 109, .22), rgba(13, 22, 36, .95)); border-color: rgba(45, 212, 191, .55); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: rgba(19, 124, 109, .18); border: 1px solid rgba(45, 212, 191, .35); color: var(--teal-soft);
}
.card-icon svg { width: 26px; height: 26px; }
.card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; display: block; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; text-decoration: none; }
.card-link::after { content: "→"; transition: transform .2s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* ---------- Lists ---------- */
.check-list, .cross-list, .dot-list { list-style: none; display: grid; gap: 12px; }
.check-list li, .cross-list li, .dot-list li { position: relative; padding-left: 32px; color: var(--text-2); }
.check-list li::before, .cross-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.check-list li::before {
  background-color: rgba(45, 212, 191, .16); border: 1px solid rgba(45, 212, 191, .55);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%235EEAD4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cross-list li::before {
  background-color: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23F87171' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.dot-list li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px rgba(34, 211, 238, .7); }
.check-list strong, .cross-list strong, .dot-list strong { display: block; color: #fff; }

/* ---------- Question list ---------- */
.questions { list-style: none; display: grid; gap: 12px; counter-reset: q; }
.questions li {
  counter-increment: q; display: flex; gap: 16px; align-items: baseline;
  padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: rgba(13, 22, 36, .75);
  color: var(--text);
}
.questions li::before { content: counter(q, decimal-leading-zero); font-family: var(--font-mono); font-size: .85rem; color: var(--cyan); flex: none; }

/* ---------- Quote / statement ---------- */
.statement {
  border-left: 3px solid var(--teal); padding: 6px 0 6px 24px; margin: 28px 0;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.5; color: #fff; font-weight: 600;
}
.statement small { display: block; margin-top: 10px; font-size: .95rem; font-weight: 500; color: var(--muted); }

/* ---------- Layers ("one layer beneath") ---------- */
.layers { display: grid; gap: 10px; }
.layer {
  display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center;
  padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: rgba(13, 22, 36, .75);
}
.layer dt { font-weight: 700; color: #fff; }
.layer dd { margin: 0; color: var(--text-2); }
.layer--core { border-color: rgba(45, 212, 191, .7); background: linear-gradient(90deg, rgba(19, 124, 109, .35), rgba(13, 22, 36, .85)); box-shadow: var(--shadow-glow); }
.layer--core dt { color: var(--teal-soft); }
@media (max-width: 560px) { .layer { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Flow chips ---------- */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; list-style: none; }
.flow li {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface);
  font-weight: 600; font-size: .95rem; color: #fff; position: relative;
}
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 50%; transform: translate(50%, -50%); color: var(--teal); font-weight: 700; }
.flow li { margin-right: 14px; }
.flow li:last-child { margin-right: 0; border-color: rgba(45, 212, 191, .6); background: rgba(19, 124, 109, .25); }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.compare .vs {
  align-self: center; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; border: 2px solid var(--violet); background: var(--surface); box-shadow: 0 0 24px rgba(139, 92, 246, .45);
}
.metric { margin-bottom: 22px; }
.metric-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; margin-bottom: 8px; font-size: .98rem; }
.metric-head span:last-child { text-align: right; }
.bar { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; }
.bar--bad i { background: linear-gradient(90deg, #ef4444, #f87171); }
.bar--warn i { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bar--good i { background: linear-gradient(90deg, var(--brand), var(--teal)); }
.metric p { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.t-bad { color: var(--danger); }
.t-warn { color: var(--amber); }
.t-good { color: var(--teal); }
.card--bad { border-color: rgba(248, 113, 113, .35); }
.card--good { border-color: rgba(139, 92, 246, .5); box-shadow: 0 0 0 1px rgba(139, 92, 246, .2), 0 10px 40px -12px rgba(139, 92, 246, .35); }
@media (max-width: 900px) { .compare { grid-template-columns: 1fr; } .compare .vs { justify-self: center; } }

/* ---------- Tiers ---------- */
.tier { display: flex; flex-direction: column; }
.tier h3 { font-size: 1.5rem; }
.tier .tagline { color: var(--teal-soft); font-weight: 600; margin-bottom: 14px; }
.tier .check-list { margin-top: auto; padding-top: 12px; }

/* ---------- Diagram frame ---------- */
.diagram {
  margin: 0; padding: clamp(14px, 2.4vw, 28px); border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: rgba(10, 17, 29, .85);
}
.diagram svg { width: 100%; }
.diagram figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; text-align: center; }
.diagram--scroll { overflow-x: auto; }
.diagram--scroll svg { min-width: 760px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: rgba(13, 22, 36, .75); }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(17, 28, 45, .9); }
td { color: var(--text-2); }
td:first-child { color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---------- Deployment strip ---------- */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 16px; }
.strip span {
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(45, 212, 191, .45); background: rgba(19, 124, 109, .16);
  font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; font-size: .8rem;
}

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start; }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #0b3f38); border: 2px solid rgba(45, 212, 191, .6);
  font-size: 2.3rem; font-weight: 800; color: #fff; letter-spacing: .02em;
}
img.avatar { object-fit: cover; box-shadow: 0 10px 30px -10px rgba(45, 212, 191, .5); }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } }

/* ---------- FAQ (native details/summary) ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: rgba(13, 22, 36, .8); }
.faq details[open] { border-color: rgba(45, 212, 191, .45); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 700; color: #fff; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--text-2); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg); border: 1px solid rgba(45, 212, 191, .45);
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(45, 212, 191, .25), transparent 70%),
    linear-gradient(180deg, rgba(17, 28, 45, .95), rgba(10, 17, 29, .95));
  box-shadow: var(--shadow-glow);
}
.cta h2 { max-width: 760px; margin-inline: auto; }
.cta .lead { max-width: 680px; margin-inline: auto; margin-bottom: 30px; }
.cta .btn-row { justify-content: center; }
.cta-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 36px auto 0; max-width: 900px; text-align: left; counter-reset: step; }
.cta-steps li { counter-increment: step; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: rgba(7, 11, 20, .55); color: var(--text-2); font-size: .95rem; }
.cta-steps li::before { content: "Step " counter(step); display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--cyan); margin-bottom: 4px; }
@media (max-width: 720px) { .cta-steps { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--border-strong); }
.breadcrumb a { color: var(--text-2); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: rgba(7, 11, 20, .9); padding-block: 56px 32px; }
.footer-grid .brand, .footer-grid .brand:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-tagline { color: var(--text-2); max-width: 360px; margin-top: 14px; }
.footer-tagline strong { color: var(--teal-soft); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.mono { font-family: var(--font-mono); font-size: .9em; }
.note { font-size: .88rem; color: var(--muted); }

/* ---------- SVG diagram helpers (used by inline SVG) ---------- */
.svg-text { font-family: var(--font-sans); }
.svg-mono { font-family: var(--font-mono); }

/* ---------- Motion ---------- */
@keyframes pulse-dash { to { stroke-dashoffset: -40; } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.anim-dash { stroke-dasharray: 6 8; animation: pulse-dash 2.4s linear infinite; }
.anim-breathe { animation: breathe 3.2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .site-header, .site-footer, .nav-toggle-label, .btn-row { display: none; }
  h1, h2, h3, strong { color: #000; }
  .card, .diagram { border-color: #ccc; background: #fff; }
}

/* ---------- Sub-page hero ---------- */
.hero--page { padding-block: clamp(40px, 6vw, 80px) clamp(40px, 5vw, 72px); }
.hero--page h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }

/* ---------- Timeline (vertical numbered steps) ---------- */
.steps { list-style: none; display: grid; gap: 14px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 20px 18px 68px;
  border: 1px solid var(--border); border-radius: 12px; background: rgba(13, 22, 36, .8); color: var(--text-2);
}
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #031a16; background: linear-gradient(135deg, var(--teal), var(--brand));
}
.steps strong { display: block; color: #fff; }

/* ---------- Language block ---------- */
.lang-block { border-left: 3px solid var(--cyan); }
.stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .stats--2 { grid-template-columns: 1fr; } }
.flow--center { justify-content: center; }
.bar .w-3 { width: 3%; } .bar .w-8 { width: 8%; } .bar .w-22 { width: 22%; }
.bar .w-65 { width: 65%; } .bar .w-80 { width: 80%; } .bar .w-88 { width: 88%; }
