:root {
  --deep-volcano: #1a0f14;
  --dark-basalt: #3d2a2a;
  --scorch: #8b3a2a;
  --lava: #e85d2c;
  --spark: #ffb347;
  --hot-light: #f4e8d0;
  --ash: #c9c4bc;
  --cold: #6ec4e8;
  --panel: rgba(36, 24, 28, 0.92);
  --stroke: rgba(255, 179, 71, 0.35);
  --font-display: "Mirza", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--hot-light);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: var(--deep-volcano);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--spark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--hot-light);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand-lockup img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--stroke);
}

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ash);
  border: 1px solid transparent;
  padding: 0.45rem 0.85rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover {
  color: var(--spark);
  border-color: var(--stroke);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(26, 15, 20, 0.55) 0%, rgba(26, 15, 20, 0.2) 35%, rgba(26, 15, 20, 0.88) 78%, var(--deep-volcano) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(232, 93, 44, 0.22), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2.4rem));
  margin: 0 auto 4.5rem;
  padding-top: 6rem;
  animation: rise 0.9s ease both;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 5.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.hero-copy .subtitle {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  font-weight: 500;
  color: var(--spark);
}

.hero-copy .lede {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--ash);
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--lava), #c4471f);
  color: var(--hot-light);
  box-shadow: 0 10px 28px rgba(232, 93, 44, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ash);
  border: 1px solid var(--stroke);
}

.btn-ghost:hover {
  color: var(--spark);
}

main {
  width: min(980px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 0 0 4rem;
}

.section {
  padding: 2.6rem 0 0;
  animation: rise 0.8s ease both;
}

.section:nth-of-type(2) { animation-delay: 0.08s; }
.section:nth-of-type(3) { animation-delay: 0.14s; }
.section:nth-of-type(4) { animation-delay: 0.2s; }

.section h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.section > p {
  margin: 0;
  color: var(--ash);
  max-width: 46rem;
}

.feature-visual {
  margin-top: 1.4rem;
  border: 1px solid var(--stroke);
  overflow: hidden;
  background: var(--panel);
}

.feature-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modes {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

@media (min-width: 720px) {
  .modes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mode {
  padding: 1.1rem 1rem 1.15rem;
  background: var(--panel);
  border: 1px solid rgba(255, 179, 71, 0.2);
  border-top: 2px solid var(--lava);
}

.mode h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--spark);
}

.mode p {
  margin: 0;
  color: var(--ash);
  font-size: 0.98rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  background: rgba(61, 42, 42, 0.7);
  border: 1px solid rgba(255, 179, 71, 0.18);
  color: var(--hot-light);
  font-size: 0.92rem;
}

.chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fragment-row,
.bunker-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.piece {
  text-align: center;
}

.piece img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}

.piece:hover img {
  transform: translateY(-4px);
}

.piece span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--ash);
}

.arena-strip {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .arena-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

.arena-strip figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 179, 71, 0.18);
}

.arena-strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.arena-strip figure:hover img {
  transform: scale(1.04);
}

.token-note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--stroke);
}

.token-note img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
}

.token-note p {
  margin: 0;
  color: var(--ash);
}

.contact-block {
  margin-top: 1.2rem;
  padding: 1.15rem 1.1rem;
  background:
    linear-gradient(145deg, rgba(232, 93, 44, 0.12), transparent 55%),
    var(--panel);
  border: 1px solid var(--stroke);
}

.contact-block p {
  margin: 0.35rem 0 0;
  color: var(--ash);
}

.contact-block strong {
  color: var(--hot-light);
  font-weight: 650;
}

.site-footer {
  width: min(980px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid rgba(255, 179, 71, 0.18);
  color: var(--ash);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

/* Privacy page */
.page-shell {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(26, 15, 20, 0.72), var(--deep-volcano) 42%),
    url("app_backdrop.png") center top / cover no-repeat;
}

.page-shell .site-header {
  position: relative;
}

.legal {
  width: min(780px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1;
}

.legal .meta {
  margin: 0 0 1.6rem;
  color: var(--ash);
  font-size: 0.95rem;
}

.legal h2 {
  margin: 1.7rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--spark);
}

.legal p,
.legal li {
  color: var(--ash);
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 560px) {
  .fragment-row,
  .bunker-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy {
    margin-bottom: 3rem;
  }
}
