/*
 * SlideStudy: kirish animatsiyasi (intro.js).
 * Sahnalar qat'iy o'lchamli "kadr" ichida chiziladi va ekranga moslab kattalashtiriladi: video kabi.
 * Gorizontal ekranda kadr 1100×660, telefon (vertikal) ekranda 620×1040.
 */

/* Intro chiqishidan oldin sahifa miltillab ko'rinmasin */
html.ss-intro,
html.ss-intro body {
  overflow: hidden;
  background: #0a0920;
}

html.ss-intro body > *:not(.intro) {
  visibility: hidden;
}

.intro {
  --W: 1100px;
  --H: 660px;
  --s: 1;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(1100px 700px at 15% 0%, #2a1f7a 0%, transparent 60%),
    radial-gradient(900px 600px at 100% 100%, #0b4566 0%, transparent 60%),
    #0a0920;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.7s ease;
}

.intro.is-visible {
  opacity: 1;
}

.intro.is-leaving {
  opacity: 0;
  transform: scale(1.04);
}

.intro.is-paused *,
.intro.is-paused *::before,
.intro.is-paused *::after {
  animation-play-state: paused !important;
}

:where(.intro button) {
  font-family: inherit;
  color: inherit;
}

.intro:focus {
  outline: none;
}

/* ---------- Fon: harakatlanuvchi nur dog'lari va yulduzlar ---------- */
.iv-blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
  animation: iv-drift 18s ease-in-out infinite alternate;
}

.iv-blob.b1 { left: -20vmax; top: -25vmax; background: #6366f1; }
.iv-blob.b2 { right: -25vmax; bottom: -30vmax; background: #06b6d4; animation-duration: 22s; }
.iv-blob.b3 { left: 30%; top: 40%; width: 40vmax; height: 40vmax; background: #c026d3; opacity: 0.18; animation-duration: 26s; }

@keyframes iv-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.15); }
}

.iv-stars {
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(1.4px 1.4px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #c7d2fe, transparent),
    radial-gradient(1.6px 1.6px at 180px 160px, #fff, transparent),
    radial-gradient(1px 1px at 60px 190px, #a5f3fc, transparent),
    radial-gradient(1.2px 1.2px at 210px 40px, #fff, transparent);
  background-size: 240px 240px;
  animation: iv-stars 60s linear infinite;
}

@keyframes iv-stars {
  to { transform: translate(240px, -240px); }
}

/* ---------- Kadr va sahnalar ---------- */
.iv-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--W);
  height: var(--H);
  margin: calc(var(--H) / -2) 0 0 calc(var(--W) / -2);
  transform: scale(var(--s));
}

.iv-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}

.iv-scene.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease 0.15s, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s, visibility 0s;
}

.iv-scene.is-out {
  transform: scale(1.05);
}

.is-on .iv-in {
  animation: iv-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s) both;
}

