/* ============================================================
   ZYNOVA DESIGN SYSTEM — v2 (2026 revamp)
   Dark, engineering-credible aesthetic. Single source of truth.
   ============================================================ */

:root {
  --bg: #05070d;
  --bg-2: #0a0f1a;
  --panel: #0d1422;
  --panel-2: #111a2c;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.28);
  --text: #e8edf6;
  --text-dim: #a7b2c5;
  --muted: #8593a9;
  --accent: #4d8dff;
  --accent-2: #7db0ff;
  --accent-soft: rgba(77, 141, 255, 0.12);
  --green: #34d399;
  --amber: #fbbf24;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: rgba(77, 141, 255, 0.35); color: #fff; }

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

.section { padding: 104px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 52px 0; }
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}

.h-display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-xl { font-size: clamp(2rem, 4.2vw, 3rem); }
.h-lg { font-size: clamp(1.5rem, 2.8vw, 2rem); }
.h-md { font-size: 1.3rem; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 46em;
  margin: 0 0 28px;
}
.muted { color: var(--muted); }
.dim { color: var(--text-dim); }

.grad-text {
  background: linear-gradient(100deg, #6ea6ff 0%, #a5c8ff 50%, #4d8dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono-num {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.4) inset, 0 8px 28px -8px rgba(59, 130, 246, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.6) inset, 0 14px 36px -8px rgba(59, 130, 246, 0.7);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.btn-lg { padding: 17px 34px; font-size: 16.5px; border-radius: 12px; }
.btn .arr { transition: transform 0.2s ease; }
.btn:hover .arr { transform: translateX(3px); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.18s ease;
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a.active { color: var(--accent-2); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-links .btn { padding: 11px 22px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
  padding: 9px 12px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 18px 0 26px;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 13px 4px;
  font-weight: 500;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .btn { margin-top: 18px; width: 100%; color: #fff; border-bottom: none; text-align: center; display: inline-flex; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 128px 0 110px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22), transparent 65%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 30%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.95) 30%, transparent 96%);
  pointer-events: none;
}
.art-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: block;
  box-shadow: 0 24px 60px -24px rgba(2, 6, 16, 0.9);
}
.hero-sub {
  padding: 96px 0 72px;
}

@media (max-width: 768px) {
  .hero { padding: 84px 0 72px; }
  .hero-sub { padding: 68px 0 52px; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-strip > div {
  background: var(--panel);
  padding: 28px 26px;
}
.stat-strip .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.stat-strip .num em { color: var(--accent-2); font-style: normal; }
.stat-strip .num .unit {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 7px;
  letter-spacing: -0.01em;
}
.stat-strip .lbl { font-size: 13.5px; color: var(--muted); line-height: 1.45; display: block; }

@media (max-width: 860px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .stat-strip { grid-template-columns: 1fr; }
}

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}
.card:hover {
  border-color: rgba(77, 141, 255, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -18px rgba(2, 6, 16, 0.9);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); margin: 0; font-size: 15.5px; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  color: var(--accent-2);
  font-weight: 600; font-size: 14.5px;
}
.card .card-link:hover { gap: 11px; }
.card .card-link { transition: gap .2s ease; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 141, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-2);
  font-size: 19px;
  margin-bottom: 22px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 14px;
}

/* ---------- Feature / check lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  padding: 9px 0 9px 32px;
  position: relative;
  color: var(--text-dim);
  font-size: 15.5px;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 15px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 141, 255, 0.45);
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 5px; top: 19px;
  width: 7px; height: 4px;
  border-left: 1.6px solid var(--accent-2);
  border-bottom: 1.6px solid var(--accent-2);
  transform: rotate(-45deg);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
.split > div { min-width: 0; }
.phase > div { min-width: 0; }

/* ---------- Process timeline ---------- */
.phase-list { counter-reset: phase; display: flex; flex-direction: column; gap: 0; }
.phase {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.phase:last-child { border-bottom: none; }
.phase-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  padding-top: 6px;
}
.phase-num .big {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  line-height: 1;
  margin-top: 6px;
}
.phase h3 { margin-bottom: 8px; }
.phase .phase-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.phase p { color: var(--text-dim); margin: 0 0 14px; }
.deliverable {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(77, 141, 255, 0.28);
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--accent-2);
}
@media (max-width: 640px) {
  .phase { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Product showcase ---------- */
.product-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
.product-panel.flip { grid-template-columns: 0.95fr 1.05fr; }
.product-panel .pp-body { padding: 52px 48px; }
.product-panel .pp-visual {
  background: var(--bg-2);
  background-size: cover;
  background-position: center;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.product-panel.flip .pp-visual { border-left: none; border-right: 1px solid var(--line); order: -1; }
.pp-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.14), transparent 60%);
}
.pp-stats {
  display: flex; gap: 34px; margin: 26px 0 4px; flex-wrap: wrap;
}
.pp-stats .num {
  font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 600; color: var(--text); display: block;
}
.pp-stats .lbl { font-size: 13px; color: var(--muted); }
.product-brand {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.product-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(52,211,153,.8); }
@media (max-width: 900px) {
  .product-panel, .product-panel.flip { grid-template-columns: 1fr; }
  .product-panel .pp-visual, .product-panel.flip .pp-visual { border-left: none; border-right: none; border-top: 1px solid var(--line); order: 2; min-height: 260px; }
  .product-panel .pp-body { padding: 38px 28px; }
}

/* Mock UI inside product visuals */
.mock-window {
  width: 100%;
  max-width: 430px;
  background: #0b1120;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.mock-bar {
  display: flex; gap: 6px; padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.mock-body { padding: 20px; }
.mock-line { height: 9px; border-radius: 5px; background: rgba(148,163,184,.18); margin-bottom: 10px; }
.mock-line.w60 { width: 60%; }
.mock-line.w80 { width: 80%; }
.mock-line.w40 { width: 40%; }
.mock-line.accent { background: linear-gradient(90deg, rgba(59,130,246,.65), rgba(125,176,255,.35)); }
.mock-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent-2);
  border: 1px solid rgba(77,141,255,.4);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 6px 4px 0;
}

/* ---------- Quote / testimonial ---------- */
.quote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
}
.quote-card blockquote {
  margin: 0 0 18px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text);
}
.quote-card blockquote::before { content: '“'; color: var(--accent); font-family: var(--font-display); font-size: 1.6em; line-height: 0; vertical-align: -6px; margin-right: 4px; }
.quote-card .attr { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 55% at 50% 0%, rgba(59, 130, 246, 0.13), transparent 70%),
    var(--panel);
  padding: 72px 56px;
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 176, 255, 0.7), transparent);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 17em; margin-left: auto; margin-right: auto; }
.cta-band .lead { margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
@media (max-width: 640px) { .cta-band { padding: 48px 24px; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 72px 0 36px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer h4 {
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 500;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a { color: var(--text-dim); transition: color 0.18s; }
.site-footer a:hover { color: var(--accent-2); }
.footer-logo img { height: 30px; margin-bottom: 18px; }
.footer-desc { color: var(--muted); max-width: 34em; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13.5px;
}
.footer-bottom .legal { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-panel { padding: 30px 22px; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; min-width: 0; }
.form-grid > .field { min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 141, 255, 0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { max-width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238593a9' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-msg { margin-top: 16px; padding: 13px 16px; border-radius: 10px; font-size: 14.5px; display: none; }
.form-msg.ok { display: block; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.4); color: var(--green); }
.form-msg.err { display: block; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.4); color: #fb7185; }

/* ---------- Newsletter band ---------- */
.newsletter-band {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0;
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  padding: 13px 16px;
  min-width: 280px;
  font-size: 15px;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 640px) { .newsletter-form input { min-width: 0; flex: 1; } }

/* ---------- Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease;
  height: 100%;
}
.post-card:hover { border-color: rgba(77, 141, 255, 0.45); transform: translateY(-3px); }
.post-card .post-cat {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.post-card h3 { font-size: 1.18rem; line-height: 1.35; margin-bottom: 10px; }
.post-card p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.post-card .post-meta { font-size: 13px; color: var(--muted); }

.prose { color: var(--text-dim); font-size: 17px; line-height: 1.75; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--text); margin-top: 2.2em; margin-bottom: 0.6em; }
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose p { margin: 0 0 1.35em; }
.prose a { color: var(--accent-2); border-bottom: 1px solid rgba(125, 176, 255, 0.35); }
.prose a:hover { border-bottom-color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.35em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-style: italic;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--accent-2);
}
.prose pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  margin: 0 0 1.5em;
}
.prose pre code { background: none; border: none; padding: 0; color: var(--text-dim); }
.prose img { border-radius: 12px; border: 1px solid var(--line); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line-strong); padding: 10px 14px; text-align: left; }
.prose th { color: var(--text); background: var(--panel-2); }

/* ---------- Legal pages ---------- */
.legal-page h2 { font-size: 1.4rem; margin-top: 2.4em; }
.legal-page { padding-bottom: 40px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 56px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 0 14px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-2); }
.pagination .current { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 600; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.divider-glow {
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(90deg, transparent, rgba(77, 141, 255, 0.5), transparent);
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-lg { margin-bottom: 56px; }
.mb-md { margin-bottom: 36px; }

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.75;
}
.logo-row span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Cookie consent (restyle) */
#cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75);
  font-size: 14px;
  color: var(--text-dim);
}
#cookie-consent-banner .cc-actions { display: flex; gap: 10px; margin-top: 14px; }
#cookie-consent-banner .btn { padding: 9px 18px; font-size: 13.5px; }
