:root {
  --primary: #1a56db;
  --accent: #0a99fe;
  --bg: #f1f1f4;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #0e121b;
  --muted: #64748b;
  --line: #e1e4ea;
  --soft: #eef3ff;
  --radius: 20px;
}
:root[data-theme="dark"] {
  --bg: #0b0e15;
  --bg2: #111620;
  --card: #151b27;
  --text: #eef1f6;
  --muted: #94a3b8;
  --line: #222a38;
  --soft: #16223d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  transition: background .3s, color .3s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: .2s; white-space: nowrap; }
.btn--dark { background: #1e2330; color: #fff; }
.btn--dark:hover { background: #000; }
:root[data-theme="dark"] .btn--dark { background: #fff; color: #0e121b; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--primary); }
.btn--lg { padding: 13px 28px; font-size: 16px; border-radius: 12px; }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s; }
.header.scrolled { background: color-mix(in srgb, var(--bg2) 80%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 8px; direction: ltr; }
.logo__text { font-family: Poppins, sans-serif; font-weight: 600; font-size: 20px; color: var(--primary); letter-spacing: -.3px; }
.logo__mark { width: 26px; height: 26px; border-radius: 9px; background: radial-gradient(circle at 50% 50%, var(--primary) 0 34%, transparent 36%), linear-gradient(135deg, var(--accent), var(--primary)); box-shadow: inset 0 0 0 4px var(--primary); position: relative; }
.logo__mark::after { content: ""; position: absolute; inset: 6px; border-radius: 6px; background: var(--bg2); opacity: .9; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__link { font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 9px; display: flex; align-items: center; gap: 6px; transition: .2s; }
.nav__link:hover, .nav__link--active { background: var(--soft); color: var(--primary); }
.chev { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg) translateY(-2px); display: inline-block; }
.nav__item { position: relative; }
.drop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.15); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.drop a:hover { background: var(--soft); color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.lang { font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; padding: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--soft); }
.burger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; }
.burger span { height: 2px; background: currentColor; border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: linear-gradient(180deg, #ececf0 0%, #e6e5ea 60%, #f3f3f6 100%); padding-top: 76px; }
:root[data-theme="dark"] .hero { background: linear-gradient(180deg, #0b0e15 0%, #10141f 60%, #0b0e15 100%); }
.hero__floor { position: absolute; inset: auto -20% 0; height: 42%; background-image: linear-gradient(var(--line) 2px, transparent 2px), linear-gradient(90deg, var(--line) 2px, transparent 2px); background-size: 140px 60px; transform: perspective(600px) rotateX(62deg); transform-origin: bottom; mask-image: linear-gradient(to top, #000 30%, transparent); opacity: .9; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.hero__slides { position: relative; min-height: 300px; }
.slide { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); transition: .6s; pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.slide h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; line-height: 1.45; }
.slide p { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 480px; }
.hero__slides .btn { position: absolute; bottom: 0; right: 0; }
.hero__visual { display: flex; flex-direction: column; align-items: center; }
.emblem { position: relative; width: 210px; height: 210px; animation: float 5s ease-in-out infinite; z-index: 2; margin-bottom: -40px; }
.emblem__ring { width: 100%; height: 100%; border-radius: 34%; background: linear-gradient(145deg, #6fb7ff, var(--primary) 45%, #0b2e9c); padding: 30px; box-shadow: 0 30px 60px -10px rgba(26,86,219,.55), inset 0 4px 10px rgba(255,255,255,.5); }
.emblem__core { width: 100%; height: 100%; border-radius: 30%; background: radial-gradient(circle at 35% 30%, #4ea2ff, #0d3fc0 70%); box-shadow: inset 0 0 0 10px rgba(255,255,255,.12); }
.emblem__tab { position: absolute; left: -24px; top: 92px; width: 56px; height: 44px; border-radius: 16px; background: linear-gradient(145deg, #4ea2ff, var(--primary)); box-shadow: 0 10px 20px -6px rgba(26,86,219,.6); }
.pedestal { width: 300px; height: 110px; border-radius: 50% / 28%; background: linear-gradient(180deg, #fafafa, #d9d9de); box-shadow: 0 30px 50px -20px rgba(0,0,0,.35), inset 0 -10px 20px rgba(0,0,0,.06); display: grid; place-items: center; padding-top: 30px; }
:root[data-theme="dark"] .pedestal { background: linear-gradient(180deg, #2a3142, #161b26); }
.pedestal span { font-family: Poppins, sans-serif; font-weight: 700; font-size: 34px; color: var(--primary); text-shadow: 0 2px 0 #fff, 0 4px 12px rgba(26,86,219,.4); }
.dots { display: flex; gap: 6px; margin-top: 26px; }
.dots i { width: 8px; height: 8px; border-radius: 9px; background: #c5c8d0; cursor: pointer; transition: .3s; }
.dots i.on { width: 22px; background: var(--text); }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -60px; position: relative; z-index: 3; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: 0 10px 30px -18px rgba(0,0,0,.2); }
.stat b { display: block; font-size: 34px; font-weight: 800; color: var(--primary); }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 80px 0 0; }
.title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; text-align: center; margin-bottom: 40px; }
.title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.title-row .title { margin: 0; text-align: right; }
.more { color: var(--primary); font-weight: 500; }

.perks { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.perk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s; }
.perk:hover { transform: translateY(-4px); border-color: var(--primary); }
.perk--big { grid-row: span 2; background: linear-gradient(160deg, var(--primary), #0b2e9c); color: #fff; border: 0; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.perk--big p { color: #cfe0f7; }
.perk__icon { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--soft); border-radius: 16px; margin-bottom: 16px; }
.perk--big .perk__icon { background: rgba(255,255,255,.15); margin-bottom: auto; }
.perk h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.perk p { color: var(--muted); font-size: 14px; }

.steps-wrap { background: var(--bg2); margin-top: 80px; padding-bottom: 80px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 52px; left: -24px; width: 24px; border-top: 2px dashed var(--primary); }
.step__n { width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 14px; }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.why__icon { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.why__card h3 { font-size: 17px; margin-bottom: 10px; }
.why__card p { color: var(--muted); font-size: 14px; }

.support { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 50px; border-radius: 28px; background: linear-gradient(120deg, #0e121b, #1a2b5c 60%, var(--primary)); color: #fff; overflow: hidden; }
.support h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.support p { color: #cbd5e1; max-width: 560px; margin-bottom: 22px; }
.support__shield { font-size: 120px; filter: drop-shadow(0 20px 40px rgba(10,153,254,.5)); }

.distinct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.distinct__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; font-weight: 600; display: flex; flex-direction: column; gap: 14px; }
.distinct__item span { font-size: 28px; }

.about { background: var(--soft); border-radius: 28px; padding: 50px; text-align: center; }
.about h2 { font-size: 28px; margin-bottom: 14px; }
.about p { max-width: 820px; margin: 0 auto 18px; color: var(--muted); }
.mail { color: var(--primary); font-weight: 600; direction: ltr; display: inline-block; }

.blog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; transition: .25s; cursor: pointer; }
.post:hover { transform: translateY(-4px); }
.post__img { height: 150px; margin-bottom: 14px; }
.g1 { background: linear-gradient(135deg, #1a56db, #8af3ff); }
.g2 { background: linear-gradient(135deg, #059669, #a7f3d0); }
.g3 { background: linear-gradient(135deg, #0e121b, #64748b); }
.g4 { background: linear-gradient(135deg, #7c3aed, #f0abfc); }
.post h3 { font-size: 15px; padding: 0 18px; line-height: 1.7; }
.post span { padding: 0 18px; font-size: 12px; color: var(--muted); }

.faq { max-width: 820px; margin: auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 14px; }

/* ---------- footer ---------- */
.footer { margin-top: 100px; background: var(--bg2); border-top: 1px solid var(--line); padding-top: 60px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.5fr; gap: 30px; }
.footer h4 { font-size: 15px; margin-bottom: 14px; }
.footer__grid > div > a:not(.logo), .footer__grid > div > span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer__grid a:hover { color: var(--primary); }
.footer .logo { margin-bottom: 10px; }
.news { display: flex; gap: 8px; margin-bottom: 10px; }
.news input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.footer__bottom { border-top: 1px solid var(--line); margin-top: 40px; padding: 20px 0; text-align: center; color: var(--muted); font-size: 13px; }

.chat { position: fixed; bottom: 22px; left: 22px; width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -5px rgba(26,86,219,.6); z-index: 40; transition: .2s; }
.chat:hover { transform: scale(1.08); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .burger { display: flex; }
  .lang { display: none; }
  .nav { position: fixed; top: 76px; right: 16px; left: 16px; flex-direction: column; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.2); display: none; }
  .nav.open { display: flex; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 0 12px; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; padding: 30px 0 90px; }
  .hero__visual { order: -1; transform: scale(.75); margin: -30px 0 -40px; }
  .slide p { margin-inline: auto; }
  .hero__slides .btn { right: 50%; transform: translateX(50%); }
  .stats, .distinct, .blog { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: 1fr 1fr; }
  .perk--big { grid-column: span 2; grid-row: auto; min-height: 220px; }
  .steps, .why { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .support { flex-direction: column; text-align: center; padding: 36px 24px; }
  .support__shield { font-size: 80px; }
}
@media (max-width: 560px) {
  .header__actions .btn--dark { padding: 8px 12px; font-size: 13px; }
  .stats, .distinct, .blog, .perks, .footer__grid { grid-template-columns: 1fr; }
  .perk--big { grid-column: auto; }
  .about { padding: 34px 20px; }
}
