/* ============================================
   Not Another Game Studio — Global Styles
   FUTURE TECH EDITION
   ============================================ */

/* ---------- Google Fonts — loaded via <link> in HTML <head> for faster mobile loading ---------- */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary:    #060609;
  --bg-card:       rgba(10, 15, 25, .8);
  --bg-card-hover: rgba(15, 22, 38, .9);
  --accent-cyan:   #00f0ff;
  --accent-purple: #8b5cf6;
  --accent-blue:   #3b82f6;
  --text-primary:  #c8d6e5;
  --text-secondary:#6b7c93;
  --text-heading:  #ffffff;
  --glow-cyan:     0 0 20px rgba(0, 240, 255, .35);
  --glow-purple:   0 0 20px rgba(139, 92, 246, .35);
  --glow-cyan-lg:  0 0 40px rgba(0, 240, 255, .25), 0 0 80px rgba(0, 240, 255, .10);
  --nav-height:    72px;
  --transition:    .3s cubic-bezier(.4,0,.2,1);
  --radius:        4px;
  --radius-sm:     2px;
  --font-mono:     'Share Tech Mono', 'Orbitron', monospace;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Hex grid background overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300f0ff' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,.015) 2px,
    rgba(0,0,0,.015) 4px
  );
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
}

a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #66f7ff; text-shadow: 0 0 10px rgba(0,240,255,.3); }

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Mouse Trail ---------- */
.mouse-trail-dot {
  position: fixed;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: var(--accent-cyan);
  pointer-events: none;
  z-index: 9997;
  will-change: transform;
  box-shadow: 0 0 6px var(--accent-cyan);
  mix-blend-mode: screen;
}

/* ---------- Utility ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid rgba(0,240,255,.2);
  background: rgba(0,240,255,.03);
  position: relative;
}

/* Tech corner brackets on labels */
.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent-cyan);
  border-style: solid;
}
.section-label::before {
  top: -1px; left: -1px;
  border-width: 1px 0 0 1px;
}
.section-label::after {
  bottom: -1px; right: -1px;
  border-width: 0 1px 1px 0;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 20px;
  letter-spacing: .06em;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.section-center { text-align: center; }
.section-center .section-subtitle { margin-left: auto; margin-right: auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Tech Divider ---------- */
.tech-divider {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.tech-divider::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,240,255,.3) 50%, transparent 100%);
}

.tech-divider::after {
  content: '◆';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent-cyan);
  font-size: 8px;
  text-shadow: 0 0 10px var(--accent-cyan);
  animation: dividerPulse 2s ease-in-out infinite;
}

@keyframes dividerPulse {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .1em;
  padding: 14px 32px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #060609;
  box-shadow: var(--glow-cyan);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan-lg);
  color: #060609;
}

.btn-outline {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  clip-path: none;
}
.btn-outline:hover {
  background: rgba(0,240,255,.08);
  box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0,240,255,.05);
  color: var(--accent-cyan);
}

.btn-ghost {
  background: rgba(255,255,255,.03);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,.08);
  clip-path: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--accent-cyan);
}

.btn-sm {
  padding: 10px 22px;
  font-size: .74rem;
}

.btn-xs {
  padding: 8px 16px;
  font-size: .7rem;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(6,6,9,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,240,255,.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-family: 'Orbitron', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-heading);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--accent-cyan);
  font-weight: 900;
  border: 1px solid var(--accent-cyan);
  position: relative;
  background: rgba(0,240,255,.05);
}

/* Tech corner cuts on logo */
.nav-logo .logo-icon::before,
.nav-logo .logo-icon::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--accent-cyan);
  border-style: solid;
}
.nav-logo .logo-icon::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.nav-logo .logo-icon::after { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  transition: all var(--transition);
  position: relative;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0,240,255,.3);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-cta { margin-left: 8px; }
.nav-links a.nav-cta {
  color: #060609;
  font-weight: 700;
  padding: 9px 20px;
  text-shadow: none;
  justify-content: center;
}
.nav-links a.nav-cta:hover {
  color: #060609;
  text-shadow: none;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-cyan);
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Tech Card ---------- */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,240,255,.08);
  border-radius: 0;
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}

