/* ==========================================================================
   Rise of Crowns: Civilizations — public site styles
   Sections: tokens, base, header, hero, store, screenshots, features,
   band, steps, faq, support, cta, footer, legal, forms, lightbox, motion.
   ========================================================================== */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/cinzel-latin-600-700.woff2") format("woff2");
}

:root {
  --ink: #070a0f;
  --bg: #0b0f16;
  --bg-soft: #0f141d;
  --surface: #141b26;
  --surface-2: #1a2331;
  --surface-3: #212c3c;
  --text: #f4eee2;
  --text-soft: #dfd6c6;
  --muted: #a7b0be;
  --muted-2: #8d97a6;
  --gold: #d8ac5f;
  --gold-2: #f3d693;
  --gold-3: #b8893c;
  --gold-ink: #241806;
  --red: #a33a34;
  --green: #4d8a69;
  --line: rgba(216, 172, 95, .16);
  --line-strong: rgba(216, 172, 95, .36);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, .34);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, .46);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Cinzel", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }
body.lightbox-open { overflow: hidden; }

img,
picture,
svg { max-width: 100%; }

img { height: auto; }

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffe4ad; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.28rem); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
h4 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); }
::selection { background: rgba(216, 172, 95, .32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------ utilities ------------------------------- */

.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-narrow { width: min(720px, 92vw); margin-inline: auto; }

.kicker {
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 62ch;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ok-note { color: #a5efc0; }
.err-note { color: #ffb9b4; }
.form-note { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--gold-2);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; color: var(--gold-ink); }

/* ------------------------------- header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 10, 15, .92), rgba(7, 10, 15, .74));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(7, 10, 15, .94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 4px;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.is-active { color: var(--text); }
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.nav .nav-cta {
  margin-left: 10px;
  padding: 11px 20px;
  color: var(--gold-ink);
  background: linear-gradient(180deg, #f2d392, #cf9f4c);
  border: 1px solid rgba(255, 231, 176, .6);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.nav .nav-cta:hover { color: #1a1104; background: linear-gradient(180deg, #ffe4aa, #dcae5c); }
.nav .nav-cta::after { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(20, 27, 38, .9);
  color: var(--gold-2);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  margin: 4px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); color: var(--text); }
.btn-gold {
  border-color: rgba(255, 231, 176, .55);
  background: linear-gradient(180deg, #f2d392, #cf9f4c);
  color: var(--gold-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-gold:hover { color: #1a1104; background: linear-gradient(180deg, #ffe4aa, #dcae5c); }
.btn-ghost { border-color: rgba(190, 203, 222, .34); color: #dbe4f2; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(190, 203, 222, .55); }
.btn-mini { min-height: 38px; padding: 7px 14px; font-size: .86rem; }
.btn-block { width: 100%; }

/* -------------------------------- hero ---------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(86vh, 760px);
  padding: clamp(56px, 8vw, 104px) 0 clamp(88px, 11vw, 132px);
  background: var(--ink);
}
.hero-art { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(96deg, rgba(7, 10, 15, .97) 0%, rgba(7, 10, 15, .93) 30%, rgba(7, 10, 15, .6) 54%, rgba(7, 10, 15, .18) 76%, rgba(7, 10, 15, .05) 100%),
    linear-gradient(180deg, rgba(7, 10, 15, .82) 0%, rgba(7, 10, 15, .12) 34%, rgba(11, 15, 22, .96) 100%);
}
.hero-inner { position: relative; max-width: 660px; }

.hero h1 { margin-bottom: .42em; text-shadow: 0 8px 34px rgba(0, 0, 0, .55); }
.hero h1 .title-line-2 {
  display: block;
  background: linear-gradient(100deg, #ffe6b0 10%, #d8ac5f 52%, #a97c34 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: .56em;
  letter-spacing: .16em;
  margin-top: .22em;
}
.hero .lead { font-size: clamp(1.04rem, 1.5vw, 1.2rem); color: #e6dccb; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .85;
}

/* ------------------------------ fact strip ------------------------------ */

.facts-wrap { position: relative; z-index: 2; margin-top: -54px; }
.facts {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 35, 49, .96), rgba(15, 20, 29, .98));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.fact {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}
.fact:last-child { border-right: 0; }
.fact dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.fact dd {
  margin: 6px 0 0;
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
}
.fact dd span { color: var(--gold); }

/* ------------------------------- sections ------------------------------- */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-muted {
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(216, 172, 95, .07), transparent 58%),
    var(--bg-soft);
  border-block: 1px solid rgba(216, 172, 95, .1);
}

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .lead { margin-inline: auto; }

.section-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-split .section-head { margin-bottom: 0; }

/* ------------------------------ store card ------------------------------ */

.store-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  gap: 30px;
  align-items: center;
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(216, 172, 95, .14), transparent 55%),
    linear-gradient(180deg, rgba(26, 35, 49, .9), rgba(15, 20, 29, .96));
  box-shadow: var(--shadow-md);
}
.store-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 22px;
}
.store-app-icon {
  grid-row: 1;
  align-self: start;
  width: 104px;
  height: 104px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
  flex-shrink: 0;
}
.store-app h2 { margin-bottom: .28em; font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.store-app .store-dev { color: var(--gold); font-size: .9rem; margin-bottom: 0; }
.store-line {
  margin: 10px 0 0;
  max-width: 48ch;
  font-size: .93rem;
  line-height: 1.6;
  color: var(--muted);
}

.store-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.store-actions .btn { width: 100%; max-width: 240px; }

/* ------------------------------ screenshots ----------------------------- */

.shots { position: relative; }
.shot-track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 4px 0 18px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior-x: contain;
}
.shot-track::-webkit-scrollbar { height: 8px; }
.shot-track::-webkit-scrollbar-thumb { background: rgba(216, 172, 95, .32); border-radius: 99px; }
.shot-track::-webkit-scrollbar-track { background: rgba(255, 255, 255, .04); border-radius: 99px; }

