/* Gold Merge Mania — royal purple + metallic gold (brand reference) */

:root {
  --purple-void: #1e0b3a;
  --purple-deep: #3d1a6e;
  --purple-royal: #6b2fb5;
  --purple-bright: #7b3fbf;
  --purple-glow: rgba(196, 132, 255, 0.35);
  --gold-hi: #fff5a0;
  --gold-mid: #e8c547;
  --gold-deep: #b8860b;
  --gold-bronze: #6b4a00;
  --ink: #0f0518;
  --text: #f4edff;
  --text-muted: rgba(244, 237, 255, 0.78);
  --glass: rgba(40, 18, 80, 0.55);
  --glass-border: rgba(255, 213, 120, 0.45);
  --cta-pink: #ff3d9a;
  --cta-pink-deep: #d81f78;
  --cyan-pill: rgba(45, 212, 191, 0.2);
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  /* Layout rhythm — roomier page */
  --page-gutter: clamp(1.35rem, 4.5vw, 2.5rem);
  --section-y: clamp(3.75rem, 9vw, 6rem);
  --content-max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(255, 213, 120, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 50% 50%, var(--purple-bright), var(--purple-deep) 55%, var(--purple-void));
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10000;
  padding: 0.65rem 1rem;
  background: var(--gold-mid);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 3px solid var(--gold-hi);
  outline-offset: 2px;
}

/* Ambient layers */
.bg-veil {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
    repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg 12deg, rgba(255, 213, 120, 0.02) 12deg 24deg);
  opacity: 0.9;
}

.bg-sparkles {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0, transparent 45%),
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0, transparent 40%),
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0, transparent 42%);
  background-size: 3px 3px, 2px 2px, 2.5px 2.5px;
  background-position: 12% 18%, 78% 22%, 64% 76%;
  opacity: 0.35;
  animation: twinkle 7s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.22; }
  to { opacity: 0.42; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-sparkles {
    animation: none;
    opacity: 0.28;
  }
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
}

.navbar {
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.navbar.is-scrolled {
  background: linear-gradient(180deg, rgba(24, 10, 48, 0.92), rgba(24, 10, 48, 0.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.navbar__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.05rem var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
}

.brand__mark {
  border-radius: 14px;
  box-shadow:
    0 0 0 2px rgba(255, 213, 120, 0.55),
    0 12px 30px var(--purple-glow);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 18px rgba(255, 213, 120, 0.25);
}

.brand__tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--gold-mid);
  background: rgba(60, 30, 110, 0.65);
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold-mid));
  border-radius: 2px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.nav-links__a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links__a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold-hi));
  border-radius: 2px;
  transition: width 0.22s ease;
}

.nav-links__a:hover {
  color: var(--text);
}

.nav-links__a:hover::after {
  width: 100%;
}

.nav-links__a:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px;
  border-radius: 4px;
}

.nav-cta {
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.35rem var(--page-gutter) 1.5rem;
    background: rgba(18, 6, 40, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    gap: 1.25rem;
    display: none;
  }

  .nav-panel.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links__a {
    padding: 0.65rem 0;
  }

  .nav-cta {
    text-align: center;
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--gold-hi);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, #ff5fb4, var(--cta-pink) 40%, var(--cta-pink-deep));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 14px 36px rgba(255, 61, 154, 0.35);
}

.btn--primary:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 18px 44px rgba(255, 61, 154, 0.45);
  transform: translateY(-1px);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn--ghost:hover {
  border-color: var(--gold-mid);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn--store {
  min-height: 52px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.btn--store:hover {
  border-color: var(--gold-mid);
  transform: translateY(-2px);
}

.btn--store-alt {
  border-color: rgba(45, 212, 191, 0.45);
  background: linear-gradient(180deg, var(--cyan-pill), rgba(255, 255, 255, 0.04));
}

.btn__icon {
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: clamp(4.5rem, 11vw, 7.25rem) var(--page-gutter) clamp(4rem, 9vw, 6rem);
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.75rem, 6.5vw, 5.5rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 7vw, 3.5rem);
  }

  .hero__visual {
    order: -1;
    justify-self: center;
    margin-bottom: 0.25rem;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-hi);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  margin: 0 0 1.6rem;
}

