/* ==========================================================================
   Bosh sahifa
   ========================================================================== */

section { position: relative; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.section-head-row { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; }
.section-head-row .lead { margin: 0; }
@media (max-width: 860px) { .section-head-row { grid-template-columns: 1fr; gap: 8px; } }
.muted { color: var(--ink-3); }

/* ---------------- HERO ---------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 120px 0 90px;
  background: radial-gradient(120% 90% at 70% 40%, #171a35 0%, var(--night) 60%);
  color: var(--night-ink);
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .aurora { z-index: 0; }
.hero .aurora span { opacity: .38; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }

.hero-eyebrow { color: #B9A8FF; }
.hero-title { margin-bottom: 26px; font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; }
.hero-lead { color: var(--night-ink-2); margin-bottom: 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: .95rem; color: var(--night-ink-2); }
.hero-proof b { color: var(--night-ink); }
.pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--c-communic); flex: none; }
.pulse-dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c-communic); animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero-visual { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.hero-radar { width: 100%; height: 100%; overflow: visible; }
.hr-orbit { fill: none; stroke: rgba(255,255,255,.08); stroke-dasharray: 2 8; transform-origin: 280px 280px; animation: spin 80s linear infinite; }
.hr-orbit-2 { stroke-dasharray: 1 14; animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hr-grid polygon, .hr-grid line { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 1; }
.hr-shape { fill-opacity: .28; stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 24px rgba(124, 92, 255, .55)); }
.hr-core { animation: breathe 4s ease-in-out infinite; transform-origin: 280px 280px; }
@keyframes breathe { 50% { transform: scale(1.25); opacity: .7; } }
.hr-node-halo { fill: var(--c); opacity: .14; }
.hr-label { fill: var(--night-ink); font: 700 15px var(--font-body); letter-spacing: .01em; }
.hr-value { fill: var(--c); font: 600 13px var(--font-display); }

.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 14px;
  background: rgba(22, 24, 46, .72); border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: .88rem; font-weight: 600; color: var(--night-ink); white-space: nowrap;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.chip b { color: var(--c-communic); }
.chip .icon { color: #FFB547; }
.chip small { display: block; font-size: .7rem; color: #B9A8FF; letter-spacing: .08em; text-transform: uppercase; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; }
.chip-1 { top: 14%; left: -4%; }
.chip-2 { top: 54%; right: -9%; animation-delay: -2s; }
.chip-3 { top: 2%; right: 2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 2; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.25); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 980px) {
  .hero { padding-top: 110px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-top: 8px; }
  .chip-1 { left: 0; } .chip-2 { right: 0; }
  .scroll-cue { display: none; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .chip { font-size: .78rem; padding: 8px 12px; }
  .chip-2, .chip-3 { display: none; }
  .chip-1 { top: 4%; }
  .hr-label { font-size: 17px; }
}

/* ---------------- RAQAMLAR ---------------- */
.stats { background: var(--night); color: var(--night-ink); padding: 0 0 72px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.stat { padding: 36px 8px 0; display: grid; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--night-line); padding-left: 28px; }
.stat b { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; line-height: 1; background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--night-ink-2); font-weight: 600; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 8px; }
}