@keyframes iv-rise {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes iv-pop {
  from { opacity: 0; transform: scale(0.3) rotate(-18deg); }
  to { opacity: 1; transform: none; }
}

.iv-head {
  text-align: center;
}

.iv-kicker {
  display: inline-block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c7d2fe;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.iv-title {
  margin-top: 16px;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
  background: linear-gradient(90deg, #fff 30%, #c7d2fe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.iv-glass {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.iv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ---------- 1. Logotip ---------- */
.iv-logo {
  position: relative;
  display: grid;
  place-items: center;
}

.iv-mark {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  font-size: 74px;
  font-weight: 800;
  border-radius: 36px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #e879f9);
  box-shadow: 0 30px 80px -10px rgba(139, 92, 246, 0.85), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.is-on .iv-mark {
  animation: iv-pop 1.1s cubic-bezier(0.2, 1.5, 0.3, 1) 0.6s both;
}

.iv-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin: -70px 0 0 -70px;
  border-radius: 50%;
  border: 2px solid rgba(199, 210, 254, 0.8);
  opacity: 0;
}

.is-on .iv-ring {
  animation: iv-ring 1.8s ease-out 1s both;
}

.is-on .iv-ring.r2 {
  animation-delay: 1.25s;
}

@keyframes iv-ring {
  from { opacity: 1; transform: scale(0.7); }
  to { opacity: 0; transform: scale(7); }
}

.iv-word {
  display: flex;
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.05em;
  perspective: 600px;
}

.iv-word span {
  display: inline-block;
}

.is-on .iv-word span {
  animation: iv-letter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) calc(1.15s + var(--i) * 0.06s) both;
}

@keyframes iv-letter {
  from { opacity: 0; transform: translateY(40px) rotateX(70deg); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.iv-tagline {
  font-size: 24px;
  color: rgba(226, 232, 255, 0.82);
}

/* ---------- 2. Mavzu ---------- */
.iv-panel {
  width: 760px;
  padding: 30px;
}

.iv-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.iv-tabs span {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

.iv-tabs span.on {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.iv-label {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #c7d2fe;
}

.iv-input {
  display: flex;
  align-items: center;
  height: 78px;
  padding: 0 24px;
  font-size: 32px;
  font-weight: 700;
  color: #111827;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.35);
}

.iv-caret {
  display: inline-block;
  width: 3px;
  height: 38px;
  margin-left: 3px;
  background: #6366f1;
  animation: iv-blink 1s steps(1) infinite;
}

@keyframes iv-blink {
  50% { opacity: 0; }
}

.iv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.iv-langs {
  display: flex;
  gap: 8px;
}

.iv-langs .iv-chip {
  padding: 8px 13px;
  font-size: 14px;
}

.iv-go {
  position: relative;
  padding: 16px 28px;
  font-size: 20px;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 18px 40px -12px rgba(168, 85, 247, 0.9);
  transition: transform 0.15s ease;
}

.iv-go.pressed {
  transform: scale(0.93);
}

.iv-go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid #c4b5fd;
  opacity: 0;
}

.iv-go.pressed::after {
  animation: iv-ripple 0.8s ease-out both;
}

@keyframes iv-ripple {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.6, 2.2); }
}

.iv-bar {
  height: 10px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.iv-bar i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #8b5cf6, #e879f9);
}

.iv-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 17px;
  font-weight: 600;
  color: #a5f3fc;
}

/* ---------- 3. Manbalar ---------- */
.iv-orbit {
  position: relative;
  width: 900px;
  height: 420px;
}

.iv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.iv-lines line {
  stroke: rgba(167, 139, 250, 0.65);
  stroke-width: 2.5;
  stroke-dasharray: 6 10;
  opacity: 0;
}

.is-on .iv-lines line {
  animation: iv-fade 0.6s ease calc(0.9s + var(--i) * 0.18s) both, iv-flow 0.9s linear infinite;
}

@keyframes iv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes iv-flow {
  from { stroke-dashoffset: 32; }
  to { stroke-dashoffset: 0; }
}

.iv-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: -85px 0 0 -85px;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a78bfa, #4f46e5 70%);
  box-shadow: 0 0 0 14px rgba(99, 102, 241, 0.16), 0 0 90px rgba(139, 92, 246, 0.75);
}

.is-on .iv-core {
  animation: iv-pop 0.9s cubic-bezier(0.2, 1.4, 0.3, 1) 0.3s both, iv-pulse 2.4s ease-in-out 1.4s infinite;
}

@keyframes iv-pulse {
  50% { box-shadow: 0 0 0 26px rgba(99, 102, 241, 0.08), 0 0 120px rgba(139, 92, 246, 0.9); }
}

.iv-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y)));
}

.iv-node > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 14px;
  white-space: nowrap;
  border-radius: 18px;
}

.is-on .iv-node > div {
  animation: iv-node 0.8s cubic-bezier(0.2, 1.3, 0.3, 1) calc(0.7s + var(--i) * 0.18s) both;
}

