:root {
  --bg: #070807;
  --panel: rgba(13, 18, 22, 0.86);
  --panel-2: #111923;
  --text: #f2f1e8;
  --muted: #b8c1c7;
  --line: rgba(242, 241, 232, 0.16);
  --gold: #f3c96b;
  --cyan: #72d9e8;
  --blue: #76a7ff;
  --green: #7bd88f;
  --danger: #ffb08a;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(7, 8, 7, 0.62), rgba(7, 8, 7, 0.96) 460px),
    url("https://media.robertsspaceindustries.com/k8wdjp0d7tb9r/channel_item_full.jpg") center top / cover fixed no-repeat,
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.84);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(5, 8, 12, 0.96), rgba(5, 8, 12, 0.70) 48%, rgba(5, 8, 12, 0.30)),
    linear-gradient(180deg, rgba(7, 8, 7, 0.04), rgba(7, 8, 7, 0.80) 76%, var(--bg)),
    url("https://robertsspaceindustries.com/media/7q026ul0vdlour/heap_infobox/Referral_Banner_3440-2.jpg") center top / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0, rgba(114, 217, 232, 0.08) 44%, transparent 45%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 90px);
  opacity: 0.75;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-inner,
.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(42px, 7vw, 88px);
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 22px;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.proof-item {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(114, 217, 232, 0.34);
  border-radius: 6px;
  background: rgba(6, 13, 18, 0.64);
  color: var(--muted);
  font-size: 13px;
}

.proof-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffe08b, var(--gold));
  color: #15120a;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(243, 201, 107, 0.18);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(7, 8, 7, 0.68);
  color: var(--text);
  box-shadow: none;
}

.section {
  padding: clamp(42px, 7vw, 82px) clamp(18px, 4vw, 48px);
}

.band {
  border-block: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.96), rgba(6, 9, 12, 0.96)),
    url("https://media.robertsspaceindustries.com/2nrwwohxhj7bs/channel_item_full.jpg") center / cover no-repeat;
}

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

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

.card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card.featured {
  border-color: rgba(243, 201, 107, 0.36);
  background:
    linear-gradient(180deg, rgba(243, 201, 107, 0.10), rgba(13, 18, 22, 0.86)),
    var(--panel);
}

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

.codebox {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(243, 201, 107, 0.42);
  border-radius: 8px;
  background: rgba(243, 201, 107, 0.1);
}

.code {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  word-break: break-word;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: #061011;
  font-weight: 900;
}

.notice {
  margin-top: 24px;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: rgba(123, 216, 143, 0.1);
  color: var(--text);
}

.warning {
  border-left-color: var(--danger);
  background: rgba(255, 176, 138, 0.1);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 28px;
}

.media-panel {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c11;
  box-shadow: var(--shadow);
}

.media-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.88;
}

.media-panel .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 7, 0.92));
}

.caption p {
  margin: 8px 0 0;
  color: var(--muted);
}

.conversion {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(114, 217, 232, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(114, 217, 232, 0.12), rgba(243, 201, 107, 0.08)),
    rgba(7, 11, 15, 0.84);
}

.conversion p {
  margin: 8px 0 0;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}

.footer {
  padding: 36px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #050605;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 76vh;
  }

  .grid,
  .two,
  .media-grid,
  .conversion {
    grid-template-columns: 1fr;
  }

  .media-panel {
    min-height: 240px;
  }
}
