:root {
  color-scheme: dark;
  --bg: #06131f;
  --bg-accent: #0c2235;
  --surface: rgba(10, 26, 40, 0.84);
  --surface-strong: rgba(10, 26, 40, 0.94);
  --surface-soft: rgba(255, 255, 255, 0.06);
  --border: rgba(160, 218, 255, 0.18);
  --border-strong: rgba(160, 218, 255, 0.3);
  --text: #eef8ff;
  --muted: #a8c4d8;
  --brand: #7ce0ff;
  --brand-strong: #9ee8ff;
  --success: #91f0cb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
  --font-display: "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(96, 197, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(131, 255, 211, 0.12), transparent 24%),
    linear-gradient(180deg, #071521 0%, #081824 48%, #05111c 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.58;
}

body::before {
  top: 90px;
  right: 6vw;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 224, 255, 0.3), transparent 72%);
}

body::after {
  bottom: 40px;
  left: 5vw;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(145, 240, 203, 0.18), transparent 74%);
}

a {
  color: var(--brand-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(7, 21, 33, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: var(--brand);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

.brand-copy h1 {
  margin: 0;
  font: 700 1.3rem/1 var(--font-display);
  letter-spacing: -0.03em;
}

.brand-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.brand-tm {
  position: relative;
  top: -0.45em;
  margin-left: 2px;
  font-size: 0.46em;
  letter-spacing: 0.08em;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chip-link,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.cta-link {
  color: #04111b;
  background: linear-gradient(135deg, var(--brand), var(--success));
  font-weight: 700;
}

.chip-link:hover,
.cta-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(7, 21, 33, 0.78);
  backdrop-filter: blur(26px) saturate(155%);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(124, 224, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 224, 255, 0.12);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h2 {
  margin: 18px 0 14px;
  max-width: 920px;
  font: 700 clamp(2rem, 5vw, 3.8rem)/1.02 var(--font-display);
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.hero-stat {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.hero-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.hero-stat span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
}

.toc,
.content-panel,
.footer-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: var(--shadow);
}

.toc {
  position: sticky;
  top: 20px;
  align-self: start;
  padding: 22px;
}

.toc h3,
.content-panel h3 {
  margin: 0 0 14px;
  font: 700 1rem/1.1 var(--font-display);
  letter-spacing: -0.03em;
}

.toc a {
  display: block;
  padding: 10px 0;
  color: var(--muted);
}

.toc a:hover {
  color: var(--text);
}

.content-panel {
  padding: 30px;
}

.content-panel section + section {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.content-panel h4 {
  margin: 0 0 14px;
  font: 700 1.42rem/1.2 var(--font-display);
  letter-spacing: -0.04em;
}

.content-panel p,
.content-panel li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.content-panel ul,
.content-panel ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.notice {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(124, 224, 255, 0.1);
  border: 1px solid rgba(124, 224, 255, 0.18);
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

.meta-card {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.meta-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 0.93rem;
}

.meta-card span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.93rem;
}

.footer-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding: 22px 24px;
}

.footer-copy {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .hero-grid,
  .meta-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 18px;
  }

  .topbar,
  .hero,
  .content-panel,
  .footer-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}