@keyframes iv-node {
  from { opacity: 0; transform: scale(0.3); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.iv-node b {
  font-size: 30px;
  font-weight: 400;
}

.iv-node strong {
  display: block;
  font-size: 18px;
}

.iv-node small {
  font-size: 14px;
  color: rgba(226, 232, 255, 0.72);
}

/* ---------- 4. Ish turlari ---------- */
.iv-types {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 18px;
  perspective: 900px;
}

.iv-type {
  position: relative;
  overflow: hidden;
  padding: 22px 22px 20px;
  border-radius: 22px;
}

.iv-type::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--a), var(--a2));
}

.iv-type::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
}

.is-on .iv-type {
  animation: iv-card 0.8s cubic-bezier(0.2, 1.2, 0.3, 1) calc(0.5s + var(--i) * 0.15s) both;
}

.is-on .iv-type::after {
  animation: iv-shine 1.2s ease calc(2.2s + var(--i) * 0.1s) both;
}

@keyframes iv-card {
  from { opacity: 0; transform: translateY(40px) scale(0.85) rotateX(30deg); }
  to { opacity: 1; transform: none; }
}

@keyframes iv-shine {
  to { transform: translateX(120%); }
}

.iv-type b {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  font-size: 30px;
  font-weight: 400;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.iv-type strong {
  display: block;
  margin-top: 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.iv-type span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--a2);
}

/* ---------- 5. Slayd dizaynlari ---------- */
.iv-designs {
  position: relative;
  display: grid;
  place-items: center;
  width: 960px;
  height: 400px;
}

.iv-deck {
  position: relative;
  width: 560px;
  aspect-ratio: 16 / 9;
}

.iv-deck::before,
.iv-deck::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(-6deg) translate(-26px, 10px);
}

.iv-deck::after {
  transform: rotate(5deg) translate(26px, 8px);
}

.iv-slide {
  --bg: #0b0f19; --fg: #fff; --acc: #f5b700;
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto 1fr auto;
  gap: 10px 26px;
  padding: 30px 34px 24px;
  overflow: hidden;
  color: var(--fg);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.75);
  transition: background 0.4s ease, color 0.4s ease;
}

.iv-slide[data-theme="1"] { --bg: #fbf8f3; --fg: #1f2937; --acc: #c2410c; }
.iv-slide[data-theme="2"] { --bg: #f8fafc; --fg: #0f172a; --acc: #2563eb; }
.iv-slide[data-theme="3"] { --bg: #121212; --fg: #e5e7eb; --acc: #22d3ee; }
.iv-slide[data-theme="4"] { --bg: linear-gradient(135deg, #1e1b4b, #7c3aed); --fg: #fff; --acc: #c4b5fd; }
.iv-slide[data-theme="5"] { --bg: #fff; --fg: #13294b; --acc: #b08d57; }

.iv-slide.flip {
  animation: iv-flip 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes iv-flip {
  from { opacity: 0.55; transform: perspective(900px) rotateY(-24deg) translateX(36px); }
  to { opacity: 1; transform: none; }
}

.iv-slide h4 {
  grid-column: 1 / -1;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.iv-slide h4 small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--acc);
}

.iv-bullets {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 6px;
}

.iv-bullets i {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iv-bullets i::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acc);
}

.iv-bullets i::after {
  content: "";
  height: 9px;
  width: var(--w);
  border-radius: 999px;
  background: currentColor;
  opacity: 0.28;
}

.iv-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 120px;
  padding: 0 4px 0;
  border-bottom: 2px solid currentColor;
  border-color: color-mix(in srgb, currentColor 25%, transparent);
}

.iv-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 0 0;
  background: var(--acc);
  transform-origin: bottom;
}

.iv-slide.flip .iv-chart i {
  animation: iv-grow 0.7s cubic-bezier(0.2, 1.2, 0.3, 1) calc(0.1s + var(--i) * 0.07s) both;
}

@keyframes iv-grow {
  from { transform: scaleY(0); }
}

.iv-time {
  grid-column: 1 / -1;
  position: relative;
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 800;
}

.iv-time::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 5px;
  height: 2px;
  background: currentColor;
  opacity: 0.25;
}

.iv-time span {
  position: relative;
}

.iv-time span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--acc);
}

