/**
 * OSTRAQ Design System v4.0
 * Threat Tape LLC — February 2026
 *
 * Fonts: Plus Jakarta Sans (300–800) + JetBrains Mono (400–600)
 * Load via Google Fonts before this stylesheet:
 *   https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=JetBrains+Mono:wght@400;500;600&display=swap
 *
 * Sections:
 *  1. Design Tokens (:root)
 *  2. Reset
 *  3. Base (body, links, selection)
 *  4. Typography (.t-display, .t-h1 → .t-h3, .t-over, .t-body, .t-small, .t-mono)
 *  5. Buttons (.btn + variants)
 *  6. Cards (.card, .card-click, .card-accent, .card-mint, .fc)
 *  7. Forms (.fi, .fsel, .ft, .fg, .fl, .fck, .tog)
 *  8. Badges (.badge + variants)
 *  9. Alerts (.alert + variants)
 * 10. Navigation (.nav, .nav-wm, .nav-dark, .wm, .q-brand)
 * 11. Hero (.hero, .hero-dark, .trust)
 * 12. Footer (.foot, .foot-dark)
 * 13. Table (.tw, table, th, td)
 * 14. Animations (@keyframes shimmer)
 * 15. Responsive
 * 16. Regional Themes (29 theme classes)
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Surfaces */
  --white: #fff;
  --surface: #fafafa;
  --surface-2: #f5f5f5;
  --border: #e5e5e5;
  --border-light: #f0f0f0;

  /* Ink */
  --black: #09090b;
  --ink: #18181b;
  --charcoal: #27272a;
  --zinc-700: #3f3f46;
  --zinc-600: #52525b;
  --zinc-500: #71717a;
  --zinc-400: #a1a1aa;
  --zinc-300: #d4d4d8;
  --zinc-200: #e4e4e7;
  --zinc-100: #f4f4f5;

  /* Brand — Indigo */
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-deep: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.1);
  --accent-subtle: rgba(99, 102, 241, 0.05);
  --accent-on-dark: #a5b4fc;
  --accent-pale: #c7d2fe;

  /* Brand — Mint */
  --mint: #10b981;
  --mint-subtle: rgba(16, 185, 129, 0.06);

  /* Semantic */
  --success: #16a34a;
  --success-subtle: rgba(22, 163, 74, 0.06);
  --warning: #d97706;
  --warning-subtle: rgba(217, 119, 6, 0.06);
  --error: #dc2626;
  --error-subtle: rgba(220, 38, 38, 0.05);
  --info: #2563eb;
  --info-subtle: rgba(37, 99, 235, 0.05);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-accent: 0 4px 14px -2px rgba(99, 102, 241, 0.25);
  --shadow-card: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.06),
    0 6px 16px -2px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06),
    0 12px 28px -4px rgba(0, 0, 0, 0.12);
  --shadow-lifted: 0 2px 4px rgba(0, 0, 0, 0.03), 0 8px 24px -4px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-norm: 200ms;
}

/* ============================================================
   2. RESET
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   3. BASE
   ============================================================ */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  background: var(--surface);
  color: var(--zinc-700);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 15px;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color var(--dur-fast);
}

a:hover {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   4. TYPOGRAPHY
   ============================================================ */
.t-display {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.t-display em {
  font-style: normal;
  color: var(--accent);
}

.t-h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.t-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.t-h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.t-over {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.t-body {
  font-size: 1rem;
  color: var(--zinc-700);
  line-height: 1.7;
}

.t-small {
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.6;
}

.t-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  background: var(--ink);
  color: var(--accent-on-dark);
  padding: 14px 18px;
  border-radius: var(--r-md);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  border-radius: var(--r-sm);
  padding: 9px 18px;
  transition: all var(--dur-norm) var(--ease);
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.9375rem;
  border-radius: var(--r-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 100%);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #8b5cf6 100%);
  box-shadow: 0 4px 14px -2px rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--charcoal);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--zinc-300);
  background: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--zinc-600);
  padding: 9px 12px;
}

