@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --primary:    #0A1628;
  --primary-2:  #0F2347;
  --accent:     #1259C3;
  --accent-2:   #1A75F0;
  --accent-glow:#1A75F020;
  --gold:       #C89B2A;
  --gold-light: #F5E6B8;
  --success:    #0B7A4E;
  --success-bg: #E6F6EE;
  --warning:    #8A5000;
  --warning-bg: #FEF3E0;
  --danger:     #9B1C1C;
  --danger-bg:  #FEF0F0;
  --text:       #0F1923;
  --text-2:     #3D4A5C;
  --text-3:     #6B7A90;
  --border:     #DDE3EC;
  --border-2:   #C4CEDF;
  --bg:         #FFFFFF;
  --bg-2:       #F5F7FA;
  --bg-3:       #EDF0F5;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.05);
  --shadow-md:  0 4px 16px rgba(10,22,40,0.10), 0 2px 6px rgba(10,22,40,0.06);
  --shadow-lg:  0 12px 40px rgba(10,22,40,0.13), 0 4px 12px rgba(10,22,40,0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ===================== NAV ===================== */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 48px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-box {
  width: 32px; height: 32px;
  background: var(--accent-2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  letter-spacing: -0.5px;
}
.nav-brand-text {
  font-size: 14px; font-weight: 600; color: white;
  letter-spacing: -0.2px;
}
.nav-brand-sub {
  font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px;
}

.nav-links {
  display: flex; gap: 4px; align-items: center;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 6px 14px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all .18s;
  white-space: nowrap;
}
.nav-links a:hover { color: white; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: white; background: var(--accent); }
.nav-links .nav-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 4px;
}

/* ===================== PAGE HEADER ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 60%, #0F3070 100%);
  padding: 64px 80px 56px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,117,240,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: 30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(200,155,42,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before {
  content: ''; display: block;
  width: 24px; height: 2px;
  background: var(--accent-2);
}
.page-hero h1 {
  font-size: 38px; font-weight: 700;
  color: white; line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  max-width: 700px;
}
.page-hero .lead {
  font-size: 16px; color: rgba(255,255,255,0.6);
  max-width: 620px; line-height: 1.7;
  margin-bottom: 28px;
}
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-badge {
  font-size: 12px; font-weight: 500;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid;
}
.hb-blue { background: rgba(26,117,240,0.15); border-color: rgba(26,117,240,0.4); color: #7AB8FF; }
.hb-gold { background: rgba(200,155,42,0.15); border-color: rgba(200,155,42,0.4); color: #F0C84A; }
.hb-green { background: rgba(11,122,78,0.15); border-color: rgba(11,122,78,0.4); color: #4CD9A0; }
.hb-red  { background: rgba(155,28,28,0.15); border-color: rgba(155,28,28,0.4); color: #F48080; }

/* ===================== LAYOUT ===================== */
.main-container { max-width: 1160px; margin: 0 auto; padding: 60px 48px; }
.section-header { margin-bottom: 36px; }
.section-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-header h2 {
  font-size: 26px; font-weight: 700;
  color: var(--primary); letter-spacing: -0.5px;
}
.section-header p {
  font-size: 15px; color: var(--text-3);
  margin-top: 8px; max-width: 600px; line-height: 1.7;
}

/* ===================== CARDS ===================== */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card-body { padding: 24px; }

/* Module number badge */
.mod-badge {
  min-width: 36px; height: 36px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.mod-badge.base { background: var(--accent); }
.mod-badge.adv  { background: var(--gold); }

/* Requirement rows */
.req-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
  background: white;
}
.req-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  color: var(--accent);
  background: #EDF3FE;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}
.req-text { font-size: 13px; color: var(--text-2); flex: 1; line-height: 1.5; }

/* Priority pills */
.pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 99px;
  white-space: nowrap;
}
.pill-must   { background: #FEE2E2; color: #991B1B; }
.pill-should { background: #FEF3C7; color: #92400E; }
.pill-nice   { background: #DCFCE7; color: #166534; }
.pill-excl   { background: #F3F4F6; color: #4B5563; border: 1px solid #E5E7EB; }
.pill-crit   { background: #FEE2E2; color: #991B1B; }
.pill-med    { background: #FEF3C7; color: #92400E; }
.pill-low    { background: #DCFCE7; color: #166534; }
.pill-blue   { background: #EDF3FE; color: #1259C3; }
.pill-gold   { background: #FEF8E8; color: #8A5000; }

/* Info boxes */
.info-box {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 13px;
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid;
}
.info-box .ib-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.info-box strong { font-weight: 600; display: block; margin-bottom: 3px; }
.ib-warn  { background: var(--warning-bg); border-color: #F59E0B; color: var(--warning); }
.ib-danger{ background: var(--danger-bg);  border-color: #EF4444; color: var(--danger); }
.ib-info  { background: #EDF3FE; border-color: #93C5FD; color: #1E40AF; }
.ib-success{background: var(--success-bg);border-color: #34D399; color: var(--success); }

/* Tables */
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  background: var(--bg-2);
  color: var(--primary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-2);
}
.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.5;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-2); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }

/* Stat cards */
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: 36px; font-weight: 700;
  color: var(--primary); letter-spacing: -1px;
  line-height: 1;
}
.stat-label { font-size: 12px; color: var(--text-3); margin-top: 6px; font-weight: 500; }
.stat-card.accent { background: var(--accent); border-color: var(--accent); }
.stat-card.accent .stat-num, .stat-card.accent .stat-label { color: white; }
.stat-card.accent .stat-label { color: rgba(255,255,255,0.7); }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* Section separator */
.section-sep {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 80px;
  margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* Utility */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 13px; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.fw-600 { font-weight: 600; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp .45s ease both; }
.delay-1 { animation-delay: .08s; }
.delay-2 { animation-delay: .16s; }
.delay-3 { animation-delay: .24s; }
.delay-4 { animation-delay: .32s; }

/* Footer */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.5);
  text-align: center;
  font-size: 12px;
  padding: 24px 48px;
  margin-top: 80px;
}
footer span { color: rgba(255,255,255,0.8); font-weight: 600; }
