/* ============================================================
   SPARK HALLOW STUDIOS — styles.css
   Dark ember-lit theme: deep charcoal base, warm amber accent,
   soft off-white text. One stylesheet for the whole site.
   ============================================================ */

:root {
  --bg:        #0c0a08;
  --bg-2:      #12100c;
  --panel:     #181510;
  --panel-2:   #1f1b14;
  --line:      #2c2619;
  --ink:       #f3ede1;
  --ink-dim:   #c9bda6;
  --ink-faint: #93876f;
  --ember:     #ffa53c;
  --ember-hot: #ff7a1a;
  --ember-deep:#b34700;
  --glow:      rgba(255, 150, 50, 0.16);
  --radius:    16px;
  --maxw:      1160px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--ember-deep); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap {
  width: min(var(--maxw), 100% - 3rem);
  margin-inline: auto;
}
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.9rem;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
.lede { color: var(--ink-dim); font-size: 1.13rem; }
.muted { color: var(--ink-faint); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 8, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 64px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .dot { color: var(--ember); }
.wordmark small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-left: auto;
  list-style: none;
}
.nav__links a {
  color: var(--ink-dim);
  font-weight: 600;
  font-size: 0.97rem;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }
.nav__links a[aria-current="page"] { color: var(--ember); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--ember {
  background: linear-gradient(135deg, var(--ember) 0%, var(--ember-hot) 100%);
  color: #241300;
  box-shadow: 0 8px 32px rgba(255, 130, 30, 0.28);
}
.btn--ember:hover { box-shadow: 0 12px 40px rgba(255, 130, 30, 0.4); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ember); color: var(--ember); }
.btn--lg { font-size: 1.12rem; padding: 1rem 2.2rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(160deg, #241708 0%, #171208 55%, #0c0a08 100%);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 90% 60% at 50% 110%, rgba(255, 130, 30, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(12,10,8,0.52) 0%, rgba(12,10,8,0.34) 45%, var(--bg) 100%);
}
.hero__inner { padding: 7.5rem 0 6.5rem; max-width: 52rem; }
.hero__inner.center { margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  letter-spacing: 0.02em;
  text-shadow: 0 4px 44px rgba(0,0,0,0.55);
}
.hero h1 .ember-word {
  background: linear-gradient(120deg, #ffd28a, var(--ember) 55%, var(--ember-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__tag {
  font-size: clamp(1.12rem, 2.4vw, 1.4rem);
  color: var(--ink);
  margin: 1.4rem 0 0.6rem;
  font-weight: 600;
  text-shadow: 0 2px 18px rgba(0,0,0,0.6);
}
.hero__sub { color: var(--ink-dim); max-width: 38rem; }
.hero__inner.center .hero__sub { margin-inline: auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero__inner.center .hero__cta { justify-content: center; }
.hero__badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(255, 165, 60, 0.45);
  background: rgba(20, 14, 6, 0.55);
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

/* ---------- game / library cards ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 165, 60, 0.55);
  box-shadow: 0 18px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,165,60,0.12);
}
.game-card__media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(ellipse at 30% 20%, #4a2c10 0%, transparent 55%),
    linear-gradient(150deg, #2b1d0d, #14100a 70%);
}
.game-card__media img { width: 100%; height: 100%; object-fit: cover; }
.game-card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.game-card__title { font-size: 1.65rem; letter-spacing: 0.04em; }
.game-card__desc { color: var(--ink-dim); flex: 1; }
.game-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.game-card__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.6rem; }
.game-card--soon {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  border-style: dashed;
  color: var(--ink-faint);
  background: transparent;
}
.game-card--soon .soon-mark { font-size: 2rem; color: var(--ember); opacity: 0.7; }

.tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(255,165,60,0.4);
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
}
.tag--soft { color: var(--ink-dim); border-color: var(--line); }

/* ---------- features grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.3rem;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature:hover { border-color: rgba(255,165,60,0.5); transform: translateY(-3px); }
.feature__icon { font-size: 1.7rem; margin-bottom: 0.8rem; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--ink-dim); font-size: 0.98rem; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 70% 15%, #3d270e 0%, transparent 55%),
    linear-gradient(160deg, #241a0e, #100d09 75%);
  position: relative;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.shot:hover img { transform: scale(1.045); }
.shot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2rem 1.1rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, transparent, rgba(8,6,4,0.85));
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* ---------- updates ---------- */
.update-list { display: grid; gap: 1.2rem; }
.update-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: 12px;
  padding: 1.5rem 1.7rem;
}
.update-card h3 { margin-bottom: 0.35rem; }
.update-card .when { color: var(--ink-faint); font-size: 0.88rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.update-card p, .update-card li { color: var(--ink-dim); }
.update-card ul { margin: 0.6rem 0 0 1.15rem; }
.update-card li { margin-bottom: 0.3rem; }

.timeline { position: relative; display: grid; gap: 1.4rem; }
.version-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 2rem;
}
.version-block__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.9rem;
  margin-bottom: 0.8rem;
}
.version-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: #241300;
  background: linear-gradient(135deg, var(--ember), var(--ember-hot));
  border-radius: 8px;
  padding: 0.32rem 0.7rem;
}
.version-block h3 { font-size: 1.45rem; }
.version-block .when { color: var(--ink-faint); font-size: 0.9rem; font-weight: 600; }
.version-block p { color: var(--ink-dim); margin-bottom: 0.7rem; }
.version-block ul { margin-left: 1.15rem; color: var(--ink-dim); }
.version-block li { margin-bottom: 0.35rem; }
.version-block li strong, .update-card li strong { color: var(--ink); }

