:root {
  --bg: #050809;
  --surface: #0a1112;
  --surface-raised: #0d1919;
  --line: rgba(54, 222, 204, 0.25);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #edf5f4;
  --muted: #a6b9b7;
  --quiet: #6f8582;
  --aqua: #1fd8c4;
  --aqua-bright: #8ff7eb;
  --amber: #e0a84f;
  --red: #f07d76;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.58;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #050809;
}

a { color: var(--aqua-bright); }

.guide-shell {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0 72px;
}

.guide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  margin-bottom: 28px;
  color: var(--muted);
  font: 12px/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-nav a { text-decoration: none; }
.guide-nav__links { display: flex; gap: 16px; flex-wrap: wrap; }

.hero {
  display: grid;
  grid-template-columns: minmax(116px, 190px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071010;
}

.hero__mark {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  object-fit: contain;
  justify-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--aqua);
  font: 12px/1.2 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 16px; font-size: clamp(40px, 6vw, 72px); line-height: 0.98; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.03; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 18px; line-height: 1.2; }

.lead { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 7px 10px; color: var(--aqua); background: rgba(31, 216, 196, 0.06); font: 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 38px; }

.toc { position: sticky; top: 20px; padding-right: 18px; border-right: 1px solid var(--line-soft); }
.toc strong { display: block; margin-bottom: 12px; color: var(--aqua); font: 11px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--aqua-bright); }

.content { min-width: 0; }
.section { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.section:last-child { border-bottom: 0; }
.section p, .section li { color: var(--muted); }
.section ul, .section ol { padding-left: 20px; }
.section li + li { margin-top: 7px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.item { min-width: 0; padding: 18px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.item p:last-child { margin-bottom: 0; }

.step-list { display: grid; gap: 10px; margin-top: 18px; }
.step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.step:last-child { border-bottom: 0; }
.step__number { color: var(--aqua); font: 13px/1.4 var(--mono); }
.step strong { display: block; color: var(--text); }
.step p { margin: 3px 0 0; }

.signal-path { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.signal-path span { display: flex; align-items: center; padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; color: var(--aqua-bright); background: rgba(31, 216, 196, 0.05); font: 12px/1.3 var(--mono); }
.signal-path b { display: flex; align-items: center; color: var(--quiet); font-weight: 400; }

.callout { margin-top: 20px; padding: 14px 16px; border-left: 3px solid var(--aqua); color: var(--muted); background: rgba(31, 216, 196, 0.06); }
.callout--warning { border-left-color: var(--amber); background: rgba(224, 168, 79, 0.08); }
.callout--danger { border-left-color: var(--red); background: rgba(240, 125, 118, 0.08); }
.callout strong { color: var(--text); }

table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 10px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line-soft); }
th { color: var(--aqua); font: 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
td { color: var(--muted); }
td strong { color: var(--text); }

.checklist { display: grid; gap: 8px; margin-top: 18px; }
.checklist div { padding: 10px 12px; border-left: 2px solid var(--aqua); background: var(--surface); color: var(--muted); }
.checklist b { color: var(--text); }

.guide-footer { padding-top: 26px; color: var(--quiet); font: 12px/1.55 var(--mono); }

@media (max-width: 820px) {
  .guide-shell { width: min(100% - 24px, 720px); padding-top: 14px; }
  .hero { grid-template-columns: 94px minmax(0, 1fr); gap: 20px; }
  .guide-layout { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; padding: 0 0 18px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .toc a { display: inline-block; margin-right: 13px; }
  .grid, .grid--three { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .guide-nav { align-items: flex-start; flex-direction: column; gap: 9px; }
  .hero { grid-template-columns: 1fr; }
  .hero__mark { max-width: 132px; justify-self: start; }
  h1 { font-size: 42px; }
  .signal-path b { width: 100%; justify-content: center; transform: rotate(90deg); height: 12px; }
}
