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

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #050810;
  --bg-secondary: #080d18;
  --bg-tertiary: #0a0f1e;
  --bg-card: #0c1020;
  --bg-card-hover: #101628;
  --bg-elevated: #131b2e;

  --border-subtle: rgba(30, 42, 58, 0.6);
  --border-default: #1e2a3a;
  --border-accent: rgba(0, 212, 255, 0.3);

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.12);
  --cyan-glow: rgba(0, 212, 255, 0.06);
  --purple: #8b5cf6;
  --purple-dim: rgba(139, 92, 246, 0.12);
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.12);
  --orange: #f59e0b;
  --orange-dim: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --pink: #ec4899;
  --pink-dim: rgba(236, 72, 153, 0.12);

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-cyan: 0 0 30px rgba(0, 212, 255, 0.12);
  --shadow-purple: 0 0 30px rgba(139, 92, 246, 0.12);

  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: #40dfff; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.0625rem; }
p { color: var(--text-secondary); line-height: 1.7; }

code {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-size: 0.875em;
  color: var(--cyan);
}

pre {
  font-family: var(--font-mono);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-left: 3px solid var(--cyan);
  padding: 1.25rem;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-label::before { content: '//'; opacity: 0.4; }
.section-title { margin-bottom: 0.75rem; color: var(--text-primary); }
.section-subtitle { font-size: 1.0625rem; color: var(--text-secondary); max-width: 580px; margin-bottom: 3rem; line-height: 1.7; }
.section-header { margin-bottom: 3rem; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: var(--transition-slow);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 8, 16, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.625rem;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.9375rem;
  color: var(--text-primary); text-decoration: none;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #000; font-family: var(--font-mono);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary); transition: var(--transition);
  text-decoration: none; position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--cyan); border-radius: var(--radius-full);
}
.nav-cta {
  font-size: 0.8125rem; font-weight: 600;
  padding: 0.5rem 1.25rem;
  background: var(--cyan-dim); border: 1px solid var(--border-accent);
  border-radius: var(--radius-full); color: var(--cyan);
  text-decoration: none; transition: var(--transition);
}
.nav-cta:hover { background: var(--cyan); color: #000; }
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 0.375rem; color: var(--text-primary);
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: var(--transition); margin: 4px 0;
}
.nav-mobile-menu {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-default);
  padding: 1.25rem 2rem;
  z-index: 99; flex-direction: column; gap: 0.25rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-link {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  padding: 0.75rem 0; text-decoration: none;
  border-bottom: 1px solid var(--border-subtle); transition: var(--transition);
}
.nav-mobile-link:hover { color: var(--cyan); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: var(--transition);
  cursor: pointer; border: none; white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: #000; }
.btn-primary:hover { background: #40dfff; color: #000; transform: translateY(-1px); box-shadow: var(--shadow-cyan); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border-default); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-ghost { background: transparent; color: var(--cyan); padding: 0.5rem 1rem; }
.btn-ghost:hover { background: var(--cyan-dim); }
.btn-sm { padding: 0.4375rem 0.875rem; font-size: 0.8rem; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0.2rem 0.5rem; border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 600;
  font-family: var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase;
}
.badge-cyan  { background: var(--cyan-dim);   color: var(--cyan);   border: 1px solid rgba(0,212,255,0.2); }
.badge-purple{ background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }
.badge-green { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(16,185,129,0.2); }
.badge-orange{ background: var(--orange-dim); color: var(--orange); border: 1px solid rgba(245,158,11,0.2); }
.badge-red   { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.badge-pink  { background: var(--pink-dim);   color: var(--pink);   border: 1px solid rgba(236,72,153,0.2); }

.tag {
  display: inline-block; padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 500;
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

/* ===== STATUS ===== */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.25rem 0.625rem; border-radius: var(--radius-full);
  font-size: 0.6875rem; font-weight: 600; font-family: var(--font-mono);
}
.status-active  { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: var(--green); }
.status-planned { background: var(--orange-dim); border: 1px solid rgba(245,158,11,0.25); color: var(--orange); }
.status-complete{ background: var(--cyan-dim); border: 1px solid rgba(0,212,255,0.25); color: var(--cyan); }
.status-active::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease-in-out infinite;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition-slow); position: relative; overflow: hidden;
}
.card:hover {
  border-color: var(--border-accent); background: var(--bg-card-hover);
  transform: translateY(-2px); box-shadow: var(--shadow-cyan);
}
.card-accent-cyan   { border-left: 3px solid var(--cyan); }
.card-accent-purple { border-left: 3px solid var(--purple); }
.card-accent-green  { border-left: 3px solid var(--green); }
.card-accent-orange { border-left: 3px solid var(--orange); }

.card-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.375rem; margin-bottom: 1.25rem;
}
.card-icon-cyan   { background: var(--cyan-dim);   border: 1px solid rgba(0,212,255,0.2); }
.card-icon-purple { background: var(--purple-dim); border: 1px solid rgba(139,92,246,0.2); }
.card-icon-green  { background: var(--green-dim);  border: 1px solid rgba(16,185,129,0.2); }
.card-icon-orange { background: var(--orange-dim); border: 1px solid rgba(245,158,11,0.2); }
.card-icon-pink   { background: var(--pink-dim);   border: 1px solid rgba(236,72,153,0.2); }
.card-icon-red    { background: var(--red-dim);    border: 1px solid rgba(239,68,68,0.2); }

