/* ============ TOKENS ============ */
:root {
  --bg-0: #07121a;
  --bg-1: #0b1a25;
  --bg-2: #112635;
  --bg-card: rgba(15, 30, 42, 0.72);
  --border: rgba(120, 200, 230, 0.12);
  --border-strong: rgba(120, 200, 230, 0.28);
  --fg: #e8f3f8;
  --fg-muted: #8ba9b8;
  --fg-dim: #5c7c8c;
  --primary: #0f3d52;
  --primary-ink: #d8f4ff;
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --accent-warm: #f59e0b;
  --glow: 0 0 40px rgba(34, 211, 238, 0.25);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 30px -10px rgba(0,0,0,0.4);
  --grid-line: rgba(120, 200, 230, 0.06);
}
[data-theme="light"] {
  /* Unified light palette tuned to the hero image's soft gray-blue tone */
  --bg-0: #cfd9e1;           /* page background — matches hero image */
  --bg-1: #cfd9e1;           /* unified with bg-0 so footer/sections don't show as distinct bands */
  --bg-2: #eaf0f5;           /* lighter — used for card surfaces */
  --bg-card: rgba(234, 240, 245, 0.88);
  --border: rgba(15, 61, 82, 0.14);
  --border-strong: rgba(15, 61, 82, 0.26);
  --fg: #0b1a25;
  --fg-muted: #47667a;
  --fg-dim: #7a94a3;
  --primary: #0f3d52;
  --primary-ink: #ffffff;
  --accent: #0891b2;
  --accent-2: #0e7490;
  --accent-warm: #b45309;
  --glow: 0 0 30px rgba(8, 145, 178, 0.18);
  --shadow-lg: 0 20px 40px -20px rgba(15, 61, 82, 0.18), 0 6px 18px -6px rgba(15,61,82,0.10);
  --grid-line: rgba(15, 61, 82, 0.05);
}
/* In light mode, header + footer use the unified page bg so there are no banding seams */
[data-theme="light"] .header { background: color-mix(in oklab, var(--bg-0) 82%, transparent); }
[data-theme="light"] footer.site-footer,
[data-theme="light"] footer { background: var(--bg-0); }
[data-theme="light"] .page-header { background: var(--bg-0); }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-0);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in oklab, var(--bg-0) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 120%);
  display: grid; place-items: center;
  color: #07121a; font-weight: 700; font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 4px 14px -4px color-mix(in oklab, var(--accent) 60%, transparent);
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 80%, 100% { transform: translateX(-120%); } 90% { transform: translateX(120%); } }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small { font-size: 10px; font-weight: 400; color: var(--fg-muted); font-family: 'JetBrains Mono', monospace; letter-spacing: 0.08em; text-transform: uppercase; }

nav.primary { display: flex; gap: 4px; }
nav.primary a {
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--fg-muted);
  transition: all 0.2s ease;
  position: relative;
}
nav.primary a:hover { color: var(--fg); background: color-mix(in oklab, var(--accent) 8%, transparent); }
nav.primary a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: var(--bg-1);
  transition: all 0.25s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--accent); transform: rotate(20deg); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: block; }

.btn-contact {
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07121a;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px -6px color-mix(in oklab, var(--accent) 60%, transparent);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-contact:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -6px color-mix(in oklab, var(--accent) 70%, transparent); }

/* ============ MOBILE NAV (injected via JS below 960px) ============ */
.nav-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 10px;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--bg-1);
  transition: all 0.25s ease;
}
.nav-toggle:hover { border-color: var(--border-strong); color: var(--accent); }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-open { display: none; }
.nav-toggle.open .icon-close { display: block; }
.nav-drawer {
  position: fixed;
  top: 73px; left: 0; right: 0;
  z-index: 49;
  max-height: 0; overflow: hidden;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-strong);
  transition: max-height 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.nav-drawer.open {
  max-height: 520px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
}
.nav-drawer-inner { padding: 14px 20px 22px; }
.nav-drawer a {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px; font-weight: 500;
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}
.nav-drawer a:hover { background: color-mix(in oklab, var(--accent) 8%, transparent); color: var(--accent); }
.nav-drawer a.active { color: var(--accent); background: color-mix(in oklab, var(--accent) 6%, transparent); }
.nav-drawer a + a { margin-top: 4px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all 0.22s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #07121a;
  box-shadow: 0 8px 24px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-primary svg { transition: transform 0.22s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ============ SECTION HEADERS ============ */
section.block {
  position: relative; z-index: 1;
  padding: 100px 32px;
}
.block-inner { max-width: 990px; margin: 0 auto; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.section-head-left { max-width: 680px; }
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 28px; height: 1px; background: var(--accent);
}
.section-head h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600;
}
.section-head p { color: var(--fg-muted); max-width: 520px; font-size: 15px; }
.section-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--fg-dim);
  white-space: nowrap;
}

/* ============ PAGE HEADER (hero for internal pages) ============ */
.page-header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-0);
  padding: 80px 32px 72px;
}
.page-header-ambient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 20% 30%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 70%, color-mix(in oklab, var(--primary) 35%, transparent) 0%, transparent 65%);
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 10%, transparent 90%);
  pointer-events: none;
}
.page-header-inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
}
.page-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 12px 6px 10px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg-1) 40%, transparent);
  backdrop-filter: blur(6px);
}
.page-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 20%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 35%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 0%, transparent); }
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 900px;
}
.page-header h1 .accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, color-mix(in oklab, var(--accent) 60%, var(--fg)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 30px color-mix(in oklab, var(--accent) 22%, transparent));
}
.page-lede {
  color: var(--fg-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 700px;
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--fg-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--fg-dim); opacity: 0.5; }

