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

:root {
  --bg-deep: #060608;
  --bg-panel: #0e0e12;
  --bg-card: #14141a;
  --text: #e8e4dc;
  --text-muted: #8a8580;
  --ember: #c44a2a;
  --ember-glow: #ff6b3d;
  --rune: #4a9fd4;
  --rune-dim: #2a6a94;
  --border: #2a2620;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max-width: 72rem;
  --header-h: 4rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rune);
  text-decoration: none;
}

a:hover {
  color: var(--ember-glow);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ember);
  color: #fff;
  border-radius: 0.25rem;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 6, 8, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header__logo {
  height: 1.75rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

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

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

.site-nav__cta {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ember);
  border-radius: 0.25rem;
  color: var(--ember-glow) !important;
}

.site-nav__cta:hover {
  background: rgba(196, 74, 42, 0.15);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0.25rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn--primary {
  background: linear-gradient(180deg, var(--ember-glow), var(--ember));
  color: #fff;
  box-shadow: 0 0 24px rgba(196, 74, 42, 0.35);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 0 36px rgba(255, 107, 61, 0.5);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--rune-dim);
  color: var(--rune);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(196, 74, 42, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(74, 159, 212, 0.05) 0%, transparent 50%),
    var(--bg-deep);
}

.hero__fog {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.008) 2px,
      rgba(255, 255, 255, 0.008) 4px
    );
  pointer-events: none;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember-glow);
  margin-bottom: 1rem;
}

.hero__title {
  margin-bottom: 1.25rem;
}

.hero__title-logo {
  width: min(100%, 22rem);
  filter: drop-shadow(0 0 30px rgba(196, 74, 42, 0.2));
}

.hero__pitch {
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__figure {
  display: flex;
  justify-content: center;
  margin: 0;
}

.hero__guard {
  width: min(100%, 22rem);
  filter: drop-shadow(0 0 60px rgba(196, 74, 42, 0.25));
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(196, 74, 42, 0.2)); }
  50% { filter: drop-shadow(0 0 70px rgba(196, 74, 42, 0.4)); }
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 4rem 1.25rem 5rem;
  }

  .hero__guard {
    width: 100%;
    max-width: 28rem;
  }
}

/* Identity band */

.identity {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.identity__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  text-align: center;
}

.identity__emblem {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(74, 159, 212, 0.2);
}

.identity__quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

/* Section head */

.section-head {
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
  text-align: center;
}

.section-head__eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rune);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-head__lead {
  color: var(--text-muted);
}

/* Features */

.features {
  padding: 5rem 1.25rem;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: var(--rune-dim);
  box-shadow: 0 0 20px rgba(74, 159, 212, 0.08);
}

.feature-card__icon {
  font-size: 1.5rem;
  color: var(--ember-glow);
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

@media (min-width: 540px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Gameplay */

.gameplay {
  padding: 5rem 1.25rem;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(196, 74, 42, 0.06) 0%, transparent 60%),
    var(--bg-panel);
  border-top: 1px solid var(--border);
}

.gameplay__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gameplay__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.gameplay__steps {
  list-style: none;
  counter-reset: step;
}

.gameplay__steps li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.gameplay__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ember-glow);
  border: 1px solid var(--ember);
  border-radius: 50%;
}

.gameplay__steps strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.gameplay__aside {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.gameplay__aside h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--rune);
}

.gameplay__aside dl div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.gameplay__aside dl div:last-child {
  border-bottom: none;
}

.gameplay__aside dt {
  font-weight: 600;
  color: var(--text-muted);
}

.gameplay__aside dd {
  color: var(--text);
}

@media (min-width: 768px) {
  .gameplay__inner {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

/* Notify */

.notify {
  padding: 5rem 1.25rem;
  text-align: center;
}

.notify__inner {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 0 60px rgba(196, 74, 42, 0.08);
}

.notify__logo {
  width: min(100%, 14rem);
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.notify h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.notify p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.notify__contact a {
  font-weight: 500;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.site-footer__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  opacity: 0.7;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer nav a {
  color: var(--text-muted);
}

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

@media (min-width: 540px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .site-nav a:not(.site-nav__cta) {
    display: none;
  }
}