.card-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text-primary); }
.card-description { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }
.card-footer {
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 1rem; }

/* ===== HERO ===== */
.hero {
  padding: calc(5rem + 80px) 0 5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(0,212,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px; pointer-events: none;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, transparent 70%);
}
.hero-label {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan);
  letter-spacing: 0.08em; margin-bottom: 1.25rem;
  display: inline-flex; align-items: center; gap: 0.625rem;
}
.hero-label::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--cyan); border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite;
}
.hero-title { margin-bottom: 1.25rem; }
.hero-title .highlight {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { font-size: 1.0625rem; color: var(--text-secondary); max-width: 580px; margin-bottom: 2rem; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-value { font-size: 2.25rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 0.25rem; }
.hero-stat-value span { color: var(--cyan); }
.hero-stat-label { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: calc(5rem + 100px) 0 4rem;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-breadcrumb {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
  margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.page-hero-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.page-hero-breadcrumb a:hover { color: var(--cyan); }
.page-hero-breadcrumb .sep { color: var(--border-default); }

/* ===== TERMINAL ===== */
.terminal {
  background: #080d18; border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); overflow: hidden;
  font-family: var(--font-mono); font-size: 0.8125rem;
  box-shadow: var(--shadow-lg);
}
.terminal-header {
  background: var(--bg-elevated); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border-default);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot-red    { background: #ff5f57; }
.terminal-dot-yellow { background: #febc2e; }
.terminal-dot-green  { background: #28c840; }
.terminal-title { font-size: 0.7rem; color: var(--text-muted); margin-left: auto; margin-right: auto; }
.terminal-body { padding: 1.25rem; line-height: 1.9; }
.terminal-line { display: flex; gap: 0.5rem; }
.terminal-prompt { color: var(--green); user-select: none; }
.terminal-command { color: var(--cyan); }
.terminal-output { color: var(--text-secondary); padding-left: 1.25rem; }
.terminal-comment { color: var(--text-muted); }

/* ===== TYPEWRITER ===== */
.typewriter { border-right: 2px solid var(--cyan); animation: blink 1s step-end infinite; padding-right: 2px; }
@keyframes blink { 0%, 100% { border-color: var(--cyan); } 50% { border-color: transparent; } }

/* ===== PHASE INDICATORS ===== */
.phase-indicator {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.7rem; font-weight: 600; font-family: var(--font-mono);
}
.phase-1 { background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); color: var(--cyan); }
.phase-2 { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.2); color: var(--purple); }
.phase-3 { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2); color: var(--green); }

/* ===== TIMELINE ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(to bottom, var(--cyan), var(--purple), var(--green));
  border-radius: var(--radius-full);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.375rem; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--cyan); border: 2px solid var(--bg-primary);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}
.timeline-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--cyan); margin-bottom: 0.25rem; }
.timeline-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.375rem; color: var(--text-primary); }
.timeline-body { font-size: 0.875rem; color: var(--text-secondary); }

/* ===== PROGRESS BARS ===== */
.progress-container { margin-bottom: 1rem; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 0.375rem; font-size: 0.8rem; }
.progress-label-text { color: var(--text-secondary); }
.progress-label-value { color: var(--cyan); font-family: var(--font-mono); }
.progress-bar { height: 4px; background: var(--bg-elevated); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== FEATURE LIST ===== */
.feature-list { display: flex; flex-direction: column; gap: 0.5rem; }
.feature-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--text-secondary); }
.feature-item::before { content: '▸'; color: var(--cyan); flex-shrink: 0; line-height: 1.6; }

/* ===== PUBLICATIONS ===== */
.pub-card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition-slow); display: flex; gap: 1.5rem;
}
.pub-card:hover { border-color: var(--border-accent); transform: translateX(4px); }
.pub-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); min-width: 36px; padding-top: 3px; }
.pub-content { flex: 1; }
.pub-title { font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; font-size: 1rem; }
.pub-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.pub-abstract { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== NOTE CARDS ===== */
.note-card {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition-slow); display: flex; flex-direction: column; gap: 0.75rem;
}
.note-card:hover { border-color: var(--border-accent); transform: translateY(-2px); box-shadow: var(--shadow-cyan); }
.note-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.note-date { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); }
.note-title { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.note-excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== FILTER TABS ===== */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-tab {
  padding: 0.4375rem 1rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 500;
  background: transparent; border: 1px solid var(--border-default);
  color: var(--text-secondary); cursor: pointer; transition: var(--transition);
  font-family: var(--font-mono);
}
.filter-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.filter-tab.active { background: var(--cyan-dim); border-color: var(--border-accent); color: var(--cyan); }

/* ===== ROADMAP / PHASE BLOCKS ===== */
.phase-block {
  background: var(--bg-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 2rem;
}
.phase-block-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle);
}
.phase-num {
  font-family: var(--font-mono); font-size: 2.5rem; font-weight: 800;
  color: var(--border-default); line-height: 1; min-width: 52px;
}
.phase-block-projects { display: flex; flex-direction: column; gap: 1rem; }
.project-row {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.project-row:hover { border-color: var(--border-default); }
.project-row-num {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted);
  min-width: 28px; padding-top: 2px;
}
.project-row-content { flex: 1; }
.project-row-title { font-weight: 700; color: var(--text-primary); font-size: 0.9375rem; margin-bottom: 0.25rem; }
.project-row-desc { font-size: 0.8125rem; color: var(--text-secondary); }
.project-row-skills { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.625rem; }

