/* EU AI Act Toolkit — Premium Design System v3.0 */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ───────────────────────────── */
:root {
  /* Color palette */
  --bg-base:         #071223;
  --bg-surface:      #0D1B2A;
  --bg-card:         #0F2033;
  --bg-card-hover:   #132540;
  --bg-inset:        #071828;
  --bg-light:        #F8FAFC;
  --bg-panel:        #F1F5F9;

  --blue-600:        #2F6BFF;
  --blue-500:        #4C82FF;
  --blue-400:        #7BA4FF;
  --blue-300:        #A8C4FF;
  --blue-100:        rgba(47,107,255,0.12);
  --blue-glow:       rgba(47,107,255,0.25);

  --gold-500:        #D4A93A;
  --gold-400:        #E8C25A;
  --gold-300:        #F2D27C;
  --gold-100:        rgba(212,169,58,0.12);

  --green-500:       #22C55E;
  --green-100:       rgba(34,197,94,0.12);
  --purple-500:      #8b5cf6;
  --purple-100:      rgba(139,92,246,0.12);
  --amber-500:       #F59E0B;
  --amber-100:       rgba(245,158,11,0.12);
  --red-400:         #F87171;
  --red-100:         rgba(248,113,113,0.10);

  --text-primary:    #F1F5F9;
  --text-secondary:  #CBD5E1;
  --text-muted:      #7C90A8;
  --text-faint:      #4A5D6E;
  --text-dark:       #0D1B2A;
  --text-gold:       #D4A93A;

  --border:          rgba(255,255,255,0.07);
  --border-light:    rgba(255,255,255,0.04);
  --border-blue:     rgba(47,107,255,0.30);
  --border-gold:     rgba(212,169,58,0.30);

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

  /* Typography */
  --font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:   11px;  --text-sm:   13px;  --text-base: 15px;
  --text-md:   17px;  --text-lg:   20px;  --text-xl:   24px;
  --text-2xl:  30px;  --text-3xl:  38px;  --text-4xl:  50px;
  --text-5xl:  64px;

  /* Radii */
  --r-sm:  6px;   --r-md:  10px;  --r-lg:  16px;
  --r-xl:  20px;  --r-2xl: 28px;  --r-full: 999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:   0 4px 14px rgba(0,0,0,0.5);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.6);
  --shadow-blue: 0 4px 20px rgba(47,107,255,0.30);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.04);

  /* Transitions */
  --t-fast:  150ms cubic-bezier(.4,0,.2,1);
  --t-base:  250ms cubic-bezier(.4,0,.2,1);
  --t-slow:  400ms cubic-bezier(.4,0,.2,1);

  /* Nav */
  --nav-h: 64px;

  /* Max widths */
  --max-w: 1200px;
  --max-w-md: 800px;
  --max-w-sm: 600px;
}

[data-theme="light"] {
  --bg-base:         #F8FAFC;
  --bg-surface:      #FFFFFF;
  --bg-card:         #FFFFFF;
  --bg-card-hover:   #F1F5F9;
  --bg-inset:        #E2E8F0;
  --bg-light:        #071223;
  --bg-panel:        #1E293B;

  --blue-600:        #2563EB;
  --blue-500:        #3B82F6;
  --blue-400:        #60A5FA;
  --blue-300:        #93C5FD;
  --blue-100:        rgba(37,99,235,0.12);
  --blue-glow:       rgba(37,99,235,0.15);

  --text-primary:    #0F172A;
  --text-secondary:  #334155;
  --text-muted:      #64748B;
  --text-faint:      #94A3B8;

  --border:          rgba(0,0,0,0.1);
  --border-light:    rgba(0,0,0,0.05);
  --border-blue:     rgba(37,99,235,0.30);
  --border-gold:     rgba(212,169,58,0.30);
}


