/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-surface: #12121a;
  --text: #e8e8ef;
  --text-dim: #6b6b80;
  --accent: #7b5cff;
  --accent-glow: rgba(123, 92, 255, 0.4);
  --discord: #5865F2;
  --discord-glow: rgba(88, 101, 242, 0.5);
  --quest: #00d4aa;
  --quest-glow: rgba(0, 212, 170, 0.35);
  --soon: #ff6b6b;
  --radius: 14px;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ===== STAR FIELD ===== */
#stars {
  position: fixed;
  inset: -20px;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  animation: starDrift 120s linear infinite;
}

@keyframes starDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, 15px); }
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: var(--o1, 0.2); }
  100% { opacity: var(--o2, 0.8); }
}

/* ===== PAGE SHELL ===== */
.page-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 16px;
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-img {
  width: auto;
  height: auto;
  max-width: min(460px, 90vw);
  max-height: 180px;
  object-fit: contain;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: clamp(11px, 2.5vw, 14px);
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.7;
  flex-shrink: 0;
}

/* ===== MAIN ===== */
.site-main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 0;
  overflow: hidden;
}

/* ===== VIDEO SECTION ===== */
.video-section {
  width: 100%;
  flex-shrink: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: var(--bg-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(123, 92, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 60px var(--accent-glow);
}

.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(123, 92, 255, 0.08) 0%, transparent 70%),
    var(--bg-surface);
  cursor: pointer;
  transition: opacity 0.5s ease, background 0.3s;
  z-index: 2;
}

.video-poster.hidden {
  opacity: 0;
  pointer-events: none;
}

.video-poster:hover:not(.hidden) {
  background:
    radial-gradient(ellipse at center, rgba(123, 92, 255, 0.15) 0%, transparent 70%),
    var(--bg-surface);
}

.play-btn {
  width: 72px;
  height: 72px;
  opacity: 0.9;
  transition: transform 0.2s, opacity 0.2s;
  filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.video-poster:hover:not(.hidden) .play-btn {
  transform: scale(1.1);
  opacity: 1;
}

#ytContainer {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#ytContainer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== CTA SECTION ===== */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Discord */
.btn-discord {
  background: var(--discord);
  color: #fff;
  font-size: clamp(16px, 4vw, 20px);
  padding: 16px 40px;
  letter-spacing: 0.1em;
  box-shadow: 0 0 20px var(--discord-glow), 0 4px 16px rgba(0,0,0,0.4);
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 30px var(--discord-glow), 0 4px 20px rgba(0,0,0,0.5);
  transform: translateY(-1px);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--discord-glow), 0 4px 16px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 35px var(--discord-glow), 0 4px 24px rgba(0,0,0,0.5); }
}

/* Wishlist */
.btn-wishlist {
  background: transparent;
  color: var(--quest);
  font-size: clamp(13px, 3vw, 15px);
  padding: 10px 24px;
  border: 1.5px solid rgba(0, 212, 170, 0.3);
  letter-spacing: 0.08em;
  position: relative;
}

.btn-wishlist:hover {
  background: rgba(0, 212, 170, 0.08);
  border-color: rgba(0, 212, 170, 0.5);
  box-shadow: 0 0 15px var(--quest-glow);
  transform: translateY(-1px);
}

.badge-soon {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  background: var(--soon);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.08em;
  vertical-align: middle;
}

/* ===== FOOTER ===== */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-link {
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text); }
.footer-sep { opacity: 0.3; }
.footer-copy { opacity: 0.5; }

/* ===== FADE IN ===== */
.page-shell {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */

/* Small phones */
@media (max-height: 600px) {
  .page-shell { padding: 10px 16px 8px; gap: 0; }
  .site-header { padding-bottom: 6px; }
  .logo-img { max-height: 120px; max-width: min(320px, 80vw); }
  .site-main { gap: 10px; }
  .btn-discord { padding: 12px 28px; }
  .btn-wishlist { padding: 8px 18px; }
  .site-footer { padding-top: 6px; font-size: 11px; }
}

/* Landscape phones / wide */
@media (orientation: landscape) and (max-height: 500px) {
  .page-shell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 20px;
  }
  .site-header { padding-bottom: 0; flex: 0 0 auto; }
  .logo-img { max-height: 100px; max-width: 260px; }
  .site-main {
    flex: 1;
    flex-direction: row;
    gap: 16px;
    min-height: auto;
  }
  .video-section { width: 55%; }
  .cta-section { gap: 8px; }
  .btn-discord { padding: 10px 24px; font-size: 14px; }
  .btn-wishlist { padding: 8px 16px; font-size: 12px; }
  .site-footer { flex: 0 0 100%; padding-top: 4px; justify-content: center; }
}

/* Desktop */
@media (min-width: 768px) {
  .page-shell { padding: 28px 32px 20px; }
  .site-main { gap: 28px; }
  .play-btn { width: 80px; height: 80px; }
  .video-wrapper { border-radius: 18px; }
}

/* Large desktop */
@media (min-width: 1024px) {
  .page-shell { max-width: 800px; }
}
