/* ═══════════════════════════════════════════════════════════════
   WILDCARD front pages — single stylesheet
   Used by: /, /pages/*, /blog/* (via _partials/head.html), /games/.
   The chat app (lobby/room/moderation) uses /css/app.css instead.
   Fonts: Inter + JetBrains Mono, loaded per-page or via head.html.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────────────────────────── */
:root {
  --primary:       #f02070;
  --primary-light: #f84f8f;
  --primary-dark:  #b8003a;
  --accent:        #f02070;
  --bg-dark:       #080808;
  --bg-darker:     #0e0e0e;
  --bg-card:       #141414;
  --border:        rgba(255, 255, 255, 0.07);
  --text:          #ebebeb;
  --text-muted:    #999;
  --text-dim:      #666;
}

/* ── Base ────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: #080808;
  color: #ebebeb;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  animation: .5s ease-out pageLoad;
}
@keyframes pageLoad { 0% { opacity: 0; } to { opacity: 1; } }

/* Fixed blue glow, upper-left — subtle depth behind all front pages. */
body::before {
  content: "";
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(at 18% 28%, rgba(59, 130, 246, 0.2) 0%, #0000 46%);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
}

.container,
.navbar .container {
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* ── Scroll-animate utilities (games page) ───────────────────────── */
[data-animate] {
  opacity: 0;
  transition: opacity .6s ease-out, transform .6s ease-out;
  backface-visibility: hidden;
  transform: translateY(30px);
}
@media (width >= 769px) {
  [data-animate] { will-change: opacity, transform; }
}
[data-animate].animate-in,
[data-animate="fade-up"].animate-in { opacity: 1; transform: translate(0, 0); }
[data-animate="zoom-in"] { transform: translate(0, 0) scale(.9); }
[data-animate="zoom-in"].animate-in { transform: translate(0, 0) scale(1); }
[data-animate="fade-right"] { transform: translate(-30px); }
[data-animate="fade-right"].animate-in { transform: translate(0, 0); }
[data-animate="fade-left"] { transform: translate(30px); }
[data-animate="fade-left"].animate-in { transform: translate(0, 0); }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
.nav-content {
  justify-content: space-between;
  align-items: center;
  padding: .7rem 0;
  display: flex;
}
.nav-logo {
  color: #ebebeb;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  display: flex;
}
.nav-logo span {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-links {
  align-items: center;
  gap: 2rem;
  display: flex;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: #888;
  font-weight: 500;
  text-decoration: none;
  transition: color .3s;
}
.nav-links a:hover { color: #ebebeb; }
.nav-start-btn {
  background: transparent;
  color: #f02070;
  border: 1px solid rgba(240, 32, 112, 0.5);
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  transition: none;
}
.nav-start-btn:hover { background: #f02070; color: #fff; border-color: #f02070; text-decoration: none; }
.mobile-menu-btn {
  color: #ebebeb;
  cursor: pointer;
  background: 0 0;
  border: none;
  display: none;
  padding: 4px;
  line-height: 0;
}
/* Shared hamburger SVG — same icon + size as the lobby/room nav (28px), so the
   button looks identical everywhere and across desktop/mobile. Swaps to an X
   while the mobile menu is open. */
.mobile-menu-btn .mm-icon { width: 30px; height: 30px; display: block; }
.mobile-menu-btn .mm-x { display: none; }
.mobile-menu-btn.is-open .mm-bars { display: none; }
.mobile-menu-btn.is-open .mm-x { display: block; }

/* ── Section titles ──────────────────────────────────────────────── */
.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #ebebeb;
  line-height: 0.97;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: #888;
  max-width: 44em;
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ── Hero banners (about, contact, guidelines, blog) ─────────────── */
.about-hero,
.contact-hero {
  background: #080808;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 7rem 0 3rem;
  text-align: left;
  position: relative;
}
.about-hero::before,
.contact-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 0% 50%, rgba(240,32,112,0.05), transparent 65%);
  pointer-events: none;
}
.about-hero .container,
.contact-hero .container { position: relative; z-index: 1; }
.about-hero h1,
.contact-hero h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.97;
  color: #ebebeb;
  margin-bottom: 1rem;
}
.about-hero h1 em { color: #f02070; font-style: normal; }
.about-hero .page-subtitle,
.contact-hero .page-subtitle {
  color: #888;
  font-size: 1.05rem;
  max-width: 46em;
  line-height: 1.75;
}

/* ── Page content ────────────────────────────────────────────────── */
.about-content,
.contact-content {
  background: #080808;
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.about-intro { margin-bottom: 4rem; }
.about-intro .about-text { max-width: 76ch; }
.contact-intro {
  text-align: left;
  max-width: 800px;
  margin: 0 0 4rem;
}
.contact-intro p,
.about-text p {
  color: #999;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Body links */
.about-text a,
.about-content a,
.reasons-section a { color: #f02070; text-decoration: underline; text-underline-offset: 2px; }
.about-text a:hover,
.about-content a:hover,
.reasons-section a:hover { opacity: 0.8; }

/* ── Reasons list ────────────────────────────────────────────────── */
.reasons-section { padding: 0; margin-top: 5rem; }
.about-content > div > .reasons-section:first-child { margin-top: 0; }
.reasons-section .section-title { margin-bottom: 1.5rem; }
.reasons-list { padding: 0; list-style: none; }
.reasons-list li {
  color: #999;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0 1.25rem 2.5rem;
  line-height: 1.8;
  position: relative;
}
.reasons-list li::before {
  content: "//";
  color: #f02070;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  position: absolute;
  top: 1.35rem;
  left: 0;
}
.reasons-list strong {
  color: #ebebeb;
  font-weight: 700;
}

/* ── Feature cards ───────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  margin-top: 3rem;
}
.feature-card {
  background: #0e0e0e;
  padding: 2.5rem;
  position: relative;
}
.feature-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ebebeb;
  margin-bottom: 0.6rem;
}
.feature-title::before {
  content: '// ';
  color: #f02070;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}
.feature-description { color: #888; font-size: 0.9rem; line-height: 1.7; }

/* ── Policy pages (privacy / terms) ──────────────────────────────── */
.policy-page {
  background: #080808;
  padding-top: 6rem;
}
.policy-page > .container {
  max-width: 800px;
  padding: 20px;
  margin-bottom: 3rem;
  font-family: 'Inter', sans-serif;
  color: #999;
}
.policy-page > .container h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: #ebebeb;
  margin-bottom: 0.5rem;
}
.policy-page > .container h2 {
  color: #ebebeb;
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 2.5rem 0 0.75rem;
  border-left: 2px solid #f02070;
  padding-left: 0.75rem;
}
.policy-page > .container h3 { font-weight: bold; }
.policy-page > .container p,
.policy-page > .container li { color: #888; line-height: 1.75; margin-bottom: 1em; }
.policy-page > .container li { margin-bottom: 6px; }
.policy-page > .container ul { padding-left: 20px; margin-bottom: 1em; }
.policy-page > .container a { color: #f02070; text-decoration: none; }
.policy-page > .container a:hover { text-decoration: underline; }
.policy-page > .container .meta {
  color: #666;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

/* ── CTA buttons (games page) ────────────────────────────────────── */
.cta-button {
  color: #0a0b14;
  background: #fbbf24;
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.cta-button:hover { background: #f59e0b; }
.v2-btn-ghost {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1.1rem 1.6rem;
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}
.v2-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.32); }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #ebebeb;
  padding: 4rem 0 2rem;
  position: relative;
}
.footer-content {
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: start;
  gap: 2rem;
  margin-bottom: 2rem;
  display: grid;
}
.footer-brand {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}
.footer-logo {
  color: #ebebeb;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  display: flex;
}
.footer-card1 { width: 96px; height: 96px; }
.footer-logo span {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}
.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #555;
  margin-top: .25rem;
  text-align: center;
}
.footer-follow {
  text-align: center;
  flex-direction: column;
  align-items: center;
  display: flex;
}
.footer-email {
  color: #888;
  font-size: 0.86rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition: color .3s;
}
.footer-email:hover { color: #f02070; }
.footer-sitemap {
  text-align: right;
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}
.footer-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  color: #f02070;
  font-weight: 400;
  margin-bottom: 1rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: #666;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color .3s;
}
.footer-links a:hover { color: #ebebeb; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #444;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  padding-top: 2rem;
}
.footer-bottom p { color: #444; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (width <= 768px) {
  .nav-links {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(8, 8, 8, 0.98);
    flex-direction: column;
    padding: 2rem;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
  }
  .nav-links.open { display: flex; }
  .mobile-menu-btn { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .about-hero { padding: 5rem 0 2.5rem; }
  .footer-content {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand { align-items: center; }
  .footer-sitemap { text-align: center; align-items: center; }
}
@media (width <= 480px) {
  .container,
  .navbar .container { padding: 0 1rem; }
  .nav-content { padding: .3rem 0; }
}