/* ── Reset & Base ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-base);
  overflow-x: hidden;
}

/* ── Keyframes & Animations ──────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(47, 107, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0); }
}

.animate-fade-in {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

main > section {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
main > section:nth-child(1) { animation-delay: 0.1s; }
main > section:nth-child(2) { animation-delay: 0.2s; }
main > section:nth-child(3) { animation-delay: 0.3s; }
main > section:nth-child(4) { animation-delay: 0.4s; }
main > section:nth-child(5) { animation-delay: 0.5s; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(47,107,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(212,169,58,0.05) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.015) 39px, rgba(255,255,255,0.015) 40px);
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl);  letter-spacing: -0.01em; }
h4 { font-size: var(--text-lg);  letter-spacing: -0.005em; }

@media (max-width: 768px) {
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}

p { margin-bottom: var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-400); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue-300); }

ul, ol { padding-left: var(--s-6); }
li { margin-bottom: var(--s-2); }

strong { font-weight: 600; color: var(--text-primary); }
small { font-size: var(--text-sm); }

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: rgba(47,107,255,0.10);
  color: var(--blue-300);
  padding: 2px 6px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(47,107,255,0.20);
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: var(--s-16) 0;
}

/* ── Layout ──────────────────────────────────── */
.layout-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

main { 
  padding-top: var(--s-8); 
  padding-bottom: var(--s-16);
  min-height: 100vh; 
  width: 100%;
  display: flex;
  flex-direction: column;
}
main > footer {
  margin-top: auto !important;
}

@media (max-width: 900px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
    padding-bottom: 70px; /* Space for bottom nav */
  }
  main {
    padding-top: var(--s-4);
  }
}

section {
  padding: var(--s-20) var(--s-6);
  max-width: var(--max-w);
  margin: 0 auto;
}

section.full-width { max-width: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ── Sidebar Navigation ──────────────────────── */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(7,18,35,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: var(--s-6) var(--s-5);
  overflow-y: auto;
}

.logo {
  font-size: var(--text-md);
  font-weight: 800;
  color: var(--text-primary) !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-10);
  padding: 0 var(--s-2);
}
.logo:hover { color: var(--blue-400) !important; }

.nav-section {
  margin-bottom: var(--s-8);
}

.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: var(--s-3);
  padding: 0 var(--s-3);
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  list-style: none;
  padding: 0; margin: 0;
}

nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  text-decoration: none;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
nav a:hover { 
  color: var(--text-primary) !important; 
  background: rgba(255,255,255,0.06); 
  transform: translateX(4px);
}
nav a.active { 
  color: var(--blue-400) !important; 
  background: rgba(47,107,255,0.12); 
  font-weight: 600;
  border-left: 2px solid var(--blue-500);
}
nav a.nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  box-shadow: 0 4px 12px rgba(47,107,255,0.25);
  font-weight: 600;
  border-left: none;
}
nav a.nav-cta:hover { 
  background: var(--blue-500); 
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47,107,255,0.35);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-light);
}
.sidebar-footer a {
  font-size: var(--text-xs);
  color: var(--text-muted) !important;
  padding: var(--s-2) var(--s-3);
}

@media (max-width: 900px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
    padding-bottom: 70px; /* Space for bottom nav */
  }
  main {
    padding-top: var(--s-4);
  }
  .sidebar {
    position: fixed;
    bottom: 0; top: auto; left: 0; right: 0;
    height: 70px;
    border-right: none;
    border-top: 1px solid var(--border);
    flex-direction: row;
    padding: 0 var(--s-2);
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
  }
  .logo { display: none; }
  .nav-section { margin-bottom: 0; display: contents; }
  .nav-section-title { display: none; }
  .sidebar-footer { display: none; }
  
  nav { display: contents; }
  nav ul { display: contents; }
  nav a { 
    display: flex;
    flex-direction: column; 
    gap: 4px; 
    font-size: 10px; 
    padding: var(--s-2); 
    border-radius: var(--r-sm);
    text-align: center;
    flex: 1;
    align-items: center;
  }
  nav a:hover { transform: none; }
  nav a.nav-cta { background: transparent; color: var(--blue-400) !important; box-shadow: none; }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--r-full);
  padding: var(--s-3) var(--s-5);
  transition: all var(--t-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-600);
  color: #fff !important;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--blue-500); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(47,107,255,0.40); }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary) !important;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold-500);
  color: var(--bg-base) !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212,169,58,0.30);
}
.btn-gold:hover { background: var(--gold-400); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(212,169,58,0.40); }

.btn-outline {
  background: transparent;
  color: var(--blue-400) !important;
  border: 1px solid var(--border-blue);
}
.btn-outline:hover { background: var(--blue-100); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text-primary) !important; background: rgba(255,255,255,0.06); }

