:root {
  --bg: #080c0e;
  --bg-soft: #0d1315;
  --panel: #111719;
  --panel-raised: #151d1f;
  --amber: #d7a63a;
  --amber-light: #f2c562;
  --green: #6cff7e;
  --danger: #c94a4a;
  --text: #e6e6d9;
  --muted: #aaa99a;
  --border: #706a45;
  --border-muted: #303633;
  --serif: Georgia, "Times New Roman", serif;
  --mono:
    "SFMono-Regular", "Cascadia Code", "Roboto Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(108, 255, 126, 0.035),
      transparent 28rem
    ),
    var(--bg);
  color: var(--text);
  font-family: var(--mono);
  margin: 0;
  overflow-x: hidden;
}

body::before {
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.014) 0,
    rgba(255, 255, 255, 0.014) 1px,
    transparent 1px,
    transparent 4px
  );
  content: "";
  inset: 0;
  opacity: 0.38;
  pointer-events: none;
  position: fixed;
  z-index: 20;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  background: var(--green);
  color: var(--bg);
  left: 1rem;
  padding: 0.8rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  align-items: center;
  border-bottom: 1px solid transparent;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 76px;
  left: 0;
  padding: 0 4vw;
  position: fixed;
  right: 0;
  top: 0;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    height 180ms ease;
  z-index: 30;
}

.site-header.scrolled {
  backdrop-filter: blur(18px);
  background: rgba(8, 12, 14, 0.86);
  border-bottom-color: rgba(112, 106, 69, 0.35);
  height: 64px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 0.96rem;
  font-weight: 700;
  gap: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.brand b {
  color: var(--amber);
  font-weight: inherit;
}

.desktop-nav {
  align-items: center;
  display: flex;
  gap: 2.3rem;
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  position: relative;
  text-transform: uppercase;
  transition: color 160ms ease;
}

.desktop-nav a::after {
  background: var(--green);
  bottom: -0.5rem;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
  width: 100%;
}

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

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid var(--border);
  color: var(--amber-light);
  font-size: 0.68rem;
  justify-self: end;
  letter-spacing: 0.12em;
  padding: 0.65rem 0.9rem;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.nav-cta:hover {
  background: var(--amber);
  color: var(--bg);
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  align-items: center;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding: 9rem 8vw 6rem;
  position: relative;
}

.hero-art {
  background-image:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      rgba(8, 12, 14, 0.96) 23%,
      rgba(8, 12, 14, 0.2) 72%
    ),
    linear-gradient(
      0deg,
      var(--bg) 0%,
      transparent 28%,
      rgba(8, 12, 14, 0.42) 100%
    ),
    url("./assets/ironkeep-hero.png?v=20260612-four-separated-legs");
  background-position:
    center,
    center,
    right center;
  background-size: cover;
  inset: 0;
  opacity: 0.82;
  position: absolute;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(112, 106, 69, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 106, 69, 0.1) 1px, transparent 1px);
  background-size: 80px 80px;
  inset: 0;
  mask-image: linear-gradient(90deg, black, transparent 60%);
  opacity: 0.35;
  position: absolute;
}

.hero-glow {
  background: var(--green);
  border-radius: 50%;
  filter: blur(150px);
  height: 10rem;
  opacity: 0.08;
  position: absolute;
  right: 18%;
  top: 35%;
  width: 10rem;
}

.hero-content {
  max-width: 730px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  align-items: center;
  color: var(--green);
  display: flex;
  font-size: 0.67rem;
  gap: 0.7rem;
  letter-spacing: 0.18em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--green);
  content: "";
  height: 1px;
  width: 2.2rem;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-size: clamp(4rem, 8vw, 7.8rem);
  letter-spacing: -0.065em;
  line-height: 0.86;
  margin-bottom: 2rem;
  max-width: 760px;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

h1 span,
h2 span {
  color: var(--amber-light);
  font-style: italic;
}

.hero-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
  max-width: 580px;
}

