@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #060a10;
  --panel: rgba(14, 21, 30, .68);
  --card: rgba(255, 255, 255, .034);
  --line: rgba(255, 255, 255, .095);
  --ink: #eaf1f5;
  --muted: #8fa0b0;
  --mint: #34e0b8;
  --cyan: #35c8f5;
  --glow: rgba(52, 224, 184, .32);
  --danger: #ff7a7a;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  overflow-x: hidden;
}

::selection { background: rgba(52, 224, 184, .28); }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* پس‌زمینه */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: .62;
  pointer-events: none;
}
.orb {
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .30;
  z-index: 0;
  pointer-events: none;
  animation: float 22s ease-in-out infinite;
}
.orb-a { background: #0f8f77; top: -240px; right: -160px; }
.orb-b { background: #0b5f9e; bottom: -300px; left: -200px; animation-delay: -9s; opacity: .24; }
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* سربرگ */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(6, 10, 16, .62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--mint);
  background: linear-gradient(180deg, rgba(52, 224, 184, .16), rgba(52, 224, 184, .04));
  border: 1px solid rgba(52, 224, 184, .22);
  box-shadow: 0 0 24px rgba(52, 224, 184, .12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.5; }
.brand-text strong { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.brand-text small { color: var(--muted); font-size: 11.5px; }
.top-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #b9c8d4;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(52, 224, 184, .16);
  animation: pulse 2.4s ease-in-out infinite;
}

/* قهرمان */
.hero {
  text-align: center;
  padding: 78px 0 46px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .2px;
  color: #a9f3e2;
  background: rgba(52, 224, 184, .08);
  border: 1px solid rgba(52, 224, 184, .22);
  border-radius: 999px;
  padding: 6px 15px;
  margin-bottom: 22px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.9vw, 34px);
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}
.grad { color: var(--mint); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad {
    background: linear-gradient(95deg, var(--mint), var(--cyan) 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.lead {
  max-width: 620px;
  margin: 0 auto 26px;
  color: #a7b6c3;
  font-size: clamp(13.5px, 1.7vw, 16px);
  line-height: 2;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 30px;
}
.pill {
  font-size: 12.5px;
  color: #c3d0da;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  border-radius: 999px;
  padding: 7px 15px;
}

/* پنل فرم */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .022));
  border: 1px solid rgba(255, 255, 255, .085);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 30px 80px rgba(0, 0, 0, .45);
  backdrop-filter: blur(18px);
  overflow: hidden;
  margin-bottom: 40px;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mint), var(--cyan), transparent);
  background-size: 220% 100%;
  opacity: .6;
  animation: shimmer 7s linear infinite;
}

/* نوار مراحل */
.stepper {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  flex-wrap: wrap;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px 7px 9px;
  transition: all .25s ease;
}
.stepper li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  font-size: 11.5px;
}
.stepper li.is-active {
  color: #c9fff2;
  border-color: rgba(52, 224, 184, .45);
  background: rgba(52, 224, 184, .10);
  box-shadow: 0 0 26px rgba(52, 224, 184, .12);
}
.stepper li.is-active span {
  background: linear-gradient(180deg, var(--mint), #23c2a2);
  color: #04120f;
  font-weight: 700;
}
.stepper li.is-done {
  color: #9fe8d8;
  border-color: rgba(52, 224, 184, .26);
  background: rgba(52, 224, 184, .055);
}
.stepper li.is-done span {
  background: linear-gradient(180deg, var(--mint), #23c2a2);
  color: #04120f;
  font-weight: 700;
  font-size: 0;
}
.stepper li.is-done span::after {
  content: "✓";
  font-size: 12px;
  line-height: 1;
}

/* سر گام */
.step-head h2 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: -.4px;
}
.step-head p { margin: 0 0 22px; font-size: 13.5px; }
.sub { font-size: 15px; margin: 4px 0 14px; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

/* خانواده‌ها */
.families { display: flex; flex-direction: column; gap: 10px; }
.family {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, .018);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.family:hover { border-color: rgba(255, 255, 255, .17); }
.family.is-open {
  border-color: rgba(52, 224, 184, .30);
  background: rgba(255, 255, 255, .032);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 0 1px rgba(52, 224, 184, .06);
}
.family-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  color: inherit;
  transition: background .2s ease;
}
.family-head:hover { background: rgba(255, 255, 255, .03); }
.family-title { display: flex; flex-direction: column; line-height: 1.6; }
.family-title strong { font-size: 14.5px; font-weight: 600; }
.family-title small { color: var(--muted); font-size: 11.8px; }
.family-side { display: flex; align-items: center; gap: 10px; }
.badge {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: var(--muted);
  font-size: 11.5px;
  padding: 0 6px;
}
.badge.on {
  background: linear-gradient(180deg, var(--mint), #23c2a2);
  color: #04120f;
  font-weight: 700;
  animation: pop .26s ease;
}
.chev { color: var(--muted); transition: transform .26s ease; font-size: 11px; }
.family.is-open .chev { transform: rotate(180deg); }

.family-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .34s cubic-bezier(.4, 0, .2, 1);
}
.family.is-open .family-body { grid-template-rows: 1fr; }
.items-outer { overflow: hidden; min-height: 0; }
.items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 12px 14px;
}
.family.is-open .item { animation: itemIn .36s cubic-bezier(.4, 0, .2, 1) backwards; }
.family.is-open .item:nth-child(1) { animation-delay: .03s; }
.family.is-open .item:nth-child(2) { animation-delay: .06s; }
.family.is-open .item:nth-child(3) { animation-delay: .09s; }
.family.is-open .item:nth-child(4) { animation-delay: .12s; }
.family.is-open .item:nth-child(5) { animation-delay: .15s; }
.family.is-open .item:nth-child(6) { animation-delay: .18s; }
.family.is-open .item:nth-child(7) { animation-delay: .21s; }
.family.is-open .item:nth-child(8) { animation-delay: .24s; }
.family.is-open .item:nth-child(9) { animation-delay: .27s; }
.family.is-open .item:nth-child(10) { animation-delay: .30s; }