.btn-sm { padding: var(--s-2) var(--s-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--s-4) var(--s-8); font-size: var(--text-md); border-radius: var(--r-xl); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ── Hero ─────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--s-24) var(--s-6) var(--s-20);
  text-align: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: var(--gold-100);
  border: 1px solid var(--border-gold);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  margin-bottom: var(--s-6);
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: var(--s-6);
  background: linear-gradient(135deg, #F1F5F9 0%, #CBD5E1 50%, var(--blue-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1.gold-gradient {
  background: linear-gradient(135deg, #F1F5F9 0%, var(--gold-300) 60%, var(--gold-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .hero h1 { font-size: var(--text-3xl); }
  .hero { padding: var(--s-16) var(--s-4) var(--s-12); }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto var(--s-10);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--s-5);
  font-style: italic;
}

/* ── Section Headers ──────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--s-12);
}

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: var(--s-3);
}

.section-header h2 { font-size: var(--text-3xl); margin-bottom: var(--s-4); }
.section-header p { font-size: var(--text-md); color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ── Cards ────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .cards-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid-3 { grid-template-columns: 1fr; } }

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--s-4);
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

@media (max-width: 900px) { .cards-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cards-grid-4 { grid-template-columns: 1fr; } }

.cards-grid-4 .card {
  text-align: center;
  align-items: center;
  padding: var(--s-6) var(--s-4);
}
.cards-grid-4 .card-icon { font-size: 32px; }
.cards-grid-4 .card h3 { font-size: var(--text-base); }
.cards-grid-4 .card p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; }
.cards-grid-4 .card-buttons { justify-content: center; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47,107,255,0.30), transparent);
  opacity: 0;
  transition: opacity var(--t-base);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47,107,255,0.20);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(47,107,255,0.10);
  background: var(--bg-card-hover);
}
.card:hover::after { opacity: 1; }

.card-icon { font-size: 26px; line-height: 1; }
.card h3 { font-size: var(--text-md); color: var(--text-primary); margin: var(--s-1) 0 var(--s-2); }
.card p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin: 0; }

.card-buttons {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--s-3);
}

.card.card-featured { border-color: var(--border-blue); background: linear-gradient(135deg, var(--bg-card), rgba(47,107,255,0.06)); }
.card.card-gold { border-color: var(--border-gold); background: linear-gradient(135deg, var(--bg-card), rgba(212,169,58,0.05)); }

/* ── Badges & Tags ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px var(--s-3);
  border-radius: var(--r-full);
  width: fit-content;
}

.badge-blue  { background: var(--blue-100);  color: var(--blue-300);  border: 1px solid rgba(47,107,255,0.20); }
.badge-gold  { background: var(--gold-100);  color: var(--gold-300);  border: 1px solid rgba(212,169,58,0.20); }
.badge-green { background: var(--green-100); color: var(--green-500); border: 1px solid rgba(34,197,94,0.20); }
.badge-amber { background: var(--amber-100); color: var(--amber-500); border: 1px solid rgba(245,158,11,0.20); }
.badge-red   { background: var(--red-100);   color: var(--red-400);   border: 1px solid rgba(248,113,113,0.20); }
.badge-muted { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Resource Row ─────────────────────────────── */
.resource-row {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  text-decoration: none;
  color: var(--text-primary) !important;
}
.resource-row:hover { border-color: var(--border-blue); background: var(--bg-card-hover); transform: translateX(3px); }
.resource-row-icon { font-size: 22px; flex-shrink: 0; }
.resource-row-body { flex: 1; min-width: 0; }
.resource-row-title { font-weight: 600; font-size: var(--text-base); color: var(--text-primary); }
.resource-row-desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: 1px; }
.resource-row-arrow { color: var(--text-faint); font-size: 16px; flex-shrink: 0; transition: all var(--t-fast); }
.resource-row:hover .resource-row-arrow { color: var(--blue-400); transform: translateX(3px); }

/* ── Source Card ──────────────────────────────── */
.source-card {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5) var(--s-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all var(--t-base);
}
.source-card:hover { border-color: var(--border-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.source-card-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--blue-100);
  border: 1px solid var(--border-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.source-card-body { flex: 1; min-width: 0; }
.source-card-body h4 { font-size: var(--text-base); margin-bottom: var(--s-1); color: var(--text-primary); }
.source-card-body p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-3); }

/* ── Quiz Styles ──────────────────────────────── */
.quiz-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-progress-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-bottom: var(--s-5);
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  border-radius: var(--r-full);
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.quiz-step-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-8);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-10) var(--s-8);
  box-shadow: var(--shadow-lg);
}