.icon-inline {
  flex-shrink: 0;
  color: var(--gold-mid);
}

.hero__title {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
}

.hero__title-line {
  display: block;
  background: linear-gradient(185deg, #fffef0 0%, var(--gold-hi) 18%, var(--gold-mid) 42%, var(--gold-deep) 72%, var(--gold-bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 rgba(60, 35, 0, 0.85)) drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

.hero__title-line--accent {
  margin-top: 0.35rem;
  background: linear-gradient(185deg, #fff 0%, var(--gold-hi) 25%, #f0c14a 55%, #c98a1a);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__lead {
  margin: 0 0 2.25rem;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-muted);
}

.hero__lead strong {
  color: var(--text);
  font-weight: 700;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__ticks {
  margin: 0;
  padding: 0 0 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero__ticks li + li {
  margin-top: 0.55rem;
}

/* Hero key art (banner) */
.hero-banner {
  position: relative;
  max-width: min(100%, 500px);
  margin: 0 auto;
}

figure.hero-banner {
  margin: 0;
}

.hero-banner__frame {
  position: relative;
  border-radius: 24px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 230, 150, 0.55), rgba(120, 70, 20, 0.85));
  box-shadow:
    0 0 0 2px rgba(255, 245, 180, 0.35) inset,
    0 28px 60px rgba(0, 0, 0, 0.55),
    0 0 80px var(--purple-glow);
}

.hero-banner__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero-banner__glow {
  position: absolute;
  inset: -16%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 213, 120, 0.35), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}

/* Screenshot strip (images/1.png … 5.png) */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
  margin-top: clamp(3rem, 6vw, 4.25rem);
  max-width: 100%;
}

@media (max-width: 900px) {
  .shot-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .shot-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shot-gallery__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  cursor: default;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot-gallery__img:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 213, 120, 0.75);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Sections */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-y) var(--page-gutter);
}

.section__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.25rem;
}

.section__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__sub {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 3vw, 2rem);
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  position: relative;
  padding: clamp(1.65rem, 3vw, 2.1rem) clamp(1.45rem, 2.5vw, 1.85rem) clamp(1.75rem, 3vw, 2.15rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(30, 12, 58, 0.65));
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 245, 180, 0.5), transparent 40%, transparent 60%, rgba(255, 61, 154, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 213, 120, 0.75);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45);
}

.feature-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  color: var(--gold-hi);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 213, 120, 0.35);
}

.feature-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Download */
.download {
  padding-bottom: clamp(5rem, 12vw, 7.5rem);
}

.download__panel {
  position: relative;
  text-align: center;
  padding: clamp(2.85rem, 6.5vw, 4.5rem) clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 245, 200, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    var(--shadow-soft);
  overflow: hidden;
}

.download__ribbon {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.download__title {
  position: relative;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 3px 0 rgba(184, 134, 11, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.download__text {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 34rem;
  color: rgba(22, 8, 40, 0.88);
  font-weight: 600;
  line-height: 1.65;
  font-size: clamp(1rem, 2vw, 1.08rem);
}

.download__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.download .btn--primary {
  min-width: 160px;
}

.download .btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(107, 47, 181, 0.35);
}

.download .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.65);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(10, 3, 24, 0.85);
  padding: clamp(2.5rem, 5vw, 3.25rem) var(--page-gutter) clamp(2.75rem, 5vw, 3.5rem);
}

.footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1.75rem, 4vw, 2.5rem);
}

.footer__brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__brand img {
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255, 213, 120, 0.35);
}

.footer__muted {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.footer__nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer__nav a:hover {
  color: var(--gold-hi);
}

.footer__nav a:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Modal */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 20, 0.72);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: min(100%, 440px);
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(50, 24, 92, 0.98), rgba(20, 6, 44, 0.98));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal__close:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 2px;
}

.modal__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-mid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.modal__body {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.modal__ok {
  width: 100%;
}

/* AOS: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
