:root {
  --bg: #080b14;
  --bg-2: #0f1525;
  --panel: #11192b;
  --panel-alt: #0c121f;
  --text: #e8eefc;
  --muted: #9cabc2;
  --accent: #3dd8c0;
  --accent-2: #4c7df5;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --border: 1px solid rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 20% 20%, #12203a, transparent 30%),
              radial-gradient(circle at 80% 10%, #1a2c57, transparent 25%),
              linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

.hero {
  position: relative;
  padding: 32px min(8vw, 120px) 80px;
  overflow: hidden;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.hero__content {
  margin-top: 80px;
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
}

h2, h3 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 32px);
}

.lede, .panel__lede, p.lede {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 760px;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041025;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.print-btn {
  padding: 10px 12px;
  border-radius: 12px;
}

.print-btn svg { display: block; }

.glow {
  position: absolute;
  inset: -20% auto auto 20%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(77, 127, 245, 0.15), transparent 55%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

.page {
  padding: 0 min(8vw, 120px) 80px;
  display: grid;
  gap: 28px;
}

.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 28px;
  border: var(--border);
  box-shadow: var(--shadow);
}

.panel--alt { background: var(--panel-alt); }

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.panel__lede { margin-top: 6px; }

.status {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #0b1324;
  background: #f2c14f;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.mode-switch {
  display: inline-flex;
  gap: 6px;
}

.mode-switch button {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f7fb;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-switch button:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
}

.mode-switch button.is-active {
  background: #f2c14f;
  color: #0b1324;
  border-color: rgba(0, 0, 0, 0.35);
}

.status--ok { background: #6be0b5; }
.status--warn { background: #f2c14f; }
.status--error { background: #f26b6b; }

.mermaid-shell {
  background: #0b111d;
  border-radius: 14px;
  border: var(--border);
  padding: 18px;
  overflow-x: auto;
}

#skills-mermaid svg { width: 100%; height: auto; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #0d1524;
  border-radius: 14px;
  padding: 16px;
  border: var(--border);
  display: grid;
  gap: 8px;
}

.card h4 { margin: 0; font-size: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: var(--border);
  font-size: 13px;
  color: var(--muted);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(77, 127, 245, 0.6), rgba(61, 216, 192, 0.35));
}

.timeline__item {
  position: relative;
  padding-left: 18px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 0 6px rgba(76, 125, 245, 0.18);
}

.timeline__card {
  background: #0d1524;
  border-radius: 14px;
  padding: 14px 16px 16px;
  border: var(--border);
  box-shadow: var(--shadow);
}

.timeline__date {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline__title {
  margin: 6px 0 4px;
  font-size: 18px;
}

.timeline__meta {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.timeline__summary {
  margin: 0 0 10px;
  color: var(--text);
}

.footer {
  padding: 26px min(8vw, 120px) 40px;
  border-top: var(--border);
  background: #080b14;
  margin-top: 20px;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__links {
  display: flex;
  gap: 14px;
  align-items: center;
}

.muted { color: var(--muted); margin: 6px 0 0; }

.prose {
  display: grid;
  gap: 12px;
  color: var(--text);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 18px 0 6px;
  line-height: 1.2;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul { padding-left: 18px; margin: 0 0 12px; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-2); }

@media (max-width: 640px) {
  .hero { padding: 24px 20px 64px; }
  .page { padding: 0 20px 64px; }
  .panel { padding: 22px; }
  .hero__content { margin-top: 60px; }
  .nav { gap: 12px; }
}