.item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, .022);
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}
.item:hover {
  border-color: rgba(52, 224, 184, .34);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.item input {
  margin: 6px 0 0;
  accent-color: var(--mint);
  width: 16px;
  height: 16px;
  flex: none;
}
.item-text { display: flex; flex-direction: column; line-height: 1.6; }
.item-text strong { font-size: 13.5px; font-weight: 600; }
.item-text small { color: var(--muted); font-size: 11.3px; }
.item.is-on {
  border-color: rgba(52, 224, 184, .62);
  background: linear-gradient(180deg, rgba(52, 224, 184, .16), rgba(52, 224, 184, .05));
  box-shadow: inset 0 0 0 1px rgba(52, 224, 184, .35), 0 8px 26px rgba(52, 224, 184, .10);
}

/* انتخاب اصلی */
.pick-main {
  margin-top: 20px;
  padding: 18px;
  border: 1px dashed rgba(52, 224, 184, .35);
  border-radius: 15px;
  background: rgba(52, 224, 184, .04);
}
.pick-main h3 { font-size: 14.5px; margin: 0 0 2px; font-weight: 600; }
.pick-main p { margin: 0 0 12px; font-size: 12.3px; }

/* چیپ‌ها */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit;
  font-size: 12.8px;
  color: #cfdae3;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 15px;
  cursor: pointer;
  transition: color .15s, background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.chip:hover { border-color: rgba(52, 224, 184, .38); color: #eafff9; }
.chip:active { transform: scale(.96); }
.chip.is-on {
  background: linear-gradient(180deg, var(--mint), #23c2a2);
  border-color: transparent;
  color: #04120f;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(52, 224, 184, .22);
}

/* فیلدها */
.field { margin-bottom: 18px; }
.field > label {
  display: block;
  font-size: 12.8px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #dbe6ee;
}
.field label em { color: var(--mint); font-style: normal; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* پرسش‌های تخصصی */
.pro {
  margin: 8px 0 4px;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 14px;
  background: rgba(255, 255, 255, .016);
  padding: 0 14px;
  transition: border-color .25s ease, background .25s ease;
}
.pro:hover { border-color: rgba(52, 224, 184, .28); }
.pro[open] { border-color: rgba(52, 224, 184, .3); background: rgba(52, 224, 184, .025); }
.pro summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 2px;
  cursor: pointer;
  list-style: none;
}
.pro summary::-webkit-details-marker { display: none; }
.pro summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 11px;
  transition: transform .25s ease;
}
.pro[open] summary::after { transform: rotate(180deg); }
.pro-title { font-size: 13.4px; font-weight: 600; }
.pro-title em { color: var(--muted); font-style: normal; font-weight: 400; font-size: 11.3px; margin-inline-start: 4px; }
.pro-hint { font-size: 11.5px; color: var(--muted); margin-inline-start: auto; }
.pro-body { padding: 6px 0 14px; }

input[type="text"], input[type="tel"], input[type="email"], textarea, select {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input::placeholder, textarea::placeholder { color: #6d7d8c; }
textarea { resize: vertical; min-height: 122px; line-height: 1.9; }
select option { background: #0b1219; color: var(--ink); }
input:focus, textarea:focus, select:focus {
  outline: 0;
  border-color: rgba(52, 224, 184, .6);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 0 0 3px rgba(52, 224, 184, .13), 0 0 30px rgba(52, 224, 184, .07);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  font-size: 12px;
}

.err { color: var(--danger); font-size: 12.3px; }

/* دکمه‌ها */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.actions .hint { font-size: 12.3px; color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  padding: 11px 26px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, opacity .16s;
  text-decoration: none;
}
.btn.primary {
  background: linear-gradient(180deg, var(--mint), #22bfa0);
  color: #04120f;
  box-shadow: 0 10px 26px rgba(52, 224, 184, .20);
}
.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(52, 224, 184, .30);
}
.btn.primary:disabled { opacity: .6; cursor: default; }
.btn.ghost {
  background: rgba(255, 255, 255, .03);
  border-color: var(--line);
  color: #d5e2ea;
}
.btn.ghost:hover { border-color: rgba(255, 255, 255, .25); transform: translateY(-2px); }
.btn.big { padding: 14px 34px; font-size: 15px; border-radius: 14px; }

/* بازبینی */
.review { display: flex; flex-direction: column; gap: 14px; }
.rev-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, .022);
}
.rev-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .07);
  font-size: 13.3px;
}
.rev-row:last-child { border-bottom: 0; }
.rev-k { color: var(--muted); font-size: 12.3px; }
.rev-v { white-space: pre-wrap; word-break: break-word; }

/* پایان */
.done { text-align: center; padding: 34px 10px 20px; }
.tick {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(52, 224, 184, .22), rgba(52, 224, 184, .06));
  border: 1px solid rgba(52, 224, 184, .4);
  color: var(--mint);
  font-size: 28px;
  box-shadow: 0 0 40px rgba(52, 224, 184, .22);
}
.done h2 { margin: 0 0 6px; font-size: 21px; }
.code-box {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  margin: 20px 0 12px;
  padding: 12px 30px;
  border: 1px dashed rgba(52, 224, 184, .4);
  border-radius: 14px;
  background: rgba(52, 224, 184, .05);
}
.code-box span { font-size: 11.3px; color: var(--muted); }
.code-box strong { font-size: 19px; letter-spacing: 1.5px; color: var(--mint); }