.quiz-category-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: var(--blue-100);
  border: 1px solid rgba(47,107,255,0.20);
  padding: 3px var(--s-3);
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}

.quiz-question-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--s-8);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: rgba(255,255,255,0.03);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-family: var(--font);
  text-align: left;
  width: 100%;
  position: relative;
}
.quiz-option:hover { background: rgba(47,107,255,0.06); border-color: rgba(47,107,255,0.25); color: var(--text-primary); }
.quiz-option.selected { background: rgba(47,107,255,0.12); border-color: var(--blue-600); color: var(--text-primary); }

.quiz-option-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.20);
  flex-shrink: 0;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-option.selected .quiz-option-dot {
  background: var(--blue-600);
  border-color: var(--blue-600);
}
.quiz-option.selected .quiz-option-dot::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: white;
}

.quiz-option-text { flex: 1; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--s-8);
  gap: var(--s-4);
}

/* ── Quiz Result ──────────────────────────────── */
.quiz-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quiz-result-header {
  padding: var(--s-10) var(--s-8) var(--s-8);
  text-align: center;
  position: relative;
}

.result-level-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: var(--s-5);
  display: block;
}

.result-level-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-full);
  margin-bottom: var(--s-5);
}

.result-low .quiz-result-header    { border-top: 4px solid var(--green-500); background: rgba(34,197,94,0.04); }
.result-low .result-level-badge    { background: var(--green-100); color: var(--green-500); border: 1px solid rgba(34,197,94,0.30); }
.result-moderate .quiz-result-header { border-top: 4px solid var(--amber-500); background: rgba(245,158,11,0.04); }
.result-moderate .result-level-badge { background: var(--amber-100); color: var(--amber-500); border: 1px solid rgba(245,158,11,0.30); }
.result-high .quiz-result-header   { border-top: 4px solid var(--blue-600); background: rgba(47,107,255,0.04); }
.result-high .result-level-badge   { background: var(--blue-100); color: var(--blue-400); border: 1px solid var(--border-blue); }

.result-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--s-3);
}

.result-description {
  font-size: var(--text-base);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.7;
}

.quiz-result-body {
  padding: var(--s-8);
  border-top: 1px solid var(--border);
}

.result-steps { margin-bottom: var(--s-6); }
.result-steps h4 { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-4); }

.result-step-item {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  margin-bottom: var(--s-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.result-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue-100);
  border: 1px solid var(--border-blue);
  color: var(--blue-400);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-light);
}

.result-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-faint);
  font-style: italic;
  text-align: center;
  margin-top: var(--s-5);
  line-height: 1.6;
}

/* ── Profile / Maintainer ─────────────────────── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: var(--s-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  margin-bottom: var(--s-8);
}

@media (max-width: 600px) {
  .profile-hero { flex-direction: column; text-align: center; align-items: center; }
}

.profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--gold-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.10);
}

.profile-info h2 { font-size: var(--text-2xl); margin-bottom: var(--s-1); }
.profile-role { font-size: var(--text-base); color: var(--gold-400); font-weight: 600; margin-bottom: var(--s-3); }
.profile-info p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

.profile-links {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-4);
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary) !important;
  text-decoration: none;
  transition: all var(--t-fast);
}
.profile-link:hover { background: rgba(47,107,255,0.10); border-color: var(--border-blue); color: var(--text-primary) !important; }

/* ── Credentials Grid ─────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--s-4);
  margin: var(--s-8) 0;
}

@media (max-width: 900px) { .credentials-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .credentials-grid { grid-template-columns: repeat(2, 1fr); } }

.credential-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.credential-card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: 0 8px 30px rgba(212,169,58,0.15); }
.credential-card img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-sm); margin-bottom: var(--s-2); }
.credential-card .cred-issuer { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.credential-card a { font-size: 11px; color: var(--gold-400); font-weight: 600; margin-top: auto; padding-top: var(--s-2); }

/* ── SVG Icons & Badges ──────────────────────── */
.nav-icon, .brand-icon {
  flex-shrink: 0;
  stroke: currentColor;
}
.brand-icon { color: var(--blue-400); margin-right: 4px; }
.nav-icon { color: var(--text-muted); transition: color var(--t-fast); }
nav a:hover .nav-icon, nav a.active .nav-icon {
  color: var(--blue-400);
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  flex-shrink: 0;
  margin-bottom: var(--s-2);
  vertical-align: middle;
}
h1 .icon-box, h2 .icon-box, h3 .icon-box, h4 .icon-box, .badge .icon-box {
  margin-bottom: 0;
  margin-right: var(--s-2);
}
.badge .icon-box {
  width: 20px;
  height: 20px;
  border-radius: var(--r-sm);
  margin-right: var(--s-1);
}
.badge .icon-box svg {
  width: 12px;
  height: 12px;
}
.icon-box svg { stroke: currentColor; }
.icon-purple { background: rgba(147, 51, 234, 0.1); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.2); }
.icon-blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.2); }
.icon-yellow { background: rgba(234, 179, 8, 0.1); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.2); }
.icon-cyan { background: rgba(6, 182, 212, 0.1); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.2); }

