:root {
  --primary: #dc2626;
  --primary-hover: #b91c1c;
  --green: #16a34a;
  --green-hover: #15803d;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --gold: #d97706;
  --gold-bg: #fef3c7;
  
  --bg-page: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-page);
  color: var(--text-body);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary); text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 900; color: #0f172a; text-decoration: none !important; }
.brand img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.brand span {
  background: linear-gradient(135deg, #dc2626 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 22px; align-items: center; list-style: none; }
.nav-links a { font-size: 0.96rem; font-weight: 600; color: #475569; text-decoration: none !important; }
.nav-links a:hover { color: var(--primary); }

.header-cta-group { display: flex; gap: 8px; align-items: center; }

/* The 3 Main Buttons Grid */
.hero-cta-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 780px;
  margin: 32px auto 24px;
}

.btn-trio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn-trio:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-trio .btn-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.3px;
}
.btn-trio .btn-sub {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 4px;
}

/* Button 1: Download APK */
.btn-download-apk {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}
.btn-download-apk:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

/* Button 2: Register */
.btn-register {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.35);
}
.btn-register:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

/* Button 3: Login */
.btn-login {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-login:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* Hero Section */
.hero {
  padding: 48px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
  color: #0f172a;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #475569;
  max-width: 780px;
  margin: 0 auto;
}
.hero-trust-badges {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #475569;
  margin-top: 24px;
}
.hero-trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

/* Hero Banner */
.hero-banner-wrap {
  margin: 36px auto 0;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.hero-banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Specs Table Card */
.specs-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}
.specs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 14px;
}
.specs-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr {
  border-bottom: 1px solid var(--border-light);
}
.specs-table tr:last-child { border-bottom: none; }
.specs-table td {
  padding: 12px 14px;
  font-size: 0.96rem;
}
.specs-table td:first-child {
  font-weight: 700;
  color: #64748b;
  width: 38%;
}
.specs-table td:last-child {
  font-weight: 600;
  color: #0f172a;
}
.badge-clean {
  background: #dcfce7;
  color: #15803d;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Table of Contents */
.toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}
.toc-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px 16px;
  list-style: none;
}
.toc-list li a {
  color: #334155;
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none !important;
}
.toc-list li a:hover {
  color: var(--primary);
  text-decoration: underline !important;
}

/* Main Article Content */
.main-content { padding: 40px 0 80px; }
article h2 {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0f172a;
  margin: 48px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  scroll-margin-top: 80px;
}
article h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e293b;
  margin: 30px 0 12px;
  scroll-margin-top: 80px;
}
article h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 22px 0 8px;
}
article p { margin-bottom: 18px; font-size: 1.05rem; color: #334155; }
article ul, article ol { margin: 16px 0 24px 28px; color: #334155; font-size: 1.02rem; }
article li { margin-bottom: 10px; }

/* Article Image Containers */
.article-img-wrap {
  margin: 36px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: #ffffff;
}
.article-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.img-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid var(--border);
  font-weight: 600;
  text-align: center;
}

/* Game Grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 20px 0 32px;
}
.game-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.game-card:hover {
  border-color: var(--primary);
  background: #fef2f2;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Callouts */
.callout {
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.callout-title { font-weight: 800; color: #0f172a; margin-bottom: 8px; font-size: 1.05rem; }

.callout-success {
  border-left-color: var(--green);
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* FAQs */
.faq-section { margin: 40px 0; }
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  padding: 18px 22px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.06rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 800;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-body {
  padding: 0 22px 20px;
  color: #475569;
  font-size: 1rem;
  border-top: 1px solid var(--border-light);
}

/* Mid-Page Referral CTA Banner */
.referral-cta-banner {
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
  border: 2px solid #fecaca;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  margin: 44px 0;
  box-shadow: var(--shadow-md);
}
.referral-cta-banner h3 {
  font-size: 1.75rem;
  color: #0f172a;
  margin-bottom: 10px;
  font-weight: 900;
}
.referral-cta-banner p {
  color: #475569;
  max-width: 620px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}

/* Sticky Mobile Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.sticky-info { display: flex; flex-direction: column; }
.sticky-title { font-weight: 900; font-size: 0.95rem; color: #0f172a; }
.sticky-sub { font-size: 0.78rem; color: #15803d; font-weight: 700; }

.sticky-buttons { display: flex; gap: 8px; }
.sticky-btn {
  padding: 10px 18px;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 8px;
  color: #fff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Clean Light Footer (No Dark Colors) */
.site-footer {
  background: #f8fafc;
  border-top: 1px solid var(--border);
  color: #64748b;
  padding: 50px 0 100px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand h4 { color: #0f172a; font-size: 1.25rem; margin-bottom: 12px; font-weight: 900; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #475569; text-decoration: none !important; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .specs-table td:first-child { width: 42%; }
  .hero-cta-trio { grid-template-columns: 1fr; max-width: 400px; }
  .btn-trio { padding: 14px 18px; }
}