/* ---------------- MANIFEST ---------------- */
.manifest { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 100px); }
.versus { display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 24px; align-items: center; }
.versus-card { border-radius: var(--r-xl); padding: clamp(26px, 3.5vw, 44px); position: relative; overflow: hidden; }
.versus-card h3 { margin-bottom: 22px; }
.versus-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.versus-card li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.versus-card li .icon { margin-top: 3px; }
.versus-old { background: var(--surface-2); color: var(--ink-3); }
.versus-old li { text-decoration: line-through; text-decoration-color: rgba(18,19,26,.25); }
.versus-old .icon { color: var(--bad); }
.versus-new { background: var(--night); color: var(--night-ink); box-shadow: var(--shadow-lg); }
.versus-new h3 { position: relative; }
.versus-new .icon { color: var(--c-communic); }
.versus-new .aurora span { opacity: .45; }
.versus-arrow { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-md); }
.versus-arrow .icon { color: var(--brand); }
@media (max-width: 860px) {
  .versus { grid-template-columns: 1fr; }
  .versus-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------------- KOMPETENSIYALAR ---------------- */
.comps { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.comps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.comp-card {
  position: relative; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg); padding: 26px 22px 24px;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.comp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.comp-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform: scaleX(.18); transform-origin: left; transition: transform .6s var(--ease-out); }
.comp-card:hover::after { transform: scaleX(1); }
.comp-index { font: 600 .8rem var(--font-display); color: var(--ink-3); }
.comp-orb { display: block; width: 46px; height: 46px; border-radius: 50%; margin: 18px 0 18px; background: radial-gradient(circle at 30% 30%, #fff 0, var(--c) 45%); background: radial-gradient(circle at 30% 30%, #fff 0, var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000) 100%); box-shadow: 0 10px 24px -8px var(--c); }
.comp-card h3 { font-size: 1.05rem; }
.comp-card p { font-size: .9rem; color: var(--ink-2); margin: 0; }
@media (max-width: 1100px) { .comps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px)  { .comps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px)  { .comps-grid { grid-template-columns: 1fr; } }

/* ---------------- 5 BOSQICH ---------------- */
.stages { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); }
.stages-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); }
.stages-visual { position: relative; }
.stage-screen {
  position: sticky; top: 110px;
  aspect-ratio: 1 / .92; border-radius: var(--r-xl);
  background: linear-gradient(160deg, var(--night-3), var(--night) 70%);
  color: var(--night-ink); overflow: hidden;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06);
}
.screen-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 16px 20px; border-bottom: 1px solid var(--night-line); }
.screen-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.screen-bar span { margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: .78rem; color: var(--night-ink-2); font-family: ui-monospace, monospace; transition: opacity .3s; }

.scene {
  position: absolute; inset: 52px 0 0; padding: clamp(18px, 3vw, 34px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(24px) scale(.98);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out), visibility 0s .6s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }

.stages-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; opacity: .28; transition: opacity .6s var(--ease-out); }
.step:first-child { min-height: 48vh; justify-content: flex-start; padding-top: 40px; }
.step:last-child { min-height: 56vh; }
.step.is-active { opacity: 1; }
.step-num { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); margin-bottom: 14px; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.step-num .icon { width: 42px; height: 42px; padding: 10px; border-radius: 14px; background: rgba(124, 92, 255, .1); }
.step h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.step p { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 14px; border-radius: 999px; background: var(--bg); font-size: .85rem; font-weight: 700; color: var(--ink-2); }