/* پانویس */
.bottom {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 18px 0 44px;
  font-size: 12.3px;
  color: var(--muted);
}
.bottom p { margin: 0; }

/* پنل درخواست‌ها */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 14px;
}
.stat { display: flex; gap: 20px; font-size: 12.5px; color: var(--muted); }
.stat b { color: var(--ink); font-size: 16px; }
.list { display: flex; flex-direction: column; gap: 12px; }
.sub-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  overflow: hidden;
  transition: border-color .2s ease;
}
.sub-card:hover { border-color: rgba(255, 255, 255, .18); }
.sub-card.is-open { border-color: rgba(52, 224, 184, .3); }
.sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
}
.sub-head:hover { background: rgba(255, 255, 255, .025); }
.sub-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.6; }
.sub-meta strong { font-size: 13.8px; font-weight: 600; }
.sub-meta small { color: var(--muted); font-size: 11.8px; }
.sub-side {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.8px;
  color: #a9f3e2;
  border: 1px solid rgba(52, 224, 184, .25);
  background: rgba(52, 224, 184, .07);
  border-radius: 999px;
  padding: 4px 11px;
  white-space: nowrap;
}
.sub-body { display: none; padding: 0 16px 16px; border-top: 1px solid var(--line); }
.sub-card.is-open .sub-body { display: block; }
.empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* حرکت */
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -34px, 0) scale(1.06); }
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes pop {
  0% { transform: scale(.72); }
  60% { transform: scale(1.14); }
  100% { transform: scale(1); }
}
@keyframes itemIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.step.is-in { animation: stepIn .34s cubic-bezier(.4, 0, .2, 1); }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .hero h1 { white-space: normal; font-size: 21px; }
  .items { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .rev-row { grid-template-columns: 1fr; gap: 2px; }
  .top-note { display: none; }
  .panel { padding: 20px 15px 22px; border-radius: 20px; }
  .hero { padding: 52px 0 34px; }
  .actions { flex-direction: column-reverse; align-items: stretch; }
  .actions .btn { width: 100%; }
  .orb { width: 420px; height: 420px; filter: blur(90px); }
}
