:root {
  --bg: #060a14;
  --bg-2: #0a1122;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --text: #e9eefb;
  --muted: #9aa7c7;
  --brand: #22d3ee;
  --brand-2: #8b5cf6;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(2, 6, 18, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(800px 500px at 5% 0%, rgba(34, 211, 238, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 45%, var(--bg));
  color: var(--text);
  line-height: 1.9;
  min-height: 100vh;
  text-align: right;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: #67e8f9; }

img { max-width: 100%; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 20, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.burger {
  display: none;
  margin-inline-start: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #071021;
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover { color: #071021; box-shadow: 0 16px 40px rgba(139, 92, 246, 0.35); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-sm { padding: 9px 16px; font-size: 13px; border-radius: 11px; }

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: #a5f3fc;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.45;
  margin: 18px 0 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.grad {
  background: linear-gradient(90deg, var(--brand), #a78bfa, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 560px;
  margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }

.hero-visual {
  position: relative;
  border-radius: 26px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(34,211,238,.35), transparent 40%, rgba(139,92,246,.4));
  z-index: -1;
}
.deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--line);
  margin-bottom: 10px;
}
.deal:last-child { margin-bottom: 0; }
.deal .name { font-weight: 700; font-size: 14.5px; }
.deal .meta { color: var(--muted); font-size: 12px; }
.pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill.ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); border: 1px solid rgba(52,211,153,.3); }
.pill.info { background: rgba(34, 211, 238, 0.1); color: #a5f3fc; border: 1px solid rgba(34,211,238,.3); }
.pill.warn { background: rgba(251, 191, 36, 0.1); color: var(--warn); border: 1px solid rgba(251,191,36,.3); }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  font-weight: 850;
}
.section-head p { color: var(--muted); margin: 0; font-size: 15.5px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.35);
  background: var(--surface-2);
}
.card h3 { margin: 14px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card ul { color: var(--muted); font-size: 14px; padding-inline-start: 18px; margin: 12px 0 0; }
.card ul li { margin-bottom: 6px; }

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(139,92,246,.22));
  border: 1px solid rgba(34,211,238,.25);
}

/* stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(34,211,238,.07), rgba(139,92,246,.09));
}
.stat { text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 900; }
.stat span { color: var(--muted); font-size: 12.5px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #071021;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* legal band */
.band {
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: linear-gradient(120deg, rgba(52,211,153,.08), rgba(34,211,238,.06));
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.band .icon-badge { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.35); }
.band h3 { margin: 0 0 6px; font-size: 17px; }
.band p { margin: 0; color: var(--muted); font-size: 14px; }

/* cta */
.cta {
  text-align: center;
  padding: 52px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(34,211,238,.16), transparent 60%),
    radial-gradient(600px 240px at 80% 100%, rgba(139,92,246,.18), transparent 60%),
    var(--surface);
}
.cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 30px); }
.cta p { color: var(--muted); margin: 0 0 22px; }

/* content pages */
.page-head { padding: 56px 0 10px; }
.page-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 10px 0 8px; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; }

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.prose h2 { font-size: 20px; margin: 26px 0 10px; color: #c7d2fe; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16.5px; margin: 20px 0 8px; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; }
.prose ul, .prose ol { padding-inline-start: 22px; }
.prose li { margin-bottom: 8px; }
.prose .warn {
  border-right: 3px solid var(--warn);
  background: rgba(251, 191, 36, 0.06);
  padding: 12px 14px;
  border-radius: 10px;
  color: #fde68a;
  font-size: 13.5px;
  margin: 14px 0;
}
.prose .ok {
  border-right: 3px solid var(--ok);
  background: rgba(52, 211, 153, 0.06);
  padding: 12px 14px;
  border-radius: 10px;
  color: #bbf7d0;
  font-size: 13.5px;
  margin: 14px 0;
}

/* products */
.cat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 20px;
}
.product-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.45);
  color: var(--muted);
}

/* faq */
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 18px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  color: var(--brand);
  font-weight: 900;
  margin-inline-end: 10px;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* contact */
.phone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-radius: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(34,211,238,.12), rgba(139,92,246,.14));
  border: 1px solid rgba(34,211,238,.3);
}
.phone-card .phone {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  direction: ltr;
}
.phone-card small { color: var(--muted); display: block; font-size: 12.5px; }

/* auth */
.auth-wrap {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.6);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
}
.field input:focus { border-color: rgba(34, 211, 238, 0.55); }
.auth-error {
  display: none;
  background: rgba(251, 113, 133, 0.1);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fecdd3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }

/* footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(4, 8, 16, 0.65);
  padding: 44px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-bottom: 32px;
}
.footer-grid h4 { margin: 0 0 12px; font-size: 14px; color: #c7d2fe; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: 13.5px; }
.footer-grid a { display: block; padding: 3px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.footer-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand strong { font-size: 15px; }

.footer-phone-bar {
  border-top: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(34,211,238,.07), rgba(139,92,246,.08));
  padding: 18px 0;
}
.footer-phone-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-phone-bar span { color: var(--muted); font-size: 13px; }
.footer-phone-bar a.call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  direction: ltr;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid rgba(34,211,238,.35);
  background: rgba(34,211,238,.1);
}
.footer-phone-bar a.call:hover { color: #a5f3fc; }

.footer-bottom {
  padding: 16px 0 22px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(6, 10, 20, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .header-actions .btn-ghost { display: none; }
  .hero { padding: 54px 0 40px; }
  .section { padding: 46px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .prose { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}