/* ============ RESOURCE CARDS (shared) ============ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resource {
  position: relative;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-1);
  display: flex; flex-direction: column;
  transition: all 0.3s ease;
  overflow: hidden;
}
/* Light theme: give resource cards the same layered look as zone-2 cards */
[data-theme="light"] .resource {
  background:
    radial-gradient(ellipse 120% 80% at 100% 0%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
    linear-gradient(145deg, var(--bg-2) 0%, color-mix(in oklab, var(--bg-2) 70%, var(--bg-0)) 100%);
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px -10px rgba(15, 61, 82, 0.18);
}
.resource::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 10%, transparent) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.resource:hover { border-color: var(--border-strong); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource:hover::before { opacity: 1; }
.resource-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 40px;
}
.resource-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
}
.resource-icon svg { width: 22px; height: 22px; }
.resource.pdf .resource-icon { color: #fb7185; background: color-mix(in oklab, #fb7185 8%, var(--bg-2)); border-color: color-mix(in oklab, #fb7185 25%, transparent); }
.resource.xls .resource-icon { color: #34d399; background: color-mix(in oklab, #34d399 8%, var(--bg-2)); border-color: color-mix(in oklab, #34d399 25%, transparent); }
.resource.tool .resource-icon { color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, var(--bg-2)); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.resource-type {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim);
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.resource h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.resource p { font-size: 13px; color: var(--fg-muted); margin-bottom: 24px; line-height: 1.55; flex: 1; }
.resource-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.resource-size {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-dim);
}
.download-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--accent);
  color: #07121a;
  font-size: 12px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.download-btn:hover { background: var(--accent-2); letter-spacing: 0.08em; }
.download-btn svg { transition: transform 0.25s ease; }
.download-btn:hover svg { transform: translateY(2px); }

/* ============ FOOTER ============ */
footer.site-footer {
  position: relative; z-index: 1;
  padding: 56px 32px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}
/* Match the site content width (block-inner / featured-section-inner = 990px) */
.footer-inner { max-width: 990px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.footer-col { min-width: 0; }
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
  font-weight: 500;
}
/* Links column: stacked, one per line */
.footer-col:not(.footer-brand) a {
  color: var(--fg-muted); font-size: 14px;
  display: block;
  margin: 0 0 8px;
  transition: color 0.2s;
}
.footer-col:not(.footer-brand) a:hover { color: var(--accent); }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p {
  font-size: 13.5px; color: var(--fg-muted); line-height: 1.7;
  margin: 0 0 10px;
  text-align: justify;
  hyphens: auto;
}
.footer-brand p:last-of-type { margin-bottom: 0; }
.footer-bottom {
  padding-top: 28px;
  display: flex; justify-content: center; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.footer-mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--fg-dim); letter-spacing: 0.05em;
}
.footer-legal {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  justify-content: center;
}
.footer-legal a {
  color: var(--fg-dim);
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }
.footer-legal .sep { color: var(--fg-dim); opacity: 0.5; }

/* ============ CONTACT MODAL ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, var(--bg-0) 75%, transparent);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px;
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 36px;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-backdrop.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.modal-close:hover { background: var(--bg-2); color: var(--fg); }
.modal h3 { font-size: 28px; letter-spacing: -0.02em; margin-bottom: 8px; }
.modal .modal-sub { color: var(--fg-muted); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-dim); margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); background: var(--bg-1); }
.field textarea { resize: vertical; min-height: 110px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.form-success {
  display: none;
  padding: 14px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  border-radius: 10px;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 18px;
  align-items: center; gap: 10px;
}
.form-success.show { display: flex; }

/* ============ ANIMATIONS ============ */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.in { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============
   Breakpoints:
   - 1280px+  : desktop (default)
   - 960px    : tablet — collapse nav, 2-col grids
   - 640px    : small tablet / large phone — 1-col grids
   - 420px    : small phone
*/
@media (max-width: 1280px) {
  .header-inner { padding: 16px 24px; }
  section.block { padding: 88px 24px; }
  .page-header { padding: 72px 24px 64px; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .header-inner { padding: 14px 20px; gap: 12px; }
  nav.primary { display: none; }
  .nav-toggle { display: grid; }
  section.block { padding: 64px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 36px; }
  .section-head p { max-width: 100%; }
  .resources-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .resource { padding: 22px; }
  .resource-header { margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  footer.site-footer { padding: 40px 20px 24px; }
  .footer-brand p { text-align: left; }
  .page-header { padding: 56px 20px 48px; }
  .page-header h1 { font-size: clamp(32px, 7vw, 56px); }
  .breadcrumb { margin-bottom: 14px; }
  .modal { padding: 28px; }
  .modal h3 { font-size: 24px; }
}
@media (max-width: 640px) {
  .resources-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .btn-contact span { display: none; }
  .btn-contact { padding: 10px; }
  section.block { padding: 52px 16px; }
  .page-header { padding: 44px 16px 40px; }
  .header-inner { padding: 12px 16px; }
  .modal { padding: 24px; border-radius: 16px; }
  .modal-actions { flex-direction: column-reverse; gap: 8px; }
  .modal-actions .btn { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
  .logo-text span { font-size: 14px; }
  .logo-mark { width: 30px; height: 30px; }
  .theme-toggle, .nav-toggle { width: 36px; height: 36px; }
  .page-header h1 { font-size: clamp(28px, 8vw, 40px); }
  .section-head h2 { font-size: clamp(26px, 7vw, 32px); }
  .resource h3 { font-size: 18px; }
  .btn { padding: 11px 16px; font-size: 13px; }
}
