:root {
  color-scheme: dark;
  --ink: #f7edd5;
  --muted: #c7bdac;
  --deep: #080b13;
  --panel: rgba(15, 19, 28, 0.78);
  --panel-strong: rgba(18, 23, 34, 0.92);
  --line: rgba(247, 237, 213, 0.16);
  --gold: #e6b75e;
  --gold-bright: #ffd98a;
  --cyan: #7ccada;
  --red: #c85f4b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--deep);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 10%, rgba(124, 202, 218, 0.14), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(230, 183, 94, 0.18), transparent 24%),
    linear-gradient(180deg, #0a0d18 0%, #101018 48%, #080807 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.023) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.5));
  background-size: 52px 52px, 52px 52px, auto;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(7, 9, 14, 0.66);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(230, 183, 94, 0.55);
  border-radius: 8px;
  color: var(--gold-bright);
  background: linear-gradient(145deg, rgba(230, 183, 94, 0.16), rgba(124, 202, 218, 0.09));
  box-shadow: 0 0 22px rgba(230, 183, 94, 0.16);
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 8px;
  color: rgba(247, 237, 213, 0.82);
  font-size: 14px;
  font-weight: 800;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-play {
  color: #1d1206;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 28px rgba(230, 183, 94, 0.22);
}

.mobile-play {
  display: none;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 124px clamp(20px, 6vw, 88px) 58px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("./game/img/menu/menu.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 520px at 72% 42%, rgba(124, 202, 218, 0.08), transparent 72%),
    radial-gradient(620px 460px at 42% 50%, rgba(230, 183, 94, 0.09), transparent 74%),
    linear-gradient(90deg, rgba(6, 8, 15, 0.96) 0%, rgba(8, 10, 16, 0.78) 44%, rgba(5, 7, 12, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(7, 8, 10, 0.96));
}

.hero-content {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 0.98fr) minmax(320px, 0.66fr);
  gap: clamp(34px, 7vw, 98px);
  align-items: center;
}

.hero-copy,
.hero-card,
.briefing-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(54px, 8vw, 108px);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 22px 54px rgba(0, 0, 0, 0.7);
}

h2 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.play-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid var(--line);
}

.button.primary {
  color: #1d1206;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(230, 183, 94, 0.2), 0 0 34px rgba(124, 202, 218, 0.12);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.hero-card {
  display: grid;
  gap: 16px;
  align-content: center;
}

.wordmark {
  display: grid;
  gap: 4px;
  padding: 28px 30px;
  border: 1px solid rgba(230, 183, 94, 0.32);
  border-radius: 8px;
  background: rgba(7, 9, 14, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 40px rgba(230, 183, 94, 0.06), 0 28px 70px rgba(0, 0, 0, 0.34);
}

.wordmark span,
.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.88;
  letter-spacing: 0.04em;
}

.wordmark span {
  color: #fff7dc;
}

.wordmark strong {
  color: var(--gold-bright);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 0;
}

.hero-stats div,
.feature-grid article,
.pillar-grid article,
.play-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 18px 12px;
  border-radius: 8px;
  text-align: center;
}

dt {
  color: #fff7dc;
  font-size: 32px;
  font-weight: 950;
  text-shadow: 0 0 20px rgba(230, 183, 94, 0.34);
}

dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.intro > p,
.briefing-copy p,
.play-strip p,
.feature-grid p,
.pillar-grid p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.feature-grid,
.pillar-grid {
  display: grid;
  gap: 14px;
}

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

.feature-grid article,
.pillar-grid article {
  border-radius: 8px;
  padding: 24px;
}

.feature-grid article {
  min-height: 286px;
}

.feature-grid span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-weight: 950;
}

.feature-grid h3,
.pillar-grid h3 {
  margin-bottom: 12px;
}

.briefing {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding-top: 48px;
}

.briefing-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.briefing-copy .button {
  justify-self: start;
  margin-top: 8px;
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.36);
  background: rgba(255, 255, 255, 0.04);
}

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

.pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 28px;
}

.play-strip {
  justify-content: space-between;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 8px;
  margin-bottom: 78px;
}

.play-strip p {
  margin-top: 8px;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  border-top: 1px solid var(--line);
  color: rgba(247, 237, 213, 0.78);
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(18px);
}

footer div {
  display: grid;
  gap: 4px;
}

footer strong {
  color: var(--ink);
  font-size: 16px;
}

footer span {
  color: var(--muted);
  font-size: 13px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 800;
}

footer a:hover {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 12px 18px;
  }

  .hero {
    min-height: auto;
    padding-top: 144px;
  }

  .hero-content,
  .intro,
  .briefing {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 70px;
    align-items: center;
  }

  nav {
    display: none;
  }

  .mobile-play {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 30;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 8px;
    color: #1d1206;
    background: linear-gradient(135deg, var(--gold), var(--gold-bright));
    font-weight: 900;
    box-shadow: 0 0 28px rgba(230, 183, 94, 0.22);
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-content {
    justify-self: center;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }

  h1 {
    max-width: 340px;
    font-size: 42px;
    line-height: 0.98;
  }

  .lead {
    max-width: 340px;
    font-size: 18px;
  }

  .hero-actions {
    width: min(100%, 340px);
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .hero-stats {
    gap: 6px;
  }

  .wordmark {
    padding: 20px;
  }

  .wordmark span,
  .wordmark strong {
    font-size: 40px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .feature-grid article {
    min-height: 0;
  }

  .play-strip,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
