/* ============================================================
   Apex Power Analytics — design system
   Premium matte-black + electric-cyan, copper accents.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #07090f;
  --bg-2: #0b0f19;
  --surface: #11192b;
  --surface-2: #16203a;
  --surface-3: #1d2942;
  --line: rgba(120, 150, 190, 0.16);
  --line-strong: rgba(140, 170, 210, 0.3);

  /* Brand */
  --cyan: #00e5ff;
  --cyan-deep: #0bb7d4;
  --copper: #d08a55;
  --copper-light: #e8b487;
  --copper-deep: #b06a3a;
  --ice: #dde7f0;
  --gunmetal: #374151;

  /* Text */
  --text: #e9f0fa;
  --muted: #98a6bd;
  --muted-2: #6f7e96;

  /* Status */
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;

  /* Effects */
  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.25);
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --radius: 18px;
  --radius-sm: 12px;

  --grad-brand: linear-gradient(100deg, #b521ba 0%, #7b3ff2 45%, #00abff 100%);
  --grad-cyan: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  --grad-copper: linear-gradient(120deg, var(--copper-light) 0%, var(--copper-deep) 100%);

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1180px;
  --nav-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(0, 229, 255, 0.3); color: #fff; }

/* ---------- Background canvas ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 700px at 78% -8%, rgba(0, 229, 255, 0.1), transparent 60%),
    radial-gradient(900px 600px at 8% 18%, rgba(208, 138, 85, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.4) 0%, rgba(7, 9, 15, 0.82) 55%, var(--bg) 100%);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--muted); }
strong { color: var(--text); font-weight: 600; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cyan-text { color: var(--cyan); }
.copper-text { color: var(--copper-light); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
[id] { scroll-margin-top: 100px; }
section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ice); max-width: 60ch; }
.muted { color: var(--muted); }
.mx-auto { margin-left: auto; margin-right: auto; }
.maxw-680 { max-width: 680px; }
.maxw-760 { max-width: 760px; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }

/* Eyebrow / kicker */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--grad-cyan);
  border-radius: 2px;
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--grad-cyan);
  color: #04121a;
  box-shadow: 0 10px 30px -8px rgba(0, 229, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(0, 229, 255, 0.7); }
.btn-copper {
  background: var(--grad-copper);
  color: #1a0e05;
  box-shadow: 0 10px 30px -10px rgba(208, 138, 85, 0.6);
}
.btn-copper:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(208, 138, 85, 0.75); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--cyan); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(10px);
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}
.card-hover:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-glow::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s;
}
.card-glow:hover::before { opacity: 0.7; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Icon chip */
.icon-chip {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(0, 229, 255, 0.22), rgba(0, 229, 255, 0.04));
  border: 1px solid rgba(0, 229, 255, 0.28);
  color: var(--cyan);
  margin-bottom: 18px;
}
.icon-chip.copper {
  background: radial-gradient(circle at 30% 25%, rgba(232, 180, 135, 0.22), rgba(208, 138, 85, 0.05));
  border-color: rgba(232, 180, 135, 0.3);
  color: var(--copper-light);
}
.icon-chip svg { width: 26px; height: 26px; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
}
.badge-cyan { background: rgba(0, 229, 255, 0.14); color: var(--cyan); }
.badge-copper { background: rgba(208, 138, 85, 0.16); color: var(--copper-light); }
.badge-ok { background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.badge-warn { background: rgba(251, 191, 36, 0.15); color: var(--warn); }
.badge-bad { background: rgba(248, 113, 113, 0.15); color: var(--bad); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex; align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 11, 18, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: auto; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.25)); }
.brand-logo { height: 52px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(0, 171, 255, 0.28)); }
.hero-slogan { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: clamp(0.92rem, 1.5vw, 1.12rem); margin-bottom: 20px; background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; line-height: 1; letter-spacing: 0.01em; }
.brand-name .top { background: var(--grad-copper); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name .sub { display: block; font-size: 0.62rem; letter-spacing: 0.42em; color: var(--muted); font-weight: 500; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ice);
  padding: 9px 14px; border-radius: 10px; position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; }
.nav-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 70px); padding-bottom: 90px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-mark { width: 100%; max-width: 520px; margin: 0 auto; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Framed "signal display" panel (hero). Shows the SVG mark until the
   generated image is dropped into /assets, then upgrades to the image. */
.signal-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.06), rgba(7, 9, 15, 0.4));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
.signal-panel.has-bg { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 0 55px -12px rgba(0, 229, 255, 0.4); }
.signal-panel.has-bg .fallback-mark { display: none; }
.fallback-mark { width: 78%; opacity: 0.92; }

/* Animated waveform video inside the hero panel */
.signal-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signal-panel.has-video { border-color: rgba(0, 229, 255, 0.35); box-shadow: 0 0 55px -12px rgba(0, 229, 255, 0.4); }
.signal-panel.has-video .fallback-mark { display: none; }
@media (prefers-reduced-motion: reduce) {
  .signal-video { display: none; }
  .signal-panel.has-video .fallback-mark { display: block; }
}

