/* ---------- Design tokens ---------- */
:root {
  --bg: #0a1225;
  --bg-elev: #101a34;
  --text: #e8ecf5;
  --text-muted: #9aa8c7;
  --accent: #5ec8ff;
  --accent-warm: #f0a05a;
  --hairline: rgba(94, 200, 255, 0.18);
  --hairline-strong: rgba(94, 200, 255, 0.4);
  --max-content: 780px;
  --max-wide: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--accent); }

h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 {
  font-size: 1.5rem;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--hairline);
}
h3 { font-size: 1.2rem; color: var(--accent); }

p, li { color: var(--text); }
strong { color: #fff; font-weight: 600; }
em { color: var(--text-muted); }

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.9em;
  background: var(--bg-elev);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1em;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 3em 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero__image {
  position: absolute;
  inset: 0;
  background: url('../banner.png') center/cover no-repeat;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 37, 0.35) 0%, rgba(10, 18, 37, 0.55) 55%, var(--bg) 100%);
  z-index: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-wide);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 2rem;
}
.nav__brand {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  border-bottom: none;
}
.nav__brand:hover { color: var(--accent); }
.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
}
.nav__links a {
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: none;
}
.nav__links a:hover { color: var(--accent); }

/* ---------- Hero content ---------- */
.hero__content {
  position: relative;
  z-index: 2;
  margin: auto 0 3.5rem;
  padding: 0 2rem;
  max-width: var(--max-wide);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.hero__eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 0.8rem;
  font-weight: 500;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin: 0 0 2rem;
  font-weight: 300;
}

/* ---------- Buttons ---------- */
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: none;
  transition: all 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: #7fd4ff;
  color: var(--bg);
  border-bottom: none;
}
.btn--ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Content ---------- */
.content {
  max-width: var(--max-content);
  margin: 4rem auto;
  padding: 0 2rem;
}
.content > h1:first-child { margin-top: 0; }

/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
th, td {
  padding: 0.7em 0.9em;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}
th {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Lists ---------- */
ol, ul { padding-left: 1.4em; }
li { margin: 0.4em 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: 5rem;
  padding: 2.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav { flex-direction: column; gap: 1rem; padding: 1rem; }
  .nav__links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .hero__content { padding: 0 1.2rem; margin-bottom: 2.5rem; }
  .content { padding: 0 1.2rem; margin: 2.5rem auto; }
  .footer__inner { flex-direction: column; text-align: center; }
}
