/*
  PLAY YOUR NEXT WORLD — shared site styles
  Used by every page (home, product hubs, notices, privacy policy).
  Only put things here that are IDENTICAL across pages: design tokens,
  base reset, the global nav, and the footer. Page-specific layout
  (hero, product grids, feature rows, legal typography, etc.) stays in
  that page's own <style> block.
*/

:root {
  --sky: #00D1FF;
  --blue: #3A7BFF;
  --violet: #7B61FF;
  --pink: #FF6BD6;
  --orange: #FFB347;
  --navy: #0B1A3C;
  --bg: #0A0F24;
  --bg-elevated: #131B3D;
  --text: #F4F6FB;
  --text-secondary: #C6D0EC;
  --text-muted: #94A0C4;
  --border: rgba(255,255,255,0.08);
  --gradient-brand: linear-gradient(90deg, var(--sky), var(--blue), var(--violet), var(--pink), var(--orange));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', 'Poppins', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 0%, rgba(123,97,255,0.26), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(0,209,255,0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255,107,214,0.14), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

header, main, footer { position: relative; z-index: 1; }

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.nav {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(19,27,61,0.55);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  text-decoration: none;
}
.brand-mark img { width: 30px; height: 30px; border-radius: 8px; }
nav.links { display: flex; gap: 28px; }
nav.links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
nav.links a:hover { color: var(--text); }

/* Mobile nav toggle — works with CSS alone; site.js only adds close-on-link / Esc / Enter.
   The checkbox is display:none on desktop (so it's not a stray tab stop) and visually hidden
   but focusable on mobile (see the 560px media query). */
.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Small reusable bits used across sub-pages */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  font-weight: 700;
  margin-bottom: 14px;
}
.back-link {
  display: block;
  margin-bottom: 28px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.back-link:hover { color: var(--text); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  text-align: center;
}
footer .tagline {
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
  font-size: 15px;
}
footer .copyright {
  color: var(--text-muted);
  font-size: 13px;
}
footer .foot-links { margin-top: 14px; }
footer .foot-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  margin: 0 10px;
}
footer .foot-links a:hover { color: var(--text); }

/* Keyboard focus + reduced motion */
a:focus-visible,
.nav-toggle-input:focus-visible ~ .nav-toggle {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  .nav-toggle-input {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
  }
  .nav-toggle { display: flex; }
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(19,27,61,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 4px 24px 12px;
  }
  nav.links a {
    padding: 12px 0;
    border-top: 1px solid var(--border);
  }
  nav.links a:first-child { border-top: none; }
  .nav-toggle-input:checked ~ nav.links { display: flex; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
