/* ============================================================
   Taleem landing — brend ranglari ilovadan olingan
   surface 11 7 24 · card 23 16 47 · ink 248 247 255
   ============================================================ */

:root {
  --surface: 11 7 24;
  --surface-2: 16 10 33;
  --card: 23 16 47;
  --input: 27 16 56;
  --line: 45 32 85;

  --ink: 248 247 255;
  --muted: 184 174 207;
  --faint: 117 107 145;

  --violet: 196 181 253;
  --purple: 168 85 247;
  --flame: 255 122 24;

  --card-border: rgba(146, 116, 224, .18);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  --glass-bg: rgba(255, 255, 255, .06);

  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: rgb(var(--surface));
  color: rgb(var(--ink));
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
p { margin: 0; }

:focus-visible {
  outline: 2px solid rgb(var(--violet));
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgb(var(--purple));
  color: #fff;
}
.skip-link:focus { left: 16px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container.narrow { width: min(100% - 40px, 780px); }
.center { text-align: center; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgb(var(--surface) / .72);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgb(var(--surface) / .92);
  border-bottom-color: var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.brand img { border-radius: 10px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .97rem;
  font-weight: 500;
}
.nav > a:not(.btn) { color: rgb(var(--muted)); transition: color .18s ease; }
.nav > a:not(.btn):hover { color: rgb(var(--ink)); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--glass-bg);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgb(var(--ink));
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .93rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, rgb(var(--purple)), rgb(139 92 246));
  color: #fff;
  box-shadow: 0 10px 26px rgba(168, 85, 247, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(168, 85, 247, .42); }

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--card-border);
  color: rgb(var(--ink));
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(196, 181, 253, .45); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center-row { justify-content: center; }
.cta-note { margin-top: 16px; color: rgb(var(--faint)); font-size: .92rem; }

/* ---------------- Typography blocks ---------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(var(--violet));
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgb(var(--flame));
  box-shadow: 0 0 0 4px rgba(255, 122, 24, .18);
}

h1 { font-size: clamp(2.15rem, 5.2vw, 3.6rem); margin-top: 18px; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

.grad {
  background: linear-gradient(100deg, rgb(var(--violet)), rgb(var(--purple)) 45%, rgb(var(--flame)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { margin-top: 20px; color: rgb(var(--muted)); font-size: clamp(1rem, 1.6vw, 1.14rem); max-width: 56ch; }
.lead-sm { margin-top: 16px; color: rgb(var(--muted)); max-width: 54ch; }

.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section-alt { background: rgb(var(--surface-2)); border-block: 1px solid rgba(146, 116, 224, .1); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { margin-top: 14px; }
.section-sub { margin-top: 16px; color: rgb(var(--muted)); }
.section-sub b { color: rgb(var(--ink)); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.glow-violet {
  width: 620px; height: 620px;
  top: -240px; left: -160px;
  background: rgba(124, 58, 237, .38);
}
.glow-flame {
  width: 460px; height: 460px;
  top: 120px; right: -180px;
  background: rgba(255, 122, 24, .16);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-visual { position: relative; display: grid; justify-items: center; }

.mascot {
  width: clamp(140px, 20vw, 200px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(255, 122, 24, .28));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.score-card {
  width: min(100%, 380px);
  margin-top: -18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%),
    rgb(var(--card));
  box-shadow: var(--card-shadow);
}
.score-card-top { display: flex; align-items: flex-start; justify-content: space-between; }
.score-label { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--faint)); }
.score-band {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.score-band span {
  margin-left: 6px;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(var(--faint));
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--glass-bg);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgb(var(--violet));
}
.badge-level { font-family: var(--font-display); font-size: .95rem; }

/* 75 ballik shkala + CEFR bosqichlari */
.scale { margin-top: 20px; }
.scale-bar {
  height: 8px;
  border-radius: 99px;
  background: rgb(var(--input));
  position: relative;
  overflow: hidden;
}
.scale-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v, 50%);
  border-radius: 99px;
  background: linear-gradient(90deg, rgb(var(--purple)), rgb(var(--violet)));
}
.scale-ticks {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgb(var(--faint));
}
.scale-ticks li { text-align: center; }
.scale-ticks li:first-child { text-align: left; }
.scale-ticks li:last-child { text-align: right; }

