/* ============================================================
   Edge Aim Guide — Stylesheet
   Dark gaming theme · Responsive · RTL-aware
   ============================================================ */

:root {
  --bg:           #0a0d14;
  --bg-elev:      #11151f;
  --bg-elev-2:    #161b28;
  --border:       #232a3a;
  --text:         #e8ecf4;
  --text-muted:   #9aa3b8;
  --accent:       #ff3b3b;
  --accent-2:     #ff8b3b;
  --accent-glow:  rgba(255, 59, 59, 0.35);
  --success:      #3bff9b;
  --radius:       12px;
  --radius-lg:    20px;
  --maxw:         1140px;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-ar:      'Cairo', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 59, 59, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 139, 59, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Arabic font swap */
html[lang="ar"] body { font-family: var(--font-ar); }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  box-shadow: 0 0 24px var(--accent-glow);
}

.logo-text { font-size: 16px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.main-nav a:hover { color: var(--text); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 20px var(--accent-glow);
}

.lang-switcher select {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.lang-switcher select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============ HERO ============ */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

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

.badge {
  display: inline-block;
  background: rgba(255, 59, 59, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 59, 59, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #c9d1e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.12s, box-shadow 0.12s;
  font-family: inherit;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px var(--accent-glow);
}

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

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-points li {
  color: var(--text-muted);
  font-size: 14px;
  padding-inline-start: 24px;
  position: relative;
}

.hero-points li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  position: absolute;
  inset-inline-start: 0;
}

/* Hero card */
.hero-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 59, 59, 0.08);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent), transparent 40%);
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 50px;
  font-size: 17px;
}

/* ============ FEATURES ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.15s, border-color 0.15s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 59, 59, 0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 59, 59, 0.15), rgba(255, 139, 59, 0.15));
  border: 1px solid rgba(255, 59, 59, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ============ CONTENTS ============ */
.contents-list {
  max-width: 720px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.contents-list li {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  padding: 18px 22px 18px 56px;
  border-radius: var(--radius);
  position: relative;
  font-size: 15px;
}

html[dir="rtl"] .contents-list li {
  padding: 18px 56px 18px 22px;
}

.contents-list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 22px;
  top: 18px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* ============ BUY / TIERS ============ */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.tier-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: transform 0.15s, border-color 0.15s;
}

.tier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 59, 59, 0.3);
}

.tier-card--featured {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 30px 80px rgba(255, 59, 59, 0.2);
  transform: translateY(-6px);
}

.tier-card--featured:hover { transform: translateY(-9px); }

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.tier-header { text-align: center; }

.tier-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.tier-price { text-align: center; }

.tier-amount {
  display: block;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tier-period {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tier-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-inline-start: 22px;
  position: relative;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
}

[id^="paypal-btn-"] {
  margin: 8px 0 0;
  min-height: 50px;
}

.buy-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

.download-success {
  margin-top: 4px;
  padding: 20px;
  background: rgba(59, 255, 155, 0.08);
  border: 1px solid rgba(59, 255, 155, 0.3);
  border-radius: var(--radius);
  text-align: center;
}

.download-success h3 {
  margin: 0 0 8px;
  color: var(--success);
  font-size: 20px;
}

.download-success p {
  margin: 0 0 18px;
  color: var(--text-muted);
}

/* ============ FAQ ============ */
.faq-item {
  max-width: 720px;
  margin: 0 auto 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-inline-end: 50px;
  font-size: 15px;
}

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

.faq-item summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-inner {
  text-align: center;
}

.footer-inner p {
  margin: 0 0 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-note {
  font-size: 11px;
  opacity: 0.7;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .tier-card--featured { transform: none; }
  .tier-card--featured:hover { transform: translateY(-3px); }
  .main-nav { display: none; }
  .header-inner { gap: 12px; }
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 50px 0 40px; }
  .section { padding: 60px 0; }
  .hero-card-inner { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat { padding: 16px; }
  .stat-num { font-size: 28px; }
  .tier-amount { font-size: 40px; }
  .tier-card { padding: 28px 20px; }
}
