/* =========================================================
   Beyond the Sky Gate — Dark Fantasy / Epic theme
   ========================================================= */

:root {
  --bg:        #0b0a12;
  --bg-alt:    #110f1c;
  --panel:     #17152492;
  --panel-solid:#171524;
  --ink:       #ece7f5;
  --ink-soft:  #b9b2cc;
  --muted:     #847d9a;
  --gold:      #e6b450;
  --gold-soft: #f0cd84;
  --amber:     #d98a3a;
  --line:      #2a2740;
  --line-soft: #211f33;
  --danger:    #e5484d;
  --ok:        #46c08a;
  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1120px;
  --shadow:    0 18px 48px -20px rgba(0,0,0,.8);
  --font-head: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

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

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

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

a { color: var(--gold-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: .85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: #1a1304;
  box-shadow: 0 10px 30px -10px rgba(230,180,80,.5);
}
.btn-primary:hover { color: #1a1304; box-shadow: 0 14px 38px -10px rgba(230,180,80,.7); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(11,10,18,.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-logo { height: 36px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; color: var(--gold-soft); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--gold-soft); }
.nav-cta { padding: .6em 1.2em; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(230,180,80,.18), transparent 60%),
    radial-gradient(900px 500px at 20% 110%, rgba(120,80,200,.16), transparent 60%),
    linear-gradient(180deg, #0b0a12 0%, #14101f 55%, #0b0a12 100%);
}
.hero-bg::after {
  /* swap for a real key-art image: background-image: url('assets/img/hero.jpg'); */
  content: ""; position: absolute; inset: 0;
  background-image: url('../assets/img/hero.jpg');
  background-size: cover; background-position: center;
  opacity: .35; mix-blend-mode: screen;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(5,4,10,.65) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding-top: 72px; }
.eyebrow { text-transform: uppercase; letter-spacing: .34em; font-size: .78rem; color: var(--gold); margin: 0 0 1rem; }
.hero-title {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; margin: 0;
  background: linear-gradient(180deg, #fff 0%, var(--gold-soft) 60%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 2px 40px rgba(230,180,80,.25);
}
.hero-tagline { font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: var(--ink-soft); margin: 1.2rem auto 2.2rem; max-width: 36ch; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 1.5rem; color: var(--muted); z-index: 2; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--gold); display: block; margin-bottom: .8rem; }
.section-head h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0; }
.section-sub { color: var(--ink-soft); margin-top: .8rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.about-copy .lead { font-size: 1.2rem; color: var(--ink); }
.about-copy p { color: var(--ink-soft); }
.feature-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.feature-list li { padding-left: 1.8rem; position: relative; margin-bottom: .7rem; color: var(--ink-soft); }
.feature-list li::before { content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: .8rem; top: .25rem; }
.about-facts { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.about-facts h3 { font-family: var(--font-head); margin: 0 0 1rem; color: var(--gold-soft); font-size: 1.15rem; }
.about-facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; }
.about-facts dt { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.about-facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.pill { display: inline-block; padding: .2em .8em; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill-live { background: rgba(70,192,138,.15); color: var(--ok); border: 1px solid rgba(70,192,138,.3); }

/* ---------- Progress / Roadmap ---------- */
.progress-overall { max-width: 720px; margin: 0 auto 56px; }
.progress-overall-top { display: flex; justify-content: space-between; margin-bottom: .6rem; color: var(--ink-soft); font-weight: 500; }
.progress-pct { color: var(--gold); font-weight: 700; }
.progress-track { height: 12px; background: var(--line-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--gold)); border-radius: 999px; }

.roadmap { list-style: none; margin: 0; padding: 0; max-width: 820px; margin: 0 auto; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.roadmap li { position: relative; padding: 0 0 28px 48px; }
.roadmap-dot { position: absolute; left: 3px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-solid); border: 2px solid var(--line); z-index: 1; }
.roadmap li.done .roadmap-dot { background: var(--ok); border-color: var(--ok); }
.roadmap li.active .roadmap-dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(230,180,80,.18); }
.roadmap-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.roadmap-phase { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.roadmap-card h3 { font-family: var(--font-head); margin: .3rem 0 .4rem; font-size: 1.2rem; }
.roadmap-card p { margin: 0; color: var(--ink-soft); }

/* ---------- Trailer ---------- */
.video-frame { position: relative; max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--panel-solid); aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.play-badge { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 1.4rem; border: 2px solid rgba(255,255,255,.8); }

/* ---------- Stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; margin: 0 auto; }
.store-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 32px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-align: center; transition: border-color .2s ease, transform .2s ease; }
.store-card:hover { border-color: var(--gold); transform: translateY(-3px); color: var(--ink); }
.store-ico { font-size: 2.4rem; }
.store-name { font-family: var(--font-head); font-size: 1.3rem; color: var(--gold-soft); }
.store-cta { font-size: .9rem; color: var(--muted); }

.links-row { margin-top: 56px; text-align: center; }
.links-row h3 { font-family: var(--font-head); color: var(--gold-soft); margin-bottom: 1rem; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.social-links a { padding: .55em 1.2em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: .92rem; }
.social-links a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Footer ---------- */
.site-footer { background: #08070e; border-top: 1px solid var(--line-soft); padding: 56px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-text { font-family: var(--font-head); font-size: 1.2rem; color: var(--gold-soft); }
.footer-studio { color: var(--ink-soft); margin: .6rem 0 .2rem; }
.footer-copy { color: var(--muted); font-size: .85rem; }
.footer-nav h4 { font-family: var(--font-head); font-size: 1rem; color: var(--ink); margin: 0 0 .9rem; }
.footer-nav a { display: block; color: var(--ink-soft); font-size: .92rem; margin-bottom: .5rem; }
.footer-nav a:hover { color: var(--gold-soft); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4,3,9,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox-content { max-width: 1000px; width: 100%; }
.lightbox-content img { width: 100%; height: auto; border-radius: var(--radius-sm); }
.lightbox-content .video-frame { max-width: 100%; }
.lightbox-close { position: absolute; top: 20px; right: 28px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Inner pages (support / privacy / data-deletion) ---------- */
.page-hero { padding: 140px 0 48px; background: linear-gradient(180deg, #14101f, var(--bg)); border-bottom: 1px solid var(--line-soft); text-align: center; }
.page-hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 .5rem; color: var(--gold-soft); }
.page-hero p { color: var(--ink-soft); margin: 0 auto; max-width: 60ch; }
.prose { max-width: 820px; margin: 0 auto; padding: 56px 24px 96px; }
.prose h2 { font-family: var(--font-head); font-size: 1.5rem; color: var(--gold-soft); margin-top: 2.4rem; }
.prose h3 { font-family: var(--font-head); font-size: 1.15rem; color: var(--ink); margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { padding-left: 1.3rem; }
.prose a { text-decoration: underline; }
.prose .muted { color: var(--muted); font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card h3 { font-family: var(--font-head); color: var(--gold-soft); margin: 0 0 .4rem; }
.info-card address { font-style: normal; color: var(--ink-soft); line-height: 1.7; }

/* ---------- Forms ---------- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .45rem; font-size: .95rem; }
.form-row .req { color: var(--gold); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: .8em 1em; background: #0d0b16; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--ink); font-family: inherit; font-size: 1rem;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,180,80,.15); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-check { display: flex; gap: .7rem; align-items: flex-start; }
.form-check input { width: auto; margin-top: .25rem; }
.form-check label { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.form-hint { color: var(--muted); font-size: .85rem; margin-top: .4rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin-top: 1.2rem; font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 1.2rem; padding: 1em 1.2em; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(70,192,138,.12); border: 1px solid rgba(70,192,138,.35); color: var(--ok); }
.form-status.err { background: rgba(229,72,77,.12); border: 1px solid rgba(229,72,77,.35); color: var(--danger); }

.back-link { display: inline-block; margin-bottom: 1.2rem; color: var(--muted); font-size: .9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .store-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 72px; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--panel-solid); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; transform: translateY(-120%); transition: transform .3s ease;
    max-height: calc(100svh - 72px); overflow-y: auto;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { margin-top: .8rem; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