.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.btn-danger {
  background: var(--error);
  color: #fff;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   6. CARDS
   ============================================================ */
.card {
  background: linear-gradient(140deg, #ffffff 0%, #f8f7ff 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-card);
  transition: all var(--dur-norm) var(--ease);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card-click:hover {
  box-shadow: var(--shadow-card-hover), 0 0 0 1px var(--accent),
    0 0 20px -4px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
  cursor: pointer;
}

.card-t {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.card-d {
  font-size: 0.875rem;
  color: var(--zinc-600);
  line-height: 1.5;
}

/* Gradient border accent card */
.card-accent {
  position: relative;
  border: none;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), #7c3aed, var(--accent-hover));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-accent:hover {
  box-shadow: var(--shadow-card-hover), 0 0 20px -4px rgba(99, 102, 241, 0.15);
}

/* Gradient border mint card */
.card-mint {
  position: relative;
  border: none;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-mint::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--mint), #059669, #34d399);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-mint:hover {
  box-shadow: var(--shadow-card-hover), 0 0 20px -4px rgba(16, 185, 129, 0.15);
}

/* Feature card */
.fc {
  background: linear-gradient(140deg, #ffffff 0%, #f8f7ff 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06),
    0 6px 16px -2px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all var(--dur-norm) var(--ease);
}

.fc:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 0 20px -4px rgba(99, 102, 241, 0.2),
    0 12px 28px -4px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.fc-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
  color: var(--accent);
}

.fc-t {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.fc-d {
  font-size: 0.85rem;
  color: var(--zinc-600);
  line-height: 1.5;
}

/* ============================================================
   7. FORMS
   ============================================================ */
.fg {
  margin-bottom: var(--sp-4);
}

.fl {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--sp-1);
}

.fh {
  font-size: 0.75rem;
  color: var(--zinc-400);
  margin-top: 2px;
}

.fi,
.fsel,
.ft {
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.fi:focus,
.fsel:focus,
.ft:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.fi::placeholder {
  color: var(--zinc-400);
}

.ft {
  resize: vertical;
  min-height: 88px;
}

.fi.err {
  border-color: var(--error);
}

.fi.err:focus {
  box-shadow: 0 0 0 3px var(--error-subtle);
}

.fe {
  font-size: 0.75rem;
  color: var(--error);
  margin-top: 2px;
}

.fck {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--zinc-600);
}

.fck input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.tog {
  width: 36px;
  height: 20px;
  background: var(--zinc-200);
  border-radius: var(--r-full);
  position: relative;
  cursor: pointer;
  transition: background var(--dur-fast);
}

.tog.on {
  background: var(--accent);
}

.tog-t {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform var(--dur-fast);
  box-shadow: var(--shadow-xs);
}

.tog.on .tog-t {
  transform: translateX(16px);
}

/* ============================================================
   8. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 72px;
}

.b-accent {
  background: var(--accent);
  color: #fff;
}
.b-mint {
  background: var(--mint);
  color: #fff;
}
.b-success {
  background: var(--success);
  color: #fff;
}
.b-warning {
  background: var(--warning);
  color: #fff;
}
.b-error {
  background: var(--error);
  color: #fff;
}
.b-info {
  background: var(--info);
  color: #fff;
}
.b-neutral {
  background: var(--zinc-600);
  color: #fff;
}

/* ============================================================
   9. ALERTS
   ============================================================ */
.alert {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid;
}

.a-s {
  background: var(--success);
  color: #fff;
  border: none;
}
.a-w {
  background: var(--warning);
  color: #fff;
  border: none;
}
.a-e {
  background: var(--error);
  color: #fff;
  border: none;
}
.a-i {
  background: var(--info);
  color: #fff;
  border: none;
}


/* ============================================================
   LAYOUT — .container, .section
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.section { padding: var(--sp-20) 0; }
.section-sm { padding: var(--sp-12) 0; }
.section-lg { padding: var(--sp-24) 0; }

@media (max-width: 768px) {
  .section    { padding: var(--sp-12) 0; }
  .section-sm { padding: var(--sp-8) 0; }
  .section-lg { padding: var(--sp-16) 0; }
}
/* ============================================================
   10. NAVIGATION
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: var(--sp-6);
  list-style: none;
}

.nav-links a {
  color: var(--zinc-500);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a.act {
  color: var(--ink);
  font-weight: 600;
}

.nav-dark {
  background: var(--ink);
  border-color: var(--charcoal);
}

.nav-dark .nav-links a {
  color: rgba(255, 255, 255, 0.65);
}

.nav-dark .nav-links a:hover,
.nav-dark .nav-links a.act {
  color: #fff;
}

/* Wordmark */
.wm {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* Branded Q in body text */
.q-brand {
  color: var(--accent);
  font-weight: 800;
}

/* Nav wordmark pill — indigo shimmer animation */
.nav-wm,
.wm-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(
    110deg,
    var(--accent-deep) 0%,
    var(--accent-deep) 40%,
    #7c3aed 50%,
    var(--accent-deep) 60%,
    var(--accent-deep) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 12s ease-in-out infinite;
  border-radius: var(--r-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-wm .q,
.wm-pill .q {
  color: var(--accent-pale);
}

.nav-dark .nav-wm {
  background: rgba(99, 102, 241, 0.15);
  animation: none;
}

/* Mega nav — full navigation bar + dropdown system */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding: 0 var(--sp-6);
  height: 64px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  color: var(--zinc-600);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease;
}

.nav-item > a:hover,
.nav-item > a.act {
  color: var(--ink);
  background: var(--surface-2);
}

.nav-item > a .chevron {
  font-size: 0.55rem;
  opacity: 0.5;
  margin-left: 2px;
}

.nav-actions {
  flex-shrink: 0;
  margin-left: auto;
}

/* Mega dropdown */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-5) var(--sp-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 200;
}

.mega-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-dropdown .mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.mega-dropdown .mega-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mega-dropdown .mega-grid-4 { grid-template-columns: repeat(4, 1fr); }
.mega-dropdown .mega-grid-6 { grid-template-columns: repeat(6, minmax(160px, 1fr)); }

.mega-dropdown .mega-section-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-bottom: var(--sp-2);
  margin-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.mega-dropdown .mega-link {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: background 150ms ease;
}

.mega-dropdown .mega-link:hover {
  background: var(--surface-2);
}

.mega-dropdown .mega-link .icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--surface-2);
  flex-shrink: 0;
}

.mega-dropdown .mega-link .name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.3;
}

