:root {
  --bg: #0b0d12;
  --surface: #151923;
  --text: #e8eaf0;
  --muted: #9aa3b5;
  --accent: #6c8cff;
  --border: #252b3a;
}
:root[data-theme="light"] {
  --bg: #fafbfd;
  --surface: #ffffff;
  --text: #14171f;
  --muted: #5b6475;
  --accent: #3a5bff;
  --border: #e2e6ee;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; text-decoration: none; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 800; letter-spacing: .05em; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); font-size: .95rem; }
.nav nav a:hover { color: var(--text); }
#theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}

section { max-width: 1000px; margin: 0 auto; padding: 80px 24px; }
h2 { font-size: 1.8rem; margin-bottom: 32px; }

.hero { padding-top: 120px; padding-bottom: 100px; }
.eyebrow { color: var(--accent); font-weight: 600; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1.05; margin: 8px 0 20px;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 560px; color: var(--muted); font-size: 1.2rem; }
.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  border: 1px solid var(--border); font-weight: 600; transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.stat .num, .stat .plus { font-size: 2.6rem; font-weight: 800; color: var(--accent); }
.stat p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.thumb {
  height: 140px; border-radius: 10px; display: grid; place-items: center;
  font-size: 2.4rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #b06cff);
}
.card p { color: var(--muted); flex: 1; }
.tags { list-style: none; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { font-size: .8rem; padding: 2px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); }
.link { color: var(--accent); font-weight: 600; }

.timeline { list-style: none; padding: 0 0 0 24px; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
}
.date { color: var(--accent); font-size: .85rem; font-weight: 600; }
.timeline p { color: var(--muted); }

.contact { text-align: center; }
.contact > p { color: var(--muted); margin-bottom: 20px; }
.social { margin-top: 20px; }
.social a:hover { color: var(--accent); }

footer { text-align: center; padding: 32px; color: var(--muted); border-top: 1px solid var(--border); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .nav nav { gap: 14px; }
  .nav nav a { font-size: .85rem; }
}