/* Mock tuzilishi ro‘yxati */
.spec-list {
  margin-top: 22px;
  display: grid;
  gap: 11px;
  font-size: .9rem;
}
.spec-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgb(var(--muted));
}
.spec-list b {
  font-family: var(--font-display);
  font-weight: 600;
  color: rgb(var(--ink));
  font-variant-numeric: tabular-nums;
}

.score-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(146, 116, 224, .14);
  font-size: .87rem;
  color: rgb(var(--faint));
  display: flex;
  align-items: center;
  gap: 9px;
}
.ai-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgb(var(--flame));
  box-shadow: 0 0 12px rgba(255, 122, 24, .8);
}

.strip {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--glass-bg);
  font-size: .9rem;
  color: rgb(var(--muted));
}
.strip li { display: flex; align-items: baseline; gap: 8px; }
.strip b { font-family: var(--font-display); font-size: 1.05rem; color: rgb(var(--violet)); }

/* ---------------- Cards / grids ---------------- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 32%),
    rgb(var(--card));
  box-shadow: var(--card-shadow);
  transition: transform .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(196, 181, 253, .34); }
.card h3 { margin-bottom: 10px; }
.card p { color: rgb(var(--muted)); font-size: .96rem; }

.icon {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
}
.icon-violet { background: rgba(168, 85, 247, .16); color: rgb(var(--violet)); }
.icon-flame { background: rgba(255, 122, 24, .16); color: rgb(255 168 92); }

/* ---------------- Steps ---------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgb(var(--card) / .6);
}
.step h3 { margin: 16px 0 10px; }
.step p { color: rgb(var(--muted)); font-size: .96rem; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgb(var(--purple)), rgb(var(--flame)));
  box-shadow: 0 8px 20px rgba(168, 85, 247, .3);
}

/* ---------------- Split (AI) ---------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split-copy h2 { margin-top: 14px; }
.split-copy .btn { margin-top: 28px; }

.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: rgb(var(--muted));
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(168, 85, 247, .22);
  border: 1px solid rgba(196, 181, 253, .5);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: .72em;
  width: 5px; height: 9px;
  border: solid rgb(var(--violet));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.feedback-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(150deg, rgba(168, 85, 247, .14), rgba(255, 122, 24, .06) 45%, transparent 70%),
    rgb(var(--card));
  box-shadow: var(--card-shadow);
}
.feedback-head { display: flex; align-items: center; gap: 12px; }
.feedback-title { color: rgb(var(--faint)); font-size: .9rem; }
.feedback-task {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid rgba(196, 181, 253, .5);
  color: rgb(var(--muted));
  font-size: .93rem;
}
.feedback-count {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: rgb(var(--ink));
  font-variant-numeric: tabular-nums;
}
.feedback-count b { font-size: 1.7rem; }
.feedback-count span { font-weight: 500; color: rgb(var(--faint)); font-size: .9rem; }

.notes { margin-top: 18px; display: grid; gap: 10px; font-size: .93rem; color: rgb(var(--muted)); }
.notes li { position: relative; padding-left: 26px; }
.notes li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: 12px; height: 12px;
  border-radius: 4px;
}
.notes .ok::before { background: rgba(168, 85, 247, .35); border: 1px solid rgba(196, 181, 253, .6); }
.notes .warn::before { background: rgba(255, 122, 24, .3); border: 1px solid rgba(255, 168, 92, .6); }
.notes em { color: rgb(var(--violet)); font-style: normal; font-weight: 600; }
.feedback-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgb(var(--input) / .8);
  border: 1px solid rgba(146, 116, 224, .14);
  color: rgb(var(--muted));
  font-size: .93rem;
}
.feedback-note em { color: rgb(var(--violet)); font-style: normal; font-weight: 600; }

/* ---------------- Pricing ---------------- */