.mega-dropdown .mega-link .desc,
.mega-dropdown .mega-link .text .desc {
  font-size: 0.75rem;
  color: var(--zinc-500);
  line-height: 1.4;
}

.mega-dropdown .mega-link .text .name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.mega-dropdown .mega-featured {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.mega-dropdown .mega-featured a {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color 150ms ease;
}

.mega-dropdown .mega-featured a:hover {
  color: var(--accent-deep);
}

.mega-dropdown .tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--mint-subtle);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--mint-deep);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--accent);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: var(--sp-2);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-4);
    gap: var(--sp-1);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .mega-dropdown {
    display: none;
  }
}

/* ============================================================
   11. HERO
   ============================================================ */
.hero {
  padding: var(--sp-24) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-over {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-5);
  position: relative;
}

.hero-h {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
  position: relative;
}

.hero-h em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, #7c3aed 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-p {
  font-size: 1.125rem;
  color: var(--zinc-600);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto var(--sp-8);
  position: relative;
}

.hero-btns {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

.trust {
  display: flex;
  justify-content: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
  padding: var(--sp-8) 0 0;
  margin-top: var(--sp-12);
  border-top: 1px solid var(--border);
}

.trust-v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
}

.trust-l {
  font-size: 0.65rem;
  color: var(--zinc-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 1px;
}

/* Dark hero variant */
.hero-dark {
  background: var(--ink);
}

.hero-dark::before {
  background: radial-gradient(ellipse at 50% -20%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.hero-dark .hero-h {
  color: #fff;
}

.hero-dark .hero-h em {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-dark .hero-p {
  color: rgba(255, 255, 255, 0.7);
}

.hero-dark .hero-over {
  color: var(--accent-on-dark);
}

.hero-dark .trust {
  border-color: var(--charcoal);
}

.hero-dark .trust-v {
  color: var(--accent-on-dark);
}

.hero-dark .trust-l {
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   12. FOOTER
   ============================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: var(--sp-8) var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.foot-c {
  font-size: 0.8125rem;
  color: var(--zinc-400);
}

.foot-l {
  display: flex;
  gap: var(--sp-5);
  list-style: none;
}

.foot-l a {
  font-size: 0.8125rem;
  color: var(--zinc-400);
  text-decoration: none;
}

.foot-l a:hover {
  color: var(--accent);
}

.foot-dark {
  background: var(--ink);
  border-color: var(--charcoal);
}

.foot-dark .foot-c {
  color: rgba(255, 255, 255, 0.55);
}

.foot-dark .foot-l a {
  color: rgba(255, 255, 255, 0.6);
}

.foot-dark .foot-l a:hover {
  color: var(--accent-on-dark);
}

/* Site footer — used by homepage and sub-pages */
.site-footer,
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: var(--sp-16) var(--sp-8) var(--sp-8);
  background: var(--surface);
  color: var(--zinc-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: var(--sp-10);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--zinc-500);
  line-height: 1.75;
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  letter-spacing: 0.02em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: var(--sp-2);
}

.footer-col a {
  font-size: 0.8125rem;
  color: var(--zinc-500);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--zinc-400);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-legal {
  display: flex;
  gap: var(--sp-5);
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--zinc-400);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--sp-10);
  max-width: 480px;
  width: 90%;
  position: relative;
}

.modal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-6);
}

