/* ===== Dexbit Games — site styles ===== */

:root {
  --bg: #0b0d14;
  --bg-alt: #10131d;
  --surface: #171b28;
  --surface-2: #1e2333;
  --border: #2a3045;
  --text: #eef1f8;
  --text-dim: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --gradient: linear-gradient(120deg, #7c5cff, #00d4ff);
  --radius: 16px;
  --container: 1120px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.9rem;
}

.logo-accent { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 130px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(600px 400px at 70% 30%, rgba(0, 212, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 24px rgba(124, 92, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-title.left { text-align: left; }

.section-sub {
  text-align: center;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* ===== Games ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent); }
.filter-btn.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

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

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.game-cover {
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 3rem;
  position: relative;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }

.game-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.game-badge.adults { background: rgba(124, 92, 255, 0.9); color: #fff; }
.game-badge.kids { background: rgba(0, 212, 255, 0.9); color: #04222b; }

.game-badge.soon {
  left: auto;
  right: 12px;
  background: rgba(255, 190, 60, 0.95);
  color: #3a2a00;
}

.game-body { padding: 18px; }
.game-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.game-body p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 14px; }

.game-links { display: flex; gap: 10px; flex-wrap: wrap; }
.game-links a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
}
.game-links a:hover { border-color: var(--accent-2); text-decoration: none; }

/* Empty state */
.games-empty {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-badge { font-size: 3rem; margin-bottom: 16px; }
.games-empty h3 { font-size: 1.5rem; margin-bottom: 10px; }
.games-empty p {
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 28px;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ===== Split (families) ===== */
.split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-text p { color: var(--text-dim); margin-bottom: 18px; }
.split-text .section-title { margin-bottom: 18px; }

.check-list {
  list-style: none;
  margin: 0 0 20px;
}
.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.fine-print { font-size: 0.9rem; }

.split-art {
  position: relative;
  height: 340px;
}
.art-card {
  position: absolute;
  display: grid;
  place-items: center;
  font-size: 3rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.art-card-1 { width: 150px; height: 150px; top: 0; left: 10%; transform: rotate(-8deg); }
.art-card-2 { width: 170px; height: 170px; top: 90px; right: 5%; transform: rotate(6deg); background: var(--surface-2); }
.art-card-3 { width: 120px; height: 120px; bottom: 0; left: 25%; transform: rotate(4deg); }

/* ===== Contact ===== */
.contact-inner { text-align: center; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-brand .logo-mark { width: 28px; height: 28px; font-size: 0.75rem; }

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a { color: var(--text-dim); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-dim); font-size: 0.9rem; }

/* ===== Legal pages ===== */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 90px;
}
.legal h1 { font-size: 2.2rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.legal .updated { color: var(--text-dim); margin-bottom: 36px; font-size: 0.9rem; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 12px 0 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px; }
  .nav-cta { margin: 8px 24px 0; }

  .hero { padding: 70px 0 90px; }
  .section { padding: 64px 0; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-art { height: 280px; }

  .footer-inner { flex-direction: column; text-align: center; }
}
