@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --navy: #000080;
  --cyan: #00d4ff;
  --teal: #2dd4bf;
  --slate: #1e293b;
  --off: #f8fafc;
  --gold: #facc15;

  --bg-1: #05063d;
  --bg-2: var(--navy);
  --bg-3: var(--slate);
  --glass: rgba(248, 250, 252, 0.05);
  --glass-border: rgba(0, 212, 255, 0.25);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
  --radius: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Vazirmatn", sans-serif;
  color: var(--off);
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 212, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(45, 212, 191, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(250, 204, 21, 0.08) 0%, transparent 50%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  direction: rtl;
  overflow-x: hidden;
  position: relative;
}

/* بافت نویز/ذرات پس‌زمینه */
.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}
.orb.o1 { width: 380px; height: 380px; background: var(--cyan); top: -120px; right: -100px; animation-delay: 0s; }
.orb.o2 { width: 320px; height: 320px; background: var(--teal); bottom: -100px; left: -80px; animation-delay: -6s; }
.orb.o3 { width: 220px; height: 220px; background: var(--gold); top: 45%; left: 40%; opacity: 0.12; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* هدر */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px var(--cyan);
}
.brand span { font-size: 1.05rem; color: var(--off); }
.brand small { display:block; font-weight:400; color: rgba(248,250,252,.55); font-size:.72rem; }

/* کارت شیشه‌ای */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 34px 30px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px; left: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--teal), var(--gold));
  opacity: 0.9;
}

.screen { display: none; animation: fadeUp .5s ease both; }
.screen.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* صفحه شروع */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h1.hero-title {
  font-size: clamp(1.7rem, 4.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 14px;
  background: linear-gradient(95deg, var(--off) 25%, var(--cyan) 65%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc { color: rgba(248,250,252,0.78); line-height: 2; font-size: 1rem; margin-bottom: 22px; }

.stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 24px 0 28px; }
.stat-chip {
  flex: 1; min-width: 130px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.stat-chip b { display:block; font-size: 1.4rem; color: var(--teal); font-weight:800; }
.stat-chip span { font-size: 0.78rem; color: rgba(248,250,252,0.65); }

/* دکمه‌ها */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 14px;
  padding: 16px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  width: 100%;
}
.btn-primary {
  background: linear-gradient(95deg, var(--cyan), var(--teal));
  color: #012230;
  box-shadow: 0 10px 30px -8px rgba(0, 212, 255, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -6px rgba(0, 212, 255, 0.65); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform:none; box-shadow:none; }
.btn-ghost {
  background: transparent;
  color: var(--off);
  border: 1px solid rgba(248,250,252,0.25);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-gold {
  background: linear-gradient(95deg, var(--gold), #fde68a);
  color: #3a2b00;
  box-shadow: 0 10px 30px -8px rgba(250, 204, 21, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -6px rgba(250, 204, 21, 0.7); }
.btn-row { display: flex; gap: 12px; margin-top: 26px; }
.btn-row .btn { width: auto; flex: 1; }

/* فرم اطلاعات */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: rgba(248,250,252,0.85);
  font-weight: 600;
}
.field label .req { color: var(--gold); margin-inline-start:2px; }
.field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(248,250,252,0.16);
  background: rgba(5, 6, 61, 0.35);
  color: var(--off);
  font-family: inherit;
  font-size: 0.98rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: rgba(248,250,252,0.35); }
.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18);
}
.field .err {
  display:none;
  color: #fca5a5;
  font-size: .78rem;
  margin-top: 6px;
}
.field.invalid input { border-color: #f87171; }
.field.invalid .err { display:block; }
.privacy-note {
  font-size: 0.78rem;
  color: rgba(248,250,252,0.5);
  display:flex; align-items:flex-start; gap:8px;
  margin: 6px 0 22px;
  line-height: 1.9;
}

/* نوار پیشرفت */
.progress-wrap { margin-bottom: 26px; }
.progress-top { display:flex; justify-content:space-between; align-items:center; margin-bottom: 10px; }
.progress-top .axis-label { font-weight:700; font-size: 0.95rem; display:flex; align-items:center; gap:8px;}
.progress-top .count { font-size: 0.8rem; color: rgba(248,250,252,0.55); font-variant-numeric: tabular-nums; }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  transition: width .45s cubic-bezier(.4,0,.2,1);
}
.axis-dots { display:flex; gap:6px; margin-top:12px; }
.axis-dots span {
  flex:1; height:5px; border-radius: 999px;
  background: rgba(255,255,255,0.1);
  transition: background .3s ease;
}
.axis-dots span.done { background: var(--teal); }
.axis-dots span.current { background: var(--cyan); box-shadow: 0 0 10px 1px var(--cyan); }

/* سوالات */
.q-block { margin-bottom: 8px; }
.q-number {
  display:inline-flex; align-items:center; justify-content:center;
  width: 30px; height: 30px; border-radius: 9px;
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
  font-weight: 800; font-size: 0.85rem;
  margin-left: 10px;
}
.q-text {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.9;
  margin: 4px 0 20px;
  display:flex; align-items:flex-start;
}
.options { display:grid; gap:10px; margin-bottom: 30px; }
.option {
  display:flex; align-items:center; gap:12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(248,250,252,0.12);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.option:hover { border-color: rgba(0,212,255,0.4); background: rgba(0,212,255,0.06); }
.option input { accent-color: var(--cyan); width:18px; height:18px; flex-shrink:0; }
.option span { font-size: 0.95rem; }
.option.checked {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.3) inset;
}
.option.checked span { color: var(--cyan); font-weight: 700; }

/* نتیجه */
.result-header { text-align:center; margin-bottom: 10px; }
.result-header .lead-name { color: var(--teal); font-weight: 700; }
.score-ring-wrap { display:flex; justify-content:center; margin: 18px 0 6px; }
.score-ring { position: relative; width: 200px; height: 200px; }
.score-ring svg { transform: rotate(-90deg); width:100%; height:100%; }
.score-ring circle { fill: none; stroke-width: 14; }
.score-ring .bg { stroke: rgba(255,255,255,0.08); }
.score-ring .fg { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.4,0,.2,1); }
.score-ring .num {
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.score-ring .num b { font-size: 2.6rem; font-weight: 900; color: var(--off); line-height:1; }
.score-ring .num small { font-size: 0.75rem; color: rgba(248,250,252,0.6); margin-top:4px;}

.status-pill {
  display:flex; align-items:center; justify-content:center; gap:8px;
  width: fit-content; margin: 14px auto 6px;
  padding: 8px 20px; border-radius: 999px;
  font-weight: 800; font-size: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
}
.status-desc { text-align:center; color: rgba(248,250,252,0.72); max-width: 480px; margin: 8px auto 30px; line-height: 1.9; font-size: 0.94rem;}

/* رادار */
.radar-wrap { display:flex; justify-content:center; margin: 10px 0 26px; }

/* لیست اولویت‌ها */
.section-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 34px 0 16px;
  display:flex; align-items:center; gap:10px;
}
.section-title::before {
  content:""; width:4px; height:20px; border-radius:4px;
  background: linear-gradient(180deg, var(--cyan), var(--teal));
}
.priority-list { display:grid; gap:12px; }
.priority-item {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.priority-head {
  display:flex; align-items:center; gap:12px;
  padding: 16px 18px;
  cursor: pointer;
}
.priority-head .rank {
  width:28px; height:28px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.08); font-weight:800; font-size:.85rem; flex-shrink:0;
}
.priority-head .icon { font-size:1.1rem; }
.priority-head .title { flex:1; font-weight:700; font-size:.98rem; }
.priority-head .pct { font-weight:800; font-size:.95rem; font-variant-numeric: tabular-nums; }
.priority-head .chev { transition: transform .25s ease; color: rgba(248,250,252,0.5); }
.priority-item.open .chev { transform: rotate(180deg); }
.priority-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
  padding: 0 18px;
}
.priority-item.open .priority-body { max-height: 420px; padding-bottom: 18px; }
.priority-body .problem {
  font-size: .88rem; color: rgba(248,250,252,0.68); line-height: 1.9; margin-bottom: 12px;
  padding-top: 4px; border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 14px;
}
.priority-body ul { margin:0; padding-inline-start: 20px; display:grid; gap:8px; }
.priority-body li { font-size: .88rem; line-height:1.7; color: rgba(248,250,252,0.85); }

