/* ============================================================================
   SkyAnvil — public site
   Palette + type sampled from the AETHERDRIFT in-game art:
   deep-space navy, amber-gold primary, cyan secondary, rarity-purple depth.
   ========================================================================== */

:root {
  /* space / surfaces */
  --bg:        #070a12;
  --bg-2:      #0b1120;
  --panel:     #0e1526;
  --panel-2:   #121b30;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);

  /* brand */
  --gold:        #f0a830;
  --gold-bright: #ffce5a;
  --gold-deep:   #e0851f;
  --cyan:        #3fd0e0;
  --purple:      #a78bfa;

  /* text */
  --text:   #e8edf6;
  --muted:  #9fb0cc;
  --dim:    #6b7c99;

  /* effects */
  --glow-gold: 0 0 40px rgba(240, 168, 48, 0.25);
  --shadow:    0 20px 60px -20px rgba(0, 0, 0, 0.8);
  --radius:    14px;
  --maxw:      1180px;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Deep-space backdrop: layered radial glows (amber + teal, exactly like the capsule art)
   over a near-black navy, with a faint star field. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 50% 8%, rgba(63, 208, 224, 0.10), transparent 60%),
    radial-gradient(900px 600px at 78% 22%, rgba(240, 168, 48, 0.10), transparent 55%),
    radial-gradient(1100px 900px at 20% 80%, rgba(120, 90, 200, 0.08), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 85% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 90% 90%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 33% 12%, rgba(255,255,255,0.45), transparent);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
.section-head p { color: var(--muted); margin-top: 0.9rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------- buttons -- */
.btn {
  --btn-bg: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1205;
  box-shadow: 0 8px 30px -8px rgba(240, 168, 48, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(240, 168, 48, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); transform: translateY(-2px); }
/* cyan "play / live" variant — used for the temporary in-browser web build */
.btn-play {
  background: rgba(63, 208, 224, 0.10);
  border-color: rgba(63, 208, 224, 0.5);
  color: var(--cyan);
}
.btn-play:hover { border-color: var(--cyan); color: #c9f5fb; transform: translateY(-2px); box-shadow: 0 10px 34px -10px rgba(63, 208, 224, 0.45); }
.btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------------- navbar -- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-name b { color: var(--gold); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.15s ease;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-links .btn { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
/* keep button label colors — the generic `.nav-links a` rule above is more specific
   than `.btn-primary`, so restate them here or the CTA text renders muted. */
.nav-links a.btn-primary { color: #1a1205; }
.nav-links a.btn-ghost { color: var(--text); }
.nav-links a.btn-ghost:hover { color: var(--gold-bright); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------- hero -- */
.hero { text-align: center; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); position: relative; }
.hero-logo {
  width: min(560px, 82%);
  height: auto; /* pair with the img width/height attrs so the 16:9 ratio is kept, not stretched to 720px */
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 40px rgba(240, 168, 48, 0.25));
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.hero .subline {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 2rem;
  font-size: clamp(1rem, 2vw, 1.12rem);
}
.hero .subline em { color: var(--gold-bright); font-style: normal; }
.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; color: var(--dim); font-size: 0.86rem; }
.hero-note b { color: var(--cyan); font-weight: 600; }
.hero-badges {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  color: var(--dim);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-badges b { color: var(--muted); font-weight: 600; }

/* --------------------------------------------------------------- stat bar -- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--panel); padding: 1.5rem 1rem; text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: var(--gold);
  line-height: 1;
}
.stat .label { color: var(--muted); font-size: 0.82rem; margin-top: 0.5rem; letter-spacing: 0.03em; }

/* ------------------------------------------------------------- feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.feature .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(240, 168, 48, 0.1);
  border: 1px solid rgba(240, 168, 48, 0.25);
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* --------------------------------------------------------------- showcase -- */
.showcase { position: relative; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
.shot {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  aspect-ratio: 16 / 9;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.shot:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.shot:hover img { transform: scale(1.04); }
.shot .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 18, 0.92));
}
.shot .cap span { color: var(--cyan); font-weight: 500; font-family: var(--font-body); }
.shot.wide { grid-column: span 2; aspect-ratio: auto; }
.shot.wide img { object-position: top; }

/* --------------------------------------------------------------- gameplay -- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.split-body h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 1rem; }
.split-body p { color: var(--muted); margin-bottom: 1rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.pill {
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.pill.k { color: var(--gold-bright); border-color: rgba(240,168,48,0.35); }
.pill.b { color: var(--cyan); border-color: rgba(63,208,224,0.35); }
.pill.a { color: var(--purple); border-color: rgba(167,139,250,0.35); }

/* ------------------------------------------------------------------- steam -- */
.cta-band {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(240,168,48,0.14), transparent 70%),
    linear-gradient(180deg, var(--panel), var(--bg-2));
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 0.8rem; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; font-size: 1.05rem; }
.cta-band .hero-cta { margin-bottom: 0.6rem; }
.cta-note { color: var(--dim); font-size: 0.85rem; margin-top: 1.2rem; }

/* -------------------------------------------------------------- studio ----- */
.studio { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: center; }
.studio-mark {
  display: grid; place-items: center;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(400px 300px at 50% 40%, rgba(240,168,48,0.12), transparent 70%),
    var(--bg-2);
}
.studio-mark img { width: 130px; filter: drop-shadow(0 6px 30px rgba(240,168,48,0.35)); }
.studio-mark .sname {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  font-size: 1.3rem;
}
.studio-mark .sname b { color: var(--gold); }
.studio-body h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
.studio-body p { color: var(--muted); margin-bottom: 1rem; }

/* ------------------------------------------------------------------ footer -- */
.footer { border-top: 1px solid var(--border); padding: 3rem 0 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer .brand { margin-bottom: 0.8rem; }
.footer p { color: var(--dim); font-size: 0.88rem; max-width: 340px; }
.footer-links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 0.9rem;
}
.footer-col a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.55rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 0.82rem;
}

/* ---------------------------------------------------------------- lightbox -- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 12, 0.94);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; border: 1px solid var(--border-2); box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 1.4rem; right: 1.6rem;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 2rem; line-height: 1;
}
.lightbox-close:hover { color: var(--text); }

/* --------------------------------------------------------------- reveal ----
   Progressive enhancement: content is fully visible by default. Only when JS
   confirms it can drive the reveal (html.js) do we hide-then-animate. This keeps
   the page readable with JS disabled and in tools that don't run the observer. */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive - */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .split, .studio { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .studio-mark { max-width: 320px; margin-inline: auto; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    background: rgba(9, 13, 22, 0.98);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav-links.open .btn { margin-top: 0.8rem; justify-content: center; }
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot.wide { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; }
}
