/* ==========================================================
   Colors and sizes in one place. Change these to restyle the
   whole site — e.g. --gold for every heading and button.
   ========================================================== */
:root {
  --bg:        #0f0c0a;   /* near-black, warm — like the table at night */
  --bg-raised: #1a1512;   /* cards and panels */
  --wood:      #2a1f17;
  --text:      #e9e1d3;   /* parchment white */
  --muted:     #a89c8a;
  --gold:      #d8b46a;
  --gold-dim:  #9c7c3e;
  --blue:      #2b3f8f;   /* the dice */
  --radius:    10px;
  --max:       1120px;

  --font-title: "Cinzel", Georgia, serif;
  --font-body:  "Alegreya Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

a { color: var(--gold); }

h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: .75em 1.5em;
  border-radius: 999px;
  background: linear-gradient(180deg, #e6c47a, var(--gold-dim));
  color: #1b130a;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
  border: 1px solid var(--gold);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(216,180,106,.25); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-small { padding: .45em 1.1em; font-size: .95rem; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem max(16px, calc((100% - var(--max)) / 2));
  background: rgba(15,12,10,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216,180,106,.15);
}
.brand {
  font-family: var(--font-title); font-size: 1.4rem; font-weight: 700;
  color: var(--gold); text-decoration: none; letter-spacing: .08em;
}
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 0; color: var(--gold); font-size: 1.6rem; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: grid; place-items: center;
  text-align: center;
  padding: 120px 16px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
/* Darken the screenshot so the text on top stays readable */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(15,12,10,.55), rgba(15,12,10,.92) 75%),
    linear-gradient(180deg, transparent 60%, var(--bg));
}
.hero-content { position: relative; max-width: 760px; }
.title {
  font-size: clamp(3rem, 11vw, 7rem);
  letter-spacing: .12em;
  background: linear-gradient(180deg, #f6e3b0, var(--gold) 50%, var(--gold-dim));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(216,180,106,.35));
  margin-bottom: .1em;
}
.tagline { font-family: var(--font-title); font-size: clamp(1.1rem, 2.6vw, 1.5rem); color: var(--text); margin: 0 0 1rem; }
.lead { color: var(--muted); margin: 0 auto 2rem; max-width: 600px; }
.cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.badges { margin-top: 2rem; font-size: .95rem; color: var(--muted); letter-spacing: .04em; }

/* ---------------- Sections ---------------- */
.section { max-width: var(--max); margin: 0 auto; padding: 96px 16px 0; }
.section.narrow { max-width: 760px; }
.section.center { text-align: center; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); text-align: center; }
.section-intro { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 64px; }

/* ---------------- Features ---------------- */
.feature {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 80px;
}
.feature.reverse .feature-media { order: 2; }
.feature-media img, .feature-media video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(216,180,106,.25);
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
}
.feature-text h3 { font-size: 1.6rem; color: var(--text); }
.feature-text p { color: var(--muted); margin: 0; }

.mini-features {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.mini-features li {
  background: var(--bg-raised); border: 1px solid rgba(216,180,106,.12);
  border-radius: var(--radius); padding: 20px;
}
.mini-features strong { display: block; font-family: var(--font-title); color: var(--gold); margin-bottom: .25em; }
.mini-features span { color: var(--muted); font-size: 1rem; }

/* ---------------- Gallery ---------------- */
.gallery {
  display: grid; gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}
.gallery a { position: relative; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
/* With 5 shots the last one stretches to close the gap in the bottom row.
   Absolute so its wider box doesn't make that row taller. */
.gallery a:last-child { grid-column: span 2; }
.gallery a:last-child img { position: absolute; inset: 0; }
.gallery img {
  width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius);
  transition: transform .2s, filter .2s;
  filter: brightness(.85);
}
.gallery a:hover img { transform: scale(1.02); filter: brightness(1); }

/* ---------------- Roadmap ---------------- */
.roadmap { list-style: none; padding: 0; margin: 32px 0 0; border-left: 2px solid var(--gold-dim); }
.roadmap li { position: relative; padding: 0 0 24px 28px; }
.roadmap li::before {
  content: ""; position: absolute; left: -9px; top: .45em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold-dim);
}
.roadmap li.done::before { background: var(--gold); border-color: var(--gold); }
.roadmap strong { display: block; font-family: var(--font-title); }
.roadmap span { color: var(--muted); }

/* ---------------- Steam widget ---------------- */
.steam-widget { width: 100%; max-width: 646px; height: 190px; border: 0; }

/* ---------------- Footer ---------------- */
.footer {
  margin-top: 120px; padding: 32px 16px;
  text-align: center; color: var(--muted); font-size: .95rem;
  border-top: 1px solid rgba(216,180,106,.15);
  background: var(--wood);
}
.footer p { margin: .25em 0; }

/* ---------------- Lightbox ---------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.92);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: 0; color: var(--text); font-size: 2.5rem; cursor: pointer;
}

/* ==========================================================
   Phones and small tablets
   ========================================================== */
@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1rem; padding: 1.25rem 16px;
    background: var(--bg); border-bottom: 1px solid rgba(216,180,106,.15);
  }
  .nav.open { display: flex; }

  .feature { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
  .feature.reverse .feature-media { order: 0; }
  .mini-features { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery a:last-child { grid-column: auto; }
  .gallery a:last-child img { position: static; }
  .section { padding-top: 72px; }
}

@media (max-width: 480px) {
  .mini-features { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
