:root {
  --bg: #050403;
  --bg-soft: #0f0d0b;
  --panel: rgba(16, 14, 12, 0.88);
  --panel-soft: rgba(10, 9, 8, 0.74);
  --line: rgba(231, 198, 123, 0.14);
  --line-strong: rgba(231, 198, 123, 0.3);
  --text: #f4ede2;
  --muted: #c8beb0;
  --gold: #e7c67b;
  --ember: #c53a17;
  --ember-bright: #ff7231;
  --blood: #7e100d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --header-height: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  transform: scale(1.03);
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.4), rgba(5, 4, 3, 0.78) 52%, var(--bg) 100%),
    linear-gradient(120deg, rgba(126, 16, 13, 0.22), transparent 35%),
    url('img/bg-fight-castle.png') center top / cover no-repeat;
  filter: saturate(0.86);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 114, 49, 0.13), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(231, 198, 123, 0.09), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.28));
}

body.nav-open {
  overflow: hidden;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

main {
  position: relative;
  overflow: clip;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-inner,
.footer-inner {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, rgba(7, 6, 5, 0.95), rgba(7, 6, 5, 0.62));
  border-bottom: 1px solid rgba(231, 198, 123, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.2vw, 2.2rem);
  margin-left: auto;
  margin-right: 0.75rem;
}

.site-nav a,
.caption-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav a:hover,
.caption-link:hover {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 10, 9, 0.72);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

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

.button-primary {
  color: #fff7ef;
  background: linear-gradient(135deg, var(--ember), var(--ember-bright));
  box-shadow: 0 18px 35px rgba(128, 26, 6, 0.35);
}

.button-primary:hover {
  box-shadow: 0 24px 46px rgba(128, 26, 6, 0.48);
}

.button-secondary {
  color: var(--text);
  background: rgba(13, 11, 10, 0.74);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: rgba(231, 198, 123, 0.5);
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + clamp(1.4rem, 4vw, 3rem));
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow,
.story-kicker,
.feature-kicker,
.cta-label,
.note-label {
  margin: 0;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.story-panel h3,
.feature-card h3,
.how-card h3,
.cta-card h3 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 0.45rem;
  font-size: clamp(4.2rem, 10vw, 7.4rem);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.hero-lede,
.section-copy,
.story-panel p,
.feature-card p,
.how-card p,
.cta-card p,
.character-caption p,
.video-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.hero-lede {
  max-width: 30rem;
  margin-top: 1rem;
  font-size: clamp(1.2rem, 2.3vw, 1.56rem);
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 42rem;
}

.metric-card,
.story-panel,
.character-panel,
.how-card,
.cta-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 6.5rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-value {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  line-height: 0.95;
}

.metric-label {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-media {
  justify-self: end;
  width: min(100%, 760px);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 12, 10, 0.96), rgba(8, 7, 6, 0.92));
  border: 1px solid rgba(231, 198, 123, 0.18);
  box-shadow: var(--shadow);
}

.video-shell::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(231, 198, 123, 0.14);
  border-radius: 18px;
  pointer-events: none;
  z-index: 2;
}

.video-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.26) 100%);
  pointer-events: none;
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #060505;
}

.video-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: rgba(7, 6, 5, 0.82);
  border: 1px solid rgba(231, 198, 123, 0.24);
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.4rem;
}

.section-heading h2 {
  margin-top: 0.4rem;
  font-size: clamp(2.9rem, 6vw, 5rem);
}

.section-copy {
  margin-top: 1rem;
  font-size: 1.12rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: end;
}

.story-panel,
.character-panel,
.how-card,
.cta-card {
  border-radius: 26px;
}

.story-panel {
  padding: clamp(1.5rem, 4vw, 2.35rem);
}

.story-panel h3,
.feature-card h3,
.how-card h3,
.cta-card h3 {
  margin-top: 0.45rem;
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.story-panel p + p {
  margin-top: 0.9rem;
}

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

.stat-pill {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(231, 198, 123, 0.1);
}

.stat-pill span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-pill strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.character-panel {
  position: relative;
  min-height: 32rem;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.character-panel::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(5, 4, 3, 0), rgba(5, 4, 3, 0.92));
  z-index: 1;
}

.character-panel::after {
  content: '';
  position: absolute;
  width: 18rem;
  height: 18rem;
  top: 2rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 114, 49, 0.24), transparent 68%);
  filter: blur(24px);
}

.character-panel img {
  position: relative;
  z-index: 0;
  width: min(100%, 24rem);
  max-height: 32rem;
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.44));
  animation: drift 6s ease-in-out infinite;
}

