@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #E11D48;
  --primary-hover: #BE123C;
  --on-primary: #FFFFFF;
  --secondary: #FB7185;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --bg: #FFF1F2;
  --bg-alt: #FFE4E6;
  --fg: #881337;
  --fg-soft: #9F1239;
  --muted: #F0ECF2;
  --surface: #FFFFFF;
  --border: #FECDD3;
  --success: #16A34A;
  --warning: #F59E0B;
  --shadow-clay: 12px 12px 24px #f4c4c8, -12px -12px 24px #ffffff;
  --shadow-clay-sm: 6px 6px 12px #f4c4c8, -6px -6px 12px #ffffff;
  --shadow-clay-inset: inset 4px 4px 8px #f4c4c8, inset -4px -4px 8px #ffffff;
  --shadow-btn: 0 8px 20px rgba(225, 29, 72, 0.25), inset 0 -3px 0 rgba(0,0,0,0.08);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(251, 113, 133, 0.15), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.1), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(225, 29, 72, 0.12), transparent 50%);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent-hover); }

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

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

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 241, 242, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(254, 205, 211, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-clay-sm);
}

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

.nav-links a {
  padding: 10px 18px;
  border-radius: 14px;
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.25s var(--ease);
}

.nav-links a:hover, .nav-links a.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-clay-sm);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-clay-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 18px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
  text-decoration: none;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #f43f5e);
  color: var(--on-primary);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.35), inset 0 -3px 0 rgba(0,0,0,0.08);
  color: var(--on-primary);
}

.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  box-shadow: var(--shadow-clay-sm);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  color: var(--primary);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #3b82f6);
  color: white;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-accent:hover { transform: translateY(-2px); color: white; }

.btn-lg { padding: 18px 34px; font-size: 17px; min-height: 56px; border-radius: 22px; }

/* Hero */
.hero {
  padding: 80px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-clay-sm);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 19px;
  color: var(--fg-soft);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 2px dashed var(--border);
}

.hero-stat .num {
  font-family: 'Fredoka', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.hero-stat .label {
  font-size: 13px;
  color: var(--fg-soft);
  margin-top: 4px;
  font-weight: 600;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 540px;
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  overflow: hidden;
}

.hero-card img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-card.card-1 {
  width: 260px; height: 340px;
  top: 0; left: 0;
  transform: rotate(-4deg);
  z-index: 2;
}

.hero-card.card-2 {
  width: 240px; height: 280px;
  bottom: 40px; right: 20px;
  transform: rotate(6deg);
  z-index: 3;
}

.hero-card.card-3 {
  width: 200px; height: 200px;
  bottom: 0; left: 40px;
  transform: rotate(-2deg);
  z-index: 1;
}

.hero-badge {
  position: absolute;
  background: var(--surface);
  padding: 14px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow-clay-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  z-index: 5;
}

.hero-badge.badge-1 { top: 40px; right: 0; }
.hero-badge.badge-2 { bottom: 20px; left: 0; }

.hero-badge .icon {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
}

/* Sections */
section { padding: 80px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.section-head p {
  font-size: 18px;
  color: var(--fg-soft);
}

/* Categories */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  padding: 32px 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay-sm);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-clay);
  border-color: var(--border);
}

.category-icon {
  width: 72px; height: 72px;
  border-radius: 22px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--surface));
  box-shadow: var(--shadow-clay-inset);
}

.category-card h3 { font-size: 20px; margin-bottom: 6px; }
.category-card p { font-size: 14px; color: var(--fg-soft); }

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-clay-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
  cursor: pointer;
}

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

.game-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  position: relative;
}

.game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.game-card:hover .game-thumb img { transform: scale(1.08); }

.game-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  backdrop-filter: blur(8px);
}

.game-body { padding: 20px; }

.game-body h3 { font-size: 20px; margin-bottom: 8px; }

.game-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--fg-soft);
}

.game-rating { display: inline-flex; align-items: center; gap: 4px; color: var(--warning); font-weight: 700; }

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-alt);
  color: var(--primary);
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.play-btn:hover { background: var(--primary); color: white; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay-sm);
  transition: transform 0.3s var(--ease);
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.3);
}

