@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg: #090b0f;
  --bg-soft: #10141b;
  --panel: rgba(16, 20, 27, 0.88);
  --panel-strong: #111823;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f6fb;
  --muted: #a6b3c7;
  --muted-strong: #b7c7da;
  --soft: #d5ddeb;
  --blue: #4285f4;
  --cyan: #00d4ff;
  --gold: #f8cf73;
  --blue-soft: rgba(66, 133, 244, 0.14);
  --cyan-soft: rgba(0, 212, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1200px;
  --content: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(66, 133, 244, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 212, 255, 0.12), transparent 25%),
    linear-gradient(180deg, #080a0f 0%, #0a0d13 100%);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #d7f7ff;
  color: #08111f;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 160ms ease;
  z-index: 200;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 11, 15, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-copy strong,
.hero h1,
.section h2,
.card h3,
.table-title,
.eyebrow,
.article-hero h1,
.footer-title {
  font-family: 'Space Grotesk', sans-serif;
}

.brand-copy strong {
  display: block;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand-copy span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  width: 100%;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.guide-card:hover,
.card:hover {
  transform: translateY(-2px);
}

.button {
  background: linear-gradient(135deg, var(--blue), #5ea2ff);
  color: white;
  box-shadow: 0 16px 40px rgba(66, 133, 244, 0.22);
}

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

.button-ghost {
  border-color: rgba(0, 212, 255, 0.3);
  color: #9defff;
  background: rgba(0, 212, 255, 0.04);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.hero,
.article-hero {
  padding: 84px 0 48px;
}

.hero-panel,
.article-panel {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(16, 20, 27, 0.95), rgba(11, 16, 24, 0.88)),
    linear-gradient(135deg, rgba(66, 133, 244, 0.14), rgba(0, 212, 255, 0.08));
  box-shadow: var(--shadow);
}

.hero-panel::before,
.article-panel::before {
  content: '';
  position: absolute;
  inset: auto -10% -35% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 62%);
  pointer-events: none;
}

.hero-grid,
.article-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  padding: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #bfefff;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1,
.article-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p,
.article-hero p {
  margin: 0;
  max-width: 48rem;
  color: var(--soft);
  font-size: 1.12rem;
}

.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.meta-list,
.article-facts {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.meta-row,
.fact-card,
.card,
.guide-card,
.quote-card,
.table-wrap {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  color: var(--muted);
}

.meta-row strong,
.fact-card strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
}

.fact-card {
  padding: 22px;
}

.fact-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 24px 0 0;
}

.section-block {
  padding: 32px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.04em;
}

.section-intro {
  margin: 0 0 26px;
  max-width: 48rem;
  color: var(--muted);
}

.grid-2,
.grid-3,
.guide-grid,
.read-next-grid,
.stat-grid {
  display: grid;
  gap: 20px;
}

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

.grid-3,
.guide-grid,
.read-next-grid,
.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.guide-card,
.quote-card {
  padding: 24px;
}

.card h3,
.guide-card h3,
.quote-card h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.card p,
.guide-card p,
.quote-card p,
.article-body p,
.article-body li {
  color: var(--soft);
}

.guide-card .kicker,
.mini-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: #b8d3ff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-card .link-row,
.read-next-card .link-row {
  color: #9defff;
  font-weight: 600;
}

.split-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.list-clean {
  margin: 0;
  padding-left: 18px;
}

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

.table-wrap {
  overflow: hidden;
}

.table-title {
  padding: 22px 24px 0;
  font-size: 1.24rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 24px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

th {
  color: #b8d3ff;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.callout {
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(66, 133, 244, 0.05));
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #b8d3ff;
}

.article-body {
  padding: 0 0 56px;
}

.article-body section + section {
  margin-top: 28px;
}

.read-next-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.read-next-card h3 {
  margin: 10px 0 10px;
  font-size: 1.2rem;
}

.cta-band {
  padding: 30px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.16), rgba(0, 212, 255, 0.07));
}

.footer {
  margin-top: 56px;
  padding: 34px 0 54px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions .button-secondary {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-grid,
  .article-grid,
  .split-band,
  .grid-2,
  .grid-3,
  .guide-grid,
  .read-next-grid,
  .stat-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .article-grid {
    padding: 32px 24px;
  }
}

@media (max-width: 720px) {
  .hero,
  .article-hero {
    padding-top: 56px;
  }

  .container {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero h1,
  .article-hero h1 {
    font-size: 2.35rem;
  }

  th,
  td {
    padding: 14px 16px;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}

/* Homepage-aligned shared chrome */

.shell {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 17, 31, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(86, 166, 255, 0.22), rgba(111, 242, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
}

.brand-copy strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.02;
  font-size: 1.04rem;
}

.brand-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
  border-color: rgba(145, 197, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.button-inline,
.copy-button {
  background: rgba(86, 166, 255, 0.08);
  color: var(--text);
  border-color: rgba(145, 197, 255, 0.24);
}

.footer {
  padding: 38px 0 56px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer strong {
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: -0.03em;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

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

.muted {
  color: var(--muted);
}

.highlight {
  color: var(--cyan);
}

@media (max-width: 1120px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .header-row {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header.open .header-nav {
    display: grid;
    padding-bottom: 14px;
  }

  .header-nav a {
    min-height: 44px;
  }
}

@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .header-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-copy span {
    display: none;
  }

  .header-nav {
    grid-template-columns: 1fr;
  }
}
