:root {
  --bg: #070b14;
  --bg-soft: #0d1321;
  --card: #111827;
  --border: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid var(--gold);
}

.brand strong {
  display: block;
  color: var(--gold);
  font-size: 1.15rem;
}

.brand span {
  font-size: 0.78rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0f1a;
  box-shadow: 0 8px 28px var(--gold-glow);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-cta { display: none; }

.menu-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% auto auto 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.hero-trust span::before {
  content: '✓ ';
  color: var(--gold);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: min(100%, 360px);
  background: linear-gradient(160deg, #1a2744, var(--card));
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 28px;
}

.hero-card h3 {
  color: var(--gold);
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.hero-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* ─── Sections ─── */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.feature p {
  color: var(--muted);
  font-size: 0.85rem;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.link-card .icon {
  font-size: 2.2rem;
}

.link-card h3 { font-size: 1.2rem; }

.link-card p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.link-card.coming {
  opacity: 0.72;
}

.link-card .tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.75rem;
}

/* ─── Contact ─── */
.contact-section {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-btn:hover { border-color: rgba(245, 158, 11, 0.35); }

.contact-btn .ci {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.contact-btn strong {
  display: block;
  font-size: 0.88rem;
}

.contact-btn span {
  color: var(--muted);
  font-size: 0.82rem;
  direction: ltr;
  display: inline-block;
}

/* ─── Footer ─── */
.site-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .brand-mini {
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}

.footer-links a:hover { color: var(--gold); }

.footer-staff {
  margin-top: 20px;
  font-size: 0.78rem;
  opacity: 0.55;
}

.footer-staff a:hover { color: var(--gold); opacity: 1; }

/* ─── إعلانات الموقع ─── */
.site-ads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: -24px 0 40px;
}

.site-ads.hidden { display: none; }

.site-ad-item {
  display: block;
  background: linear-gradient(135deg, #1a2744 0%, #2a3f66 100%);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s, border-color 0.2s;
}

.site-ad-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.55);
}

.site-ad-slide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.site-ad-img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.site-ad-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.site-ad-text {
  flex: 1;
  min-width: 0;
  text-align: right;
}

.site-ad-text strong {
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.site-ad-text p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ─── Mobile nav ─── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-cta { display: none !important; }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    flex-direction: column;
    align-items: stretch;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a { text-align: center; padding: 12px; }
  .features { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
}