/* Tech corner brackets */
.glass-card::before,
.glass-card::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(0,240,255,.2);
  border-style: solid;
  transition: all var(--transition);
}
.glass-card::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.glass-card::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,240,255,.2);
  box-shadow: 0 0 30px rgba(0,240,255,.05), inset 0 0 30px rgba(0,240,255,.02);
  transform: translateY(-2px);
}

.glass-card:hover::before,
.glass-card:hover::after {
  width: 20px;
  height: 20px;
  border-color: var(--accent-cyan);
}

/* ============================================
   HERO — Particle Text + 3D Globe
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height — accounts for mobile address bar */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Particle text canvas — interactive, receives mouse/touch events */
.hero-particle-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 120px; /* Leave room for buttons at bottom */
  z-index: 3;
  /* Ensure canvas is visible and interactive on all devices */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-particle-text canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  /* Force GPU layer on mobile for canvas rendering */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Globe canvas — right side, behind particles */
.hero-globe {
  position: absolute;
  right: -5%;
  top: 10%;
  width: 55%;
  height: 80%;
  z-index: 1;
  opacity: .25;
  pointer-events: none;
}

.hero-globe canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hero vignette — only edges, center stays clear for particles */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(6,6,9,.6) 100%);
  pointer-events: none;
}

/* Bottom fade — below the particle canvas */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  z-index: 2;
  background: linear-gradient(to top, var(--bg-primary), transparent);
  pointer-events: none;
}

/* Hero bottom — description + buttons + scroll indicator stacked cleanly */
.hero-bottom {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.8;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator — flows naturally below .hero-buttons so it never overlaps */
.hero-scroll {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll span {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* HUD Decorative corners for hero */
.hud-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 3;
  pointer-events: none;
}
.hud-corner::before,
.hud-corner::after {
  content: '';
  position: absolute;
  background: var(--accent-cyan);
}
.hud-corner--tl { top: 20px; left: 20px; }
.hud-corner--tl::before { top: 0; left: 0; width: 30px; height: 1px; }
.hud-corner--tl::after { top: 0; left: 0; width: 1px; height: 30px; }

.hud-corner--tr { top: 20px; right: 20px; }
.hud-corner--tr::before { top: 0; right: 0; width: 30px; height: 1px; }
.hud-corner--tr::after { top: 0; right: 0; width: 1px; height: 30px; }

.hud-corner--bl { bottom: 20px; left: 20px; }
.hud-corner--bl::before { bottom: 0; left: 0; width: 30px; height: 1px; }
.hud-corner--bl::after { bottom: 0; left: 0; width: 1px; height: 30px; }

.hud-corner--br { bottom: 20px; right: 20px; }
.hud-corner--br::before { bottom: 0; right: 0; width: 30px; height: 1px; }
.hud-corner--br::after { bottom: 0; right: 0; width: 1px; height: 30px; }

/* HUD data readout */
.hud-data {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  color: rgba(0,240,255,.3);
  z-index: 3;
  pointer-events: none;
  text-transform: uppercase;
}
.hud-data--left { bottom: 60px; left: 30px; writing-mode: vertical-rl; transform: rotate(180deg); }
.hud-data--right { bottom: 60px; right: 30px; writing-mode: vertical-rl; }

/* ---------- Page Header (sub-pages) ---------- */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,240,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(0,240,255,.15) 50%, transparent 90%);
}

.page-header .section-title { margin-bottom: 16px; }
.page-header .section-subtitle { margin-bottom: 0; }

/* ---------- Feature / Info Grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.info-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  border: 1px solid rgba(0,240,255,.15);
  background: rgba(0,240,255,.03);
  position: relative;
}

/* Tech corners on icons */
.info-card-icon::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--accent-cyan);
  border-left: 1px solid var(--accent-cyan);
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: .06em;
}

.info-card p {
  color: var(--text-secondary);
  font-size: .9rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

/* ---------- Game Showcase ---------- */
.game-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.game-screenshot {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid rgba(0,240,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: .9rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,240,255,.02), rgba(139,92,246,.02));
}

