/* =========================================================
   تست آمادگی رشد کسب‌وکار — پالت: navy #000080 / cyan #00d4ff
   teal #2dd4bf / slate #1e293b / light #f8fafc / gold #facc15
   ========================================================= */

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

  --bg-deep:#04041c;
  --bg-panel: rgba(248,250,252,0.04);
  --bg-panel-solid:#0c0f2a;
  --border-soft: rgba(0,212,255,0.18);
  --border-soft-2: rgba(255,255,255,0.08);
  --text-main:#f8fafc;
  --text-dim: rgba(248,250,252,0.62);
  --text-dimmer: rgba(248,250,252,0.4);

  --grad-brand: linear-gradient(100deg, var(--navy) 0%, #0037c7 35%, var(--cyan) 100%);
  --grad-brand-2: linear-gradient(100deg, var(--cyan), var(--teal));
  --grad-gold: linear-gradient(100deg, #fde68a, var(--gold) 55%, #f59e0b);

  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 0 1px rgba(0,212,255,0.15), 0 20px 60px -20px rgba(0,212,255,0.35);
  --ease: cubic-bezier(.22,1,.36,1);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}

body{
  font-family:'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  background: radial-gradient(120% 140% at 15% 0%, #050826 0%, #04041c 45%, #020214 100%);
  color:var(--text-main);
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

button{font-family:inherit;}
a{text-decoration:none;color:inherit;}

::selection{background:var(--teal);color:var(--navy);}

/* scrollbar */
::-webkit-scrollbar{width:8px;}
::-webkit-scrollbar-thumb{background:rgba(0,212,255,.35);border-radius:10px;}

/* ===================== پس‌زمینه اسکن ===================== */
.scan-bg{
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
}
.scan-grid{
  position:absolute; inset:-2px;
  background-image:
    linear-gradient(rgba(0,212,255,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.055) 1px, transparent 1px);
  background-size:42px 42px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 90%);
}
.scan-line{
  position:absolute; left:0; right:0; height:140px; top:-140px;
  background:linear-gradient(180deg, transparent, rgba(0,212,255,0.10), transparent);
  animation: scanmove 9s linear infinite;
}
@keyframes scanmove{
  0%{ top:-140px; }
  100%{ top:110%; }
}
.orb{position:absolute;border-radius:50%;filter:blur(90px);opacity:.35;}
.orb-a{width:520px;height:520px;background:var(--navy);top:-180px;right:-160px;}
.orb-b{width:480px;height:480px;background:var(--teal);bottom:-220px;left:-180px;opacity:.18;}

@media (prefers-reduced-motion: reduce){
  .scan-line{animation:none;display:none;}
}

/* ===================== ساختار کلی ===================== */
.app{position:relative;z-index:1;min-height:100vh;}
.screen{
  display:none;
  min-height:100vh;
  width:100%;
  align-items:center;
  justify-content:center;
  padding:32px 18px 60px;
}
.screen.active{display:flex;}

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; letter-spacing:.2px;
  color:var(--teal);
  background:rgba(45,212,191,0.08);
  border:1px solid rgba(45,212,191,0.25);
  padding:7px 14px; border-radius:999px;
  margin-bottom:20px;
}
.pulse-dot{
  width:7px;height:7px;border-radius:50%;background:var(--teal);
  box-shadow:0 0 0 0 rgba(45,212,191,.6);
  animation:pulse 1.8s infinite;
}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(45,212,191,.55);}
  70%{box-shadow:0 0 0 8px rgba(45,212,191,0);}
  100%{box-shadow:0 0 0 0 rgba(45,212,191,0);}
}

.grad-text{
  background:var(--grad-brand-2);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}

