:root {
  --bg: #071008;
  --bg2: #101a10;
  --panel: rgba(10, 18, 10, 0.86);
  --panel-strong: rgba(18, 28, 16, 0.96);
  --ink: #f4f0de;
  --muted: #c9bfa8;
  --green: #72ff59;
  --green-soft: rgba(114, 255, 89, 0.12);
  --gold: #f2c457;
  --line: rgba(244, 240, 222, 0.12);
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.65;
  background:
    radial-gradient(circle at top left, rgba(114, 255, 89, 0.18), transparent 22rem),
    radial-gradient(circle at top right, rgba(242, 196, 87, 0.14), transparent 20rem),
    linear-gradient(180deg, #050704 0%, var(--bg) 45%, #111811 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(244, 240, 222, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 222, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: var(--green);
}

img {
  max-width: 100%;
}

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

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

.topbar-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(114, 255, 89, 0.22);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(114, 255, 89, 0.26);
  background: rgba(114, 255, 89, 0.08);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.05em;
}

h1 {
  margin-top: 20px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-panel,
.card,
.article-shell,
.faq,
.note,
.newsletter,
.toc {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 24px 60px var(--shadow);
}

.hero-panel {
  padding: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}

.stat strong {
  display: block;
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 28px 0 72px;
}

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

.section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card {
  padding: 24px;
}

.card h3 {
  font-size: 22px;
  color: var(--green);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(242, 196, 87, 0.12);
  color: var(--gold);
  border: 1px solid rgba(242, 196, 87, 0.18);
}

.card p,
.card li,
.article-shell p,
.article-shell li,
.faq p,
.note p,
.newsletter p,
.toc li {
  color: var(--muted);
}

.card a.more {
  display: inline-flex;
  margin-top: 18px;
  text-decoration: none;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 18px;
}

.mini-list,
.highlights,
.article-list,
.faq-list {
  display: grid;
  gap: 14px;
}

.mini-item,
.highlight,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.highlight strong,
.mini-item strong,
.faq-item strong {
  color: var(--ink);
}

.article-main {
  padding: 42px 0 80px;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(280px, 0.24fr);
  gap: 18px;
  align-items: start;
}

.article-shell {
  padding: 34px;
}

.article-shell h1 {
  font-size: clamp(38px, 5vw, 70px);
}

.article-shell h2 {
  margin-top: 34px;
  font-size: clamp(28px, 3vw, 42px);
}

.article-shell h3 {
  margin-top: 24px;
  font-size: 22px;
  color: var(--green);
}

.article-shell ul,
.article-shell ol,
.card ul,
.toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-shell blockquote,
.note {
  margin: 28px 0;
  padding: 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 22px 22px 0;
  background: rgba(114, 255, 89, 0.08);
}

.toc,
.newsletter,
.faq {
  padding: 24px;
}

.toc {
  position: sticky;
  top: 88px;
}

.toc h3,
.newsletter h3,
.faq h2 {
  color: var(--green);
}

.toc a {
  text-decoration: none;
}

.article-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.summary-box {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.summary-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--green);
  background: var(--green);
  color: #081007;
  font-weight: 900;
  text-decoration: none;
}

.btn.secondary {
  background: transparent;
  color: var(--green);
}

.footer {
  padding: 32px 0 64px;
  color: var(--muted);
  text-align: center;
}

.product-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(114, 255, 89, 0.26);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(114, 255, 89, 0.14), rgba(242, 196, 87, 0.08)),
    var(--panel-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.product-cta h2 {
  margin-top: 8px;
}

.product-cta p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.small {
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero-grid,
  .cards,
  .cards.two,
  .split,
  .article-grid,
  .article-summary {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

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

  .hero {
    padding-top: 42px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .article-shell,
  .card,
  .toc,
  .newsletter,
  .faq,
  .hero-panel,
  .product-cta {
    padding: 20px;
  }

  .product-cta {
    grid-template-columns: 1fr;
  }
}