.feature-icon.blue { background: linear-gradient(135deg, var(--accent), #60A5FA); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
.feature-icon.green { background: linear-gradient(135deg, #16A34A, #4ADE80); box-shadow: 0 6px 16px rgba(22, 163, 74, 0.3); }
.feature-icon.gold { background: linear-gradient(135deg, #F59E0B, #FBBF24); box-shadow: 0 6px 16px rgba(245, 158, 11, 0.3); }

.feature-card h3 { font-size: 22px; margin-bottom: 12px; }
.feature-card p { color: var(--fg-soft); font-size: 15px; }

/* Testimonials */
.testimonials { background: var(--bg-alt); border-radius: var(--radius-xl); padding: 60px 40px; margin: 40px auto; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testi-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay-sm);
}

.testi-stars { color: var(--warning); font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }

.testi-text {
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.6;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.testi-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testi-name { font-weight: 700; color: var(--fg); font-size: 15px; }
.testi-role { font-size: 13px; color: var(--fg-soft); }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(225, 29, 72, 0.25);
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-banner::before { width: 300px; height: 300px; top: -100px; right: -80px; }
.cta-banner::after { width: 200px; height: 200px; bottom: -60px; left: -60px; }

.cta-banner > * { position: relative; z-index: 1; }

.cta-banner h2 { color: white; font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta-banner p { font-size: 18px; margin-bottom: 32px; opacity: 0.95; }

.cta-banner .btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Footer */
.site-footer {
  padding: 60px 0 30px;
  background: var(--surface);
  margin-top: 80px;
}

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

.footer-brand p {
  color: var(--fg-soft);
  margin: 16px 0 20px;
  max-width: 320px;
  font-size: 15px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: grid; place-items: center;
  color: var(--primary);
  transition: all 0.2s ease;
}

.social-links a:hover { background: var(--primary); color: white; transform: translateY(-2px); }

.footer-col h4 { font-size: 15px; margin-bottom: 16px; font-family: 'Fredoka', sans-serif; }

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--fg-soft); font-size: 14px; }
.footer-col ul a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-soft);
  font-size: 14px;
}

/* Page hero (interior pages) */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}

.page-hero p { font-size: 18px; color: var(--fg-soft); max-width: 640px; margin: 0 auto; }

/* Content pages */
.content-block {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-clay-sm);
  max-width: 820px;
  margin: 0 auto 40px;
}

.content-block h2 { font-size: 28px; margin: 32px 0 16px; color: var(--primary); }
.content-block h2:first-child { margin-top: 0; }
.content-block h3 { font-size: 20px; margin: 24px 0 12px; }
.content-block p { margin-bottom: 16px; color: var(--fg); }
.content-block ul, .content-block ol { padding-left: 24px; margin-bottom: 16px; }
.content-block li { margin-bottom: 8px; }
.content-block strong { color: var(--primary); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info {
  padding: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-lg);
  color: white;
  box-shadow: var(--shadow-clay);
}

.contact-info h2 { color: white; margin-bottom: 12px; }
.contact-info p { opacity: 0.95; margin-bottom: 32px; font-size: 15px; }

.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-detail .icon {
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-detail strong { display: block; font-size: 14px; opacity: 0.85; }
.contact-detail span { font-size: 16px; font-weight: 600; }

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--fg);
  transition: all 0.2s ease;
  min-height: 48px;
}

.form-group textarea { min-height: 120px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.form-group .hint { font-size: 12px; color: var(--fg-soft); margin-top: 6px; }

.form-status {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}

.form-status.success { display: block; background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.form-status.error { display: block; background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* About page */
.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay-sm);
  text-align: center;
}

.value-num {
  font-family: 'Fredoka', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.value-card h3 { font-size: 18px; margin: 12px 0 8px; }
.value-card p { font-size: 14px; color: var(--fg-soft); }

/* Utility */
.reveal { opacity: 0; transform: translateY(30px); }
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 420px; max-width: 480px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    flex-direction: column;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-clay);
    margin-top: 8px;
  }
  .hero { padding: 40px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  section { padding: 48px 0; }
  .cta-banner, .testimonials, .content-block { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; }
  .hero-card.card-1 { width: 200px; height: 260px; }
  .hero-card.card-2 { width: 180px; height: 220px; }
  .hero-card.card-3 { width: 160px; height: 160px; }
}

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