/* sahna 1 — diagnostika */
.scene-diag { flex-direction: row; align-items: center; flex-wrap: wrap; }
.diag-radar { width: 52%; }
.diag-shape { fill: rgba(124, 92, 255, .3); stroke: #9F86FF; stroke-width: 2; stroke-linejoin: round; transform-origin: 150px 130px; }
.scene-diag.is-active .diag-shape { animation: grow 1.2s var(--ease-out) both .2s; }
@keyframes grow { from { transform: scale(0); opacity: 0; } }
.diag-weak { animation: weak 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes weak { 50% { transform: scale(1.7); } }
.diag-bars { flex: 1; display: grid; gap: 12px; min-width: 160px; }
.diag-bar { display: grid; grid-template-columns: 78px 1fr 28px; align-items: center; gap: 10px; font-size: .8rem; font-weight: 700; color: var(--night-ink-2); }
.diag-bar i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.diag-bar i::after { content: ''; position: absolute; inset: 0; width: var(--v); border-radius: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .3s; }
.scene-diag.is-active .diag-bar i::after { transform: scaleX(1); }
.diag-bar b { color: var(--night-ink); text-align: right; }
.diag-bar.is-weak b { color: var(--c-inclusive); }
.scene-note { flex-basis: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 107, 139, .1); border: 1px solid rgba(255, 107, 139, .25); font-size: .88rem; color: var(--night-ink-2); }
.scene-note b { color: var(--night-ink); }
.scene-note .icon { color: var(--c-inclusive); }

/* sahna 2 — qarorlar daraxti */
.tree { width: 100%; max-height: 62%; }
.tree-edge { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 2.5; stroke-linecap: round; }
.tree-edge-on, .tree-edge-bad { stroke-dasharray: 220; stroke-dashoffset: 220; }
.tree-edge-on { stroke: var(--c-communic); }
.tree-edge-bad { stroke: var(--bad); stroke-dasharray: 6 6 220; }
.scene-sim.is-active .tree-edge-on { animation: draw 1.4s var(--ease-out) forwards .3s; }
.scene-sim.is-active .tree-edge-on:last-of-type { animation-delay: 1.1s; }
.scene-sim.is-active .tree-edge-bad { animation: draw 1s var(--ease-out) forwards .2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tree-node { fill: var(--night-3); stroke: rgba(255,255,255,.25); stroke-width: 2; }
.tree-root { fill: #fff; stroke: none; }
.tree-on { stroke: var(--c-communic); }
.tree-bad { stroke: var(--bad); }
.tree-goal { fill: var(--c-communic); }
.tree-x { fill: var(--bad); font: 700 20px var(--font-body); }
.sim-card { padding: 12px 16px; border-radius: 14px; font-size: .88rem; color: var(--night-ink-2); opacity: 0; transform: translateX(-16px); transition: all .7s var(--ease-out); }
.sim-card b { color: var(--night-ink); }
.sim-card-bad { background: rgba(229, 72, 77, .12); border-left: 3px solid var(--bad); }
.sim-card-good { background: rgba(61, 220, 151, .1); border-left: 3px solid var(--c-communic); }
.scene-sim.is-active .sim-card { opacity: 1; transform: none; }
.scene-sim.is-active .sim-card-bad { transition-delay: .9s; }
.scene-sim.is-active .sim-card-good { transition-delay: 1.6s; }

/* sahna 3 — AI */
.chat { display: grid; gap: 14px; }
.msg { padding: 14px 18px; border-radius: 18px; font-size: .92rem; max-width: 92%; }
.msg-user { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 6px; }
.msg-ai { background: rgba(255,255,255,.06); border: 1px solid var(--night-line); border-bottom-left-radius: 6px; color: var(--night-ink-2); min-height: 9.5em; }
.msg-ai p { margin: 0; }
.msg-ai-head { display: flex; align-items: center; gap: 8px; color: #FFB547; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.caret { display: inline-block; width: 2px; height: 1em; background: #FFB547; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sahna 4 — laboratoriya */
.lab-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; perspective: 900px; }
.lab-card { position: relative; aspect-ratio: 3 / 4; transform-style: preserve-3d; transition: transform 1s var(--ease-out); }
.scene-lab.is-active .lab-card { animation: flip 5s var(--ease-out) infinite; }
.scene-lab.is-active .lab-card:nth-child(2) { animation-delay: .4s; }
.scene-lab.is-active .lab-card:nth-child(3) { animation-delay: .8s; }
@keyframes flip { 0%, 15% { transform: none; } 35%, 70% { transform: rotateY(180deg); } 90%, 100% { transform: none; } }
.lab-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; font: 600 clamp(1.1rem, 2.4vw, 1.8rem) var(--font-display); }
.lab-front { background: linear-gradient(150deg, #2A2E5A, #1C1F38); border: 1px solid rgba(255,255,255,.1); }
.lab-front u { text-decoration: none; color: #FFB547; }
.lab-hint { position: absolute; top: 12px; left: 0; right: 0; text-align: center; font: 700 .65rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink-2); }
.lab-back { background: var(--grad); color: #fff; transform: rotateY(180deg); }
.lab-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.lab-tool { padding: 8px 14px; border-radius: 12px; font-size: .82rem; font-weight: 700; background: rgba(255,255,255,.05); color: var(--night-ink-2); border: 1px solid var(--night-line); }
.lab-tool.is-on { background: rgba(255, 107, 139, .14); border-color: rgba(255, 107, 139, .4); color: var(--night-ink); }

/* sahna 5 — pasport */
.mini-pass { padding: 26px; border-radius: 22px; background: linear-gradient(150deg, rgba(124,92,255,.25), rgba(255,107,139,.12)); border: 1px solid rgba(255,255,255,.12); }
.mini-pass-head { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 22px; }
.mini-levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.mini-levels span { padding: 10px; border-radius: 12px; text-align: center; font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.05); color: var(--night-ink-2); }
.mini-levels .is-done { color: var(--c-communic); }
.mini-levels .is-now { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(255,255,255,.5); }
.mini-xp { height: 10px; border-radius: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.mini-xp i { display: block; height: 100%; width: var(--v); background: var(--grad); border-radius: 5px; transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .3s; }
.scene-pass.is-active .mini-xp i { transform: scaleX(1); }
.mini-xp-label { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; color: var(--night-ink-2); font-weight: 700; }

@media (max-width: 920px) {
  .stages-grid { grid-template-columns: 1fr; gap: 0; }
  .stages-visual { position: sticky; top: 84px; z-index: 2; }
  .stages-visual::before { content: ''; position: absolute; z-index: -1; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: -84px; height: 120px; background: var(--surface); } /* yuqoridan o'tayotgan matnni yopadi */
  .stage-screen { position: relative; top: 0; aspect-ratio: auto; height: min(56vh, 380px); }
  .step { min-height: 72vh; justify-content: flex-start; padding-top: 32px; }
  .step:first-child { min-height: 64vh; }
  .scene-diag { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .diag-radar { width: 46%; align-self: center; }
  .diag-bars { gap: 6px; }
}
@media (max-width: 520px) {
  .scene { gap: 10px; }
  .scene-diag .diag-radar { display: none; }
  .msg { font-size: .82rem; padding: 10px 14px; }
}

/* ---------------- JONLI DEMO ---------------- */
.demo { padding: clamp(80px, 10vw, 140px) 0; }
.sim { display: grid; grid-template-columns: 1fr 1.05fr; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.sim-stage { position: relative; background: radial-gradient(90% 80% at 50% 30%, #23284d, var(--night) 75%); color: var(--night-ink); padding: 22px; display: flex; flex-direction: column; min-height: 520px; }
.sim-hud { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; font-weight: 700; color: var(--night-ink-2); }
.sim-steps { display: flex; gap: 6px; }
.sim-steps i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); transition: background .4s; }
.sim-steps i.is-on { background: var(--grad); }

.kid { width: 100%; max-width: 420px; margin: auto; overflow: visible; }
.chalk { fill: rgba(255,255,255,.88); font: 600 28px 'Comic Sans MS', 'Manrope', cursive; letter-spacing: .04em; }
.chalk-sm { font-size: 15px; fill: rgba(255,255,255,.55); }
.kid-eye { fill: #2A1C16; }
.kid-brow { stroke: #3A2A22; stroke-width: 4; stroke-linecap: round; transition: transform .6s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.kid-mouth { fill: none; stroke: #8A3B2F; stroke-width: 4; stroke-linecap: round; }
.kid-cheek { fill: #FF8C8C; opacity: 0; transition: opacity .6s; }
.kid-head { transform-origin: 200px 200px; transition: transform .8s var(--ease-out); }
.kid-pencil { transform-origin: 284px 250px; }
.kid.mood-bored .kid-pencil { animation: twirl 1.6s linear infinite; }
@keyframes twirl { to { transform: rotate(360deg); } }
.kid.mood-sad .kid-head { transform: rotate(-4deg) translateY(10px); }
.kid.mood-sad .kid-brow-l { transform: rotate(14deg); }
.kid.mood-sad .kid-brow-r { transform: rotate(-14deg); }
.kid.mood-sad .kid-cheek { opacity: .5; }
.kid.mood-happy .kid-cheek { opacity: .55; }
.kid.mood-happy .kid-head { transform: translateY(-4px); }
.kid.mood-happy .kid-brow { transform: translateY(-3px); }

.sim-bubble {
  position: absolute; top: 45%; right: 3%;
  max-width: 36%; padding: 10px 14px; border-radius: 16px 16px 16px 4px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem;
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.5);
  transition: transform .5s var(--ease-out), opacity .3s;
}
.sim-bubble.is-pop { animation: pop .6s var(--ease-out); }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.sim-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.meter span { display: block; font-size: .78rem; font-weight: 700; color: var(--night-ink-2); margin-bottom: 6px; }
.meter i { display: block; height: 8px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter b { display: block; height: 100%; border-radius: 4px; background: var(--grad-cool); transition: width 1s var(--ease-out), background .4s; }
.meter b.is-low { background: linear-gradient(90deg, #E5484D, #FF8C5A); }

.sim-panel { padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.sim-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.sim-panel h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.sim-panel p { color: var(--ink-2); }
.sim-noscript { padding: 12px 16px; background: var(--surface-2); border-radius: 12px; }

.choices { display: grid; gap: 10px; margin-top: 8px; }
.choice {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px 18px; border-radius: var(--r-md);
  background: var(--bg); border: 1.5px solid transparent;
  font-weight: 600; font-size: .98rem; line-height: 1.45;
  transition: border-color .25s, transform .35s var(--ease-out), background .25s;
}
.choice:hover { border-color: var(--brand); transform: translateX(4px); background: #fff; }
.choice-key { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-sm); font: 600 .85rem var(--font-display); color: var(--brand); }

.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; margin-bottom: 14px; align-self: flex-start; }
.verdict .icon { width: 1em; height: 1em; }
.verdict-good { background: #E3F7EE; color: #0D6B47; }
.verdict-mid  { background: #FFF3DC; color: #8A5A00; }
.verdict-bad  { background: #FDE8E8; color: #A3262A; }
.advice { margin: 6px 0 20px; padding: 16px 18px; border-radius: var(--r-md); background: #F1EEFF; border-left: 4px solid var(--brand); font-size: .95rem; color: var(--ink-2); }
.advice b { display: block; color: var(--brand); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.deltas { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.delta { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; background: var(--bg); }
.delta i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.delta.is-up { color: #0D6B47; } .delta.is-down { color: #A3262A; }

.result-score { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.score-ring { position: relative; width: 112px; height: 112px; flex: none; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.score-ring .bg { stroke: var(--surface-2); }
.score-ring .fg { stroke: url(#score-grad); stroke-dasharray: 302; stroke-dashoffset: 302; transition: stroke-dashoffset 1.6s var(--ease-out); }
.score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 600 1.8rem var(--font-display); }
.sim-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.sim-panel > * { animation: panel-in .6s var(--ease-out) both; }
.sim-panel > *:nth-child(2) { animation-delay: .06s; }
.sim-panel > *:nth-child(3) { animation-delay: .12s; }
.sim-panel > *:nth-child(4) { animation-delay: .18s; }
.sim-panel > *:nth-child(5) { animation-delay: .24s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; }
  .sim-stage { min-height: 380px; }
}

/* ---------------- DARAJALAR ---------------- */
.levels { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); overflow: hidden; }
.levels-track { position: relative; }
.levels-path { position: absolute; left: 0; right: 0; top: -10px; width: 100%; height: 160px; z-index: 0; }
.lp-bg, .lp-fg { fill: none; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lp-bg { stroke: var(--surface-2); stroke-dasharray: 2 10; }
.lp-fg { stroke: var(--brand); }
.levels-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 90px; }
.level { background: var(--bg); border-radius: var(--r-lg); padding: 30px 26px; transition: transform .5s var(--ease-out); }
.level:nth-child(2) { margin-top: -30px; }
.level:nth-child(3) { margin-top: -60px; background: var(--night); color: var(--night-ink); box-shadow: var(--shadow-lg); }
.level:nth-child(3) p { color: var(--night-ink-2); }
.level:hover { transform: translateY(-6px); }
.level-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 14px 30px -12px rgba(124,92,255,.7); }
.level-badge .icon { width: 26px; height: 26px; }
.level-xp { display: block; font: 600 .82rem var(--font-display); color: var(--brand); margin-bottom: 6px; }
.level:nth-child(3) .level-xp { color: #FFB547; }
.level p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; justify-content: center; }
.xp-chips span { padding: 10px 18px; border-radius: 999px; background: var(--bg); font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.xp-chips b { color: var(--good); margin-right: 4px; }
@media (max-width: 860px) {
  .levels-grid { grid-template-columns: 1fr; padding-top: 20px; }
  .level:nth-child(n) { margin-top: 0; }
  .levels-path { display: none; }
}

/* ---------------- PASPORT ---------------- */
.passport { padding: clamp(90px, 11vw, 150px) 0; background: var(--night); color: var(--night-ink); overflow: hidden; }
.passport .aurora span { opacity: .4; }
.passport-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.passport h2 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); }
.passport-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.passport-list li { display: flex; gap: 16px; }
.passport-list .icon { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--night-line); color: #B9A8FF; }
.passport-list b { display: block; margin-bottom: 2px; }
.passport-list span { color: var(--night-ink-2); font-size: .95rem; }

.passport-stage { perspective: 1200px; display: flex; justify-content: center; }
.pass-card {
  position: relative; width: min(100%, 440px);
  padding: 28px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.2);
  transform-style: preserve-3d; transition: transform .25s ease-out;
  will-change: transform;
}
.pass-shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 30%) var(--my, 20%), rgba(255,255,255,.18), transparent 45%); }
.pass-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.pass-top .logo { font-size: 1rem; }
.pass-top .logo-mark { width: 28px; height: 28px; }
.pass-tag { font: 600 .68rem var(--font-display); letter-spacing: .14em; padding: 5px 10px; border-radius: 8px; background: rgba(255,255,255,.1); color: var(--night-ink-2); }
.pass-person { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.pass-avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; font: 600 1rem var(--font-display); text-shadow: 0 1px 6px rgba(0,0,0,.25); }
.pass-person b { display: block; font-size: 1.1rem; }
.pass-person div span { font-size: .85rem; color: var(--night-ink-2); }
.pass-level { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 181, 71, .14); color: #FFCB7A; font-size: .85rem; font-weight: 800; margin-bottom: 20px; }
.pass-bars { display: grid; gap: 9px; }
.pass-bars div { display: grid; grid-template-columns: 82px 1fr 26px; gap: 10px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--night-ink-2); }
.pass-bars i { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.pass-bars i::after { content: ''; position: absolute; inset: 0; width: var(--v); background: var(--c); border-radius: 3px; }
.pass-bars b { color: var(--night-ink); text-align: right; }
.pass-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px dashed rgba(255,255,255,.16); }
.pass-foot small { display: block; color: var(--night-ink-2); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.pass-foot b { font: 600 1rem var(--font-display); letter-spacing: .04em; }
.pass-qr { width: 92px; height: 92px; padding: 7px; border-radius: 14px; background: #fff; }
.pass-qr svg, .pass-qr img { width: 100%; height: 100%; }
@media (max-width: 900px) { .passport-grid { grid-template-columns: 1fr; } }

/* ---------------- YAKUNIY CTA ---------------- */
.final-cta { padding: clamp(80px, 10vw, 130px) 0; }
.final-card { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(48px, 8vw, 100px) var(--gutter); text-align: center; background: var(--night); color: var(--night-ink); }
.final-card > *:not(canvas) { position: relative; z-index: 1; }
.final-card p { color: var(--night-ink-2); max-width: 46ch; margin: 0 auto 30px; font-size: 1.1rem; }
.final-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Harakatni kamaytirish istagi */
@media (prefers-reduced-motion: reduce) {
  .chip, .hr-orbit, .hr-core, .pulse-dot::after, .scroll-cue span, .diag-weak, .kid-pencil,
  .scene-lab.is-active .lab-card { animation: none !important; }
  .scene, .step { transition: none; }
}
.pass-demo { margin-top: 30px; }