.game-screenshot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, rgba(0,240,255,.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0,240,255,.02) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0,240,255,.02) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0,240,255,.02) 75%);
  background-size: 20px 20px;
}

/* Tech corners on screenshots */
.game-screenshot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0,240,255,.05);
  pointer-events: none;
}

.game-screenshot-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(0,240,255,.1);
}

.game-info h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.game-info .game-genre {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 20px;
  display: inline-block;
}

.game-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

.game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.game-feature-tag {
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  background: rgba(0,240,255,.04);
  border: 1px solid rgba(0,240,255,.1);
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.game-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Stat Card (tech counter style) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
}

.stat-value {
  font-family: 'Orbitron', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0,240,255,.3);
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Team Cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.team-card {
  text-align: center;
  padding: 40px 24px;
}

.team-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border: 1px solid rgba(0,240,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan);
  transition: all var(--transition);
  position: relative;
  background: rgba(0,240,255,.03);
}

/* Hexagonal clip on avatar */
.team-avatar {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.team-card:hover .team-avatar {
  box-shadow: 0 0 30px rgba(0,240,255,.2);
  background: rgba(0,240,255,.08);
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .team-role {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  color: var(--accent-purple);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.team-card .team-bio {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.team-socials a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,240,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: rgba(0,240,255,.02);
}
.team-socials a:hover {
  background: rgba(0,240,255,.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,240,255,.15);
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(0,240,255,.02);
  border: 1px solid rgba(0,240,255,.08);
  border-radius: 0;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px rgba(0,240,255,.1), 0 0 20px rgba(0,240,255,.05);
  background: rgba(0,240,255,.04);
}

.form-group textarea { min-height: 140px; }

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-card .card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid rgba(0,240,255,.1);
  background: rgba(0,240,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-info-card h4 {
  font-size: .85rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: .85rem;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

/* ---------- Social Links ---------- */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,240,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: rgba(0,240,255,.02);
}
.social-links a:hover {
  background: rgba(0,240,255,.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0,240,255,.15);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(0,240,255,.06);
  padding: 48px 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  color: var(--text-secondary);
  font-size: .85rem;
  max-width: 300px;
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Inter', sans-serif;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: .85rem;
  padding: 4px 0;
  transition: color var(--transition);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
.footer-col a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px rgba(0,240,255,.2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(0,240,255,.06);
  color: var(--text-secondary);
  font-size: .8rem;
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--text-secondary); font-size: .8rem; }
.footer-bottom-links a:hover { color: var(--accent-cyan); }

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,240,255,.15), transparent);
  margin: 60px 0;
}

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 14px 20px;
  background: rgba(10,15,25,.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,240,255,.2);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
  box-shadow: 0 0 20px rgba(0,240,255,.1);
  z-index: 9999;
  transform: translateY(120%);
  transition: transform .4s ease;
}
.toast.show { transform: translateY(0); }

/* ---------- Nav Auth Button ---------- */
.nav-auth {
  margin-left: 8px;
}

.nav-auth-signin {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-secondary);
  padding: 6px 14px;
  border: 1px solid rgba(0,240,255,.15);
  background: rgba(0,240,255,.03);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-auth-signin:hover {
  background: rgba(0,240,255,.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,240,255,.15);
}

.nav-auth-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid rgba(0,240,255,.12);
  background: rgba(0,240,255,.03);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.nav-auth-user:hover {
  background: rgba(0,240,255,.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0,240,255,.1);
}

.nav-auth-avatar {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0,240,255,.08);
  border: 1px solid rgba(0,240,255,.2);
  overflow: hidden;
}
.nav-auth-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-auth-name {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-primary);
  letter-spacing: .05em;
  text-transform: uppercase;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Account Page ---------- */
.account-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px;
}

.account-avatar {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border: 2px solid rgba(0,240,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-cyan);
  background: rgba(0,240,255,.05);
  overflow: hidden;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.account-profile-info {
  flex: 1;
}

.account-user-id {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.linked-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.linked-account-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(0,240,255,.02);
  border: 1px solid rgba(0,240,255,.06);
  transition: all var(--transition);
}
.linked-account-item:hover {
  background: rgba(0,240,255,.05);
  border-color: rgba(0,240,255,.12);
}

.linked-account-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid rgba(0,240,255,.1);
  background: rgba(0,240,255,.03);
}