.bar-track { height:6px; border-radius:999px; background: rgba(255,255,255,0.08); margin-top:8px; overflow:hidden; }
.bar-fill { height:100%; border-radius:999px; }

/* دعوت به مشاوره - عنصر امضا */
.cta-panel {
  margin-top: 38px;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(120deg, var(--gold), var(--cyan) 45%, var(--teal) 100%);
  box-shadow: 0 20px 50px -20px rgba(0, 212, 255, 0.5);
  position: relative;
}
.cta-inner {
  border-radius: 20px;
  background: linear-gradient(165deg, #060735 0%, #000959 60%, #041d3d 100%);
  padding: 34px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::after {
  content:"";
  position:absolute; width:260px; height:260px; border-radius:50%;
  background: radial-gradient(circle, rgba(250,204,21,0.25), transparent 70%);
  top:-100px; left:-80px;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:.5; transform:scale(1);} 50%{opacity:1; transform:scale(1.15);} }
.cta-eyebrow {
  color: var(--gold); font-weight: 800; font-size: 0.82rem; letter-spacing: .5px;
  display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom: 12px;
  position:relative; z-index:1;
}
.cta-title { font-size: 1.35rem; font-weight: 900; line-height:1.7; margin: 0 0 10px; position:relative; z-index:1;}
.cta-title em { color: var(--cyan); font-style:normal; }
.cta-text { color: rgba(248,250,252,0.75); font-size: 0.94rem; line-height: 1.95; max-width: 480px; margin: 0 auto 26px; position:relative; z-index:1;}
.cta-person {
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-bottom: 22px; position:relative; z-index:1;
}
.cta-avatar {
  width:50px; height:50px; border-radius:50%;
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:1.1rem; color:#012230;
  box-shadow: 0 0 0 3px rgba(0,212,255,0.25);
}
.cta-person .name { font-weight:800; font-size:1rem; text-align: right; }
.cta-person .role { font-size:.78rem; color: rgba(248,250,252,0.55); }
.cta-phone {
  position:relative; z-index:1;
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px;
}
.phone-number {
  font-weight:900; font-size:1.3rem; letter-spacing:1px; direction:ltr;
  color: var(--off);
  font-variant-numeric: tabular-nums;
}
.cta-buttons { display:flex; gap:12px; flex-wrap:wrap; justify-content:center; margin-top:18px; position:relative; z-index:1;}
.cta-buttons .btn { width:auto; padding: 14px 26px; }

/* پرینت/دکمه پایانی */
.final-actions { display:flex; gap:12px; margin-top:26px; }

footer.site-footer {
  text-align:center; margin-top: 40px; color: rgba(248,250,252,0.4); font-size: .78rem;
}

@media (max-width: 560px) {
  .card { padding: 26px 18px; }
  .btn-row { flex-direction: column; }
  .cta-phone { flex-direction:column; }
}

/* دسترسی‌پذیری: کاهش انیمیشن */
@media (prefers-reduced-motion: reduce) {
  .orb, .cta-inner::after { animation: none; }
  .screen { animation: none; }
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
