:root {
  --obsidian: #07090B;
  --surface: #111720;
  --gold: #C8A85A;
  --gold-soft: #E0C58A;
  --ivory: #F2EADB;
  --muted: #A8A197;
  --ice: #8FE7FF;
  --border: rgba(242, 234, 219, 0.12);
  --section: min(1080px, calc(100% - 40px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--obsidian);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 0%, rgba(200, 168, 90, 0.10), transparent 30rem),
    radial-gradient(circle at 12% 28%, rgba(143, 231, 255, 0.055), transparent 26rem),
    var(--obsidian);
  color: var(--ivory);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.nav {
  width: var(--section);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(242, 234, 219, 0.64);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero,
.section,
.footer {
  width: var(--section);
  margin: 0 auto;
}

.hero {
  padding: clamp(46px, 9vw, 110px) 0 clamp(38px, 7vw, 84px);
}

.guide-hero {
  padding-top: clamp(28px, 6vw, 72px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  color: rgba(242, 234, 219, 0.48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: rgba(242, 234, 219, 0.72);
  text-decoration: none;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.lede {
  max-width: 760px;
  color: rgba(242, 234, 219, 0.74);
  font-size: 19px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(200, 168, 90, 0.56);
  border-radius: 8px;
  padding: 13px 18px;
  background: rgba(200, 168, 90, 0.12);
  color: var(--ivory);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  background: linear-gradient(180deg, #F2D890, var(--gold));
  color: #07090B;
}

.section {
  padding: clamp(38px, 7vw, 78px) 0;
  border-top: 1px solid var(--border);
}

.article-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.76);
  padding: 18px;
}

.toc strong {
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc a {
  color: rgba(242, 234, 219, 0.68);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.article-body {
  min-width: 0;
}

.article-section {
  padding: 0 0 clamp(38px, 7vw, 76px);
}

.article-section + .article-section {
  border-top: 1px solid var(--border);
  padding-top: clamp(38px, 7vw, 76px);
}

.article-section > p:not(.kicker),
.article-section > .callout p {
  max-width: 780px;
  color: rgba(242, 234, 219, 0.70);
  font-size: 17px;
}

.callout {
  max-width: 780px;
  margin: 26px 0 0;
  border: 1px solid rgba(200, 168, 90, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(200, 168, 90, 0.14), rgba(143, 231, 255, 0.045));
  padding: 20px;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-soft);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout p {
  margin-bottom: 0;
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.72);
  padding: 20px;
}

.card strong {
  display: block;
  color: var(--ivory);
  font-size: 18px;
  line-height: 1.25;
}

.card p,
.card li {
  color: rgba(242, 234, 219, 0.64);
  font-size: 14px;
}

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

.compact-grid {
  margin-top: 24px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: rgba(17, 23, 32, 0.64);
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--border);
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--gold-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-table td {
  color: rgba(242, 234, 219, 0.68);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.comparison-table td,
.comparison-table th {
  vertical-align: middle;
}

.comparison-table .feature-name {
  color: var(--gold-soft);
  font-weight: 800;
}

.comparison-table .cell-win {
  background: rgba(79, 125, 87, 0.16);
  box-shadow: inset 0 0 0 1px rgba(79, 125, 87, 0.34);
  color: var(--ivory);
  font-weight: 700;
}

.comparison-table .cell-loss {
  background: rgba(229, 57, 53, 0.12);
  box-shadow: inset 0 0 0 1px rgba(229, 57, 53, 0.24);
  color: var(--ivory);
}

.fit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fit-badge.primary {
  background: rgba(79, 125, 87, 0.18);
  border: 1px solid rgba(79, 125, 87, 0.36);
  color: #BCE7C1;
}

.fit-badge.secondary {
  background: rgba(229, 57, 53, 0.16);
  border: 1px solid rgba(229, 57, 53, 0.32);
  color: #FFB0AA;
}

.step-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.step-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.68);
  padding: 18px;
}

.step-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(200, 168, 90, 0.42);
  border-radius: 8px;
  color: var(--gold-soft);
  font-weight: 900;
}

.step-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ivory);
  font-size: 18px;
  line-height: 1.25;
}

.step-list p {
  grid-column: 2;
  margin: 0;
  color: rgba(242, 234, 219, 0.66);
  font-size: 14px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--border);
}

.metric-band div {
  min-height: 170px;
  background: rgba(17, 23, 32, 0.78);
  padding: 20px;
}

.metric-band small,
.link-grid small {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-band strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ivory);
  font-size: 24px;
  line-height: 1.1;
}

.metric-band span {
  color: rgba(242, 234, 219, 0.62);
  font-size: 14px;
}

.screenshot-proof {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin: 28px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.62);
  padding: 18px;
}

.screenshot-proof img {
  width: 100%;
  max-height: 420px;
  border: 1px solid rgba(242, 234, 219, 0.10);
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
}

.screenshot-proof figcaption {
  color: rgba(242, 234, 219, 0.70);
  font-size: 16px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  align-items: start;
}

.screenshot-card {
  align-self: start;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.68);
  padding: 12px;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(242, 234, 219, 0.10);
  border-radius: 8px;
  background: #07090B;
}

.screenshot-card figcaption {
  display: grid;
  gap: 6px;
  padding: 14px 2px 2px;
}

.screenshot-card strong {
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.2;
}

.screenshot-card span {
  color: rgba(242, 234, 219, 0.62);
  font-size: 13px;
}

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

.link-grid a {
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 23, 32, 0.70);
  padding: 20px;
  text-decoration: none;
}

.link-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ivory);
  font-size: 20px;
  line-height: 1.15;
}

.link-grid span {
  color: rgba(242, 234, 219, 0.64);
  font-size: 14px;
}

.tool {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 22px;
  align-items: stretch;
}

.calculator {
  display: grid;
  gap: 12px;
}

.calculator label {
  display: grid;
  gap: 6px;
  color: rgba(242, 234, 219, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.calculator input,
.calculator select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #07090B;
  color: var(--ivory);
  padding: 10px 12px;
  font: inherit;
}

.result {
  border-color: rgba(200, 168, 90, 0.36);
  background: rgba(200, 168, 90, 0.08);
}

.result strong {
  color: var(--gold-soft);
  font-size: 32px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
  color: rgba(242, 234, 219, 0.54);
  font-size: 12px;
}

@media (max-width: 760px) {
  .nav,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid,
  .tool,
  .article-shell,
  .metric-band,
  .screenshot-grid,
  .screenshot-proof,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .step-list article {
    grid-template-columns: 1fr;
  }

  .step-list p {
    grid-column: auto;
  }
}
