:root {
  --bg:#0b1220; --bg2:#111a2e; --bg3:#16213a; --line2:rgba(148,163,184,.14);
  --ink:#eef2ff; --muted:#94a3b8; --teal:#2dd4bf; --vio:#8b5cf6; --green:#22c55e;
  --warn:#fbbf24; --danger:#f43f5e; --info:#60a5fa;
  --grad-text:linear-gradient(90deg,#2dd4bf,#60a5fa 50%,#a78bfa);
  --grad-btn:linear-gradient(135deg,#2dd4bf,#14b8a6);
  --sans:"IBM Plex Sans Arabic","Nunito",system-ui,sans-serif;
  --mono:"JetBrains Mono",monospace;
  --ease:cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45,212,191,.10), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(139,92,246,.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
[dir="rtl"] body, body { direction: rtl; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(45,212,191,.35); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
html { scrollbar-color: var(--bg3) var(--bg); }

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: 16px; }
.muted { color: var(--muted); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--teal); color: #04201c; padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,18,32,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line2);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand img { width: 36px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: rgba(148,163,184,.1); }
.nav .nav-login { color: var(--ink); border: 1px solid var(--line2); margin-inline-start: 6px; }
.nav .nav-login:hover { border-color: var(--teal); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 26px; border-radius: 14px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s;
}
.btn-primary { background: var(--grad-btn); color: #04201c; box-shadow: 0 8px 24px rgba(45,212,191,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(45,212,191,.36); }
.btn-ghost { background: rgba(148,163,184,.06); border-color: var(--line2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--teal); background: rgba(45,212,191,.08); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding-inline: 34px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }

/* hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 4.5rem); line-height: 1.08; font-weight: 700;
  letter-spacing: -.02em; direction: ltr; text-align: start; text-wrap: balance;
}
[dir="rtl"] .hero h1 { text-align: right; }
.lead { margin-top: 20px; max-width: 52ch; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-art { display: grid; place-items: center; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(45,212,191,.22), rgba(139,92,246,.12) 60%, transparent);
  filter: blur(24px);
}
.hero-art img { position: relative; width: min(100%, 320px); }

/* offer */
.offer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px;
  padding: 20px 24px; margin-block: 8px 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(251,191,36,.12), rgba(244,63,94,.08));
  border: 1px solid rgba(251,191,36,.35);
}
.offer-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.offer-text strong { font-size: 1.15rem; color: var(--warn); }
.offer-text span { color: var(--ink); opacity: .86; overflow-wrap: anywhere; }
.offer-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.offer-badge { padding: 4px 12px; border-radius: 999px; background: var(--warn); color: #2a1d00; font-weight: 700; font-size: .9rem; }
.countdown { display: flex; gap: 8px; }
.countdown div { display: grid; justify-items: center; min-width: 56px; padding: 8px 6px; border-radius: 12px; background: rgba(11,18,32,.6); border: 1px solid var(--line2); }
.countdown b { font: 700 1.4rem/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: .72rem; }

/* sections */
.section { padding-block: clamp(36px, 6vw, 72px); }
.section-head { margin-bottom: 32px; display: grid; gap: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); line-height: 1.2; font-weight: 700; text-wrap: balance; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 14px; border-radius: 4px; background: var(--grad-text); }
.section-head p { color: var(--muted); max-width: 60ch; }
.state { color: var(--muted); padding: 24px 0; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 28px 24px 24px; border-radius: 20px;
  background: var(--bg2); border: 1px solid var(--line2);
  transition: transform .3s var(--ease), border-color .2s;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(148,163,184,.3); }
.plan.popular { border: 1.5px solid var(--teal); background: linear-gradient(180deg, rgba(45,212,191,.08), var(--bg2) 55%); }
.plan-flag {
  position: absolute; top: -13px; inset-inline-start: 24px;
  padding: 3px 14px; border-radius: 999px; background: var(--teal); color: #04201c; font-size: .8rem; font-weight: 700;
}
.plan-name { font: 600 1.15rem/1.3 var(--sans); direction: ltr; text-align: right; }
.plan-term { color: var(--muted); font-size: .95rem; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 20px; direction: ltr; justify-content: flex-end; }
.plan-price .cur { font-size: 1.3rem; color: var(--muted); }
.plan-price .amt { font: 700 clamp(2.4rem, 5vw, 3.2rem)/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.plan .btn { margin-top: auto; width: 100%; }

/* download */
.dl-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 4vw, 40px); border-radius: 20px;
  background: var(--bg2); border: 1px solid var(--line2);
}
.dl-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.dl-version { margin-top: 6px; }
.dl-version bdi { font-family: var(--mono); color: var(--teal); font-weight: 600; }
.dl-card .muted { margin-top: 8px; max-width: 52ch; }

/* gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shot { position: relative; overflow: hidden; border-radius: 20px; background: var(--bg2); border: 1px solid var(--line2); aspect-ratio: 4/3; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-cap {
  position: absolute; inset-inline: 0; bottom: 0; padding: 28px 14px 12px; font-size: .9rem;
  background: linear-gradient(transparent, rgba(11,18,32,.92));
}

/* contacts */
.contacts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.contacts a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 20px;
  border-radius: 999px; background: var(--bg2); border: 1px solid var(--line2);
  text-decoration: none; font-weight: 500; transition: border-color .2s, transform .25s var(--ease), background .2s;
}
.contacts a:hover { border-color: var(--teal); background: var(--bg3); transform: translateY(-2px); }
.contacts svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* faq */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--bg2); border: 1px solid var(--line2); transition: border-color .2s; }
.faq details[open] { border-color: rgba(45,212,191,.4); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* footer */
.site-footer { margin-top: 32px; border-top: 1px solid var(--line2); padding-block: 24px; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 150px; }
  .hero-art::before { inset: 0; }
}
@media (max-width: 480px) {
  .brand span { display: none; }
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .nav .nav-login { margin-inline-start: 2px; }
  .plans { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .countdown div { min-width: 0; flex: 1; }
  .countdown { width: 100%; }
  .offer-meta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .plan:hover, .contacts a:hover { transform: none; }
}