/* Wide "before/after" signal banner (education centre). Hidden until its
   image exists, so it never leaves an empty box. */
.signal-banner {
  position: relative;
  aspect-ratio: 24 / 7;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
}
.signal-cap {
  width: 100%;
  padding: 16px 22px;
  font-size: 0.9rem;
  color: var(--ice);
  background: linear-gradient(180deg, transparent, rgba(7, 9, 15, 0.85));
}

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.stat {
  flex: 1 1 140px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.stat .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; }
.stat .num .unit { font-size: 1rem; color: var(--cyan); }
.stat .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }

/* ---------- Feature lists ---------- */
.check-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--ice); }
.check-list li svg { flex: none; width: 22px; height: 22px; color: var(--cyan); margin-top: 2px; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; height: 100%; }
.price-card .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: #fff; margin: 8px 0 4px; }
.price-card .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.price-card.featured { border-color: rgba(0, 229, 255, 0.4); box-shadow: 0 0 50px -15px rgba(0, 229, 255, 0.35); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: left; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--font-display); color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.price-table .amt { font-family: var(--font-display); color: var(--cyan); font-weight: 600; white-space: nowrap; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n {
  counter-increment: step; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--cyan);
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.25);
}
.step .n::before { content: counter(step, decimal-leading-zero); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ice); margin-bottom: 7px; }
.field .hint { font-size: 0.78rem; color: var(--muted-2); margin-top: 5px; }
.input, .select, .textarea {
  width: 100%;
  background: rgba(8, 12, 20, 0.7);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 13px 15px;
  font-family: inherit; font-size: 0.96rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
  background: rgba(8, 12, 20, 0.9);
}
.textarea { resize: vertical; min-height: 120px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2398a6bd' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.range-wrap { display: flex; align-items: center; gap: 14px; }
input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--cyan) var(--pct, 50%), var(--surface-3) var(--pct, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); border: 3px solid #04121a; box-shadow: 0 0 12px rgba(0, 229, 255, 0.6); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 3px solid #04121a; cursor: pointer; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-left: 4px solid var(--cyan);
  border-radius: 12px; padding: 14px 18px; color: var(--text);
  box-shadow: var(--shadow); animation: toastIn 0.3s ease;
  font-size: 0.9rem;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--bad); }
@keyframes toastIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.1), rgba(208, 138, 85, 0.1));
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: clamp(36px, 5vw, 64px);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: -50% 30% auto auto; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 70%); pointer-events: none;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 30px; background: rgba(6, 8, 13, 0.6); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 16px; }
.footer-grid a { color: var(--ice); font-size: 0.92rem; display: block; padding: 5px 0; transition: color 0.2s; }
.footer-grid a:not(.brand):not(.btn) { display: flex; align-items: center; }
.footer-grid svg { width: 18px; height: 18px; flex: none; } /* keep contact icons small */
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted-2); }
.footer-brand-chip { background: #fff; border-radius: 12px; padding: 14px 18px; display: inline-block; }
.footer-brand-chip img { width: 200px; }

/* ---------- Prose (rendered articles) ---------- */
.prose { color: var(--ice); font-size: 1.06rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.5em; color: #fff; }
.prose p, .prose li { color: var(--ice); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #fff; }
.prose strong { color: #fff; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-top: 0.5em; }
.prose blockquote {
  border-left: 3px solid var(--cyan);
  background: rgba(0, 229, 255, 0.05);
  padding: 14px 20px; border-radius: 0 12px 12px 0; color: var(--ice);
}
.prose blockquote p { margin: 0; }
.prose code { background: rgba(255, 255, 255, 0.08); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; color: var(--copper-light); }
.prose pre { background: #0a0e18; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: var(--ice); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.tab { padding: 12px 18px; font-family: var(--font-display); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dtable th, .dtable td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dtable th { font-family: var(--font-display); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.dtable tr:hover td { background: rgba(255, 255, 255, 0.02); }
.dtable .sel { background: rgba(8, 12, 20, 0.7); border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 5px 8px; font-size: 0.82rem; }
.table-wrap { overflow-x: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 28px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- Utilities ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-ok { color: var(--ok); } .text-bad { color: var(--bad); } .text-warn { color: var(--warn); }
.hide { display: none !important; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 12px; } .justify-between { justify-content: space-between; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open { background: rgba(8, 11, 18, 0.97); backdrop-filter: blur(16px); height: auto; flex-direction: column; align-items: stretch; padding-bottom: 18px; }
  .site-header.menu-open .nav-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 16px; }
  .site-header.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .site-header.menu-open .nav-links a { padding: 13px 10px; border-radius: 10px; }
  .site-header.menu-open .nav-cta { display: flex; }
  .site-header.menu-open .nav-cta .btn { display: inline-flex; margin-top: 8px; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .toast-wrap { left: 16px; right: 16px; max-width: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
