:root {
  --bg-top: #051615;
  --bg-bottom: #122121;
  --surface: #122121;
  --surface-secondary: #283a2a;
  --title: #ffffff;
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.65);
  --attacker: #c80f14;
  --defender: #0a14ff;
  --button-primary: #64781c;
  --button-secondary: #698b3f;
  --accent: #ffd201;
  --border: rgba(255, 255, 255, 0.12);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 5%, rgba(255, 210, 1, 0.16), transparent 40%),
    radial-gradient(circle at 90% 92%, rgba(10, 20, 255, 0.14), transparent 40%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.page::before {
  width: 24rem;
  height: 24rem;
  top: -9rem;
  right: -7rem;
  background: radial-gradient(circle, rgba(200, 15, 20, 0.36), rgba(200, 15, 20, 0));
}

.page::after {
  width: 20rem;
  height: 20rem;
  bottom: 4rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(255, 210, 1, 0.22), rgba(255, 210, 1, 0));
}

.shell {
  width: min(1100px, calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  padding-top: 1.5rem;
  padding-bottom: 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--title);
}

.brand-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.store-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.kicker,
.section-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--title);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.1;
}

h1 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  margin-top: 0.8rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.08rem;
}

.lead {
  margin: 1.1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 61ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  padding: 0.78rem 1.1rem;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  color: #08110a;
  background: linear-gradient(180deg, #7da64d, var(--button-secondary));
  box-shadow: 0 12px 28px rgba(105, 139, 63, 0.28);
}

.btn-secondary {
  color: var(--title);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.battle-preview {
  background: linear-gradient(180deg, rgba(18, 33, 33, 0.95), rgba(40, 58, 42, 0.9));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--card-shadow);
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.preview-head p {
  margin: 0;
  font-weight: 700;
  color: var(--title);
}

.preview-head span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(255, 210, 1, 0.18);
  color: var(--accent);
  font-weight: 700;
}

.army-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.army-row-attacker {
  background: rgba(200, 15, 20, 0.12);
  border-color: rgba(200, 15, 20, 0.35);
}

.army-row-defender {
  background: rgba(10, 20, 255, 0.12);
  border-color: rgba(10, 20, 255, 0.33);
}

.dice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dice-label {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dice-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

.dice-columns li {
  width: 2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 0.48rem;
  color: #020202;
  font-weight: 800;
  background: var(--accent);
}

.result-line {
  margin: 1rem 0 0;
  padding: 0.7rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-weight: 700;
}

.section {
  padding: 2.4rem 0;
}

.section-head {
  max-width: 70ch;
}

.feature-grid {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: rise-in 0.65s ease both;
}

.feature-card:nth-child(2) {
  animation-delay: 0.08s;
}

.feature-card:nth-child(3) {
  animation-delay: 0.16s;
}

.feature-card:nth-child(4) {
  animation-delay: 0.24s;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--text);
  line-height: 1.6;
}

.steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.95rem;
}

.step-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 33, 33, 0.86), rgba(40, 58, 42, 0.6));
}

.step-card p {
  margin: 0.45rem 0 0;
  line-height: 1.6;
}

.step-index {
  width: 2rem;
  aspect-ratio: 1;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #07100b;
  background: var(--accent);
}

.highlight-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight-grid p {
  margin: 0;
  padding: 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.7;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 0 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: underline;
}

.reveal {
  animation: rise-in 0.75s ease both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .feature-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 2.2rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1100px, calc(100% - 1.4rem));
  }

  .topbar {
    margin-bottom: 2rem;
  }

  .store-link {
    font-size: 0.92rem;
  }

  .btn {
    width: 100%;
  }
}