.iv-badge {
  position: absolute;
  left: 50%;
  bottom: -6px;
  z-index: 2;
  transform: translateX(-50%);
}

.iv-badge em {
  font-style: normal;
  color: #fde68a;
}

.iv-float {
  position: absolute;
  z-index: 2;
}

.is-on .iv-float {
  animation: iv-node 0.8s cubic-bezier(0.2, 1.3, 0.3, 1) var(--d) both, iv-bob 3.2s ease-in-out calc(var(--d) + 0.8s) infinite alternate;
}

@keyframes iv-bob {
  to { transform: translateY(-10px); }
}

/* ---------- 6. Tahrirlash ---------- */
.iv-editor {
  position: relative;
  width: 780px;
}

.iv-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.iv-toolbar .iv-chip {
  padding: 8px 14px;
  font-size: 15px;
}

.iv-paper {
  position: relative;
  padding: 38px 54px 40px;
  color: #1f2937;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
}

.iv-paper h4 {
  font-family: "Times New Roman", Times, serif;
  font-size: 34px;
  text-align: center;
}

.iv-word-edit {
  padding: 0 4px;
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.iv-word-edit.sel {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 0 2px #6366f1;
}

.iv-word-edit .iv-caret {
  height: 30px;
  vertical-align: -4px;
}

.iv-lines-text {
  display: grid;
  gap: 13px;
  margin-top: 26px;
}

.iv-lines-text i {
  display: block;
  height: 11px;
  width: var(--w);
  border-radius: 999px;
  background: #e5e7eb;
}

.iv-cursor {
  position: absolute;
  left: 470px;
  top: 52px;
  width: 30px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

.is-on .iv-cursor {
  animation: iv-cursor 1.1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.3s both;
}

@keyframes iv-cursor {
  from { opacity: 0; transform: translate(260px, 220px); }
  to { opacity: 1; transform: none; }
}

.iv-saved {
  position: absolute;
  right: -18px;
  bottom: -22px;
  padding: 13px 20px;
  font-size: 17px;
  font-weight: 800;
  border-radius: 14px;
  background: #16a34a;
  box-shadow: 0 18px 40px -12px rgba(22, 163, 74, 0.9);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 1.4, 0.3, 1);
}

.iv-saved.on {
  opacity: 1;
  transform: none;
}

/* ---------- 7. Taqdimot rejimi ---------- */
.iv-show {
  display: flex;
  align-items: center;
  gap: 26px;
}

.iv-screen {
  position: relative;
  width: 620px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  border: 8px solid #1f2937;
  background: #000;
  box-shadow: 0 40px 100px -25px rgba(0, 0, 0, 0.8);
}

.iv-strip {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.2, 1);
}

.iv-pslide {
  flex: 0 0 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
}

.iv-pslide strong {
  font-size: 40px;
  letter-spacing: -0.04em;
}

.iv-pslide span {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.75;
}

