/* ===========================================================
   All-In-One — Landing
   Brand: amber/gold (#eab308), radius 10px, system font stack
   =========================================================== */

:root {
  --primary: #eab308;
  --primary-hover: #ca9704;
  --primary-ink: #111111;

  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --border: #e5e7eb;
  --text: #111827;
  --text-muted: #6b7280;
  --shadow-color: 220 20% 20%;

  --radius: 10px;
  --radius-lg: 18px;
  --container: 1180px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #141414;
  --bg-alt: #18181b;
  --surface: #1f1f23;
  --surface-2: #26262b;
  --border: #303035;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --primary-hover: #f2c40f;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141414;
    --bg-alt: #18181b;
    --surface: #1f1f23;
    --surface-2: #26262b;
    --border: #303035;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --primary-hover: #f2c40f;
    color-scheme: dark;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: #111111; color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }

/* ---------- i18n toggle ---------- */
:root[data-lang="en"] [data-lang="uz"] { display: none !important; }
:root[data-lang="uz"] [data-lang="en"] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px hsl(var(--shadow-color) / 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }

.main-nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.main-nav a { font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color .15s ease; }
.main-nav a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 38px; height: 38px; border-radius: 999px; }
.hamburger:hover { background: var(--surface-2); }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text); margin-inline: auto; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav-actions { display: flex; gap: 10px; margin-top: 14px; }
.mobile-nav-actions .btn { flex: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-hover);
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}
.hero h1 .accent, h2 .accent { color: var(--primary-hover); }
.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 32px; margin-top: 44px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Hero visual — pure CSS mock dashboard */
.hero-visual { position: relative; }
.mock-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px hsl(var(--shadow-color) / 0.25);
  overflow: hidden;
}
.mock-titlebar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mock-titlebar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-titlebar span:nth-child(1) { background: #f97066; }
.mock-titlebar span:nth-child(2) { background: #fdb022; }
.mock-titlebar span:nth-child(3) { background: #32d583; }
.mock-body { padding: 22px; }
.mock-row-title { height: 16px; width: 55%; border-radius: 6px; background: var(--surface-2); margin-bottom: 18px; }
.mock-progress { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-bottom: 22px; }
.mock-progress-fill { height: 100%; width: 68%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-hover)); animation: growbar 1.8s ease-out .3s both; }
@keyframes growbar { from { width: 0; } }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.mock-card { aspect-ratio: 1.1; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-xp { display: flex; gap: 10px; }
.mock-xp-badge { font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary-hover); }
.mock-xp-badge-alt { background: color-mix(in srgb, #ef4444 16%, transparent); color: #ef4444; }

.floating-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 24px -8px hsl(var(--shadow-color) / 0.2);
  animation: floaty 4.5s ease-in-out infinite;
}
.chip-1 { top: -18px; right: 4%; animation-delay: .2s; }
.chip-2 { bottom: 6%; left: -30px; animation-delay: 1s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: .01em;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.section-sub { margin-top: 14px; color: var(--text-muted); font-size: 16px; line-height: 1.6; }

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

/* Category cards */
.cat-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px hsl(var(--shadow-color) / 0.18); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.cat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c, var(--primary));
  background: color-mix(in srgb, var(--c, var(--primary)) 16%, transparent);
  margin-bottom: 18px;
}
.cat-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.cat-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* Feature cards */
.feat-card { padding: 26px; }
.feat-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary-hover);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 22px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--primary); color: var(--primary-ink);
  font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; line-height: 1.5; }

/* Teacher banner */
.teacher-banner { padding: 64px 0; }
.teacher-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--primary), #f7d354 130%);
  color: #111111;
  padding: 44px 40px;
  border-radius: 24px;
}
.teacher-inner h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; margin-top: 6px; }
.teacher-inner p { margin-top: 10px; max-width: 46ch; opacity: .85; }
.teacher-inner .eyebrow { background: rgba(17,17,17,.12); color: #111; }

/* Quote / testimonial cards */
.quote-card {
  margin: 0;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-card p { font-size: 15px; line-height: 1.6; }
.quote-card footer { display: flex; align-items: center; gap: 12px; }
.quote-card footer div { display: flex; flex-direction: column; font-size: 13px; }
.quote-card footer span { color: var(--text-muted); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg, var(--primary));
  color: #fff; font-weight: 700; flex-shrink: 0;
}

/* Pricing */
.pricing-grid { max-width: 760px; margin-inline: auto; }
.price-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-size: 19px; font-weight: 700; }
.price { margin: 14px 0 20px; font-size: 34px; font-weight: 800; }
.price small { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.price-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.price-list li { font-size: 14.5px; padding-left: 26px; position: relative; color: var(--text); }
.price-list li::before {
  content: "";
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 25%, transparent);
}
.price-list li::after {
  content: "";
  position: absolute; left: 4px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--primary-hover);
  border-bottom: 2px solid var(--primary-hover);
  transform: rotate(-45deg);
}
.price-card-featured { border-color: var(--primary); box-shadow: 0 20px 45px -18px hsl(var(--shadow-color) / 0.3); }
.price-badge {
  position: absolute; top: -13px; left: 32px;
  background: var(--primary); color: var(--primary-ink);
  font-size: 12px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
}

/* FAQ */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; text-align: left; font-weight: 600; font-size: 15px;
}
.faq-icon { display: inline-flex; color: var(--primary-hover); transition: transform .2s ease; flex-shrink: 0; margin-left: 12px; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer p { padding: 0 20px 18px; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* Final CTA */
.final-cta { padding: 90px 0 110px; text-align: center; }
.final-cta-inner h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
.final-cta-inner p { margin-top: 14px; color: var(--text-muted); font-size: 16px; }
.final-cta-inner .btn { margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 14px; max-width: 26ch; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--text); }
.footer-col a:hover { color: var(--primary-hover); }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 22px; font-size: 13px; color: var(--text-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 480px; margin-inline: auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-login, .header-signup { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .section { padding: 64px 0; }
  .teacher-inner { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .teacher-inner .btn { width: 100%; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-inner { justify-content: flex-start; gap: 22px; }
  .hero-stats { gap: 24px; }
  .chip-1, .chip-2 { display: none; }
}