.pricing { align-items: start; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card h3 { font-size: 1.05rem; color: rgb(var(--muted)); font-weight: 600; }
.price {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.1;
}
.price span { font-size: 1rem; font-weight: 500; color: rgb(var(--faint)); }
.price-coins {
  margin-top: 6px;
  font-weight: 700;
  color: rgb(var(--violet));
}
.price-list { margin: 22px 0 26px; display: grid; gap: 10px; font-size: .95rem; color: rgb(var(--muted)); }
.price-list li { padding-left: 20px; position: relative; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(196, 181, 253, .7);
}
.price-card .btn { margin-top: auto; }

.price-card.featured {
  border-color: rgba(196, 181, 253, .45);
  box-shadow: 0 18px 50px rgba(124, 58, 237, .28);
  background:
    linear-gradient(180deg, rgba(168, 85, 247, .16), transparent 40%),
    rgb(var(--card));
}
.badge-pop {
  position: absolute;
  top: -13px; right: 22px;
  background: linear-gradient(135deg, rgb(var(--purple)), rgb(var(--flame)));
  border: none;
  color: #fff;
}

.pay-note { margin-top: 26px; color: rgb(var(--faint)); font-size: .92rem; text-align: center; }

/* ---------------- Promo band ---------------- */

.promo {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 52px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  background:
    linear-gradient(150deg, rgba(168, 85, 247, .22), rgba(255, 122, 24, .1) 42%, transparent 72%),
    rgb(var(--card));
  box-shadow: var(--card-shadow);
}
.promo-copy h2 { margin-top: 14px; }

.promo-code {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 30px 18px;
  border-radius: var(--radius);
  border: 2px dashed rgba(196, 181, 253, .45);
  background: rgb(var(--input) / .6);
  text-align: center;
}
.promo-code span { font-size: .74rem; letter-spacing: .18em; color: rgb(var(--faint)); }
.promo-code b {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: .12em;
  color: rgb(var(--violet));
}

/* ---------------- FAQ ---------------- */

.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgb(var(--card) / .7);
  overflow: hidden;
}
.faq summary {
  padding: 20px 56px 20px 24px;
  position: relative;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 10px; height: 10px;
  margin-top: -6px;
  border: solid rgb(var(--violet));
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: rgb(var(--muted)); font-size: .97rem; }
.faq details[open] { border-color: rgba(196, 181, 253, .3); }

/* ---------------- Final CTA ---------------- */

.final-cta { position: relative; overflow: hidden; text-align: center; }
.final-cta .glow-violet { top: auto; bottom: -320px; left: 50%; transform: translateX(-50%); }
.final-cta img { margin: 0 auto 22px; }
.final-cta h2 { margin-bottom: 6px; }
.final-cta .lead-sm { margin-inline: auto; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--card-border);
  background: rgb(var(--surface-2));
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; color: rgb(var(--faint)); font-size: .93rem; max-width: 30ch; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-nav h4 {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgb(var(--faint));
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-nav a {
  display: block;
  padding: 5px 0;
  color: rgb(var(--muted));
  font-size: .95rem;
  transition: color .18s ease;
}
.footer-nav a:hover { color: rgb(var(--ink)); }

.footer-bottom {
  padding: 22px 0 30px;
  border-top: 1px solid rgba(146, 116, 224, .12);
  color: rgb(var(--faint));
  font-size: .88rem;
}

/* ---------------- Reveal ---------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .score-card { margin-top: 0; }
  .split { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .nav {
    position: fixed;
    inset: 70px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 26px;
    background: rgb(var(--surface) / .98);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid rgba(146, 116, 224, .12); }
  .nav-cta { margin-top: 14px; }
  .nav-toggle { display: block; }

  .grid-3, .steps, .strip { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; }
  .card, .step, .feedback-card { padding: 22px; }
  .faq summary { padding: 17px 48px 17px 18px; }
  .faq details p { padding: 0 18px 18px; }
}

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