/* ===================== دکمه‌ها ===================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border:none; cursor:pointer; border-radius:14px;
  font-weight:700; font-family:inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.btn:active{transform:scale(.97);}

.btn-primary{
  background:var(--grad-brand-2);
  color:#001018;
  padding:16px 28px; font-size:16px;
  box-shadow: 0 12px 30px -10px rgba(0,212,255,.55);
}
.btn-primary:hover{filter:brightness(1.08); box-shadow:0 16px 40px -10px rgba(0,212,255,.7);}
.btn-primary svg{transition:transform .25s var(--ease);}
.btn-primary:hover svg{transform:translateX(-3px);}

.btn-lg{padding:18px 32px;font-size:17px;width:100%;max-width:420px;}

.btn-ghost{
  background:transparent; color:var(--text-dim);
  border:1px solid var(--border-soft-2);
  padding:12px 18px; font-size:14px;
}
.btn-ghost:hover{color:var(--text-main); border-color:var(--border-soft);}
.btn-ghost:disabled{opacity:.35; cursor:not-allowed;}

.btn-outline{
  background:transparent; color:var(--cyan);
  border:1.5px solid var(--border-soft);
  padding:14px 26px; font-size:15px;
}
.btn-outline:hover{background:rgba(0,212,255,.08);}

.btn-gold{
  background:var(--grad-gold);
  color:#241a00;
  padding:18px 26px; font-size:16px;
  box-shadow:0 14px 34px -10px rgba(250,204,21,.55);
}
.btn-gold:hover{filter:brightness(1.06); box-shadow:0 18px 44px -10px rgba(250,204,21,.7);}

/* ===================== صفحه شروع ===================== */
.intro-wrap{max-width:640px; text-align:center; display:flex; flex-direction:column; align-items:center;}
.intro-title{
  font-size:clamp(32px,6vw,50px); line-height:1.25; font-weight:800; margin:0 0 18px;
}
.intro-desc{
  font-size:16.5px; line-height:1.9; color:var(--text-dim); max-width:520px; margin:0 0 28px;
}
.intro-stats{
  display:flex; align-items:center; justify-content:center; gap:22px;
  background:var(--bg-panel);
  border:1px solid var(--border-soft-2);
  border-radius:var(--radius-md);
  padding:18px 26px; margin-bottom:30px;
  backdrop-filter:blur(6px);
}
.istat{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:76px;}
.istat-num{font-size:26px;font-weight:800;color:var(--cyan);}
.istat-label{font-size:12.5px;color:var(--text-dimmer);}
.istat-sep{width:1px;height:34px;background:var(--border-soft-2);}

.intro-note{margin-top:14px; font-size:13px; color:var(--text-dimmer);}

@media (max-width:520px){
  .intro-stats{gap:12px;padding:16px;}
  .istat{min-width:60px;}
  .istat-num{font-size:21px;}
}

/* ===================== صفحه سؤالات ===================== */
.quiz-screen{align-items:stretch; flex-direction:column; padding:0;}
.quiz-topbar{
  position:sticky; top:0; z-index:5;
  padding:20px 18px 14px;
  background:linear-gradient(180deg, rgba(4,4,28,.92), rgba(4,4,28,.55));
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border-soft-2);
}
.quiz-topbar-row{
  display:flex; align-items:center; justify-content:space-between;
  max-width:640px; margin:0 auto 12px;
  font-size:13.5px;
}
.section-tag{font-weight:700; color:var(--teal);}
.q-counter{color:var(--text-dimmer); font-variant-numeric:tabular-nums;}

.progress-track{
  max-width:640px;margin:0 auto; height:7px; border-radius:999px;
  background:rgba(255,255,255,.08); overflow:hidden;
}
.progress-fill{
  height:100%; width:0%; border-radius:999px;
  background:var(--grad-brand-2);
  transition:width .5s var(--ease);
}
.section-dots{
  max-width:640px; margin:12px auto 0; display:flex; gap:6px; justify-content:space-between;
}
.section-dots .dot{
  flex:1; height:4px; border-radius:4px; background:rgba(255,255,255,.09);
  transition:background .3s var(--ease);
}
.section-dots .dot.done{background:var(--teal);}
.section-dots .dot.current{background:var(--cyan);}

.quiz-body{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:30px 18px 40px; max-width:640px; margin:0 auto; width:100%;
}

.q-card{
  width:100%;
  background:var(--bg-panel);
  border:1px solid var(--border-soft-2);
  border-radius:var(--radius-lg);
  padding:36px 30px;
  animation:qenter .45s var(--ease);
  backdrop-filter:blur(8px);
}
@keyframes qenter{
  from{opacity:0; transform:translateY(14px);}
  to{opacity:1; transform:translateY(0);}
}
.q-icon{font-size:34px; margin-bottom:14px; line-height:1;}
.q-text{
  font-size:clamp(19px,3vw,23px); line-height:1.6; font-weight:700; margin:0 0 28px;
}