.shot {
  position: relative;
  flex: 0 0 min(540px, 78vw);
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
}
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .45s ease;
}
.shot button:hover img { transform: scale(1.03); }
.shot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 34px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 10, .9));
  font-size: .9rem;
  font-weight: 600;
  color: #f7f1e6;
  text-align: left;
  pointer-events: none;
}
.shot-cap svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

.shot-nav { display: flex; gap: 8px; }
.shot-nav button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(20, 27, 38, .8);
  color: var(--gold-2);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.shot-nav button:hover { background: rgba(216, 172, 95, .16); transform: translateY(-1px); }
.shot-nav button:disabled { opacity: .35; cursor: default; transform: none; }
.shot-nav svg { width: 16px; height: 16px; }

/* ------------------------------- features ------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 35, 49, .72), rgba(15, 20, 29, .82));
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 205, 138, .5), transparent);
  opacity: 0;
  transition: opacity .22s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 172, 95, .34);
  background: linear-gradient(180deg, rgba(31, 42, 58, .82), rgba(17, 23, 33, .9));
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: radial-gradient(100% 100% at 30% 0%, rgba(243, 214, 147, .22), rgba(20, 27, 38, .4));
  color: var(--gold-2);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; color: var(--text); }
.feature-card p { margin: 0; font-size: .92rem; line-height: 1.62; color: var(--muted); }

/* ------------------------------ battle band ----------------------------- */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0;
  border-block: 1px solid var(--line);
  background: var(--ink);
}
.band-art { position: absolute; inset: 0; z-index: -2; margin: 0; }
.band-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 15, .94) 0%, rgba(7, 10, 15, .8) 42%, rgba(7, 10, 15, .35) 72%, rgba(7, 10, 15, .55) 100%),
    linear-gradient(180deg, rgba(7, 10, 15, .5), rgba(7, 10, 15, .72));
}
.band-inner { max-width: 620px; }
.band h2 { text-shadow: 0 6px 26px rgba(0, 0, 0, .6); }
.band p { color: #e3d9c8; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* -------------------------------- steps --------------------------------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 38, .55);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: transparent;
  background: linear-gradient(120deg, #f3d693, #a97c34);
  -webkit-background-clip: text;
  background-clip: text;
}
.step h3 { margin-bottom: 7px; }
.step p { margin: 0; font-size: .93rem; color: var(--muted); }

/* --------------------------------- faq ---------------------------------- */

.faq {
  display: grid;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 27, 38, .55);
  transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] { border-color: rgba(216, 172, 95, .32); background: rgba(26, 35, 49, .72); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-2);
  font-size: 1.05rem;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.faq-item[open] summary::after { content: "−"; transform: rotate(180deg); background: rgba(216, 172, 95, .14); }