.iv-pslide.p1 { background: linear-gradient(135deg, #1e1b4b, #4f46e5); }
.iv-pslide.p2 { background: linear-gradient(135deg, #0c2a4a, #0ea5e9); }
.iv-pslide.p3 { background: linear-gradient(135deg, #052e2b, #10b981); }

.iv-side {
  display: grid;
  gap: 16px;
  width: 270px;
}

.iv-notes {
  padding: 20px;
}

.iv-notes strong {
  display: block;
  margin-bottom: 14px;
  font-size: 17px;
}

.iv-notes i {
  display: block;
  height: 9px;
  width: var(--w);
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.iv-keys {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.iv-key {
  display: grid;
  place-items: center;
  width: 64px;
  height: 56px;
  font-size: 26px;
  font-weight: 800;
  color: #111827;
  border-radius: 12px;
  background: linear-gradient(#fff, #e5e7eb);
  box-shadow: 0 6px 0 #9ca3af;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.iv-key.press {
  transform: translateY(4px);
  background: linear-gradient(#e0e7ff, #c7d2fe);
  box-shadow: 0 2px 0 #9ca3af;
}

.iv-keys-label {
  font-size: 15px;
  text-align: center;
  color: rgba(226, 232, 255, 0.75);
}

/* ---------- 8. Yuklab olish ---------- */
.iv-export {
  display: grid;
  justify-items: center;
  gap: 26px;
}

.iv-files {
  display: flex;
  gap: 34px;
  padding: 0 40px;
}

.iv-file {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 150px;
  height: 190px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--c2), var(--c));
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
}

.iv-file::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28%;
  height: 22%;
  background: rgba(255, 255, 255, 0.35);
  border-bottom-left-radius: 12px;
}

.iv-file strong {
  font-size: 30px;
  letter-spacing: -0.02em;
}

.iv-file span {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
}

.is-on .iv-file {
  animation: iv-drop 0.9s cubic-bezier(0.3, 1.5, 0.4, 1) calc(0.4s + var(--i) * 0.35s) both;
}

@keyframes iv-drop {
  from { opacity: 0; transform: translateY(-260px) rotate(-14deg); }
  to { opacity: 1; transform: none; }
}

.iv-tray {
  width: 620px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.2), rgba(232, 121, 249, 0.6), rgba(99, 102, 241, 0.2));
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.6);
}

/* ---------- 9. Ishlarim ---------- */
.iv-library {
  display: grid;
  grid-template-columns: repeat(4, 210px);
  gap: 16px;
}

.iv-work {
  overflow: hidden;
  border-radius: 16px;
}

.is-on .iv-work {
  animation: iv-card 0.7s cubic-bezier(0.2, 1.2, 0.3, 1) calc(0.4s + var(--i) * 0.09s) both;
}

.iv-work-thumb {
  position: relative;
  height: 72px;
  background: linear-gradient(135deg, var(--a), var(--a2));
}

.iv-work-thumb span {
  position: absolute;
  left: 10px;
  bottom: 8px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
}

.iv-work strong {
  display: block;
  padding: 12px 14px 4px;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iv-work small {
  display: block;
  padding: 0 14px 14px;
  font-size: 13px;
  color: rgba(226, 232, 255, 0.65);
}

.iv-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ---------- 10. Yakun ---------- */
.iv-final .iv-mark {
  width: 104px;
  height: 104px;
  font-size: 58px;
  border-radius: 30px;
}

.iv-final .iv-title {
  max-width: 900px;
  font-size: 58px;
}

.iv-sub {
  margin-top: 14px;
  font-size: 22px;
  color: rgba(226, 232, 255, 0.82);
}

.iv-buttons {
  display: flex;
  gap: 14px;
}

.iv-cta {
  padding: 18px 34px;
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  box-shadow: 0 20px 50px -12px rgba(168, 85, 247, 0.95);
  transition: transform 0.2s ease;
}

.iv-cta:hover {
  transform: translateY(-3px);
}

.iv-ghost {
  padding: 18px 26px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.iv-spark {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0;
}

.is-on .iv-spark {
  animation: iv-spark 1.6s cubic-bezier(0.1, 0.8, 0.3, 1) calc(0.5s + var(--i) * 0.03s) both;
}

@keyframes iv-spark {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3); }
}

/* ---------- Boshlash ekrani ---------- */
.iv-start {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
  transition: opacity 0.5s ease, transform 0.6s ease;
}

.iv-start.hide {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.iv-start .iv-mark {
  width: 84px;
  height: 84px;
  font-size: 46px;
  border-radius: 24px;
  animation: iv-pop 1s cubic-bezier(0.2, 1.5, 0.3, 1) 0.2s both;
}

.iv-start h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  animation: iv-rise 0.8s ease 0.4s both;
}

.iv-start p {
  max-width: 34ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: rgba(226, 232, 255, 0.8);
  animation: iv-rise 0.8s ease 0.55s both;
}

.iv-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  margin: 14px 0 6px;
  cursor: pointer;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7 60%, #e879f9);
  box-shadow: 0 24px 60px -10px rgba(168, 85, 247, 0.9);
  animation: iv-pop 0.9s cubic-bezier(0.2, 1.5, 0.3, 1) 0.7s both;
  transition: transform 0.2s ease;
}

.iv-play:hover {
  transform: scale(1.07);
}

.iv-play svg {
  width: 40px;
  height: 40px;
  margin-left: 6px;
  fill: #fff;
}

.iv-play::before,
.iv-play::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(196, 181, 253, 0.7);
  animation: iv-halo 2.4s ease-out infinite;
}

.iv-play::after {
  animation-delay: 1.2s;
}

@keyframes iv-halo {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(1.9); }
}

.iv-play-label {
  font-size: 1.15rem;
  font-weight: 800;
  animation: iv-rise 0.8s ease 0.8s both;
}

.iv-hint {
  font-size: 0.92rem;
  color: rgba(226, 232, 255, 0.6);
  animation: iv-rise 0.8s ease 0.9s both;
}

.iv-skip-start {
  margin-top: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  color: rgba(226, 232, 255, 0.75);
  border: 0;
  border-radius: 999px;
  background: none;
  animation: iv-rise 0.8s ease 1s both;
}

.iv-skip-start:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Boshqaruv va taraqqiyot chizig'i ---------- */
.iv-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.intro.is-running .iv-controls,
.intro.is-running .iv-progress {
  opacity: 1;
}

.iv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s ease;
}

