/* ===========================================================
   Guru Guru Games — Landing Page Styles
   Fun, colorful, swirly. Pulled from the logo palette.
   =========================================================== */

:root {
  --bg:        #15171f;
  --bg-soft:   #1d2030;
  --surface:   #23263a;
  --text:      #f3f5ff;
  --text-dim:  #aab0cf;

  --cyan:      #22d3ee;
  --blue:      #3b82f6;
  --purple:    #a855f7;
  --magenta:   #ec4899;
  --orange:    #fb923c;
  --green:     #34d399;

  --grad-fun:  linear-gradient(110deg, var(--cyan), var(--blue), var(--purple), var(--magenta), var(--orange));
  --grad-btn:  linear-gradient(110deg, var(--purple), var(--magenta), var(--orange));

  --radius:    20px;
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --maxw:      1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, .nav__name { font-family: "Baloo 2", "Nunito", sans-serif; }

a { color: inherit; text-decoration: none; }

.emoji { display: inline-block; }

/* ---------- Floating background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 14s ease-in-out infinite;
}
.blob--1 { width: 420px; height: 420px; background: var(--purple); top: -80px; left: -100px; }
.blob--2 { width: 380px; height: 380px; background: var(--cyan); bottom: -120px; right: -80px; animation-delay: -4s; }
.blob--3 { width: 320px; height: 320px; background: var(--orange); top: 40%; left: 55%; animation-delay: -8s; }

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

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(21, 23, 31, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo { width: 40px; height: 40px; border-radius: 10px; }
.nav__name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.3px; }
.nav__name-accent {
  background: var(--grad-fun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { font-weight: 700; color: var(--text-dim); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.35);
}
.btn--primary:hover { box-shadow: 0 16px 36px rgba(236, 72, 153, 0.5); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--cyan); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) 1.25rem 3rem;
}
.hero__logo-wrap { display: inline-block; margin-bottom: 1.5rem; }
.hero__logo {
  width: clamp(130px, 30vw, 200px);
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.hero__title {
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero__spin {
  display: inline-block;
  background: var(--grad-fun);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero__subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2rem;
}
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  background: var(--grad-fun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) 1.25rem;
}
.section__head { text-align: center; margin-bottom: 2.8rem; }
.section__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; }
.section__sub { color: var(--text-dim); margin-top: 0.5rem; font-size: 1.1rem; }

/* ---------- Game cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
  gap: 1.5rem;
  justify-content: center;
  max-width: calc(280px * 3 + 1.5rem * 2);
  margin-inline: auto;
}
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--card-c1), var(--card-c2));
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.card__art {
  font-size: 2.8rem;
  width: 70px; height: 70px;
  display: grid; place-items: center;
  border-radius: 18px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--card-c1), var(--card-c2));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.card__title { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4rem; }
.card__text { color: var(--text-dim); font-size: 0.97rem; }
.card__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-dim);
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.about__art { display: grid; place-items: center; }
.about__spinner {
  font-size: clamp(7rem, 22vw, 11rem);
  animation: spin-slow 16s linear infinite;
  filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.5));
}
.about__body p { color: var(--text-dim); margin-top: 1rem; }
.about__list { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.about__list li { font-weight: 700; }

/* ---------- Join ---------- */
.join__inner {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  padding: clamp(2.5rem, 7vw, 4rem) 1.5rem;
  position: relative;
  overflow: hidden;
}
.join__inner::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: var(--grad-fun);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.join__inner p { color: var(--text-dim); margin: 0.8rem 0 1.8rem; font-size: 1.1rem; }

/* ---------- Contact ---------- */
.contact__form {
  max-width: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}
.field textarea { resize: vertical; }
.contact__note { grid-column: 1 / -1; text-align: center; font-weight: 700; min-height: 1.4rem; }
.contact__note.ok { color: var(--green); }
.contact__note.err { color: var(--magenta); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 3rem 1.25rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}
.footer__logo { width: 52px; height: 52px; border-radius: 12px; margin-bottom: 0.8rem; }
.footer__name { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 1.2rem; }
.footer__copy { color: var(--text-dim); font-size: 0.9rem; margin-top: 0.3rem; }
.footer__social { display: flex; gap: 1.1rem; justify-content: center; margin-top: 1.2rem; font-size: 1.5rem; }
.footer__social a { transition: transform 0.2s; }
.footer__social a:hover { transform: translateY(-4px) scale(1.2); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav__links a:not(.btn) { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__art { order: -1; }
  .contact__form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