.character-caption {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.35rem;
  z-index: 2;
  display: grid;
  gap: 0.2rem;
}

.character-caption span {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.character-caption strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-grid,
.how-grid,
.cta-grid {
  display: grid;
  gap: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 13rem;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(15, 13, 11, 0.84), rgba(10, 9, 8, 0.72));
  border: 1px solid rgba(231, 198, 123, 0.12);
  border-radius: 22px;
}

.feature-card img {
  width: 100%;
  height: 9rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.feature-card h3 {
  font-size: 2rem;
}

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

.how-card {
  padding: 1.5rem;
}

.action-strip,
.deck-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.action-tile,
.deck-card,
.resource-row,
.den-point {
  border: 1px solid rgba(231, 198, 123, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.action-tile,
.deck-card {
  padding: 0.95rem 0.75rem;
  border-radius: 18px;
  text-align: center;
}

.action-tile img {
  width: 4.25rem;
  height: 4.25rem;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}

.action-tile strong,
.deck-card strong,
.den-point strong,
.resource-meta span {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.action-tile span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.resource-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 1rem;
}

.resource-row {
  padding: 0.9rem 1rem;
  border-radius: 18px;
}

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

.resource-meta strong {
  color: var(--gold);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-track {
  overflow: hidden;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.resource-fill {
  height: 100%;
  border-radius: inherit;
}

.resource-fill.stamina {
  width: 42%;
  background: linear-gradient(90deg, #c98934, #f3b967);
}

.resource-fill.rage {
  width: 78%;
  background: linear-gradient(90deg, var(--blood), var(--ember-bright));
}

.resource-fill.streak {
  width: 64%;
  background: linear-gradient(90deg, #bb8b29, #f8df9e);
}

.game-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.game-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.45;
}

.game-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--ember-bright);
  box-shadow: 0 0 10px rgba(255, 114, 49, 0.45);
}

.deck-card img {
  width: 100%;
  height: 8.5rem;
  margin-bottom: 0.6rem;
  object-fit: contain;
}

.den-layout {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.25rem;
}

.den-layout img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.den-points {
  display: grid;
  gap: 0.75rem;
}

.den-point {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
}

.den-point span {
  color: var(--muted);
  line-height: 1.4;
}

.play-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.play-copy h2 {
  margin: 0.4rem 0 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.9rem, 6vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play-notes {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.play-note {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--ember-bright);
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.03);
}

.play-note strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

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

.cta-card {
  min-height: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-card.primary {
  background: linear-gradient(180deg, rgba(50, 17, 13, 0.95), rgba(15, 9, 8, 0.88));
  border-color: rgba(255, 114, 49, 0.28);
}

.cta-card .button {
  width: fit-content;
  margin-top: auto;
}

footer {
  padding: 0 0 2.5rem;
}

.footer-inner {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(231, 198, 123, 0.12);
  color: rgba(244, 237, 226, 0.68);
}

.footer-inner a {
  color: var(--gold);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease) var(--reveal-delay, 0ms),
    transform 0.7s var(--ease) var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .intro-layout,
  .play-shell,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    justify-self: stretch;
    width: 100%;
  }

  .character-panel {
    min-height: 26rem;
  }

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

@media (max-width: 900px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .header-button {
    display: none;
  }

  .js .site-nav {
    position: fixed;
    top: calc(var(--header-height) + 10px);
    left: 1rem;
    right: 1rem;
    z-index: 45;
    margin: 0;
    padding: 1rem 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    border-radius: 20px;
    background: rgba(10, 9, 8, 0.95);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .js .site-nav a {
    width: 100%;
    padding: 0.2rem 0;
    font-size: 1.45rem;
  }

  .hero-metrics,
  .how-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .section-inner,
  .footer-inner {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .site-header {
    padding-inline: 0.75rem;
  }

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

  .hero-copy h1 {
    font-size: clamp(3.4rem, 18vw, 5.1rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .cta-card .button {
    width: 100%;
  }

  .action-strip,
  .deck-row,
  .stat-strip,
  .feature-card,
  .den-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .feature-card img {
    width: 8.5rem;
    height: 8.5rem;
  }

  .video-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 44px;
    height: 44px;
  }

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

  .site-nav {
    margin-left: 0;
  }

  .metric-card,
  .story-panel,
  .how-card,
  .cta-card {
    border-radius: 22px;
  }

  .video-shell {
    border-radius: 22px;
  }

  .video-shell::before {
    inset: 12px;
    border-radius: 14px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