.faq-item .faq-body { padding: 0 22px 20px; }
.faq-item .faq-body p { color: var(--muted); font-size: .94rem; margin: 0; }
.faq-item .faq-body a { color: var(--gold-2); }

/* ------------------------------- support -------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(26, 35, 49, .68), rgba(15, 20, 29, .78));
  color: var(--text);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 172, 95, .38);
  background: linear-gradient(180deg, rgba(31, 42, 58, .82), rgba(17, 23, 33, .9));
  color: var(--text);
}
.info-card .info-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(216, 172, 95, .1);
  color: var(--gold-2);
}
.info-card .info-icon svg { width: 17px; height: 17px; }
.info-card strong { display: block; font-size: 1rem; }
.info-card span { font-size: .88rem; line-height: 1.55; color: var(--muted); }
.info-card .info-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold);
}
.info-card .info-arrow svg { width: 14px; height: 14px; transition: transform .2s ease; }
.info-card:hover .info-arrow svg { transform: translateX(3px); }

/* --------------------------------- cta ---------------------------------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5vw, 66px) clamp(24px, 4vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 160% at 80% 0%, rgba(216, 172, 95, .2), transparent 60%),
    linear-gradient(150deg, #1c2534, #0d1219 68%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.cta-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%);
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel h2 { margin-bottom: .35em; }
.cta-panel p { max-width: 60ch; margin-inline: auto; color: var(--muted); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

/* -------------------------------- rows ---------------------------------- */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.split-section p { color: var(--muted); font-size: 1rem; line-height: 1.75; }

/* -------------------------------- footer -------------------------------- */

.site-footer {
  margin-top: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #0a0e14, #070a0f);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(140px, .7fr));
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(44px, 5vw, 64px) 0 34px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}
.footer-brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-strong); }
.footer-blurb { max-width: 34ch; font-size: .9rem; color: var(--muted); }
.footer-cta { margin-top: 18px; }

.footer-col h4,
.footer-col h3 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a,
.footer-contact a {
  color: #cfd7e3;
  font-size: .9rem;
  text-decoration: none;
  transition: color .16s ease;
  overflow-wrap: anywhere;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--gold-2); }
.footer-contact { display: grid; gap: 10px; align-content: start; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: .8rem;
  color: var(--muted-2);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-2); }

/* ------------------------------ legal pages ----------------------------- */

