:root {
  color-scheme: dark;
  --bg: #070708;
  --panel: #141419;
  --text: #f7f7fb;
  --muted: #b2b2c0;
  --soft: #85859a;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffd84d;
  --purple: #8b5cf6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% 8%, rgba(139, 92, 246, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(255, 216, 77, 0.16), transparent 24rem),
    linear-gradient(180deg, #050506 0%, var(--bg) 42%, #0f0f13 100%);
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ff7a18);
  box-shadow: 0 0 24px rgba(255, 216, 77, 0.55);
}

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

.nav-links a {
  text-decoration: none;
}

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

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

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 880px;
  margin: 14px 0 20px;
  font-size: clamp(2.3rem, 8vw, 5.6rem);
  letter-spacing: -0.06em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 20px 0 56px;
}

.card,
.article-card,
.note,
.toc {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.card {
  min-height: 260px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.card:hover {
  border-color: rgba(255, 216, 77, 0.5);
  transform: translateY(-2px);
}

.card h2 {
  margin: 12px 0;
  font-size: 1.55rem;
}

.card p,
.article-card p,
.note p,
li,
footer {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 216, 77, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  padding: 32px 0 64px;
}

.article-card {
  padding: clamp(24px, 5vw, 52px);
}

.article-card h1 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}

.article-card h2 {
  margin-top: 36px;
  font-size: 1.65rem;
}

.article-card p {
  font-size: 1.04rem;
}

.article-card ul {
  padding-left: 22px;
}

.toc {
  position: sticky;
  top: 92px;
  height: fit-content;
  padding: 20px;
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
}

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

.note {
  margin-top: 32px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 216, 77, 0.12), rgba(139, 92, 246, 0.08));
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--gold);
  color: #0b0b0c;
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 48px;
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .topbar-inner,
  .nav-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 48px;
  }

  .grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    order: -1;
  }
}
