/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:    #A78BFA;
  --purple-l:  #EDE9FE;
  --pink:      #F472B6;
  --pink-l:    #FCE7F3;
  --mint:      #34D399;
  --mint-l:    #D1FAE5;
  --yellow:    #FCD34D;
  --yellow-l:  #FEF9C3;
  --coral:     #FB923C;
  --bg:        #FFFBF7;
  --surface:   #FFFFFF;
  --text:      #2D2D3A;
  --muted:     #6B7280;
  --radius:    18px;
  --shadow:    0 8px 32px rgba(167,139,250,0.13);
  --shadow-md: 0 16px 48px rgba(167,139,250,0.20);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, .logo-text {
  font-family: 'Fredoka One', cursive;
  letter-spacing: 0.01em;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

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

.section { padding: 100px 0; }

.section-label {
  display: inline-block;
  background: var(--purple-l);
  color: var(--purple);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 4px 20px rgba(167,139,250,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(167,139,250,0.55); }

.btn-secondary {
  background: var(--surface);
  color: var(--purple);
  border: 2px solid var(--purple-l);
}
.btn-secondary:hover { background: var(--purple-l); }

.btn-small {
  padding: 8px 20px;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 3px 12px rgba(167,139,250,0.35);
}
.btn-small:hover { box-shadow: 0 6px 18px rgba(167,139,250,0.5); }

.btn-outline {
  background: transparent !important;
  color: var(--coral) !important;
  border: 2px solid var(--coral) !important;
  box-shadow: none !important;
}
.btn-outline:hover { background: #FFE8D6 !important; }

.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(255,251,247,0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(167,139,250,0.12);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon { font-size: 1.7rem; }

.logo-text {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  font-weight: 700;
  color: var(--muted);
  transition: color 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--purple); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--purple);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
  text-align: center;
  background: linear-gradient(160deg, #FFF0FB 0%, #F0EEFF 40%, #E8F8FF 100%);
}

.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  animation: drift 8s ease-in-out infinite alternate;
}
.shape-1 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--purple-l), transparent);
  top: -60px; left: -80px;
  animation-delay: 0s;
}
.shape-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, var(--pink-l), transparent);
  top: 10%; right: -60px;
  animation-delay: 1.5s;
}
.shape-3 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--yellow-l), transparent);
  bottom: 10%; left: 5%;
  animation-delay: 3s;
}
.shape-4 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--mint-l), transparent);
  bottom: -40px; right: 10%;
  animation-delay: 2s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 30px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--yellow-l);
  color: #92400E;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease both;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.1s ease both;
}

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

.hero-sub {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-emojis {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}

.float-emoji {
  font-size: 2rem;
  animation: floatEmoji 3s var(--d, 0s) ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes floatEmoji {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  animation: fadeIn 1.5s 1s ease both;
}

.scroll-arrow {
  animation: bounce 1.5s ease-in-out infinite;
  font-size: 1.2rem;
  margin-top: 4px;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== ABOUT ===== */
.about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-family: 'Fredoka One', cursive;
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}

.about-card-stack {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acard {
  position: absolute;
  width: 220px;
  height: 260px;
  border-radius: 24px;
}
.acard-back {
  background: var(--yellow-l);
  transform: rotate(-8deg) translate(-20px, 12px);
}
.acard-mid {
  background: var(--pink-l);
  transform: rotate(-3deg) translate(10px, 6px);
}
.acard-front {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  transform: rotate(2deg);
}
.acard-emoji { font-size: 3.5rem; }
.acard-text {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

/* ===== GAMES ===== */
.games {
  background: linear-gradient(170deg, #FFF8FF 0%, #F8FFFC 100%);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.game-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  transition: transform 0.3s;
}
.game-card:hover .game-thumb { transform: scale(1.08); }

.game-icon { display: block; transition: transform 0.3s; }
.game-card:hover .game-icon { transform: rotate(-8deg) scale(1.15); }

.game-info { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

.game-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--purple-l);
  color: var(--purple);
  margin-bottom: 10px;
}
.game-tag.coming {
  background: #FFE8D6;
  color: var(--coral);
}

.game-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text);
}

.game-info p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.new-card { border: 2.5px dashed #FBCFB0; }

/* ===== VALUES ===== */
.values { background: var(--surface); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.value-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 2px solid transparent;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--purple-l);
}

.value-icon { font-size: 2.6rem; margin-bottom: 16px; display: block; }

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== CONTACT ===== */
.contact {
  background: linear-gradient(160deg, #F0EEFF 0%, #FFF0FB 100%);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-form {
  background: var(--surface);
  padding: 40px 36px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #EDE9FE;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.15);
}

.form-success {
  display: none;
  text-align: center;
  margin-top: 16px;
  padding: 14px;
  background: var(--mint-l);
  color: #065F46;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.22s;
}
.contact-card:hover { transform: translateX(4px); }

.ci-icon { font-size: 1.8rem; flex-shrink: 0; }

.contact-card strong {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.contact-card p { font-size: 0.9rem; color: var(--muted); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  padding: 48px 0 32px;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo .logo-text {
  -webkit-text-fill-color: #fff;
  background: none;
  color: #fff;
}

.footer-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--purple); }

.footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  margin-top: 8px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-card-stack { height: 220px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(255,251,247,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .games-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .section { padding: 72px 0; }
  .about-stats { gap: 20px; }
  .contact-form { padding: 28px 20px; }
}

/* ===== LEGAL PAGES ===== */
.legal { padding-top: 140px; }
.legal-container { max-width: 800px; }
.legal h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
}
.legal p { line-height: 1.7; margin-bottom: 12px; }
.legal ul { margin: 0 0 16px 24px; line-height: 1.7; }
.legal li { margin-bottom: 4px; }
.legal a { color: var(--purple); font-weight: 700; }