.purchase-note {
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  margin: 1.1rem 0 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.button {
  align-items: center;
  display: inline-flex;
  font-size: 0.7rem;
  gap: 2.2rem;
  justify-content: space-between;
  letter-spacing: 0.12em;
  min-height: 50px;
  padding: 0.85rem 1.15rem;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

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

.button-primary {
  background: var(--amber);
  border: 1px solid var(--amber);
  color: var(--bg);
  min-width: 220px;
}

.button-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}

.button-ghost {
  border: 1px solid var(--border-muted);
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-light);
}

.hero-stats {
  display: flex;
  gap: 0;
  margin: 3.8rem 0 0;
}

.hero-stats div {
  border-left: 1px solid var(--border-muted);
  min-width: 140px;
  padding: 0 1.5rem;
}

.hero-stats div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-stats dt {
  color: var(--amber-light);
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-stats dd {
  color: var(--muted);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  margin: 0.55rem 0 0;
  text-transform: uppercase;
}

.scroll-cue {
  align-items: center;
  bottom: 2.5rem;
  color: var(--muted);
  display: flex;
  font-size: 0.55rem;
  gap: 1rem;
  letter-spacing: 0.13em;
  position: absolute;
  right: 4vw;
  text-transform: uppercase;
  transform: rotate(90deg) translateX(100%);
  transform-origin: right bottom;
  z-index: 2;
}

.scroll-cue i {
  background: var(--border);
  display: block;
  height: 1px;
  position: relative;
  width: 4rem;
}

.scroll-cue i::after {
  animation: scan 2s infinite ease-in-out;
  background: var(--green);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 0;
  width: 1.2rem;
}

@keyframes scan {
  50% {
    transform: translateX(2.8rem);
  }
}

.section {
  margin: 0 auto;
  max-width: 1440px;
  padding: 8rem 7vw;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  margin-bottom: 4rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

h2 {
  font-size: clamp(3.5rem, 6vw, 6.3rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin-bottom: 0;
}

.section-heading > p:last-child,
.campaign-header > p,
.training-copy > p:last-child {
  align-self: end;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
  margin: 0;
  max-width: 420px;
}

.intro-section {
  position: relative;
}

.steps {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.step-card {
  background:
    linear-gradient(135deg, rgba(215, 166, 58, 0.05), transparent 38%),
    var(--panel);
  border: 1px solid var(--border-muted);
  min-height: 360px;
  padding: 1.6rem;
  position: relative;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.step-card::before,
.feature::before {
  color: var(--border);
  content: "+";
  left: -4px;
  position: absolute;
  top: -10px;
}

.step-card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
}

.step-number,
.feature-index {
  color: var(--border);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.step-icon {
  align-items: center;
  border: 1px solid var(--border-muted);
  display: flex;
  height: 98px;
  justify-content: center;
  margin: 0 0 2rem;
  position: relative;
  width: 98px;
}

.step-icon > i {
  color: var(--amber-light);
  font-size: 3rem;
}

.step-card h3,
.feature h3,
.equipment-card h3 {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.step-card p,
.feature p {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.card-tag {
  bottom: 1.6rem;
  color: var(--green);
  font-size: 0.55rem;
  letter-spacing: 0.13em;
  position: absolute;
  text-transform: uppercase;
}

.battle-preview {
  align-items: center;
  display: grid;
  gap: 7vw;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.9fr);
  padding-bottom: 10rem;
  padding-top: 10rem;
}

.battle-preview::before {
  background: radial-gradient(
    circle,
    rgba(108, 255, 126, 0.06),
    transparent 65%
  );
  content: "";
  height: 45rem;
  left: 43%;
  position: absolute;
  width: 45rem;
}

.battle-copy,
.phone-stage {
  position: relative;
  z-index: 1;
}

.battle-copy h2 {
  margin-bottom: 2rem;
}

.battle-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.9;
  max-width: 490px;
}

.doctrine-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}

.doctrine {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.5rem;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.doctrine span {
  font-family: var(--serif);
  font-size: 1.12rem;
}

.doctrine small {
  color: var(--muted);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doctrine.active {
  background: rgba(215, 166, 58, 0.07);
  border-top-color: var(--amber);
}

.doctrine.active span {
  color: var(--amber-light);
}

.doctrine-detail {
  border: 1px solid var(--border-muted);
  border-top: 0;
  padding: 1.4rem;
}

.doctrine-detail > span,
.doctrine-detail dt {
  color: var(--muted);
  font-size: 0.51rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doctrine-detail > strong {
  color: var(--green);
  display: block;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0.5rem 0 0.65rem;
}

.doctrine-detail > p {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.7;
}

.doctrine-detail dl {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.3rem 0 0;
}

.doctrine-detail dd {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.phone-stage {
  min-height: 760px;
}

.phone {
  background: #080b0c;
  border: 1px solid #5b5e55;
  border-radius: 46px;
  box-shadow:
    0 45px 100px rgba(0, 0, 0, 0.55),
    0 0 0 8px #111617,
    0 0 0 9px #252b29;
  left: 50%;
  margin: 0;
  max-width: 370px;
  overflow: hidden;
  padding: 0 10px 10px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(1.5deg);
  width: min(86%, 370px);
}

.phone-top {
  align-items: center;
  display: flex;
  height: 30px;
  justify-content: center;
}

.phone-top span {
  background: #252b29;
  border-radius: 1rem;
  display: block;
  height: 5px;
  width: 62px;
}

.phone-screen {
  aspect-ratio: 9 / 20;
  background: var(--bg);
  border: 1px solid var(--border-muted);
  border-radius: 32px;
  overflow: hidden;
}

.phone-screen img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

.quest-marker {
  background: var(--panel-raised);
  border: 1px dashed var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  color: var(--amber-light);
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  padding: 0.8rem;
  position: absolute;
  text-transform: uppercase;
  z-index: 2;
}

.marker-one {
  left: 0;
  top: 28%;
}

.marker-two {
  bottom: 24%;
  color: var(--green);
  right: 0;
}

.campaign-section {
  max-width: none;
  padding-left: 8vw;
  padding-right: 8vw;
  position: relative;
}

.campaign-section::before {
  background:
    linear-gradient(
      180deg,
      var(--bg),
      transparent 20%,
      transparent 80%,
      var(--bg)
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(215, 166, 58, 0.055),
      transparent 60%
    );
  content: "";
  inset: 0;
  position: absolute;
}

.campaign-header {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 0.7fr;
  margin: 0 auto 5rem;
  max-width: 1240px;
  position: relative;
}

.campaign-header > p {
  align-self: end;
  justify-self: end;
}

.campaign-path {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0;
  position: relative;
}

.campaign-path::before {
  background: var(--border-muted);
  content: "";
  height: 1px;
  left: 7%;
  position: absolute;
  right: 7%;
  top: 2rem;
}

.quest-node {
  min-height: 280px;
  padding-top: 5rem;
  position: relative;
}

.node-number {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--amber);
  display: flex;
  font-family: var(--serif);
  height: 4rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 4rem;
}

.node-number::after {
  border: 1px solid var(--border-muted);
  content: "";
  inset: 5px;
  position: absolute;
}

.quest-node div {
  border-left: 1px solid var(--border-muted);
  padding: 1rem 1rem 1rem 1.1rem;
}

.quest-node.active div {
  border-left-color: var(--green);
}

.quest-node small {
  color: var(--green);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quest-node h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.1;
  margin: 0.7rem 0;
}

.quest-node p {
  color: var(--muted);
  font-size: 0.55rem;
  line-height: 1.7;
}

.section-heading.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.feature-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.feature {
  background: var(--panel);
  border: 1px solid var(--border-muted);
  display: flex;
  flex-direction: column;
  min-height: 370px;
  overflow: hidden;
  padding: 1.6rem;
  position: relative;
}

.feature-large {
  grid-row: span 2;
}

.feature h3 {
  margin: auto 0 0.7rem;
  position: relative;
  z-index: 1;
}

.feature p {
  margin: 0;
  max-width: 80%;
  position: relative;
  z-index: 1;
}

.feature-image {
  border: 1px solid var(--border-muted);
  margin: 2.2rem 0 1.8rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.feature-image::after {
  background: linear-gradient(180deg, transparent 55%, rgba(8, 12, 14, 0.65));
  content: "";
  inset: 0;
  position: absolute;
}

.feature-image img {
  aspect-ratio: 3 / 2;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.training-section {
  max-width: none;
}

.training-layout {
  display: grid;
  gap: 8vw;
  grid-template-columns: 0.8fr 1fr;
  margin: 0 auto;
  max-width: 1240px;
}

.training-copy {
  position: sticky;
  top: 9rem;
  align-self: start;
}

.training-copy h2 {
  margin-bottom: 2rem;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.equipment-card {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(215, 166, 58, 0.05), transparent), var(--panel);
  border: 1px solid var(--border-muted);
  display: grid;
  gap: 1.5rem;
  grid-template-columns: auto 1fr auto;
  min-height: 170px;
  padding: 1.5rem;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.equipment-card:hover {
  border-color: var(--border);
  transform: translateX(6px);
}

.equipment-card > span {
  color: var(--border);
  font-family: var(--serif);
  font-size: 2rem;
}

.equipment-card small {
  color: var(--green);
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.equipment-card h3 {
  font-size: 2rem;
  margin: 0.55rem 0;
}

.equipment-card p {
  color: var(--muted);
  font-size: 0.6rem;
  margin: 0;
}

.equipment-card > i {
  color: var(--amber);
  font-size: 0.85rem;
}

.final-cta {
  align-items: center;
  display: flex;
  flex-direction: column;
  max-width: none;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.final-cta .eyebrow {
  scroll-margin-top: 8rem;
}

.final-cta::before {
  background: radial-gradient(circle, rgba(215, 166, 58, 0.1), transparent 60%);
  content: "";
  height: 45rem;
  position: absolute;
  width: 45rem;
}

.cta-mark,
.final-cta > * {
  position: relative;
}

.cta-mark {
  margin-bottom: 2rem;
}

.cta-mark::before {
  border: 1px solid var(--border);
  content: "";
  inset: -9px;
  position: absolute;
  transform: rotate(45deg);
}

.cta-mark img {
  border-radius: 20px;
  display: block;
}

.final-cta .eyebrow {
  margin-top: 1rem;
}

.final-cta h2 {
  font-size: clamp(4rem, 7vw, 7rem);
}

.final-cta > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.9;
  margin: 2rem auto;
  max-width: 520px;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  position: relative;
}

.store-button {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--bg);
  display: flex;
  gap: 0.8rem;
  min-width: 210px;
  padding: 0.75rem 1rem;
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.store-button:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
  transform: translateY(-3px);
}

.store-symbol {
  font-size: 1.7rem;
}

.play-symbol {
  color: var(--green);
  font-size: 1.2rem;
}

.store-button span:last-child {
  display: flex;
  flex-direction: column;
}

.store-button small {
  font-size: 0.48rem;
  letter-spacing: 0.06em;
}

.store-button b {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.purchase-reasons {
  border-top: 1px solid var(--border-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  position: relative;
}

.purchase-reasons span {
  color: var(--muted);
  font-size: 0.53rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.purchase-reasons i {
  color: var(--green);
  margin-right: 0.35rem;
}

footer {
  align-items: center;
  border-top: 1px solid var(--border-muted);
  color: var(--muted);
  display: grid;
  font-size: 0.55rem;
  grid-template-columns: repeat(3, 1fr);
  letter-spacing: 0.08em;
  padding: 2rem 4vw;
  text-transform: uppercase;
}

.mobile-buy-bar {
  display: none;
}

footer p {
  margin: 0;
  text-align: center;
}

footer p:last-child {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1100px) {
  .campaign-path {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 3rem;
  }

  .campaign-path::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 1.2rem;
  }

  .desktop-nav,
  .nav-cta {
    display: none;
  }

  .menu-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
  }

  .menu-button > span:not(.sr-only) {
    background: var(--amber);
    display: block;
    height: 1px;
    transition: transform 160ms ease;
    width: 25px;
  }

  .mobile-nav {
    background: rgba(8, 12, 14, 0.97);
    border-bottom: 1px solid var(--border-muted);
    display: none;
    flex-direction: column;
    gap: 1.3rem;
    left: 0;
    padding: 2rem 1.5rem;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-buy-bar {
    align-items: center;
    background: rgba(17, 23, 25, 0.96);
    border: 1px solid var(--border);
    bottom: 0.7rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto 1fr auto;
    left: 0.7rem;
    padding: 0.65rem;
    position: fixed;
    right: 0.7rem;
    z-index: 25;
  }

  .mobile-buy-bar img {
    border-radius: 6px;
  }

  .mobile-buy-bar span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .mobile-buy-bar small {
    color: var(--muted);
    font-size: 0.45rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-buy-bar b {
    color: var(--amber-light);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .mobile-buy-bar i {
    color: var(--green);
    padding-right: 0.4rem;
  }

  .hero {
    align-items: end;
    padding: 9rem 1.4rem 5rem;
  }

  .hero-art {
    background-image:
      linear-gradient(
        0deg,
        var(--bg) 4%,
        rgba(8, 12, 14, 0.05) 55%,
        rgba(8, 12, 14, 0.35) 100%
      ),
      url("./assets/ironkeep-hero.png?v=20260612-four-separated-legs");
    background-position: right center;
  }

  .hero-content {
    background: linear-gradient(0deg, rgba(8, 12, 14, 0.92), transparent);
    margin: 0 -1.4rem -5rem;
    padding: 6rem 1.4rem 4.5rem;
  }

  .hero-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-stats div {
    min-width: 0;
    padding: 0 0.8rem;
  }

  .scroll-cue {
    display: none;
  }

  .section {
    padding: 6rem 1.4rem;
  }

  .section-heading,
  .campaign-header,
  .training-layout {
    display: block;
  }

  .section-heading > p:last-child,
  .campaign-header > p,
  .training-copy > p:last-child {
    margin-top: 2rem;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 330px;
  }

  .battle-preview {
    display: block;
    padding-top: 7rem;
  }

  .battle-preview::before,
  .final-cta::before {
    left: 0;
    width: 100%;
  }

  .phone-stage {
    margin-top: 4rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 430px;
  }

  .feature-large {
    min-height: 500px;
  }

  .feature p {
    max-width: 100%;
  }

  .training-copy {
    position: static;
  }

  .equipment-list {
    margin-top: 3rem;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
  }

  h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .brand span {
    font-size: 0.78rem;
  }

  .eyebrow {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .hero-copy {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
  }

  .purchase-note {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    font-size: 0.75rem;
    width: 100%;
  }

  .store-buttons {
    width: 100%;
  }

  .store-button {
    width: 100%;
  }

  .hero-stats dd {
    font-size: 0.65rem;
    line-height: 1.6;
  }

  .section-heading > p:last-child,
  .campaign-header > p,
  .training-copy > p:last-child,
  .battle-copy > p:not(.eyebrow),
  .final-cta > p:not(.eyebrow) {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
  }

  .step-number,
  .feature-index {
    font-size: 0.7rem;
  }

  .step-card h3,
  .feature h3 {
    font-size: 1.85rem;
    line-height: 1.08;
  }

  .step-card p,
  .feature p {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
  }

  .card-tag {
    font-size: 0.68rem;
  }

  .campaign-path {
    grid-template-columns: 1fr;
  }

  .quest-node {
    min-height: 0;
    padding-left: 5rem;
    padding-top: 0;
  }

  .quest-node div {
    min-height: 160px;
  }

  .quest-node small {
    font-size: 0.65rem;
  }

  .quest-node h3 {
    font-size: 1.5rem;
  }

  .quest-node p {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
  }

  .phone-stage {
    min-height: 700px;
  }

  .phone {
    width: min(82%, 350px);
  }

  .marker-one {
    left: -0.5rem;
  }

  .marker-two {
    right: -0.5rem;
  }

  .doctrine span {
    font-size: 0.95rem;
  }

  .doctrine small {
    font-size: 0.62rem;
    line-height: 1.4;
  }

  .doctrine-detail > span,
  .doctrine-detail dt {
    font-size: 0.64rem;
  }

  .doctrine-detail dd {
    font-size: 1.1rem;
  }

  .doctrine-detail > p {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.7;
  }

  .equipment-card {
    gap: 1rem;
    grid-template-columns: 1fr auto;
  }

  .equipment-card > span {
    display: none;
  }

  .equipment-card small {
    font-size: 0.65rem;
  }

  .equipment-card p {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.65;
  }

  .store-button small {
    font-size: 0.68rem;
  }

  .store-button b {
    font-size: 1.35rem;
  }

  .purchase-reasons span {
    font-size: 0.7rem;
    line-height: 1.6;
  }

  .mobile-buy-bar {
    padding: 0.75rem;
  }

  .mobile-buy-bar small {
    font-size: 0.62rem;
  }

  .mobile-buy-bar b {
    font-size: 0.76rem;
  }

  footer {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    gap: 1rem;
    line-height: 1.6;
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
  }

  footer p:last-child {
    text-align: center;
  }
}

/* App-aligned visual system */

:root {
  --amber-light: var(--amber);
  --border-muted: #3a3a36;
  --serif: var(--mono);
}

body {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(108, 255, 126, 0.02),
      transparent 30rem
    ),
    var(--bg);
  letter-spacing: 0.015em;
}

.site-header {
  background: rgba(8, 12, 14, 0.94);
  border-bottom-color: var(--border-muted);
}

.site-header.scrolled {
  background: rgba(8, 12, 14, 0.97);
  border-bottom-color: var(--border);
}

.brand {
  color: var(--amber);
  font-weight: 400;
}

.brand b {
  color: var(--green);
}

.desktop-nav a {
  color: var(--muted);
  font-size: 0.75rem;
}

.nav-cta,
.button,
.store-button {
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
}

.nav-cta:hover,
.button-primary:hover,
.store-button:hover {
  background: rgba(215, 166, 58, 0.13);
  border-color: var(--amber);
  color: var(--amber);
}

.button-primary {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}

.button-ghost {
  border-color: var(--border);
  color: var(--text);
}

.hero {
  padding-top: 10rem;
}

.hero-art {
  background-image:
    linear-gradient(
      90deg,
      rgba(8, 12, 14, 0.78) 0%,
      rgba(8, 12, 14, 0.38) 46%,
      rgba(8, 12, 14, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(8, 12, 14, 0.72) 0%,
      transparent 34%,
      rgba(8, 12, 14, 0.22) 100%
    ),
    url("./assets/ironkeep-hero.png?v=20260612-four-separated-legs");
  opacity: 0.9;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  background: transparent;
  color: var(--border);
  content: "+--";
  height: auto;
  width: auto;
}

h1,
h2,
h3,
.step-card h3,
.feature h3,
.equipment-card h3,
.doctrine span,
.doctrine-detail > strong,
.xp-art span,
.journal-art b,
.store-button b {
  font-family: var(--mono);
}

h1 {
  color: var(--amber);
  font-size: clamp(3.7rem, 7vw, 6.7rem);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
}

h1 span,
h2 span {
  color: var(--green);
  font-style: normal;
}

h2 {
  color: var(--text);
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: 0.025em;
  line-height: 1.04;
  text-transform: uppercase;
}

.hero-copy,
.section-heading > p:last-child,
.campaign-header > p,
.training-copy > p:last-child,
.battle-copy > p:not(.eyebrow),
.final-cta > p:not(.eyebrow),
.step-card p,
.feature p,
.equipment-card p,
.quest-node p {
  letter-spacing: 0.01em;
}

.hero-stats {
  gap: 0.75rem;
}

.hero-stats div {
  background: rgba(17, 23, 25, 0.7);
  border: 1px dashed var(--border);
  min-width: 155px;
  padding: 0.9rem 1rem;
}

.hero-stats div:first-child {
  border-left: 1px dashed var(--border);
  padding-left: 1rem;
}

.hero-stats dt {
  color: var(--green);
  font-family: var(--mono);
  font-size: 1.25rem;
}

.hero-stats dd {
  font-size: 0.65rem;
}

.step-card,
.feature,
.equipment-card,
.doctrine-detail {
  background: rgba(17, 23, 25, 0.7);
  border-color: var(--border);
  border-style: dashed;
}

.step-card,
.equipment-card {
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.feature {
  background: rgba(17, 23, 25, 0.7);
  border-color: var(--border);
  transform: none;
  transition: none;
}

.step-card::before,
.feature::before,
.equipment-card::before {
  color: var(--amber);
  content: "+";
  font-size: 0.75rem;
  left: -5px;
  position: absolute;
  top: -8px;
}

.step-card::after,
.feature::after,
.equipment-card::after {
  bottom: -8px;
  color: var(--amber);
  content: "+";
  font-size: 0.75rem;
  position: absolute;
  right: -5px;
}

.step-icon {
  border-color: var(--border);
}

.step-card h3,
.feature h3,
.equipment-card h3 {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.step-card p,
.feature p {
  line-height: 1.65;
}

.card-tag {
  color: var(--green);
  display: block;
  margin-top: 0.5rem;
  position: static;
}

.doctrine-picker {
  border-bottom-color: var(--border);
  gap: 0.6rem;
}

.doctrine {
  border: 1px solid var(--border-muted);
  padding: 1rem;
}

.doctrine.active {
  background: rgba(108, 255, 126, 0.07);
  border-color: var(--green);
}

.doctrine.active span {
  color: var(--green);
}

.doctrine-detail {
  border-top: 1px dashed var(--border);
  margin-top: 0.6rem;
}

.doctrine-detail > strong {
  color: var(--green);
  font-size: 1.2rem;
  text-transform: uppercase;
}

.campaign-path {
  gap: 0.8rem;
}

.campaign-path::before {
  display: none;
}

.quest-node {
  background: rgba(17, 23, 25, 0.7);
  border: 1px dashed var(--border);
  min-height: 280px;
  padding: 1.1rem;
}

.quest-node::before,
.quest-node::after {
  color: var(--amber);
  content: "+";
  font-size: 0.75rem;
  position: absolute;
}

.quest-node::before {
  left: -5px;
  top: -8px;
}

.quest-node::after {
  bottom: -8px;
  right: -5px;
}

.node-number {
  background: transparent;
  border-color: var(--border);
  color: var(--amber);
  height: 2.8rem;
  position: relative;
  width: 2.8rem;
}

.quest-node div {
  border: 0;
  padding: 1.1rem 0 0;
}

.quest-node h3 {
  color: var(--text);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-transform: uppercase;
}

.equipment-card {
  background: rgba(17, 23, 25, 0.7);
  position: relative;
}

.equipment-card > span {
  color: var(--amber);
  font-family: var(--mono);
}

.equipment-card h3 {
  color: var(--green);
}

.final-cta {
  border-top: 1px solid var(--border-muted);
}

.final-cta h2 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.cta-mark::before {
  border-style: dashed;
  transform: none;
}

.store-buttons {
  width: min(100%, 520px);
}

.store-button {
  flex: 1;
  justify-content: center;
  min-height: 58px;
}

.store-symbol,
.play-symbol {
  color: var(--amber);
}

.store-button b {
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.purchase-reasons {
  border-top-style: dashed;
}

footer {
  background: var(--bg);
  border-top-color: var(--border);
}

.mobile-buy-bar {
  background: rgba(17, 23, 25, 0.98);
  border-style: dashed;
}

@media (max-width: 900px) {
  .hero-art {
    background-image:
      linear-gradient(
        0deg,
        rgba(8, 12, 14, 0.78) 0%,
        rgba(8, 12, 14, 0.18) 58%,
        rgba(8, 12, 14, 0.28) 100%
      ),
      linear-gradient(90deg, rgba(8, 12, 14, 0.35), rgba(8, 12, 14, 0.06)),
      url("./assets/ironkeep-hero.png?v=20260612-four-separated-legs");
    opacity: 0.92;
  }

  .hero-content {
    background: linear-gradient(
      0deg,
      rgba(8, 12, 14, 0.82),
      rgba(8, 12, 14, 0.22),
      transparent
    );
  }

  .quest-node {
    min-height: 0;
    padding: 1.1rem;
  }

  .feature-large {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
    letter-spacing: 0.02em;
  }

  h2 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    letter-spacing: 0.015em;
  }

  .hero {
    min-height: 100svh;
  }

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

  .hero-stats div {
    min-width: 0;
  }

  .step-card h3,
  .feature h3,
  .equipment-card h3 {
    font-size: 1.35rem;
  }

  .step-card,
  .feature {
    min-height: auto;
  }

  .step-card {
    gap: 1rem;
  }

  .card-tag {
    margin-top: 0.5rem;
  }

  .doctrine-picker {
    grid-template-columns: 1fr;
  }

  .doctrine {
    align-items: baseline;
    flex-direction: row;
    justify-content: space-between;
  }

  .quest-node {
    padding-left: 1.1rem;
  }

  .quest-node div {
    min-height: 0;
  }

  .feature {
    min-height: 390px;
  }

  .feature-large {
    min-height: 440px;
  }

  .equipment-card {
    min-height: 150px;
  }

  .store-buttons {
    gap: 0.7rem;
  }

  .store-button {
    justify-content: flex-start;
  }
}

/* Keep the promotional editorial titles while retaining app-aligned UI surfaces. */

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  text-transform: none;
}

h1 {
  color: var(--text);
  font-size: clamp(4rem, 8vw, 7.8rem);
  letter-spacing: -0.065em;
  line-height: 0.86;
}

h2 {
  color: var(--text);
  font-size: clamp(3.5rem, 6vw, 6.3rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
}

h1 span,
h2 span {
  color: #f2c562;
  font-style: italic;
}

.final-cta h2 {
  font-size: clamp(4rem, 7vw, 7rem);
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(3.5rem, 17vw, 5rem);
    letter-spacing: -0.065em;
  }

  h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
    letter-spacing: -0.06em;
  }

  .final-cta h2 {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }
}

/* Public policy and support pages */

.legal-page {
  min-height: 100vh;
}

.legal-page::before {
  opacity: 0.22;
}

.legal-header {
  align-items: center;
  background: rgba(8, 12, 14, 0.96);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 4rem);
}

.legal-main {
  margin: 0 auto;
  max-width: 820px;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
}

.legal-main h1 {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  margin: 0.5rem 0 1rem;
}

.legal-main section {
  border-top: 1px dashed var(--border);
  margin-top: 2.5rem;
  padding-top: 1.75rem;
}

.legal-main h2 {
  color: var(--amber-light);
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.legal-main p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-main a,
.legal-footer a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.legal-updated {
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-lead {
  font-size: 1.15rem;
}

.legal-summary {
  background: rgba(17, 23, 25, 0.8);
  border: 1px dashed var(--border);
  padding: 1.5rem;
}

.legal-summary strong {
  color: var(--green);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-summary p {
  margin-bottom: 0;
}

.legal-footer {
  justify-content: center;
  min-height: auto;
  padding: 1.5rem;
  text-align: center;
}

@media (max-width: 640px) {
  .legal-header {
    padding: 0.8rem 1rem;
  }

  .legal-header .brand {
    font-size: 0.78rem;
  }

  .legal-header .nav-cta {
    padding: 0.55rem 0.7rem;
  }

  .legal-main {
    padding-top: 3.5rem;
  }
}
