@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --purple: #6d28d9;
  --violet: #a78bfa;
  --midnight: #0f0a1e;
  --surface: #1a1230;
  --card: rgba(109,40,217,0.08);
  --text: #d4ccee;
  --muted: #8a7fb0;
  --white: #f5f0ff;
}

html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--midnight); color: var(--text); line-height: 1.75; overflow-x: hidden; }
h1, h2, h3 { font-weight: 800; }
a { color: var(--violet); text-decoration: none; transition: 0.3s; }
a:hover { color: #fff; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  background: rgba(15,10,30,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(109,40,217,0.2);
}
.site-header .brand { font-weight: 800; font-size: 1.3rem; color: var(--violet); letter-spacing: 1px; }
.main-nav { display: flex; gap: 1.6rem; list-style: none; }
.main-nav a { color: var(--muted); font-size: 0.88rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.main-nav a:hover, .main-nav a.active { color: var(--white); }

.mob-menu { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.mob-menu span { width: 24px; height: 2px; background: var(--violet); transition: 0.3s; }
.mob-menu.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mob-menu.open span:nth-child(2) { opacity: 0; }
.mob-menu.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media(max-width:768px) {
  .mob-menu { display: flex; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(15,10,30,0.97);
    flex-direction: column; padding: 1.5rem 2rem;
    transform: translateY(-120%); transition: 0.35s;
  }
  .main-nav.open { transform: translateY(0); }
}

.midnight-hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 3rem; padding: 100px 2rem 4rem;
  max-width: 1200px; margin: 0 auto;
}
@media(max-width:768px) { .midnight-hero { grid-template-columns: 1fr; text-align: center; } }

.midnight-hero h1 { font-size: clamp(1.8rem, 4vw, 3.2rem); color: var(--white); margin-bottom: 1rem; }
.midnight-hero h1 span { color: var(--violet); }
.midnight-hero p { color: var(--muted); font-size: 1.05rem; margin-bottom: 2rem; }

.nyx-btn {
  display: inline-block; padding: 0.85rem 2.2rem;
  background: var(--purple); color: #fff; font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 8px;
  transition: 0.3s; border: none; cursor: pointer;
}
.nyx-btn:hover { background: var(--violet); color: var(--midnight); }
.nyx-btn-line { background: transparent; border: 2px solid var(--violet); color: var(--violet); }
.nyx-btn-line:hover { background: var(--violet); color: var(--midnight); }

.hero-visual {
  aspect-ratio: 16/10; border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(109,40,217,0.2);
  box-shadow: 0 0 60px rgba(109,40,217,0.15);
}
.hero-visual iframe { width: 100%; height: 100%; border: none; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(109,40,217,0.3), transparent); margin: 0 2rem; }

.alert-strip {
  display: flex; gap: 0; max-width: 1200px; margin: 3rem auto;
  border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(109,40,217,0.15);
}
@media(max-width:768px) { .alert-strip { flex-direction: column; } }
.alert-item {
  flex: 1; padding: 2.5rem 2rem; text-align: center;
  background: var(--card);
  border-right: 1px solid rgba(109,40,217,0.1);
}
.alert-item:last-child { border-right: none; }
.alert-item .ico { font-size: 2rem; margin-bottom: 0.5rem; }
.alert-item h3 { font-size: 0.85rem; font-weight: 700; color: var(--violet); margin-bottom: 0.4rem; text-transform: uppercase; }
.alert-item p { font-size: 0.9rem; color: var(--muted); }

.game-feature { padding: 4rem 2rem; text-align: center; max-width: 1200px; margin: 0 auto; }
.game-feature h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--white); margin-bottom: 1.5rem; }
.game-screen {
  width: 100%; max-width: 960px; margin: 0 auto;
  aspect-ratio: 16/10; border-radius: 16px; overflow: hidden;
  border: 2px solid rgba(109,40,217,0.25);
}
.game-screen iframe { width: 100%; height: 100%; border: none; }

.about-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem; padding: 4rem 2rem; max-width: 1200px; margin: 0 auto;
}
@media(max-width:768px) { .about-cols { grid-template-columns: 1fr; } }
.about-box {
  background: var(--card); border: 1px solid rgba(109,40,217,0.12);
  border-radius: 12px; padding: 2rem;
}
.about-box h3 { color: var(--violet); font-size: 0.9rem; margin-bottom: 0.6rem; text-transform: uppercase; }
.about-box p { color: var(--muted); font-size: 0.93rem; }

.text-area { padding: 4rem 2rem; max-width: 900px; margin: 0 auto; }
.text-area h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1rem; color: var(--white); }
.text-area p, .text-area li { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }
.text-area ul { padding-left: 1.5rem; }

.page-intro { padding: 120px 2rem 3rem; text-align: center; }
.page-intro h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--white); }

.nyx-footer {
  margin-top: 4rem; padding: 2.5rem 2rem;
  border-top: 1px solid rgba(109,40,217,0.15);
  text-align: center; background: var(--midnight);
}
.nyx-footer .frow { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.nyx-footer .frow a { color: var(--muted); font-size: 0.85rem; }
.nyx-footer p { color: rgba(138,127,176,0.5); font-size: 0.78rem; }

.age-dim {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,10,30,0.95);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.age-panel {
  background: var(--surface); border: 2px solid var(--purple); border-radius: 16px;
  padding: 3rem 2.5rem; text-align: center; max-width: 430px; width: 90%;
}
.age-panel h2 { font-size: 1.3rem; color: var(--white); margin-bottom: 0.8rem; }
.age-panel p { color: var(--muted); margin-bottom: 2rem; }
.age-actions { display: flex; gap: 1rem; justify-content: center; }
.age-actions .nyx-btn { min-width: 120px; }
.age-dim.hidden { display: none; }