/* ── Dividers ─────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin: var(--s-16) 0;
}
.section-divider::before, .section-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.section-divider span { font-size: var(--text-xs); color: var(--text-faint); white-space: nowrap; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

/* ── Callout ──────────────────────────────────── */
.callout {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.callout-legal { background: var(--gold-100); border: 1px solid var(--border-gold); color: var(--gold-300); }
.callout-info  { background: var(--blue-100); border: 1px solid var(--border-blue); color: var(--blue-300); }
.callout-warn  { background: var(--amber-100); border: 1px solid rgba(245,158,11,0.20); color: var(--amber-500); }
.callout-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.callout-body h4 { font-size: var(--text-base); font-weight: 700; color: var(--text-primary); margin-bottom: var(--s-1); }

/* ── Learning Path ─────────────────────────────── */
.path-steps { display: flex; flex-direction: column; }
.path-step { display: flex; gap: var(--s-5); padding-bottom: var(--s-6); }
.path-step:last-child { padding-bottom: 0; }
.path-step-line { display: flex; flex-direction: column; align-items: center; }
.path-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-100); border: 2px solid var(--border-blue);
  color: var(--blue-400); font-size: var(--text-sm); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; z-index: 1;
}
.path-step-connector { flex: 1; width: 2px; background: var(--border); margin: var(--s-1) 0; }
.path-step:last-child .path-step-connector { display: none; }
.path-step-body { padding-top: var(--s-1); }
.path-step-body h4 { font-size: var(--text-base); color: var(--text-primary); margin-bottom: var(--s-1); }
.path-step-body p { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s-2); }

/* ── Accordion / Details ──────────────────────── */
details {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--s-2);
  overflow: hidden;
}
details:hover { border-color: rgba(255,255,255,0.12); }
details[open] { border-color: var(--border-blue); }

summary {
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  user-select: none;
}
summary::after { content: '↓'; font-size: 12px; color: var(--text-faint); transition: transform var(--t-base); }
details[open] summary::after { transform: rotate(180deg); }
summary:hover { color: var(--text-primary); }
summary::-webkit-details-marker { display: none; }
details > :not(summary) { padding: var(--s-5); background: var(--bg-inset); font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; }

/* ── Footer ───────────────────────────────────── */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--s-16) var(--s-6) var(--s-8);
}

.simple-footer {
  margin-top: var(--s-16);
  padding: var(--s-8) var(--s-4) var(--s-12);
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-faint);
  font-size: var(--text-xs);
  background: transparent !important;
}
.simple-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.1);
  text-underline-offset: 3px;
  transition: all var(--t-fast);
}
.simple-footer a:hover {
  color: var(--text-secondary);
  text-decoration-color: rgba(255,255,255,0.4);
}

.footer-container { max-width: var(--max-w); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--s-12);
  margin-bottom: var(--s-12);
}

@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, 1fr); gap: var(--s-8); } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: var(--s-6); } }

.footer-brand .logo-footer { font-size: var(--text-md); font-weight: 700; color: var(--text-primary); display: block; margin-bottom: var(--s-2); }
.footer-brand p { font-size: var(--text-sm); color: var(--text-faint); line-height: 1.6; max-width: 260px; }
.footer-section h4 { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--s-4); }
.footer-section ul { list-style: none; padding: 0; }
.footer-section li { margin-bottom: var(--s-2); }
.footer-section a { font-size: var(--text-sm); color: var(--text-faint); transition: color var(--t-fast); }
.footer-section a:hover { color: var(--text-secondary); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom p { font-size: var(--text-xs); color: var(--text-faint); margin: 0; }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }

