/* ============================================================
   WRIST & POCKET STUDIO — "OLED Noir" Design System
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Backgrounds */
  --bg: #050505;
  --bg-surface: #121212;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;

  /* Accents */
  --accent-teal: #03dac6;
  --accent-purple: #bb86fc;

  /* Text */
  --text-primary: #e8e8e8;
  --text-secondary: #999999;
  --text-dim: #555555;

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(.25, .8, .25, 1);
  --max-width: 1100px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #5ef5e3;
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-label--teal {
  color: var(--accent-teal);
  border: 1px solid rgba(3, 218, 198, .3);
}

.section-label--purple {
  color: var(--accent-purple);
  border: 1px solid rgba(187, 134, 252, .3);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 560px;
}

/* ---------- Fade-in on scroll (pure CSS) ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  background: radial-gradient(ellipse at 50% 40%, rgba(3, 218, 198, .04) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 60%, rgba(187, 134, 252, .03) 0%, transparent 50%);
}

/* Animated glowing ring */
.hero__ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(3, 218, 198, .25);
  position: relative;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringPulse 4s ease-in-out infinite;
}

.hero__ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(187, 134, 252, .15);
  animation: ringPulse 4s ease-in-out infinite reverse;
}

.hero__ring::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent-teal);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 16px var(--accent-teal), 0 0 40px var(--accent-teal);
  animation: orbitDot 6s linear infinite;
  transform-origin: 0 114px;
}

.hero__ring-icon {
  font-size: 3rem;
  color: var(--text-secondary);
  opacity: .4;
  user-select: none;
}

@keyframes ringPulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(3, 218, 198, .08), inset 0 0 20px rgba(3, 218, 198, .03);
  }

  50% {
    box-shadow: 0 0 50px rgba(3, 218, 198, .2), inset 0 0 40px rgba(3, 218, 198, .08);
  }
}

@keyframes orbitDot {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.hero__logo {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: 6px;
  line-height: 1.1;
}

.hero__logo span:first-child {
  color: var(--accent-teal);
}

.hero__logo span:last-child {
  color: var(--accent-purple);
}

.hero__tagline {
  margin-top: 14px;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 3px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-teal);
  opacity: .85;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll-hint::after {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--accent-teal);
  border-bottom: 2px solid var(--accent-teal);
  transform: rotate(45deg);
  animation: chevronBounce 2s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes chevronBounce {

  0%,
  100% {
    opacity: .4;
    transform: rotate(45deg) translateY(0);
  }

  50% {
    opacity: 1;
    transform: rotate(45deg) translateY(4px);
  }
}

/* ============================================================
   ABOUT — The Lab
   ============================================================ */
.about {
  padding: 120px 0;
  text-align: center;
}

.about__manifesto {
  max-width: 700px;
  margin: 28px auto 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__manifesto strong {
  color: var(--text-primary);
}

.about__pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.pillar {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.pillar:hover {
  border-color: rgba(3, 218, 198, .2);
  transform: translateY(-4px);
}

.pillar__icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.pillar__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.pillar__text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   GAME CARDS — Shared
   ============================================================ */
.game-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
}

.wrist .game-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(3, 218, 198, .08);
}

.pocket .game-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(187, 134, 252, .08);
}

.game-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.game-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg);
}

.game-card__badge-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}

.game-card__badge-overlay--wrist {
  background: rgba(3, 218, 198, .15);
  color: var(--accent-teal);
  border: 1px solid rgba(3, 218, 198, .3);
}

.game-card__badge-overlay--pocket {
  background: rgba(187, 134, 252, .15);
  color: var(--accent-purple);
  border: 1px solid rgba(187, 134, 252, .3);
}

.game-card__body {
  padding: 24px;
}

.game-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.game-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.55;
}

.game-card__meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.game-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.game-card__cta--teal {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
}

.game-card__cta--teal:hover {
  background: var(--accent-teal);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(3, 218, 198, .3);
}

.game-card__cta--purple {
  color: var(--accent-purple);
  border-color: var(--accent-purple);
}

.game-card__cta--purple:hover {
  background: var(--accent-purple);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(187, 134, 252, .3);
}

/* ============================================================
   WRIST SECTION — Large cinematic cards
   ============================================================ */
.wrist {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, .04);
}

.wrist__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.wrist .game-card:hover {
  border-color: rgba(3, 218, 198, .25);
}

/* ============================================================
   POCKET SECTION — Compact student grid
   ============================================================ */
.pocket {
  padding: 100px 0;
  background: var(--bg-surface);
}

.pocket__intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 520px;
}

.pocket__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pocket .game-card:hover {
  border-color: rgba(187, 134, 252, .25);
}

.pocket .game-card__media {
  aspect-ratio: 4 / 3;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 80px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
  border-radius: 2px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-bottom: 28px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__founder {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.footer__founder a {
  color: var(--accent-purple);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- Accessibility: Focus ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.site-nav__brand {
  text-decoration: none;
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(3, 218, 198, .25);
  color: var(--text-primary);
}

/* ============================================================
   PRIVACY MODAL (CSS-only via :target)
   ============================================================ */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, .92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.privacy-modal:target {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal__box {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius);
  max-width: 640px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.privacy-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.privacy-modal__close:hover {
  color: var(--text-primary);
}

.privacy-modal__box h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.privacy-modal__box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.privacy-modal__box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ============================================================
   NAV (minimal top bar)
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 0;
  background: rgba(5, 5, 5, .75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--text-primary);
}

.site-nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav__links a {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.site-nav__links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  padding: 6px 16px;
  border: 1.5px solid var(--accent-teal);
  border-radius: 20px;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px;
  color: var(--accent-teal) !important;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.lang-switch:hover {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--bg) !important;
  box-shadow: 0 0 16px rgba(3, 218, 198, .3);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .wrist__grid {
    grid-template-columns: 1fr;
  }

  .pocket__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .hero__ring {
    width: 160px;
    height: 160px;
  }

  .hero__ring::after {
    transform-origin: 0 84px;
  }

  .about__pillars {
    grid-template-columns: 1fr;
  }

  .site-nav__links {
    gap: 18px;
  }

  .site-nav__links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero__logo {
    letter-spacing: 3px;
  }

  .hero__tagline {
    font-size: 0.9rem;
    letter-spacing: 2px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .pocket__grid {
    grid-template-columns: 1fr;
  }

  .game-card__body {
    padding: 18px;
  }

  .footer__links {
    flex-direction: column;
    gap: 14px;
  }
}