.linked-account-info h4 {
  font-size: .8rem;
  margin-bottom: 2px;
  letter-spacing: .06em;
}

.linked-account-info p {
  font-size: .8rem;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.linked-account-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #22c55e;
  padding: 3px 10px;
  border: 1px solid rgba(34,197,94,.2);
  background: rgba(34,197,94,.05);
}

.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .game-showcase { grid-template-columns: 1fr; }
  .game-showcase .game-screenshot { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-globe { opacity: .15; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(6,6,9,.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid rgba(0,240,255,.08);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 16px; width: 100%; text-align: center; }
  .nav-toggle { display: flex; }

  .hero-bottom { bottom: 16px; }
  .hero-particle-text { bottom: 100px; }
  .hero-description { font-size: .95rem; margin-bottom: 18px; }
  .hero-scroll { margin-top: 14px; }
  .hero-scroll .scroll-line { height: 20px; }
  .hero-globe { display: none; }
  .hud-corner { display: none; }
  .hud-data { display: none; }
  .mouse-trail-dot { display: none; }

  .nav-auth { margin-left: 0; margin-top: 8px; width: 100%; }
  .nav-auth-signin, .nav-auth-user { width: 100%; justify-content: center; }

  .section { padding: 64px 0; }
  .page-header { padding: 120px 0 48px; }

  .account-profile-header { flex-direction: column; text-align: center; }
  .account-user-id { justify-content: center; }
  .account-actions { flex-direction: column; }

  .info-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .game-buttons { flex-direction: column; }
  .game-buttons .btn { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   LEGAL PAGES (privacy.html) — readable long-form text
   ========================================================================== */
.legal-container { max-width: 820px; }
.legal { font-family: 'Inter', system-ui, sans-serif; }
.legal p,
.legal li {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
  text-transform: none;
  letter-spacing: 0;
}
.legal p { margin-bottom: 16px; }
.legal strong { color: var(--text-heading); }
.legal h2 {
  font-size: 1.15rem;
  margin: 48px 0 16px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}
.legal h3 {
  font-size: .9rem;
  color: var(--accent-cyan);
  margin: 28px 0 10px;
}
.legal ul,
.legal ol { margin: 0 0 18px; padding-left: 22px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--accent-cyan); }
.legal-meta {
  font-family: var(--font-mono);
  font-size: .8rem !important;
  color: var(--text-secondary) !important;
  letter-spacing: .05em !important;
}
.legal-toc {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, .15);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0 8px;
}
.legal-toc h2 { margin: 0 0 12px; font-size: .85rem; padding-top: 0; }
.legal-toc ol { columns: 2; column-gap: 32px; margin-bottom: 0; }
.legal-toc li { margin-bottom: 4px; font-size: .9rem; break-inside: avoid; }
.legal-table-wrap { overflow-x: auto; margin: 0 0 20px; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 520px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 240, 255, .1);
  line-height: 1.6;
}
.legal-table th {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, .04);
}
.legal-table td { color: var(--text-primary); }
.legal-game {
  background: var(--bg-card);
  border: 1px solid rgba(139, 92, 246, .2);
  border-left: 3px solid var(--accent-purple);
  border-radius: var(--radius);
  padding: 18px 22px 6px;
  margin-bottom: 18px;
}
.legal-game h3 { margin: 0 0 4px; color: var(--text-heading); }
.legal-game-platforms {
  font-family: var(--font-mono);
  font-size: .75rem !important;
  color: var(--text-secondary) !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  margin-bottom: 10px !important;
}
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .legal h2 { font-size: 1rem; }
}
/* Footer company / legal details (Companies Act 2006 disclosure) */
.footer-legal { display: flex; flex-direction: column; gap: 4px; }
.footer-company {
  font-size: .7rem;
  line-height: 1.6;
  color: var(--text-secondary);
  opacity: .8;
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .footer-legal { align-items: center; }
}

