:root {
  --bg: #000;
  --ink: #f2f7f9;
  --muted: #8a979d;
  --line: rgba(64, 224, 255, 0.18);
  --cyan: #40e0ff;
  --cyan-soft: rgba(64, 224, 255, 0.12);
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--ink); }

body {
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: 0.18em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.site-header nav a { color: var(--muted); margin-left: 24px; font-size: 15px; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,0,0,0.75), rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-top: 72px; }
.eyebrow { color: var(--cyan); letter-spacing: 0.3em; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(44px, 8vw, 92px); line-height: 1.02; margin: 14px 0 22px; font-weight: 800; letter-spacing: -0.02em;
  max-width: 11ch;
}
.hero p.lede { font-size: clamp(18px, 2.2vw, 22px); color: #c9d4d8; max-width: 34ch; margin: 0 0 32px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px;
  border: 1px solid rgba(64, 224, 255, 0.45); background: rgba(0, 0, 0, 0.55); color: var(--ink); font-weight: 600;
  box-shadow: 0 0 32px rgba(64, 224, 255, 0.18);
}
.badge img { width: 34px; height: 34px; border-radius: 8px; }
.badge small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.01em; }
section p.intro { color: var(--muted); max-width: 52ch; margin: 0 0 48px; font-size: 19px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: linear-gradient(180deg, var(--cyan-soft), rgba(0,0,0,0));
}
.card .num { color: var(--cyan); font-weight: 700; letter-spacing: 0.2em; font-size: 13px; }
.card h3 { margin: 10px 0 8px; font-size: 21px; }
.card p { margin: 0; color: #b7c3c8; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 14px 0; border-top: 1px solid var(--line); color: #c9d4d8; }
.list li strong { color: var(--ink); }
.more { margin-top: 24px; }
.glow-panel {
  aspect-ratio: 1 / 1; border-radius: 28px; border: 1px solid var(--line); overflow: hidden; position: relative;
  background: #000;
}
.glow-panel canvas { width: 100%; height: 100%; display: block; }

/* Long-form pages */
.page { padding: 140px 0 96px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 40px; }
.page h2 { font-size: 24px; margin: 44px 0 10px; }
.page h3 { font-size: 19px; margin: 28px 0 6px; }
.page p, .page li { color: #c9d4d8; }
.page .summary {
  border: 1px solid rgba(64, 224, 255, 0.4); border-radius: 16px; padding: 20px 24px; background: var(--cyan-soft); color: var(--ink);
}
.page table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.page th, .page td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.page th { color: var(--ink); }
details { border-top: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
details p { margin: 10px 0 0; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); margin-left: 20px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 520px) {
  .site-header nav .wide-only { display: none; }
}

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .site-header nav a { margin-left: 16px; }
  section { padding: 72px 0; }
}
