:root {
  color-scheme: dark;
  --bg: #07131a;
  --bg-soft: #0d1d26;
  --bg-card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5fbff;
  --text-soft: #d2dde5;
  --text-muted: #8ea3b1;
  --accent: #ff8a3d;
  --accent-soft: #ffb36d;
  --mint: #4fe3c1;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --max: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.2), transparent 32%),
    radial-gradient(circle at 82% 8%, rgba(79, 227, 193, 0.14), transparent 24%),
    linear-gradient(180deg, #07131a 0%, #081923 46%, #09141a 100%);
}

a {
  color: var(--accent-soft);
}

img {
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 19, 26, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5f5f 44%, #35d3d8 100%);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.topnav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
}

.hero {
  padding: 72px 0 32px;
}

.hero-card,
.content-card,
.cta-card,
.article-card,
.faq-card,
.table-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mint);
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  margin-top: 18px;
  max-width: 780px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.72;
}

.cta-row,
.meta-row,
.chip-row,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5f5f 50%, #28cfd4 100%);
  color: #fff;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.meta-row,
.chip-row,
.breadcrumb {
  margin-top: 22px;
}

.meta-item,
.chip,
.crumb {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 14px;
}

.chip {
  color: var(--text);
}

.crumb {
  text-decoration: none;
}

.section {
  padding: 24px 0;
}

.section-grid,
.card-grid,
.article-grid,
.faq-grid,
.toc-grid {
  display: grid;
  gap: 18px;
}

.section-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  align-items: start;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.cta-card,
.article-card,
.faq-card,
.table-card {
  padding: 28px;
}

.copy {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.78;
}

.copy p + p,
.copy ul + p,
.copy p + ul,
.copy ul + ul {
  margin-top: 14px;
}

.copy ul {
  margin: 0;
  padding-left: 18px;
}

.copy li + li {
  margin-top: 10px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat strong {
  font-size: 1.6rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: var(--text-soft);
}

.article-card h3,
.faq-card h3,
.content-card h3,
.cta-card h3,
.table-card h3 {
  margin-bottom: 12px;
}

.article-card p,
.faq-card p,
.content-card p,
.cta-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.footer {
  padding: 32px 0 60px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer a {
  color: var(--text-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.article-meta {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

.spacer {
  height: 8px;
}

@media (max-width: 980px) {
  .section-grid,
  .card-grid,
  .article-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-card,
  .content-card,
  .cta-card,
  .article-card,
  .faq-card,
  .table-card {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(var(--max), calc(100% - 20px));
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 36px;
  }

  .lead {
    font-size: 16px;
  }
}