/* ── Selection ────────────────────────────────── */
::selection { background: rgba(47,107,255,0.30); color: var(--text-primary); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  section { padding: var(--s-12) var(--s-4); }
  nav ul { gap: 0; }
  nav a { padding: var(--s-2); font-size: 12px; }
  .cards-grid, .cards-grid-3, .cards-grid-2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; justify-content: center; }
  .quiz-card { padding: var(--s-6) var(--s-4); }
  .quiz-nav { flex-direction: column; gap: var(--s-3); }
}

/* ── Global Search Modal (Cmd+K) ──────────────── */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 18, 35, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-content {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transform: translateY(-20px) scale(0.95);
  transition: transform var(--t-base);
}

.search-modal.active .search-modal-content {
  transform: translateY(0) scale(1);
}

#search-input {
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--s-6) var(--s-6);
  font-size: var(--text-lg);
  color: var(--text-primary);
  font-family: var(--font);
}

#search-input:focus { outline: none; }
#search-input::placeholder { color: var(--text-faint); }

.search-results {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  display: none;
}
.search-results.has-results { display: block; }

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: var(--s-4) var(--s-6);
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
  transition: background var(--t-fast);
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover, .search-result-item.selected {
  background: var(--bg-card-hover);
}
.search-result-item strong { color: var(--text-primary); margin-bottom: 2px; }
.search-result-item span { font-size: var(--text-sm); color: var(--text-muted); }

.search-footer {
  padding: var(--s-3) var(--s-6);
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
}

kbd {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── SPA Page Transitions ────────────────────── */
body.page-transitioning main > section {
  animation: fadeOutDown 0.3s cubic-bezier(0.4, 0, 1, 1) forwards !important;
}

@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(10px); }
}

/* ── SaaS V3.0 Features ───────────────────────── */

/* Universal Search Modal (Cmd+K) */
#search-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
#search-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.search-modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: translateY(-20px);
  transition: transform var(--t-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#search-modal.active .search-modal-content {
  transform: translateY(0);
}
.search-header {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.search-header svg {
  color: var(--text-muted);
}
.search-header input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--text-lg);
  outline: none;
}
.search-results {
  max-height: 50vh;
  overflow-y: auto;
  padding: var(--s-2) 0;
}
.search-result-item {
  display: flex;
  flex-direction: column;
  padding: var(--s-3) var(--s-5);
  text-decoration: none;
  color: var(--text-primary);
  border-left: 2px solid transparent;
}
.search-result-item:hover, .search-result-item.selected {
  background: var(--bg-card-hover);
  border-left-color: var(--blue-500);
}
.search-result-title {
  font-weight: 600;
  font-size: var(--text-base);
  margin-bottom: var(--s-1);
}
.search-result-excerpt {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.search-empty {
  padding: var(--s-6) var(--s-5);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Glossary Tooltips */
.glossary-term {
  border-bottom: 1px dashed var(--blue-400);
  cursor: help;
  position: relative;
  color: var(--text-primary);
  transition: color var(--t-fast);
}
.glossary-term:hover {
  color: var(--blue-400);
}
.tooltip-box {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  width: max-content;
  max-width: 280px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transition: all var(--t-fast);
  text-align: left;
}
.glossary-term:hover .tooltip-box {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tooltip-box::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--bg-panel) transparent transparent transparent;
}

/* Applicability Wizard */
.wizard-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  margin-bottom: var(--s-8);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.wizard-progress {
  display: flex;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.wizard-dot {
  flex: 1;
  height: 4px;
  background: var(--bg-inset);
  border-radius: 2px;
}
.wizard-dot.active {
  background: var(--blue-500);
}
.wizard-step {
  display: none;
  animation: fadeIn var(--t-base) ease forwards;
}
.wizard-step.active {
  display: block;
}
.wizard-step h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-2);
}
.wizard-step p {
  color: var(--text-muted);
  margin-bottom: var(--s-6);
}
.wizard-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 680px;
  margin: var(--s-6) auto var(--s-2) auto;
  width: 100%;
}
.wizard-option {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wizard-option:hover {
  border-color: var(--blue-500);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.05);
}
.wizard-result {
  text-align: center;
  padding: var(--s-8) 0;
}
.wizard-result-icon {
  font-size: 48px;
  margin-bottom: var(--s-4);
}
.wizard-result h2 {
  font-size: var(--text-2xl);
  color: var(--blue-400);
  margin-bottom: var(--s-2);
}
.wizard-result p {
  color: var(--text-secondary);
  margin-bottom: var(--s-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Compliance Roadmap Timeline */
.roadmap-timeline {
  position: relative;
  padding-left: var(--s-8);
  margin-top: var(--s-8);
}
.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 15px;
  width: 2px;
  background: var(--border);
}
.roadmap-node {
  position: relative;
  margin-bottom: var(--s-10);
}
.roadmap-dot {
  position: absolute;
  left: calc(var(--s-8) * -1 - 9px);
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 4px solid var(--blue-500);
  z-index: 2;
}
.roadmap-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-6);
}
.roadmap-date {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--s-2);
}
.roadmap-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--s-2);
}
.roadmap-content p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ── UI Enhancements (Copy & Print) ────────────── */
.copy-btn {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: all var(--t-fast);
  opacity: 0;
}
pre:hover .copy-btn, .card:hover .copy-btn {
  opacity: 1;
}
.copy-btn:hover {
  background: var(--blue-500);
  color: #fff;
  border-color: var(--blue-500);
}

