@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #1B2856;
  --brand-bg-mid: #2A1A5A;
  --brand-bg-violet: #421669;
  --surface: rgba(255,255,255,0.05);
  --surface-hov: rgba(255,255,255,0.09);
  --border: rgba(245,165,42,0.22);
  --border-dim: rgba(255,255,255,0.08);
  --text: #F5F0E8;
  --muted: rgba(245,240,232,0.58);
  --amber: #F5A52A;
  --amber-hi: #FFD27A;
  --amber-deep: #C77E10;
  --ink: #1B1338;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Poppins', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Aurora canvas (JS-driven, index.html only) ─────── */
#aurora-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* ── Aurora background ──────────────────────────────── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.30;
  animation: aurora-drift 14s ease-in-out infinite alternate;
}
.aurora-bg::before {
  width: 65vw; height: 65vw;
  top: -25%; left: -15%;
  background: radial-gradient(circle, #3B1F8F 0%, transparent 70%);
  animation-delay: 0s;
}
.aurora-bg::after {
  width: 55vw; height: 55vw;
  top: 5%; right: -20%;
  background: radial-gradient(circle, #421669 0%, transparent 70%);
  animation-delay: -5s;
}
.aurora-gold {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.12;
  animation: aurora-drift 20s ease-in-out infinite alternate;
  animation-delay: -10s;
  width: 45vw; height: 45vw;
  bottom: -15%; right: 5%;
  background: radial-gradient(circle, #F5A52A 0%, transparent 70%);
}
@keyframes aurora-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4%, 6%) scale(1.06); }
  100% { transform: translate(-4%, -4%) scale(0.96); }
}

/* ── Layout ─────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Glass card ─────────────────────────────────────── */
.glass {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
}
.glass-amber {
  border-color: var(--border);
}

/* ── 3D card glare overlay ───────────────────────────── */
.card-3d { position: relative; }
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}

/* ── Amber button ────────────────────────────────────── */
.btn-gold {
  display: inline-block;
  position: relative;
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--amber-hi) 0%, var(--amber) 50%, var(--amber-deep) 100%);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 28px rgba(245,165,42,0.38), 0 2px 8px rgba(0,0,0,0.45);
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { left: -120%; }
  55%  { left: 150%; }
  100% { left: 150%; }
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(245,165,42,0.55), 0 4px 12px rgba(0,0,0,0.45);
}
.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-dim);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  background: var(--surface-hov);
  border-color: var(--border);
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27,40,86,0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-dim);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header .logo img {
  width: 36px; height: 36px;
  border-radius: 9px;
}
.site-header .logo-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.site-header nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}
.site-header nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.site-header nav a.active { color: var(--amber); }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-dim);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}
.site-footer a {
  color: var(--amber);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ── Amber text gradient ─────────────────────────────── */
.text-gold {
  background: linear-gradient(90deg, var(--amber), var(--amber-hi), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gold-shift 5s linear infinite;
}
@keyframes gold-shift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── Section label pill ─────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245,165,42,0.10);
  border: 1px solid rgba(245,165,42,0.28);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

/* ── Section heading block ──────────────────────────── */
.section-head {
  text-align: center;
  margin-bottom: 8px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Scroll progress bar ─────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--amber-hi), var(--amber), var(--amber-deep));
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Magnetic cursor ─────────────────────────────────── */
#magnetic-cursor {
  position: fixed;
  z-index: 9998;
  width: 14px; height: 14px;
  background: var(--amber);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: difference;
  transition: opacity 0.3s, width 0.2s, height 0.2s;
}
@media (hover: none) { #magnetic-cursor { display: none; } }

/* ── Wave divider ────────────────────────────────────── */
.wave-divider {
  position: relative; z-index: 1;
  overflow: hidden;
  height: 60px;
  margin: -1px 0;
}
.wave-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%; height: 100%;
  animation: wave-drift 8s ease-in-out infinite alternate;
}
@keyframes wave-drift {
  0%   { transform: scaleX(1) translateX(0); }
  100% { transform: scaleX(1.04) translateX(-2%); }
}

/* ── Spotlight (hero feature screenshot) ────────────── */
.spotlight-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 52px;
}
.spotlight-img {
  max-width: 280px;
  margin: 0 auto;
}
.spotlight-img img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.60), 0 0 0 1px rgba(245,165,42,0.08);
}

.spotlight-features {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sf-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.sf-dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(245,165,42,0.6);
}
.sf-item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sf-item p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Gallery (horizontally scrollable screenshots) ───── */
.gallery-section {
  position: relative; z-index: 1;
  padding: 20px 0 60px;
}
.gallery-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 24px 24px 36px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.screenshot-flat {
  flex: 0 0 200px;
  scroll-snap-align: start;
  position: relative;
  transition: transform 0.3s;
}
.screenshot-flat:hover { transform: translateY(-6px); }
.screenshot-flat img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.screenshot-flat .cap {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px;
  padding: 0 4px;
  letter-spacing: 0.02em;
}

/* ── Crediti AI section ──────────────────────────────── */
.credits-ai {
  position: relative; z-index: 1;
  padding: 60px 0 80px;
}
.credits-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 36px 0 48px;
}
.credit-stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  min-width: 130px;
}
.credit-stat .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
}
.credit-stat .stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.credits-packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.pack-card {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border-dim);
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}
.pack-card.popular {
  border-color: var(--border);
  background: rgba(245,165,42,0.07);
}
.pack-card:hover { transform: translateY(-4px); }
.pack-card img {
  width: 72px; height: 72px;
  object-fit: contain;
  margin-bottom: 14px;
}
.pack-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.pack-card .pack-qty {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
}
.pack-card .pack-sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 4px;
  display: block;
}
.pack-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--amber);
  border-radius: 12px;
  padding: 3px 10px;
  margin-top: 10px;
}
.credits-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
}

/* ── Theme showcase (Dark & Light static) ────────────── */
.theme-showcase {
  position: relative; z-index: 1;
  padding: 60px 0 80px;
}
.theme-static-wrap {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.theme-static-wrap img {
  max-width: 260px;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ── Promo showcase ──────────────────────────────────── */
.promo-showcase {
  position: relative; z-index: 1;
  padding: 0 0 60px;
}
.promo-showcase img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ── Heartbeat CTA ───────────────────────────────────── */
.btn-heartbeat {
  animation: heartbeat 2s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { box-shadow: 0 4px 28px rgba(245,165,42,0.38), 0 2px 8px rgba(0,0,0,0.45); }
  50%       { box-shadow: 0 8px 52px rgba(245,165,42,0.72), 0 4px 16px rgba(0,0,0,0.5); }
}

/* ── Scroll reveal ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revealed {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .spotlight-layout { grid-template-columns: 1fr; gap: 36px; }
  .spotlight-img { max-width: 240px; }
  .credits-packs { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto 28px; }
}
@media (max-width: 768px) {
  .site-header nav { display: none; }
  .container { padding: 0 16px; }
  .screenshot-flat { flex: 0 0 170px; }
  .credits-stats { gap: 12px; }
  .credit-stat { padding: 16px 18px; min-width: 110px; }
}