.options{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.opt{
  display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.03);
  border:1.5px solid var(--border-soft-2);
  border-radius:var(--radius-sm);
  padding:16px 16px;
  cursor:pointer; text-align:right;
  transition:all .2s var(--ease);
}
.opt:hover{border-color:var(--border-soft); background:rgba(0,212,255,.06); transform:translateY(-2px);}
.opt.selected{
  border-color:var(--cyan);
  background:linear-gradient(100deg, rgba(0,212,255,.16), rgba(45,212,191,.10));
  box-shadow:0 8px 22px -10px rgba(0,212,255,.5);
}
.opt-badge{
  width:30px;height:30px;flex:0 0 30px;
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.06);
  font-weight:800; font-size:14px; color:var(--text-dim);
}
.opt.selected .opt-badge{background:var(--cyan); color:#001018;}
.opt-label{font-weight:600; font-size:15px;}

@media (max-width:480px){
  .options{grid-template-columns:1fr;}
  .q-card{padding:26px 20px;}
}

.quiz-nav{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  margin-top:22px;
}
.quiz-hint{font-size:12.5px; color:var(--text-dimmer);}

/* ===================== صفحه تحلیل ===================== */
.analyzing-wrap{text-align:center; display:flex; flex-direction:column; align-items:center;}
.radar{
  position:relative; width:180px; height:180px; margin-bottom:34px;
  display:flex; align-items:center; justify-content:center;
}
.radar-ring{
  position:absolute; border-radius:50%;
  border:1.5px solid rgba(0,212,255,.25);
}
.r1{width:100%;height:100%;}
.r2{width:68%;height:68%;}
.r3{width:36%;height:36%;}
.radar-sweep{
  position:absolute; inset:0; border-radius:50%;
  background:conic-gradient(from 0deg, rgba(0,212,255,.55), transparent 70%);
  animation:spin 2.1s linear infinite;
  mask-image:radial-gradient(circle, transparent 0%, black 60%, black 100%);
}
@keyframes spin{to{transform:rotate(360deg);}}
.radar-core{
  position:relative; z-index:2;
  width:56px;height:56px;border-radius:50%;
  background:var(--grad-brand-2);
  display:flex;align-items:center;justify-content:center;
  font-weight:800; color:#001018; font-size:14px;
  box-shadow:0 0 30px rgba(0,212,255,.5);
}
.analyzing-title{font-size:20px; font-weight:700; margin:0 0 18px;}
.analyzing-steps{display:flex; flex-direction:column; gap:9px; align-items:center;}
.astep{
  font-size:13.5px; color:var(--text-dimmer);
  display:flex; align-items:center; gap:8px;
  opacity:0; animation:stepin .4s var(--ease) forwards;
}
.astep .chk{color:var(--teal); font-weight:800;}
@keyframes stepin{to{opacity:1;}}

/* ===================== صفحه نتیجه ===================== */
.result-screen{align-items:flex-start; padding-top:44px;}
.result-wrap{max-width:760px; margin:0 auto; width:100%;}
.result-hero{text-align:center; display:flex; flex-direction:column; align-items:center; margin-bottom:46px;}
.result-title{font-size:clamp(24px,4vw,32px); font-weight:800; margin:0 0 26px;}

.gauge-wrap{position:relative; width:230px; height:230px; margin-bottom:18px;}
.gauge-svg{width:100%;height:100%; transform:rotate(-90deg);}
.gauge-bg{
  fill:none; stroke:rgba(255,255,255,.08); stroke-width:14;
}
.gauge-fg{
  fill:none; stroke:url(#none); stroke-width:14; stroke-linecap:round;
  stroke:var(--cyan);
  stroke-dasharray:653; stroke-dashoffset:653;
  transition:stroke-dashoffset 1.4s var(--ease), stroke 1.4s var(--ease);
}
.gauge-center{
  position:absolute; inset:0; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
}
.gauge-score{font-size:52px; font-weight:900; font-variant-numeric:tabular-nums; line-height:1;}
.gauge-max{font-size:13px; color:var(--text-dimmer); margin-top:6px;}

.result-level{
  font-size:19px; font-weight:800; margin-bottom:10px;
  padding:6px 18px; border-radius:999px;
}
.result-desc{max-width:480px; color:var(--text-dim); line-height:1.9; font-size:15px;}

.block-title{font-size:20px; font-weight:800; margin:0 0 6px;}
.block-sub{color:var(--text-dimmer); font-size:13.5px; margin:0 0 20px;}

/* بخش‌های ۶ گانه */
.section-breakdown{margin-bottom:48px;}
.breakdown-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:14px;
}
@media (max-width:680px){ .breakdown-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:420px){ .breakdown-grid{grid-template-columns:1fr;} }

.bd-card{
  background:var(--bg-panel); border:1px solid var(--border-soft-2);
  border-radius:var(--radius-md); padding:18px;
}
.bd-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.bd-name{font-weight:700; font-size:14.5px; display:flex; align-items:center; gap:8px;}
.bd-pct{font-weight:800; font-size:14px; font-variant-numeric:tabular-nums;}
.bd-bar{height:7px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden;}
.bd-bar-fill{height:100%; border-radius:999px; width:0%; transition:width 1s var(--ease);}

/* چالش‌ها */
.problems-block{margin-bottom:48px;}
.problems-list{display:flex; flex-direction:column; gap:14px;}
.problem-card{
  background:var(--bg-panel); border:1px solid var(--border-soft-2);
  border-radius:var(--radius-lg); padding:22px 22px 20px;
  position:relative; overflow:hidden;
}
.problem-card::before{
  content:''; position:absolute; inset-inline-start:0; top:0; bottom:0; width:4px;
  background:var(--rank-color, var(--cyan));
}
.p-head{display:flex; align-items:flex-start; gap:14px; margin-bottom:14px;}
.p-rank{
  flex:0 0 40px; height:40px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:16px; color:#001018;
  background:var(--rank-color, var(--cyan));
}
.p-titlewrap{flex:1;}
.p-title{font-size:17px; font-weight:800; margin:0 0 4px;}
.p-severity-row{display:flex; align-items:center; gap:10px;}
.p-sev-label{font-size:12.5px; color:var(--text-dimmer);}
.p-sev-bar{flex:1; max-width:160px; height:6px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden;}
.p-sev-fill{height:100%; border-radius:999px; width:0%; background:var(--rank-color, var(--cyan)); transition:width 1s var(--ease);}
.p-sev-pct{font-size:13px; font-weight:800; color:var(--rank-color, var(--cyan)); font-variant-numeric:tabular-nums;}

.p-solutions{display:flex; flex-wrap:wrap; gap:8px; margin-top:6px;}
.sol-chip{
  font-size:12.5px; padding:7px 12px; border-radius:999px;
  background:rgba(255,255,255,.05); border:1px solid var(--border-soft-2); color:var(--text-dim);
  display:flex; align-items:center; gap:6px;
}
.sol-chip::before{content:'✓'; color:var(--teal); font-weight:800;}

/* نقشه اولویت */
.priority-block{margin-bottom:52px;}
.priority-list{display:flex; flex-direction:column; gap:10px;}
.priority-item{
  display:flex; align-items:center; gap:14px;
  background:var(--bg-panel); border:1px solid var(--border-soft-2);
  border-radius:var(--radius-md); padding:14px 18px;
}
.pi-icon{font-size:20px; flex:0 0 auto;}
.pi-label{font-weight:700; font-size:14.5px;}
.pi-tag{
  margin-inline-start:auto; font-size:11.5px; color:var(--text-dimmer);
  border:1px solid var(--border-soft-2); padding:4px 10px; border-radius:999px;
}

/* ===================== CTA ===================== */
.cta-block{
  position:relative; border-radius:28px; overflow:hidden;
  padding:2px; margin-bottom:26px;
  background:linear-gradient(120deg, var(--navy), var(--cyan), var(--teal), var(--gold));
  background-size:300% 300%;
  animation:ctaborder 8s ease infinite;
}
@keyframes ctaborder{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
.cta-inner{
  position:relative; z-index:1;
  background:linear-gradient(165deg, #060a2e 0%, #0a0f38 60%, #05081f 100%);
  border-radius:26px; padding:40px 30px; text-align:center;
  display:flex; flex-direction:column; align-items:center;
}
.cta-glow{
  position:absolute; z-index:0; width:340px; height:340px; border-radius:50%;
  background:radial-gradient(circle, rgba(250,204,21,.28), transparent 70%);
  top:-120px; left:50%; transform:translateX(-50%); filter:blur(10px);
}
.cta-badge{
  display:inline-block; font-size:12.5px; font-weight:700; letter-spacing:.3px;
  color:#241a00; background:var(--grad-gold);
  padding:6px 16px; border-radius:999px; margin-bottom:16px;
}
.cta-title{font-size:clamp(21px,3.4vw,28px); font-weight:800; line-height:1.5; margin:0 0 14px; max-width:520px;}
.cta-text{color:var(--text-dim); font-size:15px; line-height:1.9; max-width:480px; margin:0 0 26px;}

.cta-mentor{
  display:flex; align-items:center; gap:12px;
  background:rgba(255,255,255,.05); border:1px solid var(--border-soft-2);
  border-radius:16px; padding:12px 20px; margin-bottom:24px;
}
.mentor-avatar{
  width:44px;height:44px;border-radius:50%;
  background:var(--grad-brand-2);
  display:flex;align-items:center;justify-content:center;
  font-weight:800; font-size:18px; color:#001018;
}
.mentor-info{text-align:right;}
.mentor-name{font-weight:800; font-size:15px;}
.mentor-role{font-size:12.5px; color:var(--text-dimmer);}

.cta-call{max-width:460px; direction:ltr; font-variant-numeric:tabular-nums;}
.cta-subnote{margin-top:14px; font-size:12.5px; color:var(--text-dimmer); max-width:400px;}

.btn-restart{display:block; margin:0 auto;}

/* ===================== واکنش‌گرا ===================== */
@media (max-width:600px){
  .result-screen{padding-top:26px;}
  .gauge-wrap{width:190px;height:190px;}
  .gauge-score{font-size:42px;}
  .cta-inner{padding:32px 20px;}
}