.legal-page { max-width: 780px; margin-inline: auto; }
.legal-hero {
  padding-bottom: clamp(22px, 3vw, 30px);
  margin-bottom: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.legal-hero .kicker { margin-bottom: 12px; }
.legal-hero h1 { margin-bottom: .3em; font-size: clamp(2rem, 4vw, 3.1rem); }
.legal-hero .lead { margin: 0; }
.legal-page h2 {
  margin-top: 2.1em;
  margin-bottom: .6em;
  font-size: clamp(1.24rem, 2vw, 1.5rem);
  color: #f0cf95;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.legal-hero + h2 { margin-top: 0; }
.legal-page p { color: #cfd3d9; line-height: 1.78; }
.legal-page a { color: var(--gold-2); }
.legal-page strong { color: var(--text); }

.contact-band {
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid rgba(77, 138, 105, .42);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: rgba(77, 138, 105, .08);
}
.contact-band h2 { margin-top: 0; color: #cfe9d9; }
.contact-band p { margin-bottom: .4em; }

/* --------------------------- panels and forms --------------------------- */

.panel {
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 27, 38, .78);
}
.panel-active { border-color: rgba(216, 172, 95, .5); box-shadow: var(--shadow-md); }
.form-panel { max-width: 720px; }
.account-grid { width: min(860px, 92vw); margin-inline: auto; }
.admin-grid { width: min(1040px, 92vw); }

label {
  display: block;
  margin: 16px 0 7px;
  font-size: .88rem;
  font-weight: 600;
  color: #e8dcc6;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #3d4c62;
  border-radius: 8px;
  background: #0c121b;
  color: #fff;
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:hover,
textarea:hover,
select:hover { border-color: #526585; }
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(216, 172, 95, .18);
}
textarea { min-height: 118px; resize: vertical; }
::placeholder { color: #6f7c8f; }

.debug-box {
  padding: 12px;
  border: 1px solid #303d54;
  border-radius: 8px;
  background: #050912;
  color: #d9e2f1;
  white-space: pre-wrap;
  word-break: break-word;
}

/* -------------------------------- lightbox ------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  background: rgba(4, 6, 10, .94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure {
  margin: 0;
  max-width: min(1280px, 94vw);
  text-align: center;
}
.lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7);
}
.lightbox figcaption {
  margin-top: 14px;
  font-size: .9rem;
  color: var(--muted);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(20, 27, 38, .9);
  color: var(--gold-2);
  cursor: pointer;
  transition: background .18s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(216, 172, 95, .2); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 18px; height: 18px; }

/* -------------------------------- reveal -------------------------------- */

.reveal {
  opacity: 1;
  transform: none;
}
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------ breakpoints ----------------------------- */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-panel { grid-template-columns: 1fr; }
  .store-actions {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 22px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .store-actions .btn { width: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .menu-toggle { display: block; order: 3; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 55;
    display: grid;
    gap: 2px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 14px 4vw 22px;
    border-bottom: 1px solid var(--line);
    background: #070a0f;
    box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a { padding: 14px 12px; font-size: 1rem; border-radius: 10px; }
  .nav a.is-active::after { display: none; }
  .nav a.is-active { background: rgba(216, 172, 95, .1); }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; }

  .hero {
    display: block;
    min-height: 0;
    padding: 0 0 clamp(28px, 6vw, 44px);
    background: var(--bg);
  }
  .hero-art {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
    aspect-ratio: 780 / 640;
    max-height: 56vh;
    z-index: -2;
  }
  .hero-art img { object-position: 50% 32%; }
  .hero-art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background: linear-gradient(180deg, rgba(11, 15, 22, 0), var(--bg) 90%);
    pointer-events: none;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 10, 15, .08) 0%, rgba(7, 10, 15, .2) 42%, rgba(11, 15, 22, .88) 82%, var(--bg) 100%),
      radial-gradient(90% 60% at 20% 100%, rgba(7, 10, 15, .8), transparent 70%);
  }
  .hero .container { position: relative; z-index: 1; margin-top: 0; padding-top: clamp(16px, 4vw, 28px); }
  .hero-inner { max-width: none; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 3.2rem); }
  .hero-actions { margin-top: 24px; }
  .hero-meta { margin-top: 20px; gap: 8px 16px; }
  .section-split { align-items: flex-start; }
  .split-section { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .store-app { gap: 0 16px; }
  .store-app-icon { grid-row: 1; width: 72px; height: 72px; border-radius: 16px; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 32px, 1180px); }
  .brand-icon { width: 38px; height: 38px; }
  .brand-main { font-size: .88rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .22em; }
  .facts-wrap { margin-top: -34px; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .fact { padding: 16px 18px; }
  .fact dd { font-size: .9rem; }
  .feature-grid,
  .card-grid { grid-template-columns: 1fr; }
  .store-actions { grid-template-columns: 1fr; justify-items: stretch; }
  .store-actions .btn { max-width: none; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .shot { flex-basis: 86vw; }
  .shot-nav { display: none; }
  .store-app-icon { width: 60px; height: 60px; border-radius: 14px; }
  .store-app h2 { font-size: 1.18rem; }
  .store-app .store-dev { font-size: .82rem; }
  .store-app .kicker { font-size: .66rem; letter-spacing: .12em; margin-bottom: 8px; }
  .shot-cap { font-size: .84rem; padding: 28px 14px 12px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-brand { font-size: .95rem; }
  .site-footer { margin-top: 0; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-col:last-child .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
