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

:root {
  --bg:        #07070f;
  --bg2:       #0e0e1a;
  --bg3:       #141424;
  --purple:    #7B2FBE;
  --cyan:      #00D4FF;
  --green:     #00FF88;
  --yellow:    #FFE600;
  --coral:     #FF6B6B;
  --text:      #f0f0f8;
  --muted:     #8888aa;
  --border:    rgba(255,255,255,0.07);
  --radius:    16px;
  --font:      'Space Grotesk', sans-serif;
  --mono:      'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  box-shadow: 0 0 30px rgba(123,47,190,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(123,47,190,0.6);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  transition: all 0.3s ease;
}
.nav.scrolled {
  background: rgba(7,7,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.paint-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: float 8s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--purple); top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: var(--cyan);   top: 50%; right: -80px;  animation-delay: 2s; }
.blob-3 { width: 300px; height: 300px; background: var(--coral);  bottom: 0; left: 30%;    animation-delay: 4s; }
.blob-4 { width: 250px; height: 250px; background: var(--green);  top: 20%; left: 50%;     animation-delay: 1s; }

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.2s forwards;
}
.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.4s forwards;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.6s forwards;
}
.hero-content .btn {
  opacity: 0;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

/* Paint drips at bottom of hero */
.hero-drips {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 80px;
  pointer-events: none;
}
.drip {
  width: 18px;
  border-radius: 0 0 50px 50px;
  animation: drip 3s ease-in-out infinite;
}
.drip-1 { height: 55px; background: var(--purple); animation-delay: 0s; }
.drip-2 { height: 40px; background: var(--cyan);   animation-delay: 0.4s; }
.drip-3 { height: 65px; background: var(--coral);  animation-delay: 0.8s; }
.drip-4 { height: 35px; background: var(--yellow);  animation-delay: 1.2s; }
.drip-5 { height: 50px; background: var(--green);  animation-delay: 0.6s; }

@keyframes drip {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(1.15); }
}

/* ── GAME SECTION ── */
.game {
  padding: 120px 0;
  background: var(--bg2);
  position: relative;
}

.game-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Mascot image */
.mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.mascot-img {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 0 60px rgba(123,47,190,0.35), 0 30px 60px rgba(0,0,0,0.5);
  animation: glowPulse 3s ease-in-out infinite;
}

/* Phone mockup */
.phone-frame {
  width: 240px;
  height: 490px;
  background: #1a1a2e;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  padding: 16px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  margin: 0 auto;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #0a0a14;
}
.game-preview {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 20px;
  width: 100%;
}
.cell {
  aspect-ratio: 1;
  background: var(--c);
  border-radius: 8px;
  opacity: 0.9;
  animation: cellPulse 2s ease-in-out infinite;
}
.cell:nth-child(odd)  { animation-delay: 0.3s; }
.cell:nth-child(3n)   { animation-delay: 0.6s; }

@keyframes cellPulse {
  0%,100% { transform: scale(1);    opacity: 0.85; }
  50%      { transform: scale(0.95); opacity: 1;    }
}

.game-ui-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
  padding: 30px 16px 20px;
  text-align: center;
}
.game-title-screen {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse, rgba(123,47,190,0.25) 0%, transparent 70%);
  border-radius: 60px;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; }
  50%      { opacity: 1;   }
}

/* Game info */
.game-name {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.game-tagline {
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.game-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.game-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.game-features li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feat-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}
.game-features li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.game-features li strong {
  font-size: 15px;
  font-weight: 600;
}
.game-features li span {
  font-size: 13px;
  color: var(--muted);
}

.store-badge.coming-soon {
  display: inline-block;
}
.badge-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 22px;
  backdrop-filter: blur(10px);
}
.badge-sub {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.badge-main {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

/* ── ABOUT ── */
.about {
  padding: 120px 0;
  background: var(--bg);
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.stat-card:hover {
  border-color: rgba(123,47,190,0.4);
  transform: translateY(-4px);
}
.stat-num {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── CONTACT ── */
.contact {
  padding: 120px 0;
  background: var(--bg2);
}
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.contact-inner h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-inner p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 36px;
}
.contact-inner .btn {
  margin-bottom: 36px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s;
}
.social-links a:hover {
  color: var(--text);
  border-color: rgba(123,47,190,0.5);
  background: rgba(123,47,190,0.15);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy, .footer-tagline {
  font-size: 13px;
  color: var(--muted);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .game-layout,
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .game-mockup { order: -1; }
  .about-stats { max-width: 360px; }

  .hero-title { font-size: clamp(40px, 10vw, 64px); }
}

@media (max-width: 600px) {
  .contact-inner h2 { font-size: 40px; }
  .game-name { font-size: 38px; }
  .about-text h2 { font-size: 30px; }
  .footer .container { justify-content: center; text-align: center; }
}

/* ── GAMES SECTION (homepage) ── */
.games-section {
  padding: 120px 0;
  background: var(--bg2);
}
.games-heading {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 48px;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.game-card:hover {
  border-color: rgba(123,47,190,0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.game-card--upcoming {
  cursor: default;
  opacity: 0.5;
}
.game-card--upcoming:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.game-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg);
}
.game-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-img img { transform: scale(1.04); }
.game-card-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.upcoming-icon { color: var(--muted); }
.game-card-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(7,7,15,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.game-card-body {
  padding: 24px;
}
.game-card-body h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 2px;
}
.game-card-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.game-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.game-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple);
}

/* ── PAINT BUCKET PAGE ── */
.pb-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.pb-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.pb-hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.pb-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
}
.pb-hero-tagline {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.pb-hero-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.pb-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: var(--text); }
.pb-hero-img {
  display: flex;
  justify-content: center;
  position: relative;
}
.pb-hero-img img {
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  box-shadow: 0 0 80px rgba(123,47,190,0.3), 0 40px 80px rgba(0,0,0,0.5);
  animation: glowPulse 3s ease-in-out infinite;
}

/* Modes section */
.pb-modes {
  padding: 100px 0;
  background: var(--bg2);
}
.pb-modes h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 48px;
}
.modes-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.mode-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.mode-card:hover {
  border-color: rgba(123,47,190,0.4);
  transform: translateY(-4px);
}
.mode-card-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}
.mode-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mode-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Physics section */
.pb-physics {
  padding: 100px 0;
  background: var(--bg);
}
.pb-physics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.pb-physics h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.pb-physics p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.physics-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.physics-swatch {
  border-radius: 14px;
  aspect-ratio: 1;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  position: relative;
  overflow: hidden;
}
.physics-swatch span {
  font-size: 11px;
  font-family: var(--mono);
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .pb-hero-layout,
  .pb-physics-layout { grid-template-columns: 1fr; gap: 48px; }
  .pb-hero { min-height: auto; padding: 140px 0 80px; }
  .pb-hero-img { order: -1; }
  .pb-hero-img img { max-width: 320px; }
  .pb-modes h2, .pb-physics h2 { font-size: 30px; }
  .games-heading { font-size: 30px; }
}

/* ── LANGUAGE SWITCH ── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 3px;
  margin-left: 24px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang-btn.active {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
}
.lang-btn:not(.active):hover { color: var(--text); }

.governing-lang-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .lang-switch { margin-left: 0; margin-right: 12px; }
}