/* ==========================================================================
   STUDIO CATALOG, DEDICATED GAME PAGES & QUICK-PLAY LAUNCHER MODAL
   ========================================================================== */

.page-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.page-breadcrumb a {
  color: var(--accent-cyan);
}

.breadcrumb-sep {
  opacity: .4;
}

.flagship-card {
  padding: 40px;
  border-color: rgba(0, 240, 255, .16);
}

.game-screenshot-link {
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.game-screenshot-link:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 32px rgba(0, 240, 255, .14), inset 0 0 30px rgba(0, 240, 255, .05);
}

.game-visual--nawg {
  background:
    radial-gradient(circle at 30% 35%, rgba(0, 240, 255, .12), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(139, 92, 246, .14), transparent 55%),
    linear-gradient(135deg, rgba(8, 14, 26, .95), rgba(14, 18, 34, .95));
}

.game-visual-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 16px;
}

.game-visual-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  border: 1px solid rgba(0, 240, 255, .25);
  background: rgba(0, 240, 255, .06);
  box-shadow: 0 0 24px rgba(0, 240, 255, .15);
}

.game-title-link {
  color: var(--text-heading);
  transition: color var(--transition), text-shadow var(--transition);
}

.game-title-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 14px rgba(0, 240, 255, .3);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.catalog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.catalog-status-badge {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, .25);
  background: rgba(34, 197, 94, .06);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.catalog-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.catalog-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: .05em;
}

.catalog-card-desc {
  color: var(--text-secondary);
  font-size: .94rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.catalog-card-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Quick-Play Launcher Modal ---------- */
.play-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 6, 12, .82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.play-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.play-modal {
  width: 100%;
  max-width: 680px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 32px;
  background: rgba(8, 12, 22, .97);
  border: 1px solid rgba(0, 240, 255, .24);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .75), 0 0 40px rgba(0, 240, 255, .12);
  transform: translateY(14px) scale(.98);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.play-modal:hover {
  transform: translateY(0) scale(1);
}

.play-modal-backdrop.open .play-modal {
  transform: translateY(0) scale(1);
}

.play-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.play-modal-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.play-modal-subtitle {
  color: var(--text-secondary);
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.play-modal-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid rgba(0, 240, 255, .2);
  background: rgba(0, 240, 255, .04);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.play-modal-close:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 240, 255, .1);
  box-shadow: 0 0 12px rgba(0, 240, 255, .2);
}

.play-modal-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.play-modal-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 240, 255, .1);
  background: rgba(12, 18, 32, .75);
  transition: all var(--transition);
}

.play-modal-item:hover {
  border-color: rgba(0, 240, 255, .28);
  background: rgba(16, 24, 42, .92);
}

.play-modal-item--flagship {
  border-color: rgba(0, 240, 255, .22);
  background: linear-gradient(135deg, rgba(0, 240, 255, .05), rgba(139, 92, 246, .05));
}

.play-modal-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(0, 240, 255, .18);
  background: rgba(0, 240, 255, .04);
}

.play-modal-body {
  flex: 1;
  min-width: 0;
}

.play-modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.play-modal-badge {
  padding: 2px 8px;
  border: 1px solid rgba(34, 197, 94, .28);
  background: rgba(34, 197, 94, .08);
  color: #22c55e;
}

.play-modal-badge--flagship {
  border-color: rgba(0, 240, 255, .35);
  background: rgba(0, 240, 255, .1);
  color: var(--accent-cyan);
}

.play-modal-body h3 {
  font-size: .98rem;
  margin-bottom: 4px;
  letter-spacing: .05em;
}

.play-modal-body h3 a {
  color: var(--text-heading);
}

.play-modal-body h3 a:hover {
  color: var(--accent-cyan);
}

.play-modal-body p {
  color: var(--text-secondary);
  font-size: .84rem;
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.play-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.play-modal-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 240, 255, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  color: var(--text-secondary);
}

.play-modal-footer a {
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .flagship-card {
    padding: 24px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .play-modal {
    padding: 22px 18px;
  }
  .play-modal-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .play-modal-actions {
    width: 100%;
    margin-top: 6px;
  }
  .play-modal-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .play-modal-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