/* ===== ARCH DIAGRAM ===== */
.arch-diagram {
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary);
  overflow-x: auto; white-space: pre; line-height: 1.7;
}

/* ===== THREAT TABLE ===== */
.threat-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.threat-table th {
  text-align: left; padding: 0.625rem 1rem;
  font-size: 0.7rem; font-family: var(--font-mono); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
  border-bottom: 2px solid var(--border-default);
}
.threat-table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); vertical-align: top; }
.threat-table tr:hover td { background: var(--bg-elevated); }
.sev-high   { color: var(--red);    font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; }
.sev-medium { color: var(--orange); font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; }
.sev-low    { color: var(--green);  font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; }

/* ===== CALLOUTS ===== */
.callout { border-radius: var(--radius); padding: 1.125rem 1.25rem; border-left: 3px solid; margin: 1.5rem 0; }
.callout-info    { background: rgba(0,212,255,0.05); border-color: var(--cyan); }
.callout-warning { background: rgba(245,158,11,0.05); border-color: var(--orange); }
.callout-danger  { background: rgba(239,68,68,0.05);  border-color: var(--red); }
.callout-title { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.callout p { font-size: 0.875rem; }

/* ===== METRIC CARDS ===== */
.metric-card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; }
.metric-value {
  font-size: 2.25rem; font-weight: 800; line-height: 1; margin-bottom: 0.375rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-label { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }

/* ===== ABOUT PAGE ===== */
.about-grid { display: grid; grid-template-columns: 260px 1fr; gap: 4rem; align-items: start; }
.about-avatar {
  width: 260px; height: 260px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  border: 2px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--cyan); position: relative; overflow: hidden;
}
.about-avatar::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(0,212,255,0.1), transparent 60%);
}
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border-default); padding: 4rem 0 2.5rem; margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3.5rem; margin-bottom: 3rem; }
.footer-brand { max-width: 300px; }
.footer-brand-logo {
  display: flex; align-items: center; gap: 0.625rem;
  margin-bottom: 1rem; font-family: var(--font-mono); font-weight: 600;
  font-size: 0.9375rem; color: var(--text-primary); text-decoration: none;
}
.footer-brand-desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.5rem; }
.footer-heading { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; font-family: var(--font-mono); }
.footer-links { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-link { font-size: 0.875rem; color: var(--text-secondary); text-decoration: none; transition: var(--transition); }
.footer-link:hover { color: var(--cyan); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-copyright { font-size: 0.775rem; color: var(--text-muted); font-family: var(--font-mono); }
.social-links { display: flex; align-items: center; gap: 0.75rem; }
.social-link {
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 0.8rem; font-family: var(--font-mono);
  text-decoration: none; transition: var(--transition); font-weight: 700;
}
.social-link:hover { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1.fade-in { transition-delay: 0.1s; }
.fade-in-delay-2.fade-in { transition-delay: 0.2s; }
.fade-in-delay-3.fade-in { transition-delay: 0.3s; }
.fade-in-delay-4.fade-in { transition-delay: 0.4s; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

/* ===== SECTION SEPARATOR ===== */
.section-sep { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; color: var(--text-muted); font-size: 0.75rem; font-family: var(--font-mono); }
.section-sep::before, .section-sep::after { content: ''; flex: 1; height: 1px; background: var(--border-default); }

/* ===== BG ACCENTS ===== */
.bg-alt { background: var(--bg-secondary); }
.border-top { border-top: 1px solid var(--border-default); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .container-narrow { padding: 0 1.25rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.75rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { max-width: 100%; }
  .pub-card { flex-direction: column; gap: 0.375rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .phase-block-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .page-hero { padding: calc(3.5rem + 80px) 0 3rem; }
}
