/* ===== AliHost — بيت Evorxa (نسخة عربية RTL) ===== */
:root {
  --bg: #05070d;
  --bg-2: #090c16;
  --panel: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.09);
  --fg: #eef1f8;
  --muted: #9aa5bc;
  --primary: #7c5cff;
  --accent: #22d3ee;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --radius: 16px;
  --font-display: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; margin: 0 0 0.5em; letter-spacing: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1140px, 92%); margin-inline: auto; }
.container-narrow { width: min(780px, 92%); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; right: 12px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 10px;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--grad); color: #06070d;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(34, 211, 238, 0.35); }
.btn-ghost { border-color: var(--border); color: var(--fg); background: var(--panel); }
.btn-ghost:hover { border-color: rgba(124, 92, 255, 0.6); background: rgba(124, 92, 255, 0.08); }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===== الشريط العلوي ===== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.25s, border-color 0.25s, backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: min(1180px, 94%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-text { font-family: "Space Grotesk", var(--font-display); font-weight: 700; font-size: 1.25rem; }
.brand-text b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 10px 14px; border-radius: 10px; color: var(--muted); text-decoration: none;
  font-size: 0.97rem; font-weight: 500; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--fg); background: var(--panel); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: var(--panel); border: 1px solid var(--border); color: var(--fg);
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}

/* ===== البطل ===== */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 420px at 18% 12%, rgba(124, 92, 255, 0.22), transparent 65%),
    radial-gradient(560px 420px at 85% 30%, rgba(34, 211, 238, 0.14), transparent 65%),
    radial-gradient(800px 500px at 50% 110%, rgba(124, 92, 255, 0.1), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 30%, transparent 75%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.lede { color: var(--muted); font-size: 1.14rem; max-width: 34rem; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { color: var(--muted); font-size: 0.95rem; }
.hero-note b { color: var(--fg); }

/* الطرفية */
.hero-card { display: flex; flex-direction: column; gap: 16px; }
.term {
  direction: ltr; text-align: left;
  background: #0a0e1a; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(124, 92, 255, 0.08);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; } .term-dot.y { background: #febc2e; } .term-dot.g { background: #28c840; }
.term-title { margin-left: 8px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); }
.term-body { padding: 18px 20px 22px; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.85; }
.term-body p { margin: 0; }
.t-dim { color: #64748f; } .t-cyan { color: var(--accent); } .t-violet { color: var(--primary); } .t-green { color: #34d399; }
.cursor {
  display: inline-block; width: 8px; height: 1.05em; margin-left: 5px;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.88rem; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel);
}
.chip b { color: var(--fg); font-family: var(--font-display); }

/* ===== الأرقام ===== */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 44px 0; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-align: right;
}
.stat-label { color: var(--muted); font-size: 0.92rem; max-width: 15rem; }

/* ===== الأقسام ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: 54px; }
.section-sub { color: var(--muted); font-size: 1.06rem; }

.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--muted); font-size: 1.05rem; }
.split-copy p b { color: var(--fg); }
.owner-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  font-size: 0.85rem; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.4); background: rgba(124, 92, 255, 0.08); color: #cfc4ff;
}
.owner-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 22px;
  padding: 40px 34px; text-align: center;
  background-image: radial-gradient(320px 200px at 50% -10%, rgba(124, 92, 255, 0.16), transparent 70%);
}
.owner-avatar {
  width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #06070d;
  background: var(--grad); box-shadow: 0 8px 30px rgba(34, 211, 238, 0.3);
}
.owner-card h3 { margin-bottom: 2px; }
.owner-role { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.owner-card blockquote {
  margin: 0 0 24px; padding: 16px 18px; border-right: 3px solid var(--primary);
  background: rgba(255, 255, 255, 0.02); border-radius: 12px 0 0 12px;
  color: var(--fg); font-style: normal; text-align: right;
}
.owner-links { display: flex; justify-content: center; }

/* ===== الكروت ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(124, 92, 255, 0.5); background: rgba(124, 92, 255, 0.05); }
.card p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.card h3 { margin-bottom: 10px; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 92, 255, 0.12); border: 1px solid rgba(124, 92, 255, 0.35); color: #b9a8ff;
}
.card-pop { border-color: rgba(124, 92, 255, 0.55); background: rgba(124, 92, 255, 0.06); }
.card-tag {
  position: absolute; top: -13px; left: 20px;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  padding: 5px 13px; border-radius: 999px; background: var(--grad); color: #06070d;
}
.game-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; justify-content: flex-end; }
.game-chips span {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.07);
  padding: 5px 11px; border-radius: 8px;
}
.features-grid .card { padding: 26px 24px; }

/* ===== اللي بنيناه ===== */
.built-list { display: flex; flex-direction: column; gap: 18px; }
.built-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px; align-items: start;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; transition: border-color 0.2s, background 0.2s;
}
.built-item:hover { border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.04); }
.built-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem; text-align: right;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.built-item h3 { margin-bottom: 8px; }
.built-item p { color: var(--muted); margin: 0; font-size: 0.99rem; }
.built-item i { color: var(--accent); font-style: normal; }

/* ===== الأسعار ===== */
.price-card { display: flex; flex-direction: column; padding: 34px 28px; }
.price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; margin: 6px 0 20px; text-align: right; }
.price-from { font-size: 0.95rem; font-weight: 500; color: var(--muted); vertical-align: middle; }
.price-per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.price-card li { padding: 8px 26px 8px 0; position: relative; color: var(--muted); font-size: 0.96rem; }
.price-card li::before {
  content: ""; position: absolute; right: 0; top: 14px; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.pricing-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 30px; }

/* ===== الأسئلة الشائعة ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--panel); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; color: var(--fg); cursor: pointer; text-align: right;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  padding: 20px 24px; min-height: 56px;
}
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: var(--accent);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon::before { width: 16px; height: 2px; }
.faq-icon::after { width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); margin: 0; }
.faq-item.open { border-color: rgba(124, 92, 255, 0.45); }

/* ===== الدعوة الأخيرة ===== */
.cta { padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 320px at 50% 110%, rgba(124, 92, 255, 0.2), transparent 70%);
}
.cta-inner { position: relative; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.cta .hero-cta { justify-content: center; }

/* ===== التذييل ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: start; margin-bottom: 40px; }
.footer-tag { color: var(--muted); font-size: 0.92rem; max-width: 20rem; margin: 14px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 6px 0; transition: color 0.15s; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 24px;
  color: #6b7690; font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-credit { font-family: var(--font-mono); font-size: 0.78rem; }

/* ===== الظهور ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ===== الجوال ===== */
@media (max-width: 980px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 44px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 72px; right: 3%; left: 3%;
    flex-direction: column; gap: 4px; padding: 14px;
    background: rgba(9, 12, 22, 0.97); border: 1px solid var(--border); border-radius: 16px;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 1.02rem; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .built-item { grid-template-columns: 1fr; gap: 10px; padding: 26px 22px; }
  .hero { padding-top: 140px; }
  .section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== صف القيم (قسم عنّي) ===== */
.values-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px;
}
.value-mini {
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  padding: 20px 22px;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
}
.value-mini:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.45); }
.value-mini h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  margin: 0 0 6px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.value-mini p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 720px) {
  .values-row { grid-template-columns: 1fr; }
}