.modal-close {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-size: 1.5rem;
  color: var(--zinc-400);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
  transition: color 150ms ease;
}

.modal-close:hover {
  color: var(--ink);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--zinc-600);
  margin-bottom: var(--sp-1);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.875rem;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* ============================================================
   13. TABLE
   ============================================================ */
.tw {
  overflow-x: auto;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--surface-2);
}

th {
  text-align: left;
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-600);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--zinc-600);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--surface);
}

td.m {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--zinc-600);
}

/* ============================================================
   14. ANIMATIONS
   ============================================================ */
@keyframes shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .trust {
    gap: var(--sp-5);
  }

  .foot,
  .foot-dark {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   16. REGIONAL THEMES (29 themes)
   Apply class to page wrapper — all components adapt automatically.
   ============================================================ */

/* National — English-speaking */
.theme-uk {
  --accent: #012169;
  --accent-deep: #001847;
  --accent-hover: #1a3a7a;
  --accent-on-dark: #7b9bd4;
  --accent-pale: #b8cce8;
  --theme-secondary: #c8102e;
}
.theme-canada {
  --accent: #ff0000;
  --accent-deep: #cc0000;
  --accent-hover: #ff3333;
  --accent-on-dark: #ff8080;
  --accent-pale: #ffb3b3;
  --theme-secondary: #fff;
}
.theme-australia {
  --accent: #00008b;
  --accent-deep: #000066;
  --accent-hover: #1a1aba;
  --accent-on-dark: #8080e6;
  --accent-pale: #b3b3f0;
  --theme-secondary: #ffcd00;
}

/* National — Europe */
.theme-germany {
  --accent: #dd0000;
  --accent-deep: #aa0000;
  --accent-hover: #ff1a1a;
  --accent-on-dark: #ff8080;
  --accent-pale: #ffb3b3;
  --theme-secondary: #ffcc00;
}
.theme-france {
  --accent: #002395;
  --accent-deep: #001a6e;
  --accent-hover: #1a3da8;
  --accent-on-dark: #809bdb;
  --accent-pale: #b3c2e8;
  --theme-secondary: #ed2939;
}
.theme-eu {
  --accent: #003399;
  --accent-deep: #002266;
  --accent-hover: #1a4db3;
  --accent-on-dark: #80a3e0;
  --accent-pale: #b3c7eb;
  --theme-secondary: #ffcc00;
}
.theme-switzerland {
  --accent: #d52b1e;
  --accent-deep: #a82217;
  --accent-hover: #e04a3f;
  --accent-on-dark: #f0918a;
  --accent-pale: #f5b8b4;
  --theme-secondary: #fff;
}
.theme-ukraine {
  --accent: #0057b7;
  --accent-deep: #003f87;
  --accent-hover: #1a6fc4;
  --accent-on-dark: #80abe0;
  --accent-pale: #b3cce8;
  --theme-secondary: #ffd700;
}

/* National — Asia-Pacific */
.theme-india {
  --accent: #ff671f;
  --accent-deep: #e85a10;
  --accent-hover: #ff8548;
  --accent-on-dark: #ffb899;
  --accent-pale: #ffdacc;
  --theme-secondary: #046a38;
}
.theme-japan {
  --accent: #bc002d;
  --accent-deep: #960024;
  --accent-hover: #d41a47;
  --accent-on-dark: #e8809a;
  --accent-pale: #f0b3c2;
  --theme-secondary: #fff;
}
.theme-southkorea {
  --accent: #003478;
  --accent-deep: #002255;
  --accent-hover: #1a4d91;
  --accent-on-dark: #8099c4;
  --accent-pale: #b3c2db;
  --theme-secondary: #cd2e3a;
}

/* National — Latin America */
.theme-brazil {
  --accent: #009739;
  --accent-deep: #006b2b;
  --accent-hover: #00b347;
  --accent-on-dark: #4ade80;
  --accent-pale: #a3f0c2;
  --theme-secondary: #ffdf00;
}
.theme-mexico {
  --accent: #006341;
  --accent-deep: #004d32;
  --accent-hover: #007d52;
  --accent-on-dark: #4dc98a;
  --accent-pale: #a3e4c2;
  --theme-secondary: #ce1126;
}
.theme-colombia {
  --accent: #fcd116;
  --accent-deep: #d4ad0a;
  --accent-hover: #fdd94a;
  --accent-on-dark: #fee88f;
  --accent-pale: #fef1b8;
  --theme-secondary: #003893;
}

/* National — Africa */
.theme-zambia {
  --accent: #00853f;
  --accent-deep: #006b32;
  --accent-hover: #00a34d;
  --accent-on-dark: #4ade80;
  --accent-pale: #a3f0c2;
  --theme-secondary: #ef7d00;
}
.theme-nigeria {
  --accent: #008751;
  --accent-deep: #006b40;
  --accent-hover: #00a364;
  --accent-on-dark: #4ade8e;
  --accent-pale: #a3f0c8;
  --theme-secondary: #fff;
}
.theme-kenya {
  --accent: #000000;
  --accent-deep: #1a1a1a;
  --accent-hover: #333;
  --accent-on-dark: #a1a1aa;
  --accent-pale: #d4d4d8;
  --theme-secondary: #bb0000;
}
.theme-ghana {
  --accent: #006b3f;
  --accent-deep: #005432;
  --accent-hover: #008550;
  --accent-on-dark: #4ad48a;
  --accent-pale: #a3ebc2;
  --theme-secondary: #fcd116;
}
.theme-southafrica {
  --accent: #007749;
  --accent-deep: #005c38;
  --accent-hover: #00925a;
  --accent-on-dark: #4ade8a;
  --accent-pale: #a3f0c2;
  --theme-secondary: #ffb81c;
}
.theme-eswatini {
  --accent: #3e5eb9;
  --accent-deep: #2d4a96;
  --accent-hover: #5878cc;
  --accent-on-dark: #92a8e0;
  --accent-pale: #bcc9eb;
  --theme-secondary: #b10c0c;
}

/* US States */
.theme-georgia {
  --accent: #e8845c;
  --accent-deep: #c96b3c;
  --accent-hover: #f09a78;
  --accent-on-dark: #f4b99a;
  --accent-pale: #fddccc;
}
.theme-arizona {
  --accent: #bf5700;
  --accent-deep: #8c4100;
  --accent-hover: #d97020;
  --accent-on-dark: #f0a060;
  --accent-pale: #f5c8a0;
}
.theme-nevada {
  --accent: #003366;
  --accent-deep: #002244;
  --accent-hover: #1a4d80;
  --accent-on-dark: #809bc4;
  --accent-pale: #b3c2db;
}
.theme-michigan {
  --accent: #00274c;
  --accent-deep: #001a33;
  --accent-hover: #1a4166;
  --accent-on-dark: #6e8fad;
  --accent-pale: #a3b8cc;
}
.theme-pennsylvania {
  --accent: #002060;
  --accent-deep: #001540;
  --accent-hover: #1a3a7a;
  --accent-on-dark: #7b96d0;
  --accent-pale: #b3c0e0;
}

/* Federal */
.theme-fed-red {
  --accent: #b31942;
  --accent-deep: #8c1434;
  --accent-hover: #cc3060;
  --accent-on-dark: #e88099;
  --accent-pale: #f0b3c2;
}
.theme-fed-black {
  --accent: #1c1c1c;
  --accent-deep: #0a0a0a;
  --accent-hover: #363636;
  --accent-on-dark: #a1a1aa;
  --accent-pale: #d4d4d8;
}
.theme-fed-blue {
  --accent: #002b5c;
  --accent-deep: #001b3d;
  --accent-hover: #1a4576;
  --accent-on-dark: #7e99bc;
  --accent-pale: #b3c3d8;
}

/* ============================================================
   17. LEGACY CLASS BRIDGE
   Maps v2 class/variable names → v4 tokens for sub-pages
   that haven't been fully migrated to v4 class names yet.
   ============================================================ */

/* ── Variable aliases ──────────────────────────────────────── */
:root {
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --text-primary:    var(--ink);
  --text-body:       var(--zinc-600);
  --text-secondary:  var(--zinc-500);
  --text-muted:      var(--zinc-500);
  --gold:            var(--mint);
  --steel-blue:      var(--info);
  --glass-border:    var(--border);
  --bg-card:         var(--surface-2);
  --radius-sm:       var(--r-sm);
  --radius-md:       var(--r-md);
  --radius-lg:       var(--r-xl);
  --radius-pill:     var(--r-full);
  --transition-base: var(--dur-norm) var(--ease);
  --transition-fast: var(--dur-fast) var(--ease);
  /* Page-specific accent — default to brand indigo, overridden per page */
  --page-accent-rgb: 99, 102, 241;
  --page-accent: rgb(var(--page-accent-rgb));
}

/* ── Layout containers ─────────────────────────────────────── */
.page-content--wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

/* ── Content cards (replaces glass-card) ───────────────────── */
.glass-card {
  background: linear-gradient(140deg, #ffffff 0%, #f8f7ff 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: var(--sp-6);
  transition: box-shadow var(--dur-norm) var(--ease);
}
.glass-card:hover {
  box-shadow: var(--shadow-card-hover);
}
.glass-card h3 {
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: var(--ink);
}
.glass-card p {
  color: var(--zinc-600);
  line-height: 1.65;
}

/* ── Grids ─────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}
.card-grid--2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

/* ── Section overlines & headings ──────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-6);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── Hero with state seal ───────────────────────────────────── */
.hero-seal {
  padding: var(--sp-16) 0 var(--sp-12);
  background: var(--surface);
}
.hero-seal .page-content--wide {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ── Data tables ────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--sp-6);
  font-size: 0.9375rem;
}
.data-table thead th {
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--zinc-600);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--border);
  text-align: left;
}
.data-table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  color: var(--zinc-700);
  line-height: 1.5;
}
.data-table tbody tr:hover td {
  background: var(--surface);
}
.data-table .highlight {
  color: var(--mint);
  font-weight: 500;
}

/* ── Badge pill ─────────────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-subtle);
  color: var(--accent-deep);
  border: 1px solid var(--accent-pale);
}

/* ── CTA section ────────────────────────────────────────────── */
.cta-section {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: var(--sp-20) 0;
  text-align: center;
}
.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}
.cta-section p {
  color: var(--zinc-500);
  max-width: 560px;
  margin: 0 auto var(--sp-8);
  line-height: 1.65;
}

/* ── Legacy button alias ────────────────────────────────────── */
.btn-primary:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.btn-primary:not(.btn):hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-accent);
}

/* ── Page accent color classes ──────────────────────────────── */
.georgia-accent,
.page-accent-color { color: var(--page-accent); }

/* ── Legacy responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .card-grid,
  .card-grid--2 { grid-template-columns: 1fr; }
  .hero-seal .page-content--wide { padding-bottom: var(--sp-8); }
}