/* ── Site Header (For horizontal full-width pages) ── */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(7, 18, 35, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--s-8);
  height: var(--nav-h);
}

.site-header .logo {
  margin-bottom: 0;
  padding: 0;
  font-size: var(--text-md);
}

.site-header .nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 100%;
}

.site-header .nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  height: 100%;
  border-bottom: 2px solid transparent;
  padding: 0 var(--s-1);
}

.site-header .nav-links a:hover,
.site-header .nav-links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--blue-500);
}

.site-header select {
  font-family: var(--font);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  outline: none;
}
.site-header select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

/* ── Interactive Countdown Card ── */
.countdown-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47, 107, 255, 0.40);
  border-color: var(--blue-400) !important;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
  .site-header, .simple-footer, .nav-links, #search-modal, .copy-btn {
    display: none !important;
  }
  .container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .card, .wizard-container, .roadmap-content {
    border: none;
    box-shadow: none;
    page-break-inside: avoid;
  }
  a {
    text-decoration: none;
    color: #000;
  }
}

/* ── Changelog Timeline ──────────────────────── */
.changelog-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: var(--s-12);
}
.changelog-entry {
  display: flex;
  gap: var(--s-6);
  padding-bottom: var(--s-8);
}
.changelog-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 24px;
  margin-top: 4px;
}
.changelog-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.changelog-line {
  flex: 1;
  width: 2px;
  background: var(--border);
  margin-top: var(--s-2);
  margin-bottom: 0;
  min-height: 40px;
}
.changelog-body {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: border-color var(--t-fast);
}
.changelog-body:hover {
  border-color: var(--border-blue);
}
.changelog-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  flex-wrap: wrap;
}
.changelog-version {
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.changelog-date {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.changelog-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.05em;
}
.changelog-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--s-2) 0;
}
.changelog-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0 0 var(--s-4) 0;
  line-height: 1.6;
}
.changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}
.cl-tag {
  display: inline-block;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 1px;
}
.cl-tag.feat {
  background: var(--blue-100);
  color: var(--blue-400);
}
.cl-tag.fix {
  background: var(--amber-100);
  color: var(--amber-500);
}
.cl-tag.break {
  background: var(--red-100);
  color: var(--red-400);
}

/* ── Changelog Accordion ─────────────────────── */
.changelog-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 860px;
}
.cl-accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.cl-accordion-item[open] {
  border-color: var(--border-blue);
  box-shadow: 0 0 0 1px var(--border-blue), var(--shadow-sm);
}
.cl-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: var(--s-4);
  transition: background var(--t-fast);
}
.cl-accordion-summary::-webkit-details-marker { display: none; }
.cl-accordion-summary:hover { background: rgba(255,255,255,0.03); }
.cl-accordion-left {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  flex: 1;
}
.cl-accordion-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}
.cl-accordion-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.cl-chevron {
  color: var(--text-muted);
  transition: transform var(--t-fast);
}
.cl-accordion-item[open] .cl-chevron {
  transform: rotate(180deg);
}
.cl-accordion-body {
  padding: 0 var(--s-6) var(--s-5) var(--s-6);
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.2s ease both;
}