/* ---------- buy section ---------- */
.buy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 50% 120%, rgba(255, 130, 30, 0.24), transparent 65%),
    linear-gradient(180deg, var(--bg-2), #171106);
  border-block: 1px solid var(--line);
}
.buy__card {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  background: rgba(24, 21, 16, 0.85);
  border: 1px solid rgba(255,165,60,0.35);
  border-radius: 22px;
  padding: 3rem 2.4rem;
  box-shadow: 0 24px 70px rgba(0,0,0,0.55);
}
.buy__price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  margin: 0.6rem 0 0.4rem;
}
.buy__price sup { font-size: 0.45em; color: var(--ember); top: -0.7em; position: relative; }
.buy__perks { list-style: none; margin: 1.4rem 0 1.9rem; color: var(--ink-dim); display: grid; gap: 0.45rem; }
.buy__perks li::before { content: "✦ "; color: var(--ember); }
.buy__note {
  margin-top: 1.2rem;
  font-size: 0.94rem;
  color: var(--ink-dim);
  background: rgba(255, 165, 60, 0.08);
  border: 1px solid rgba(255, 165, 60, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
}
.buy__note.is-shown { animation: pulse-note 0.5s ease; }
@keyframes pulse-note {
  0% { transform: scale(0.98); } 100% { transform: scale(1); }
}
.buy__fineprint { margin-top: 1.1rem; font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.store-badge {
  display: flex; align-items: center; gap: 0.85rem;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 1.2rem 0.65rem 1rem;
  color: var(--ink);
  text-align: left;
  min-width: 210px;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.store-badge:hover { text-decoration: none; border-color: var(--ink-faint); }
.store-badge__icon { font-size: 1.7rem; line-height: 1; }
.store-badge__small { display: block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.store-badge__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.store-badge__state { display: block; font-size: 0.78rem; color: var(--ember); font-weight: 600; }
.store-badge.is-disabled { opacity: 0.55; cursor: not-allowed; }
.store-badge.is-disabled:hover { border-color: var(--line); }

/* ---------- misc blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 25% 20%, #40290f 0%, transparent 55%),
    linear-gradient(150deg, #261b0d, #100d09 75%);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.checklist { list-style: none; display: grid; gap: 0.65rem; margin-top: 1.2rem; color: var(--ink-dim); }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before { content: "🔥"; position: absolute; left: 0; font-size: 0.95rem; }
.checklist li strong { color: var(--ink); }

.studio-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
  text-align: center;
}
.studio-strip .stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
}
.stat__num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ember); }
.stat__label { color: var(--ink-dim); font-size: 0.95rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #080706;
  padding: 3rem 0 2.4rem;
  color: var(--ink-faint);
  font-size: 0.95rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: flex-start; justify-content: space-between; }
.footer__links { list-style: none; display: flex; gap: 1.4rem; }
.footer__links a { color: var(--ink-dim); }
.footer__fine { margin-top: 1.6rem; font-size: 0.85rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .section { padding: 3.8rem 0; }
  .split { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero__inner { padding: 4.5rem 0 4rem; }
  .buy__card { padding: 2.2rem 1.4rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__inner { gap: 1rem; flex-wrap: wrap; padding: 0.55rem 0; }
  .nav__links { gap: 1rem; margin-left: 0; flex-wrap: wrap; }
  .nav__links .btn { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .stores { flex-direction: column; }
  .store-badge { justify-content: center; }
}

/* ---------- trailer ---------- */
.trailer {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.trailer video { display: block; width: 100%; aspect-ratio: 1440 / 616; }
