:root {
  --bg-1: #0f0c29;
  --bg-2: #302b63;
  --bg-3: #24243e;
  --primary: #7c4dff;
  --secondary: #00e5ff;
  --gold: #ffd54f;
  --text: #f5f7ff;
  --text-muted: rgba(245, 247, 255, 0.72);
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 20px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  color: var(--text);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-3) 45%, var(--bg-2) 100%);
  min-height: 100vh;
  line-height: 1.7;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page-wrap {
  position: relative;
  overflow: hidden;
}

.page-wrap::before,
.page-wrap::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.page-wrap::before {
  width: 420px;
  height: 420px;
  background: rgba(124, 77, 255, 0.35);
  top: -120px;
  left: -80px;
}

.page-wrap::after {
  width: 360px;
  height: 360px;
  background: rgba(0, 229, 255, 0.18);
  bottom: -100px;
  right: -60px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(15, 12, 41, 0.72);
  border-bottom: 1px solid var(--card-border);
}

.site-header-inner,
.section,
.site-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: linear-gradient(135deg, var(--primary), #5e35b1);
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.45);
}

.brand-text strong {
  display: block;
  font-size: 1rem;
}

.brand-text span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.site-nav a:hover {
  text-decoration: none;
  border-color: var(--card-border);
  background: var(--card);
}

.hero {
  position: relative;
  z-index: 1;
  padding: 56px 20px 32px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
}

.hero-copy p {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 620px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #5e35b1);
  color: #fff;
  box-shadow: 0 12px 30px rgba(124, 77, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--card-border);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin: 0 0 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.stat-box {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--card-border);
}

.stat-box strong {
  display: block;
  font-size: 1.4rem;
  color: var(--gold);
}

.section {
  position: relative;
  z-index: 1;
  padding: 28px 20px 48px;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-title p {
  margin: 0;
  color: var(--text-muted);
}

.games-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.game-card,
.feature-card,
.faq-item,
.contact-card,
.legal-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.game-card {
  position: relative;
  overflow: hidden;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--accent, var(--primary));
}

.game-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.game-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.game-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.feature-card h3 {
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

.contact-card strong {
  display: block;
  margin-bottom: 6px;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
}

.admob-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  word-break: break-all;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 28px 20px 40px;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-page {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}

.legal-card h1 {
  margin-top: 0;
  text-align: center;
}

.legal-card h2 {
  margin-top: 28px;
  color: var(--gold);
}

.legal-card ul {
  padding-right: 20px;
}

.legal-card .highlight {
  padding: 16px;
  border-radius: 14px;
  background: rgba(124, 77, 255, 0.15);
  border: 1px solid var(--card-border);
}

.legal-card .contact-info {
  padding: 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--card-border);
}

@media (max-width: 900px) {
  .hero-inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}
