:root {
  --bg: #080912;
  --panel: #111624;
  --panel-2: #171d2d;
  --line: #2a3448;
  --text: #edf3fb;
  --muted: #a9b5c6;
  --gold: #f5d06f;
  --green: #3ee083;
  --red: #ff5a5f;
  --blue: #79c7ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(62, 224, 131, 0.12), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

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

.guide-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 18px 70px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 800;
  margin: 8px 0 20px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  min-height: 360px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0;
  font-weight: 900;
  margin: 0 0 10px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 5vw, 4.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 42px 0 14px;
  color: var(--gold);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

h3 {
  margin: 26px 0 10px;
  color: #baf7cf;
  font-size: 1.08rem;
}

p, li {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.lead {
  color: #dce8f7;
  font-size: 1.16rem;
  max-width: 760px;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101522;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  display: block;
}

.hero-media.logo-panel {
  display: grid;
  place-items: center;
  padding: 34px;
}

.hero-media.logo-panel img {
  width: min(82%, 360px);
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.media-caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  background: rgba(6, 8, 14, 0.78);
  border: 1px solid rgba(245, 208, 111, 0.35);
  border-radius: 8px;
  color: #f8e4ac;
  font-size: 0.88rem;
}

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

.guide-card, .callout, .toolbox {
  background: rgba(17, 22, 36, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.guide-card h3, .toolbox h3 {
  margin-top: 0;
}

.stat {
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 900;
  display: block;
  margin-bottom: 4px;
}

.content-image {
  margin: 28px 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.content-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.content-image figcaption {
  padding: 12px 14px;
  color: #c7d4e4;
  font-size: 0.92rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0 26px;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #0f1421;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  background: #151c2b;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.step {
  counter-increment: step;
  position: relative;
  padding: 16px 16px 16px 58px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #05100a;
  border-radius: 50%;
  font-weight: 900;
}

.strategy-link {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(62, 224, 131, 0.14), rgba(245, 208, 111, 0.12));
  border: 1px solid rgba(245, 208, 111, 0.35);
  border-radius: 8px;
  padding: 18px;
  margin: 24px 0;
}

.strategy-link a, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--green);
  color: #05100a;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.warning {
  border-color: rgba(255, 90, 95, 0.5);
  background: rgba(255, 90, 95, 0.08);
}

.source-note {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: #8d9aae;
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .guide-hero, .guide-grid {
    grid-template-columns: 1fr;
  }
  .strategy-link {
    display: block;
  }
  .strategy-link a {
    margin-top: 12px;
  }
}
