:root {
  --bg: #07050f;
  --bg-2: #0e0a1d;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f1ff;
  --muted: #a49cc4;
  --violet: #7c3aed;
  --fuchsia: #c026d3;
  --cyan: #22d3ee;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #c026d3 55%, #ec4899 100%);
  --radius: 20px;
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[lang="ar"], html[lang="fa"] { --font: "Cairo", "Outfit", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 17px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(192, 38, 211, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(192, 38, 211, .9); }
.btn-outline { border-color: rgba(167, 139, 250, .5); background: rgba(124, 58, 237, .08); }
.btn-outline:hover { background: rgba(124, 58, 237, .2); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-light { background: #fff; color: #4c1d95; }
.btn-outline-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 15, .65);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 4px 14px rgba(192, 38, 211, .45)); }
.nav { display: flex; gap: 26px; margin-inline-start: 12px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.lang-select select {
  appearance: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer;
}
.lang-select select option { background: var(--bg-2); }

/* Hero */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: url("/assets/hero-bg.webp") center/cover no-repeat;
  opacity: .55;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.orb-a { width: 420px; height: 420px; background: rgba(124, 58, 237, .45); top: -80px; inset-inline-start: -100px; }
.orb-b { width: 360px; height: 360px; background: rgba(236, 72, 153, .3); bottom: 0; inset-inline-end: -80px; animation-delay: -6s; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.1); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; min-height: 72vh; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(124, 58, 237, .15); border: 1px solid rgba(167, 139, 250, .35); color: #ddd6fe;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; font-weight: 800;
  margin: 20px 0 18px; letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 30%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .hero h1, html[lang="fa"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-ctas.center { justify-content: center; }

.ticker {
  display: flex; align-items: center; gap: 12px; margin-top: 34px; max-width: 560px;
  padding: 12px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border);
}
.ticker-icon { font-size: 18px; }
.ticker-window { overflow: hidden; height: 26px; flex: 1; }
#ticker-text { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ticker-text.in { animation: tickIn .5s ease both; }
#ticker-text.out { animation: tickOut .45s ease both; }
@keyframes tickIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tickOut { to { transform: translateY(-100%); opacity: 0; } }

/* Hero visual */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: 280px; aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 22px 18px;
  background: linear-gradient(160deg, #1a1033, #0b0716);
  border: 1px solid rgba(167, 139, 250, .3);
  box-shadow: 0 40px 100px -30px rgba(124, 58, 237, .8), inset 0 0 0 6px #05030a;
  display: flex; flex-direction: column; gap: 18px; align-items: center;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.phone-notch { width: 90px; height: 22px; border-radius: 0 0 14px 14px; background: #05030a; margin-top: -22px; }
.phone-logo { width: 150px; height: auto; filter: drop-shadow(0 8px 24px rgba(192, 38, 211, .6)); }
.phone-reel {
  width: 100%; flex: 1; border-radius: 22px; position: relative; overflow: hidden;
  background: url("/assets/hero-bg.webp") center/cover;
  display: grid; place-items: center;
}
.play {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); font-size: 22px;
  border: 1px solid rgba(255, 255, 255, .3);
}
.reel-bars { position: absolute; bottom: 14px; display: flex; gap: 4px; align-items: flex-end; height: 26px; }
.reel-bars i { width: 5px; border-radius: 3px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.reel-bars i:nth-child(2) { animation-delay: -.2s; } .reel-bars i:nth-child(3) { animation-delay: -.4s; }
.reel-bars i:nth-child(4) { animation-delay: -.6s; } .reel-bars i:nth-child(5) { animation-delay: -.8s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 26px; } }
.phone-card {
  width: 100%; padding: 14px; border-radius: 18px; text-align: center;
  background: rgba(124, 58, 237, .18); border: 1px solid rgba(167, 139, 250, .3);
  display: grid; gap: 2px;
}
.phone-card strong { font-size: 24px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip { justify-self: center; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px; font-size: 14px;
  background: rgba(20, 14, 40, .75); backdrop-filter: blur(12px); border: 1px solid var(--border);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out infinite;
}
.fc-1 { top: 18%; inset-inline-start: 0; animation-delay: -2s; }
.fc-2 { bottom: 16%; inset-inline-end: 0; animation-delay: -4s; }

/* Stats */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px;
  border-radius: var(--radius); overflow: hidden; background: var(--border); border: 1px solid var(--border);
}
.stat { background: rgba(14, 10, 29, .85); padding: 24px; text-align: center; display: grid; gap: 4px; }
.stat strong { font-size: clamp(24px, 3vw, 34px); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 100px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, .07), transparent); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(167, 139, 250, .45); background: rgba(124, 58, 237, .07); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: rgba(124, 58, 237, .18); border: 1px solid rgba(167, 139, 250, .3); margin-bottom: 18px;
}
.feature h3, .step h3 { font-size: 19px; margin-bottom: 8px; }
.feature p, .step p { color: var(--muted); font-size: 15px; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.plan { position: relative; display: grid; gap: 16px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-code { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--grad); }
.plan-roi { font-size: 13px; font-weight: 700; color: #4ade80; }
.plan h3 { font-size: 20px; }
.plan-price { font-size: 32px; font-weight: 800; line-height: 1; }
.plan dl { display: grid; gap: 8px; font-size: 14px; }
.plan dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.plan dt { color: var(--muted); }
.plan dd { font-weight: 600; }
.plan.featured { border-color: rgba(192, 38, 211, .6); box-shadow: 0 20px 60px -25px rgba(192, 38, 211, .7); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); font-weight: 800; font-size: 18px; margin-bottom: 18px;
}

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tier h3 { font-size: 18px; margin-bottom: 16px; }
.tier-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.tier-row span { color: var(--muted); }
.tier-row b { font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* CTA */
.cta {
  text-align: center; padding: 70px 30px; border-radius: 32px; position: relative; overflow: hidden;
  background: var(--grad);
  box-shadow: 0 40px 100px -40px rgba(192, 38, 211, .9);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background: url("/assets/hero-bg.webp") center/cover; mix-blend-mode: overlay;
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.15; }
.cta p { opacity: .9; font-size: 18px; margin-top: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner img { height: 36px; width: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; text-align: center; }
  .lead, .ticker { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { margin-top: 20px; }
  .grid-3, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  #nav-login { display: none; }
  .topbar-inner { gap: 10px; }
  .brand img { height: 32px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .float-card { display: none; }
  .phone { width: 240px; }
  .footer-inner { justify-content: center; text-align: center; }
}
