:root {
  color-scheme: dark;
  --bg: #05070d;
  --panel: rgba(12, 18, 31, 0.86);
  --panel-strong: rgba(17, 27, 46, 0.96);
  --line: rgba(130, 172, 255, 0.18);
  --line-strong: rgba(113, 211, 255, 0.38);
  --text: #eef6ff;
  --muted: #a9b9cf;
  --soft: #d7e7fb;
  --accent: #6be4ff;
  --accent-2: #9b8cff;
  --success: #64f0b8;
  --warn: #ffd36b;
  --danger: #ff8b8b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-small: 16px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 4%, rgba(107, 228, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 84% 0%, rgba(155, 140, 255, 0.18), transparent 28rem),
    linear-gradient(135deg, #05070d 0%, #08111e 54%, #03050a 100%);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 228, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 228, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

a { color: inherit; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--accent);
  color: #021019;
  padding: .8rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  background: rgba(4, 8, 15, 0.78);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: .9rem 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: max-content;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(107,228,255,.28), rgba(155,140,255,.24));
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 24px rgba(107,228,255,.22);
}
.brand span:last-child { color: var(--soft); }
.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 12px;
  padding: .65rem .8rem;
  font-weight: 800;
}
.primary-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.primary-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .55rem .62rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 720;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(107, 228, 255, 0.10);
}

.hero,
.page-hero,
.content-wrap,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.hero {
  padding-top: clamp(3.4rem, 9vw, 7rem);
  padding-bottom: 2.6rem;
}
.eyebrow,
.status {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .35rem .7rem;
  color: var(--accent);
  background: rgba(107, 228, 255, 0.08);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.status.live { color: var(--success); background: rgba(100,240,184,.08); }
.status.soon { color: var(--warn); background: rgba(255,211,107,.08); }
.status.planned { color: var(--accent); }
.status.public { color: #d5ccff; background: rgba(155,140,255,.08); }
.hero h1,
.page-hero h1 {
  margin: .9rem 0 1rem;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.07em;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 880px; }
.lede {
  max-width: 850px;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  margin: 0;
}
.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.4rem;
}
.button,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .82rem 1rem;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 850;
  box-shadow: 0 0 28px rgba(107,228,255,.10);
}
.button.primary {
  color: #021019;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), #c8fbff);
}
.button:hover,
.card-link:hover { transform: translateY(-1px); }
.search-shell {
  margin-top: 1.4rem;
  max-width: 680px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .85rem;
}
.search-shell input {
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font: inherit;
}
.search-shell input::placeholder { color: #7f91aa; }
.search-results {
  max-width: 680px;
  margin-top: .75rem;
  display: grid;
  gap: .55rem;
}
.search-result {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .8rem .9rem;
  background: rgba(7, 12, 22, 0.92);
}
.search-result strong { display: block; }
.search-result span { color: var(--muted); font-size: .92rem; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}
.section-head h2,
.article h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -.04em;
}
.section-head p { margin: .35rem 0 0; color: var(--muted); max-width: 720px; }
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.card {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 1.15rem;
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% 40%;
  height: 140px;
  background: radial-gradient(circle, rgba(107,228,255,.14), transparent 70%);
  pointer-events: none;
}
.card h3 { margin: .75rem 0 .45rem; font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0 0 .9rem; }
.card ul,
.article ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--soft); }
.card li + li,
.article li + li { margin-top: .35rem; }
.card-link { padding: .62rem .8rem; font-size: .9rem; }
.two-col .card { grid-column: span 6; }
.full .card { grid-column: span 12; }

.page-hero { padding-top: 3.3rem; padding-bottom: 1rem; }
.breadcrumbs { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--soft); text-decoration: none; }
.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.2rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
}
.article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 3vw, 2rem);
}
.article h2 { margin-top: 2rem; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.3rem; }
.article p { color: var(--soft); }
.article .callout {
  border: 1px solid var(--line-strong);
  background: rgba(107, 228, 255, 0.08);
  border-radius: 18px;
  padding: 1rem;
  margin: 1.2rem 0;
}
.side-panel {
  position: sticky;
  top: 88px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(9, 15, 26, .9);
  padding: 1rem;
}
.side-panel h2,
.side-panel h3 { margin: 0 0 .65rem; font-size: 1rem; }
.side-panel a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: .5rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.side-panel a:hover { color: var(--text); }
.meta-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.2rem;
}
.meta-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: .85rem;
  background: rgba(255,255,255,.04);
}
.meta-box strong { display:block; }
.meta-box span { color: var(--muted); font-size: .9rem; }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 10, .78);
}
.footer-inner {
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer a { color: var(--soft); text-decoration: none; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    padding: .8rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(5, 9, 17, .98);
    box-shadow: var(--shadow);
    justify-content: start;
  }
  .primary-nav[data-open="true"] { display: flex; }
  .primary-nav a { width: 100%; border-radius: 12px; }
  .card,
  .two-col .card { grid-column: span 12; }
  .content-wrap { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .meta-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover,
  .card-link:hover { transform: none; }
}

.callout a { color: var(--accent); font-weight: 850; }