.iv-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.iv-progress {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 6;
  display: flex;
  gap: 6px;
  width: min(720px, calc(100% - 32px));
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.iv-seg {
  flex: 1;
  height: 20px;
  padding: 8px 0;
  cursor: pointer;
  border: 0;
  background: none;
}

.iv-seg i {
  position: relative;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.iv-seg i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: #fff;
}

.intro :focus-visible {
  outline: 3px solid #a5b4fc;
  outline-offset: 3px;
}

/* ---------- Vertikal (telefon) kadr ---------- */
.intro.portrait {
  --W: 620px;
  --H: 1040px;
}

.portrait .iv-scene {
  gap: 40px;
  padding: 0 20px;
}

.portrait .iv-title {
  font-size: 46px;
}

.portrait .iv-word {
  font-size: 76px;
}

.portrait .iv-tagline {
  font-size: 26px;
  text-align: center;
}

.portrait .iv-panel {
  width: 580px;
}

.portrait .iv-row {
  flex-direction: column;
  align-items: stretch;
}

.portrait .iv-langs {
  justify-content: center;
}

.portrait .iv-orbit {
  width: 580px;
  height: 640px;
}

.portrait .iv-node > div {
  padding: 10px 14px 10px 12px;
}

.portrait .iv-types {
  grid-template-columns: repeat(2, 280px);
}

.portrait .iv-designs {
  width: 580px;
  height: 640px;
}

.portrait .iv-deck {
  width: 560px;
}

.portrait .iv-editor {
  width: 580px;
}

.portrait .iv-paper {
  padding: 32px 30px 36px;
}

.portrait .iv-cursor {
  left: 360px;
}

.portrait .iv-show {
  flex-direction: column;
}

.portrait .iv-screen {
  width: 580px;
}

.portrait .iv-side {
  width: 580px;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.portrait .iv-saved {
  right: 12px;
}

.portrait .iv-keys-label {
  font-size: 13px;
}

.portrait .iv-files {
  gap: 22px;
  padding: 0;
}

.portrait .iv-file {
  width: 168px;
  height: 210px;
}

.portrait .iv-tray {
  width: 560px;
}

.portrait .iv-library {
  grid-template-columns: repeat(2, 270px);
}

.portrait .iv-final .iv-title {
  font-size: 54px;
}

.portrait .iv-buttons {
  flex-direction: column;
  width: 420px;
}
