:root {
  --bg: #090b12;
  --bg-soft: #121626;
  --panel: #111523;
  --panel-2: #171d2d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6fb;
  --muted: #aeb7cb;
  --muted-strong: #c7d0e0;
  --pink: #d24db4;
  --cyan: #6ed0ff;
  --violet: #8f63ff;
  --silver: #d9dde7;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210, 77, 180, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(110, 208, 255, 0.16), transparent 28%),
    radial-gradient(circle at center, rgba(143, 99, 255, 0.10), transparent 32%),
    linear-gradient(180deg, #07090f 0%, #0b0f18 38%, #0d1220 100%);
  font: 16px/1.7 "Segoe UI", Inter, Arial, sans-serif;
}

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

a:hover { text-decoration: none; }

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 17, 0.84);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
}

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

.brand-logo {
  width: clamp(160px, 22vw, 250px);
  height: auto;
}

.brand-copy { display: none; }

.menu {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 600;
}

.menu a:hover { color: #fff; }

.menu .button-link {
  margin-left: 8px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.button-link,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.button-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(210, 77, 180, 0.96), rgba(143, 99, 255, 0.94) 55%, rgba(110, 208, 255, 0.92));
  box-shadow: 0 12px 28px rgba(143, 99, 255, 0.28);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

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

.button-link:hover {
  box-shadow: 0 16px 34px rgba(110, 208, 255, 0.18), 0 14px 30px rgba(210, 77, 180, 0.2);
}

.button-secondary:hover {
  border-color: rgba(110, 208, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

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

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p, ul, ol {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

p,
li {
  color: var(--muted);
}

.hero-copy p,
.page-intro,
.content-prose p {
  font-size: 17px;
}

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

.hero-visual,
.section-panel,
.topic-tile,
.article-card,
.content-prose,
.toc-card,
.cta-panel,
.metric-strip {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.hero-visual {
  border-radius: 20px;
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 77, 180, 0.28), transparent 68%);
  pointer-events: none;
}

.hero-visual::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 208, 255, 0.24), transparent 66%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 24px;
}

.hero-visual p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted-strong);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
}

.metric {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric:last-child { border-right: 0; }

.metric strong,
.metric span {
  display: block;
}

.metric strong {
  color: #fff;
  font-size: 22px;
  margin-bottom: 6px;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.section-band {
  padding: 26px 0;
}

.section-panel,
.cta-panel {
  border-radius: 20px;
  padding: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 680px;
}

.topics-grid,
.article-grid,
.insight-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.topic-tile,
.article-card {
  border-radius: 18px;
  padding: 22px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topic-tile:hover,
.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 208, 255, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024));
}

.topic-tile p,
.article-card p {
  margin-bottom: 0;
}

.tile-meta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-weight: 700;
}

.link-arrow::after {
  content: "->";
  color: var(--cyan);
}

.page-hero {
  padding: 56px 0 24px;
}

.page-hero-copy {
  max-width: 760px;
}

.page-kicker {
  color: var(--muted-strong);
  font-size: 18px;
  margin-bottom: 0;
}

.page-hero-aside {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.page-hero-aside p {
  color: var(--muted-strong);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-bottom: 46px;
}

.content-prose,
.toc-card {
  border-radius: 18px;
  padding: 28px;
}

.content-prose h2 {
  margin-top: 30px;
}

.content-prose h3 {
  margin-top: 20px;
}

.content-prose ul,
.content-prose ol {
  padding-left: 22px;
}

.content-prose li + li {
  margin-top: 8px;
}

.toc-card {
  position: sticky;
  top: 108px;
}

.toc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-card li + li {
  margin-top: 12px;
}

.toc-card a {
  color: var(--muted-strong);
  font-size: 15px;
}

.toc-card a:hover { color: #fff; }

.toc-card .button-link {
  width: 100%;
  margin-top: 22px;
}

.hero-actions .button-link,
.inline-actions .button-link,
.cta-panel .button-link,
.toc-card .button-link {
  min-height: 48px;
  padding: 0 20px;
}

.quote-line {
  margin: 26px 0;
  padding-left: 18px;
  border-left: 3px solid var(--pink);
  color: var(--muted-strong);
  font-size: 18px;
}

.callout {
  margin: 24px 0;
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-strong);
}

.cta-panel {
  margin: 24px 0 54px;
}

.cta-panel p {
  max-width: 780px;
}

.footer {
  padding: 18px 0 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-inner span,
.footer-inner a {
  color: var(--muted);
  font-size: 14px;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.simple-card {
  width: min(640px, 100%);
  padding: 34px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.inline-button {
  margin-top: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .page-hero-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 24px;
  }

  .toc-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .topics-grid,
  .article-grid,
  .insight-grid,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: center;
    padding: 12px 0;
  }

  .brand {
    flex-direction: row;
    align-items: center;
  }

  .brand-logo {
    width: min(210px, 58vw);
  }

  .menu {
    width: 100%;
    justify-content: space-between;
    gap: 10px 14px;
  }

  .hero,
  .page-hero {
    padding-top: 34px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    position: relative;
  }

  .topbar-inner {
    min-height: 72px;
  }

  .menu a:not(.button-link) {
    font-size: 13px;
  }

  .menu .button-link {
    width: 100%;
    order: -1;
    min-height: 44px;
    margin-left: 0;
    border-radius: 14px;
  }

  .section-panel,
  .cta-panel,
  .content-prose,
  .toc-card,
  .topic-tile,
  .article-card,
  .hero-visual {
    padding: 22px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 25px;
  }
}
