/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Root Variables ─── */
:root {
  --bg:        #060d1f;
  --surface:   #0f172a;
  --surface2:  #1e293b;
  --border:    rgba(148,163,184,0.12);
  --sky:       #0ea5e9;
  --violet:    #7c3aed;
  --text:      #f1f5f9;
  --muted:     #94a3b8;
  --radius:    1rem;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Utilities ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--sky) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 0.625rem;
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: all 0.2s ease; border: none; font-family: inherit;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky), #0369a1);
  color: #fff;
  box-shadow: 0 0 24px rgba(14,165,233,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(14,165,233,0.5);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(14,165,233,0.5);
  color: var(--sky);
}
.btn-outline:hover {
  background: rgba(14,165,233,0.08);
  border-color: var(--sky);
  transform: translateY(-1px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }
.section { padding: 5rem 0; }
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.section-sub {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* ─── Navbar ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,13,31,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.625rem; }
.nav-logo img { height: 2rem; width: auto; }
.nav-logo span { font-weight: 700; font-size: 1.125rem; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--muted); font-size: 0.9375rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-hamburger {
  display: none; cursor: pointer; background: none; border: none;
  color: var(--text); padding: 0.25rem;
}
.nav-hamburger svg { width: 1.5rem; height: 1.5rem; }
.nav-mobile {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 0.75rem 1.5rem; color: var(--muted);
  font-weight: 500; font-size: 1rem; transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile .btn { margin: 0.75rem 1.5rem 0.25rem; }

/* ─── Hero ─── */
#hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 0 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg);
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: 0.35; animation: floatBlob 8s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  top: -150px; left: -100px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  top: 20%; right: -100px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  animation-delay: -3s;
}
.hero-blob-3 {
  width: 350px; height: 350px;
  bottom: 0; left: 40%;
  background: radial-gradient(circle, #0369a1, transparent 70%);
  animation-delay: -5s;
}
@keyframes floatBlob {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.08); }
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(14,165,233,0.1); border: 1px solid rgba(14,165,233,0.25);
  border-radius: 2rem; padding: 0.375rem 1rem;
  font-size: 0.8125rem; font-weight: 600; color: var(--sky);
  margin-bottom: 1.25rem;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.125rem; color: var(--muted);
  max-width: 44ch; margin-bottom: 2rem; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem; transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.5s ease;
}
.hero-visual:hover { transform: perspective(1000px) rotateY(-4deg) rotateX(2deg); }
.hero-card {
  border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--surface);
}
.hero-card:hover { transform: translateY(-4px); box-shadow: 0 0 20px rgba(14,165,233,0.3); }
.hero-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ─── Stats ─── */
#stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  divide: 1px solid var(--border);
  text-align: center; gap: 0;
}
.stat-item {
  padding: 1rem 2rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, var(--sky), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.stat-label { color: var(--muted); font-size: 0.9375rem; margin-top: 0.25rem; font-weight: 500; }

/* ─── Games Grid ─── */
#products { background: var(--bg); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.875rem;
}
.game-card {
  border-radius: 0.875rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 28px rgba(14,165,233,0.35), 0 8px 32px rgba(0,0,0,0.4);
  border-color: rgba(14,165,233,0.4);
}
.game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.game-card-name {
  padding: 0.5rem 0.625rem;
  font-size: 0.75rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ─── How It Works ─── */
#how { background: var(--surface); }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute;
  top: 2.25rem; left: calc(12.5% + 1rem);
  right: calc(12.5% + 1rem); height: 2px;
  background: linear-gradient(90deg, var(--sky), var(--violet));
  z-index: 0;
}
.step-card {
  position: relative; z-index: 1;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  text-align: center; transition: border-color 0.25s, box-shadow 0.25s;
}
.step-card:hover { border-color: rgba(14,165,233,0.4); box-shadow: 0 4px 24px rgba(14,165,233,0.12); }
.step-num {
  width: 3rem; height: 3rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--violet));
  color: #fff; font-weight: 800; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.step-title { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.step-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

/* ─── Benefits ─── */
#benefits { background: var(--bg); }
.benefits-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.benefit-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.benefit-card:hover {
  border-color: rgba(14,165,233,0.35);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(14,165,233,0.1);
}
.benefit-icon {
  width: 3rem; height: 3rem;
  background: rgba(14,165,233,0.12); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.benefit-icon svg { width: 1.5rem; height: 1.5rem; color: var(--sky); }
.benefit-title { font-weight: 700; font-size: 1.0625rem; margin-bottom: 0.5rem; }
.benefit-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.65; }

/* ─── Categories ─── */
#categories { background: var(--surface); }
.categories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.category-card {
  border-radius: var(--radius); padding: 2.25rem;
  display: flex; flex-direction: column; gap: 0.875rem;
  border: 1px solid var(--border); overflow: hidden; position: relative;
  transition: border-color 0.25s, transform 0.25s;
  background: var(--bg);
}
.category-card:hover { border-color: rgba(14,165,233,0.4); transform: translateY(-4px); }
.category-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--violet));
}
.category-emoji { font-size: 2.5rem; }
.category-title { font-size: 1.25rem; font-weight: 700; }
.category-desc { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.category-count {
  margin-top: auto; font-size: 0.8125rem; font-weight: 600;
  color: var(--sky); display: flex; align-items: center; gap: 0.375rem;
}

/* ─── CTA Banner ─── */
#cta-banner {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(124,58,237,0.15));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center; padding: 5rem 0;
}
#cta-banner h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
#cta-banner p { color: var(--muted); font-size: 1.125rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── Footer ─── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 1.75rem; margin-bottom: 0.875rem; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 30ch; line-height: 1.6; }
.footer-col h4 { font-weight: 700; font-size: 0.875rem; margin-bottom: 1rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.625rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; color: var(--muted); font-size: 0.8125rem;
}

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

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .nav-hamburger { display: block; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

/* ─── Apply Page ─── */
.apply-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; padding: 7rem 1.5rem 4rem;
}
.apply-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 2.5rem;
  width: 100%; max-width: 680px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}
.apply-header { margin-bottom: 2rem; }
.apply-header h1 { font-size: 1.875rem; font-weight: 800; margin-bottom: 0.5rem; }
.apply-header p { color: var(--muted); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text); }
.form-group label span { color: var(--sky); }
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 0.625rem; color: var(--text); font-size: 0.9375rem;
  font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-control:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.form-control::placeholder { color: var(--muted); }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--surface); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 1.5rem; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1rem; padding: 0.875rem; }
.form-success {
  display: none; text-align: center; padding: 2.5rem;
}
.form-success svg { width: 3.5rem; height: 3.5rem; color: #22c55e; margin: 0 auto 1rem; }
.form-success h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }
.form-error { color: #f87171; font-size: 0.875rem; margin-top: 0.5rem; }

@media (max-width: 560px) {
  .apply-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}
