/* ==========================================================================
   RKValidate — Redesign Design System
   Modern + Trustworthy hybrid for a safety-critical developer tool
   Single shared stylesheet for all mockup pages.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink / dark surfaces */
  --ink-900: #050A14;
  --ink-850: #081020;
  --ink-800: #0B1424;
  --ink-700: #111E34;
  --ink-600: #1A2A45;
  --ink-500: #24385A;

  /* Neutrals */
  --bg: #FFFFFF;
  --bg-soft: #F6F8FC;
  --bg-tint: #EDF3FC;
  --line: #E3E9F2;
  --line-strong: #CDD7E6;

  /* Text */
  --text: #0C1A2E;
  --text-soft: #46566F;
  --text-mute: #6C7B92;
  --text-faint: #9AA8BC;
  --on-dark: #EAF1FB;
  --on-dark-soft: #A9BAD3;
  --on-dark-faint: #6F84A6;

  /* Brand */
  --brand-700: #1A3FB0;
  --brand-600: #2563EB;
  --brand-500: #3B82F6;
  --brand-400: #60A5FA;
  --brand-300: #9CC2FF;
  --brand-50: #EAF1FE;

  /* Accent (AI / modern energy) */
  --cyan-600: #0891B2;
  --cyan-500: #06B6D4;
  --cyan-400: #22D3EE;

  /* Signal (coverage / pass) */
  --mint-600: #059669;
  --mint-500: #10B981;
  --mint-400: #34D399;
  --mint-50: #E7F8F1;

  /* Safety highlight */
  --amber-500: #F59E0B;
  --amber-50: #FEF6E7;
  --rose-500: #F43F5E;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  --grad-ai: linear-gradient(135deg, #06B6D4 0%, #10B981 100%);
  --grad-deep: linear-gradient(160deg, #0B1424 0%, #102243 55%, #0B1424 100%);
  --grad-text: linear-gradient(100deg, #2563EB 0%, #06B6D4 60%, #10B981 100%);

  /* Radius */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow */
  --sh-xs: 0 1px 2px rgba(12,26,46,.06);
  --sh-sm: 0 2px 8px rgba(12,26,46,.06), 0 1px 2px rgba(12,26,46,.04);
  --sh-md: 0 8px 28px rgba(15,33,66,.10), 0 2px 8px rgba(15,33,66,.06);
  --sh-lg: 0 24px 64px rgba(13,30,66,.16), 0 8px 24px rgba(13,30,66,.08);
  --sh-glow: 0 0 0 1px rgba(37,99,235,.12), 0 20px 60px rgba(37,99,235,.18);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --container-wide: 1320px;
  --gutter: 24px;
  --nav-h: 70px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
p { margin: 0; }
hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Typography scale ---------- */
.display { font-size: clamp(2.6rem, 5.4vw, 4.1rem); font-weight: 850; letter-spacing: -.035em; line-height: 1.03; }
.h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.h4 { font-size: 1.12rem; font-weight: 750; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--text-soft); line-height: 1.6; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.text-grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-mute); }
.small { font-size: .9rem; }
.mono { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.wide { max-width: var(--container-wide); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tight { padding: clamp(44px, 6vw, 72px) 0; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.measure { max-width: 720px; }
.measure.center { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* Dark section */
.dark { background: var(--grad-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead, .dark p { color: var(--on-dark-soft); }
.dark .muted { color: var(--on-dark-faint); }
.dark a { color: var(--cyan-400); }
.dark hr { border-color: rgba(255,255,255,.12); }
.dark .eyebrow { color: var(--cyan-400); }

.soft { background: var(--bg-soft); }
.tint { background: var(--bg-tint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; font-size: .98rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.32); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 30px rgba(37,99,235,.42); transform: translateY(-1px); }
.btn-dark { background: var(--ink-800); color: #fff; }
.btn-dark:hover { background: var(--ink-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line-strong); box-shadow: var(--sh-xs); }
.btn-ghost:hover { border-color: var(--brand-400); color: var(--brand-700); box-shadow: var(--sh-sm); }
.btn-outline-light { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.btn-link { background: none; padding: 0; color: var(--brand-600); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { gap: 9px; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600; line-height: 1;
  background: var(--brand-50); color: var(--brand-700); border: 1px solid rgba(37,99,235,.16);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 3px rgba(16,185,129,.18); }
.pill-mint { background: var(--mint-50); color: var(--mint-600); border-color: rgba(16,185,129,.2); }
.pill-amber { background: var(--amber-50); color: #B45309; border-color: rgba(245,158,11,.25); }
.pill-ghost { background: rgba(255,255,255,.06); color: var(--on-dark); border: 1px solid rgba(255,255,255,.14); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-xs); font-size: .8rem; font-weight: 600; background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--line); }

/* Standards badge */
.std-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-xs);
}
.std-badge .std-name { font-weight: 800; font-size: .98rem; letter-spacing: -.01em; }
.std-badge .std-sub { font-size: .72rem; color: var(--text-mute); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dark .std-badge { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.dark .std-badge .std-name { color: #fff; }
.dark .std-badge .std-sub { color: var(--on-dark-faint); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--sh-sm); transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-300); }
.card .icon { width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: 18px; background: var(--brand-50); color: var(--brand-600); }
.card .icon svg { width: 24px; height: 24px; }
.card h3, .card .h4 { margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: .98rem; }
.card-glass { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); padding: 26px; backdrop-filter: blur(8px); }
.dark .card-glass h3, .dark .card-glass .h4 { color: #fff; }
.dark .card-glass p { color: var(--on-dark-soft); }

.icon-mint { background: var(--mint-50) !important; color: var(--mint-600) !important; }
.icon-cyan { background: #E6FAFE !important; color: var(--cyan-600) !important; }
.icon-amber { background: var(--amber-50) !important; color: #B45309 !important; }
.icon-ink { background: #ECF0F7 !important; color: var(--ink-700) !important; }

/* ---------- Code / terminal block ---------- */
.code-window {
  background: var(--ink-850); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); overflow: hidden; font-family: var(--font-mono);
}
.code-window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.07); }
.code-window .bar .dotc { width: 11px; height: 11px; border-radius: 50%; background: #2A3A57; }
.code-window .bar .dotc.r { background: #ff5f57; } .code-window .bar .dotc.y { background: #febc2e; } .code-window .bar .dotc.g { background: #28c840; }
.code-window .bar .fname { margin-left: 10px; font-size: .78rem; color: var(--on-dark-faint); }
.code-window pre { margin: 0; padding: 20px; font-size: .86rem; line-height: 1.7; color: #C9D6EE; overflow-x: auto; }
.code-window .cmt { color: #5C7299; }
.code-window .kw { color: #7DD3FC; }
.code-window .str { color: #6EE7B7; }
.code-window .fn { color: #C4B5FD; }
.code-window .num { color: #FCA5A5; }
.code-window .ok { color: #34D399; }
.code-window .dim { color: #64748B; }

/* ---------- Coverage meter ---------- */
.meter { height: 9px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--grad-ai); }
.dark .meter { background: rgba(255,255,255,.1); }
.cov-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 14px; align-items: center; }
.cov-row .cov-label { font-size: .86rem; font-weight: 600; color: var(--text-soft); }
.dark .cov-row .cov-label { color: var(--on-dark-soft); }
.cov-row .cov-val { font-family: var(--font-mono); font-size: .86rem; font-weight: 700; text-align: right; color: var(--mint-600); }
.dark .cov-row .cov-val { color: var(--mint-400); }

/* ---------- Stats ---------- */
.stat .num { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 850; letter-spacing: -.03em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat .lbl { color: var(--text-mute); font-size: .92rem; margin-top: 8px; }
.dark .stat .num { background: linear-gradient(100deg,#60A5FA,#22D3EE,#34D399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .stat .lbl { color: var(--on-dark-faint); }

/* ---------- Feature list ---------- */
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; color: var(--text-soft); }
.check-list li svg { flex: none; width: 21px; height: 21px; color: var(--mint-500); margin-top: 2px; }
.dark .check-list li { color: var(--on-dark-soft); }

/* Language grid */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 12px; }
.lang-chip { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; box-shadow: var(--sh-xs); transition: border-color .2s, transform .2s; }
.lang-chip:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.lang-chip .lg { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .72rem; font-weight: 800; color: #fff; }

/* Logo / target cloud */
.target-strip { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.target-strip .tchip { padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--bg); font-weight: 650; font-size: .92rem; color: var(--text-soft); }
.dark .target-strip .tchip { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); color: var(--on-dark-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; font-size: 1.22rem; letter-spacing: -.03em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; font-weight: 850; box-shadow: 0 6px 16px rgba(37,99,235,.35); font-size: .95rem; }
.brand .rk { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-item-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: var(--r-sm);
  font-size: .96rem; font-weight: 600; color: var(--text-soft); background: none; border: none; transition: color .15s, background .15s;
}
.nav-links > li > a:hover, .nav-item-btn:hover, .nav-links > li.open .nav-item-btn { color: var(--text); background: var(--bg-soft); }
.nav-item-btn .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav-links > li.open .nav-item-btn .chev { transform: rotate(180deg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 10px; min-width: 320px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-links > li.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown.wide { min-width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dd-item { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); transition: background .15s; }
.dd-item:hover { background: var(--bg-soft); }
.dd-item .dd-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.dd-item .dd-ic svg { width: 19px; height: 19px; }
.dd-item .dd-t { font-weight: 700; font-size: .94rem; color: var(--text); }
.dd-item .dd-d { font-size: .82rem; color: var(--text-mute); margin-top: 1px; }

/* Mobile nav */
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--text); }
.mobile-menu { display: none; }

/* ---------- Hero shared bg flourishes ---------- */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; z-index: 0; }
.glow.b { background: radial-gradient(circle, rgba(37,99,235,.55), transparent 70%); }
.glow.c { background: radial-gradient(circle, rgba(6,182,212,.45), transparent 70%); }
.glow.m { background: radial-gradient(circle, rgba(16,185,129,.4), transparent 70%); }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.dot-bg { background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 22px 22px; }
.rel { position: relative; z-index: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb .sep { color: var(--text-faint); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); background: var(--grad-deep); color: #fff; text-align: center; box-shadow: var(--sh-lg); }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--on-dark-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-soft); padding: 72px 0 32px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; color: var(--on-dark-soft); font-size: .94rem; padding: 6px 0; }
.footer-col a:hover { color: #fff; }
.footer-about p { font-size: .94rem; color: var(--on-dark-soft); margin-top: 16px; max-width: 320px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: var(--on-dark-faint); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--on-dark-soft); }
.footer-social a:hover { background: var(--brand-600); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- Accordion (FAQ / docs) ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; font-weight: 700; font-size: 1.02rem; color: var(--text); }
.acc-head:hover { background: var(--bg-soft); }
.acc-head .pm { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; transition: transform .2s; font-size: 1.1rem; }
.acc-item.open .acc-head .pm { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-item.open .acc-body { max-height: 480px; }
.acc-body .inner { padding: 0 24px 22px; color: var(--text-soft); }

/* ---------- Tables ---------- */
/* Let grid/flex columns shrink so wide content (e.g. the min-width:640px
   comparison table) scrolls inside its own wrap instead of stretching the
   page and causing horizontal scroll on mobile. */
.split > *, .grid > * { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); }
table.cmp { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 640px; }
table.cmp th, table.cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--bg-soft); font-weight: 700; color: var(--text); }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp td.hl { background: var(--brand-50); }
table.cmp .yes { color: var(--mint-600); font-weight: 700; }
table.cmp .no { color: var(--text-faint); }

/* ---------- Steps / timeline ---------- */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; padding-bottom: 28px; position: relative; }
.step::before { counter-increment: step; content: counter(step); flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 52px; bottom: 0; width: 2px; background: var(--line); }
.step .step-body h4 { margin-bottom: 5px; }
.step .step-body p { color: var(--text-soft); font-size: .96rem; }

/* ---------- Blog cards ---------- */
.post-card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); transition: transform .2s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--grad-deep); position: relative; overflow: hidden; }
.post-card .thumb .glow { width: 200px; height: 200px; top: -40px; right: -40px; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-body h3 { font-size: 1.15rem; margin: 10px 0 8px; }
.post-card .pc-meta { margin-top: auto; padding-top: 14px; font-size: .84rem; color: var(--text-mute); display: flex; gap: 10px; align-items: center; }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  font-family: inherit; font-size: .98rem; color: var(--text); background: var(--bg); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--sh-md); }

/* ---------- Misc ---------- */
.divider-label { display: flex; align-items: center; gap: 18px; color: var(--text-mute); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.kicker-card { border-left: 3px solid var(--brand-500); padding-left: 18px; }
.ratio-vid { aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--ink-800); position: relative; display: grid; place-items: center; }
.play-btn { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--sh-lg); transition: transform .2s; }
.ratio-vid:hover .play-btn { transform: scale(1.08); }
.play-btn svg { width: 26px; height: 26px; color: var(--brand-600); margin-left: 3px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .dropdown.wide { grid-template-columns: 1fr; min-width: 320px; }
  body.nav-open { overflow: hidden; }
  .mobile-menu { display: block; position: fixed; inset: var(--nav-h) 0 0; background: var(--bg); z-index: 99; padding: 20px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  body.nav-open .mobile-menu { transform: translateX(0); }
  .mobile-menu .mm-group { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .mobile-menu .mm-group > a, .mobile-menu .mm-label { display: block; padding: 14px 4px; font-weight: 700; font-size: 1.05rem; color: var(--text); }
  .mobile-menu .mm-sub a { display: block; padding: 10px 4px 10px 16px; color: var(--text-soft); font-size: .98rem; }
  .mobile-menu .btn { width: 100%; margin-top: 10px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cov-row { grid-template-columns: 96px 1fr 44px; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ Mega menu (click-to-open) ============ */
.nav-links { position: relative; }
.nav-links > li.has-mega { position: static; }
.nav-links > li.has-mega.is-sm { position: relative; }
.mega {
  position: absolute; top: calc(100% + 16px); left: 0; z-index: 60;
  width: min(720px, calc(100vw - 48px));
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega.mega-sm { left: auto; right: 0; width: min(360px, calc(100vw - 48px)); }
.nav-links > li.has-mega.open > .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega-inner { display: grid; grid-template-columns: 1fr 1fr 240px; gap: 16px; }
.mega.mega-sm .mega-inner { grid-template-columns: 1fr; }
.mega-col .mega-h { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); padding: 0 10px; margin-bottom: 4px; }
.mega-link { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-sm); transition: background .15s; align-items: flex-start; }
.mega-link:hover { background: var(--bg-soft); }
.mega-link:focus-visible { outline: none; background: var(--bg-soft); box-shadow: 0 0 0 2px var(--brand-400); }
.mega-link .ml-ic { flex: none; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.mega-link .ml-ic svg { width: 19px; height: 19px; }
.mega-link .ml-t { font-weight: 700; font-size: .92rem; color: var(--text); display: block; line-height: 1.25; }
.mega-link .ml-d { font-size: .79rem; color: var(--text-mute); margin-top: 2px; display: block; line-height: 1.35; }
.mega-feature { position: relative; overflow: hidden; border-radius: var(--r-md); padding: 18px; background: var(--grad-deep); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.mega-feature:hover { box-shadow: var(--sh-md); }
.mega-feature .mf-t { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.3; }
.mega-feature .mf-d { font-size: .82rem; color: var(--on-dark-soft); margin-top: 6px; line-height: 1.45; }
.mega-feature .mf-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--r-pill); background: #fff; color: var(--brand-700); font-weight: 700; font-size: .85rem; }
.mega-feature .mf-btn svg { width: 15px; height: 15px; }
.mega-backdrop { position: fixed; inset: var(--nav-h) 0 0; background: rgba(8,12,20,.30); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 40; }
body.mega-open .mega-backdrop { opacity: 1; visibility: visible; }
@media (max-width: 880px) { .mega, .mega-backdrop { display: none; } }

/* ============ Centered dark pill nav bar (aikido-style) ============ */
.nav { position: relative; }
.nav::before { content: ""; flex: 1 1 0; }
.nav > .brand { flex: 1 1 0; min-width: 0; }
.nav-actions { flex: 1 1 0; min-width: 0; margin-left: 0; justify-content: flex-end; }
.nav-links {
  position: relative; flex: 0 0 auto; margin-left: 0; gap: 2px;
  background: var(--bg); border-radius: var(--r-pill);
  padding: 6px 8px;
  box-shadow: var(--sh-md);
}
.nav-links > li > a, .nav-item-btn { color: var(--text-soft); font-weight: 600; }
.nav-links > li > a:hover,
.nav-item-btn:hover,
.nav-links > li.open .nav-item-btn { color: var(--text); background: var(--bg-soft); }
.nav-item-btn .chev { color: var(--text-mute); }
.nav-item-btn:hover .chev,
.nav-links > li.open .nav-item-btn .chev { color: var(--text); }
/* keep submenu panels readable: their inner links must stay dark-on-white */
.mega-link .ml-t { color: var(--text); }
.mega-link .ml-d { color: var(--text-mute); }
@media (max-width: 880px) {
  /* keep the brand visible inside a compact blue pill; hide the menu items (they live in the slide-out menu) */
  .nav::before { display: none; }
  .nav-links { display: inline-flex; background: var(--bg); box-shadow: var(--sh-sm); padding: 5px 6px; border: 1px solid var(--line); }
  .nav-links > li.has-mega { display: none; }
  .nav-brand { border-right: none; margin-right: 0; padding-right: 6px; }
  .nav-actions { flex: 0 0 auto; margin-left: auto; }
}

/* ============ Transparent header + wider pill (user request) ============ */
.site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: none; box-shadow: none !important; }
.nav-links { padding: 7px 11px; gap: 4px; }
.nav-links > li > a, .nav-links .nav-item-btn { padding-left: 18px; padding-right: 18px; }

/* faint rim so the gradient pill still reads when it floats over a hero */
.nav-links { border: 1px solid var(--line); }

/* ============ Brand sits INSIDE the floating pill (icon tile + white wordmark) ============ */
.nav-brand { display: flex; align-items: center; margin-right: 4px; padding-right: 12px; border-right: 1px solid var(--line); }
.nav-brand .brand { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; background: none; box-shadow: none; border: none; }
.brand-badge { background: none; box-shadow: none; display: grid; place-items: center; flex: none; }
.brand-badge img { display: block; width: 26px; height: 26px; }
.brand-word { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; font-weight: 850; font-size: 1.02rem; letter-spacing: -.02em; line-height: 1; }
/* Pull the page up so the transparent header overlays the hero — removes the white band at the very top on load */
main { margin-top: calc(-1 * var(--nav-h)); }
