/* ============================================================
   Geschaft — economics for the youth of Uzbekistan
   Minimalist blue & white theme. Shared across all pages.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --blue:       #2563eb;
  --blue-dark:  #1e40af;
  --blue-tint:  #eff6ff;
  --blue-tint2: #dbeafe;
  --ink:        #0f172a;
  --body:       #334155;
  --muted:      #64748b;
  --line:       #e2e8f0;
  --white:      #ffffff;
  --bg:         #f8fafc;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --shadow-sm:  0 1px 2px rgba(15,23,42,.05);
  --maxw:       1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue);
  background: var(--blue-tint); padding: 6px 12px; border-radius: 999px;
  margin-bottom: 18px;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .98rem;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-tint); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 8px;
  color: var(--body); font-weight: 500; font-size: .96rem;
}
.nav-links a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; background:
  radial-gradient(60% 60% at 85% 0%, var(--blue-tint) 0%, rgba(239,246,255,0) 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero .actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stats .num { font-size: 1.9rem; font-weight: 800; color: var(--ink); }
.hero-stats .lbl { font-size: .85rem; color: var(--muted); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.hero-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.mini-row:first-of-type { border-top: 0; }
.mini-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.mini-row .t { font-weight: 600; color: var(--ink); font-size: .95rem; }
.mini-row .s { font-size: .82rem; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.bg-tint { background: var(--bg); }

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-tint2); }
.card .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }
.card .link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .92rem; }

/* Topic / lesson card */
.topic { display: flex; flex-direction: column; }
.topic .tag { font-size: .78rem; font-weight: 600; color: var(--blue); background: var(--blue-tint); align-self: flex-start; padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.topic .meta { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: 14px; }
.topic .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* progress bar */
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 14px; }
.bar > i { display: block; height: 100%; background: var(--blue); border-radius: 999px; }

/* ---------- Article list (library) ---------- */
.article { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.article:hover { border-color: var(--blue-tint2); box-shadow: var(--shadow-sm); }
.article .thumb { border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--blue-tint) 0%, var(--blue-tint2) 100%); display: grid; place-items: center; font-size: 2rem; }
.article h3 { margin-bottom: 6px; font-size: 1.12rem; }
.article .meta { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.article p { font-size: .94rem; color: var(--muted); margin-bottom: 0; }

/* ---------- Opportunities ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--body);
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.job { display: grid; grid-template-columns: 54px 1fr auto; gap: 18px; align-items: center;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 14px; transition: border-color .15s, box-shadow .15s; }
.job:hover { border-color: var(--blue-tint2); box-shadow: var(--shadow-sm); }
.job .badge { width: 54px; height: 54px; border-radius: 12px; background: var(--blue-tint); display: grid; place-items: center; font-weight: 800; color: var(--blue); font-size: 1.1rem; }
.job h3 { margin: 0 0 4px; font-size: 1.08rem; }
.job .org { color: var(--muted); font-size: .9rem; }
.job .tags { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.job .pill { font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--body); border: 1px solid var(--line); }
.job .pill.type-internship { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.job .pill.type-job { background: var(--blue-tint); color: var(--blue-dark); border-color: var(--blue-tint2); }
.job .right { text-align: right; }
.job .loc { font-size: .82rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; border-radius: 20px; padding: 56px 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 52ch; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--blue-dark); }
.cta-band .btn-primary:hover { background: var(--blue-tint); color: var(--blue-dark); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 24px; background: radial-gradient(50% 80% at 100% 0%, var(--blue-tint) 0%, rgba(239,246,255,0) 70%); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue-tint2); border-color: var(--blue); }
.form-note { font-size: .84rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 56px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer h5 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-about { color: #94a3b8; font-size: .92rem; max-width: 34ch; margin-top: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; font-size: .85rem; color: #94a3b8; flex-wrap: wrap; gap: 10px; }

/* ---------- Utilities ---------- */
.notice { background: var(--blue-tint); border: 1px solid var(--blue-tint2); border-radius: var(--radius-sm); padding: 14px 18px; font-size: .9rem; color: var(--blue-dark); margin-bottom: 28px; }
.hidden { display: none !important; }

/* ---------- Coming soon ---------- */
.coming-soon { text-align: center; padding: 80px 0; }
.coming-soon .badge-soon { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-tint); padding: 8px 16px; border-radius: 999px; margin-bottom: 22px; }
.coming-soon .big-ico { font-size: 3.5rem; margin-bottom: 16px; }
.coming-soon h1 { margin-bottom: 14px; }
.coming-soon p { max-width: 52ch; margin: 0 auto 8px; color: var(--muted); }
.soon-list { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 34px 0; }
.soon-list .item { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--body); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* ---------- Auth / register ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 6px; }
.auth-card > p.sub { color: var(--muted); margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 8px; font-weight: 600; font-size: .95rem; color: var(--muted); cursor: pointer; font-family: inherit; }
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 600; font-size: .96rem; color: var(--ink); cursor: pointer; font-family: inherit; transition: .15s; }
.google-btn:hover { background: var(--bg); border-color: var(--muted); }
.google-btn svg { width: 20px; height: 20px; flex: none; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .82rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt { position: relative; }
.role-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.role-opt span { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; cursor: pointer; transition: .15s; }
.role-opt input:checked + span { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 20px; }
.account-box { max-width: 460px; margin: 0 auto; text-align: center; }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; margin: 0 auto 18px; }

/* nav account chip */
.nav-account { display: flex; align-items: center; gap: 8px; }
.nav-account .who { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.nav-account .who .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.nav-account .logout { font-size: .85rem; color: var(--muted); background: none; border: 0; cursor: pointer; font-family: inherit; padding: 4px; }
.nav-account .logout:hover { color: var(--blue); }

/* ---------- Lesson pages ---------- */
.lesson { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.lesson .crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.lesson .crumbs a { color: var(--muted); }
.lesson .crumbs a:hover { color: var(--blue); }
.lesson-tag { font-size: .78rem; font-weight: 700; color: var(--blue); background: var(--blue-tint); padding: 4px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.lesson h1 { margin: 16px 0 10px; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.lesson .lesson-meta { display: flex; gap: 18px; font-size: .86rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lesson h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.lesson h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.lesson p { font-size: 1.05rem; color: var(--body); }
.lesson ul, .lesson ol { padding-left: 22px; color: var(--body); font-size: 1.05rem; }
.lesson li { margin-bottom: 8px; }
.lesson strong { color: var(--ink); }
.key-term { background: var(--blue-tint); border-left: 3px solid var(--blue); padding: 4px 4px 4px 0; }

/* callout / example box */
.callout { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.callout .label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.uz { background: var(--blue-tint); border-color: var(--blue-tint2); }

/* figure + svg graph */
.figure { margin: 30px 0; text-align: center; }
.figure svg { width: 100%; max-width: 560px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.figure figcaption { font-size: .86rem; color: var(--muted); margin-top: 12px; }
.g-axis { stroke: #94a3b8; stroke-width: 1.5; }
.g-grid { stroke: var(--line); stroke-width: 1; }
.g-curve { fill: none; stroke-width: 3; stroke-linecap: round; }
.g-demand { stroke: #2563eb; }
.g-supply { stroke: #ef4444; }
.g-line { stroke: #2563eb; }
.g-fill { fill: var(--blue-tint); }
.g-label { font: 600 13px var(--font); fill: var(--ink); }
.g-axlabel { font: 500 12px var(--font); fill: var(--muted); }
.g-dot { fill: var(--ink); }
.g-dash { stroke: #94a3b8; stroke-width: 1.5; stroke-dasharray: 4 4; }
.g-bar { fill: var(--blue); }
.g-bar2 { fill: var(--blue-tint2); }

/* lesson nav (prev/next) */
.lesson-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.lesson-nav a { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: .15s; }
.lesson-nav a:hover { border-color: var(--blue); background: var(--blue-tint); }
.lesson-nav .dir { font-size: .8rem; color: var(--muted); }
.lesson-nav .ttl { font-weight: 600; color: var(--ink); font-size: .96rem; }
.lesson-nav .next { text-align: right; }
.lesson-nav a.disabled { opacity: .4; pointer-events: none; }

/* quiz */
.quiz { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 34px 0; box-shadow: var(--shadow-sm); }
.quiz h3 { margin-top: 0; }
.quiz .opt { display: block; width: 100%; text-align: left; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; cursor: pointer; font-family: inherit; font-size: .98rem; color: var(--body); transition: .15s; }
.quiz .opt:hover { border-color: var(--blue); }
.quiz .opt.correct { border-color: #10b981; background: #ecfdf5; color: #047857; font-weight: 600; }
.quiz .opt.wrong { border-color: #ef4444; background: #fef2f2; color: #b91c1c; }
.quiz .feedback { font-size: .92rem; font-weight: 600; margin-top: 6px; min-height: 1.2em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .18s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .article .thumb { height: 120px; }
  .job { grid-template-columns: 44px 1fr; }
  .job .right { grid-column: 2; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero-stats { gap: 22px; }
}

/* ============================================================
   Design polish layer (v2)
   ============================================================ */

/* Sharper base typography with Inter */
body { letter-spacing: -0.011em; }
h1, h2, h3, h4 { letter-spacing: -0.025em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }

/* Gradient accent on hero headline */
.hero h1 span {
  background: linear-gradient(100deg, var(--blue) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Animated soft glow behind the hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; top: -30%; right: -10%;
  width: 620px; height: 620px; z-index: 0;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, rgba(124,58,237,.10) 45%, rgba(255,255,255,0) 70%);
  filter: blur(8px);
  animation: floaty 12s ease-in-out infinite;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
@keyframes floaty {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-24px,26px) scale(1.08); }
}

/* Elevated, springier buttons */
.btn { transition: transform .14s cubic-bezier(.34,1.56,.64,1), background .15s ease, box-shadow .2s ease; }
.btn-primary { box-shadow: 0 6px 16px rgba(37,99,235,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,99,235,.36); }
.btn-ghost:hover { transform: translateY(-2px); }

/* Richer card depth + smoother lift */
.card { transition: transform .22s cubic-bezier(.34,1.4,.64,1), box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,23,42,.10); }
.card .ico { transition: transform .22s ease; }
.card:hover .ico { transform: scale(1.08) rotate(-3deg); }

/* Nav brand subtle pop */
.brand .logo { transition: transform .2s ease; }
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }

/* Stat numbers gradient */
.hero-stats .num {
  background: linear-gradient(180deg, var(--ink) 0%, var(--blue) 140%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Scroll-reveal (progressive enhancement — only active when JS adds .js to <body>) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero::before { animation: none; }
}

/* CTA band shine */
.cta-band { position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 20% 0%, rgba(255,255,255,.16), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   v3 — Dark "space" theme (site-wide) + cinematic hero
   ============================================================ */
:root {
  --blue: #3b82f6; --blue-dark: #2563eb;
  --blue-tint: rgba(59,130,246,.15); --blue-tint2: rgba(59,130,246,.34);
  --ink: #eaf0fb; --body: #b4c0d8; --muted: #8493af;
  --line: rgba(255,255,255,.10);
  --bg: #0a1024; --white: #070d1e;
}
body { background: #070c1c; color: var(--body); }

/* header */
.site-header { background: rgba(8,13,30,.72); border-bottom-color: var(--line); }
.brand, .brand:hover { color: #fff; }
.nav-links a { color: #c4cfe6; }
.nav-links a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-links a.active { color: #fff; }

/* glassy panels */
.card, .hero-card, .article, .job, .quiz, .auth-card, .google-btn {
  background: rgba(255,255,255,.035); border-color: var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card:hover { background: rgba(255,255,255,.06); border-color: var(--blue-tint2); box-shadow: 0 18px 46px rgba(0,0,0,.55); }
.bg-tint { background: rgba(255,255,255,.02); }

/* buttons + inputs */
.btn-ghost { background: rgba(255,255,255,.05); color: #dce6fb; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.10); border-color: var(--blue); color: #fff; }
.field input, .field textarea, .field select { background: rgba(255,255,255,.05); color: #eef2fb; border-color: var(--line); }
.field input::placeholder, .field textarea::placeholder { color: #6b7791; }

/* misc components */
.notice { color: #cfe0ff; }
.coming-soon .item { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--body); }
.job .pill { background: rgba(255,255,255,.05); color: var(--body); border-color: var(--line); }
.callout { background: rgba(255,255,255,.03); border-color: var(--line); }
.auth-tabs { background: rgba(255,255,255,.05); }
.auth-tabs button.active { background: rgba(255,255,255,.10); color: #fff; box-shadow: none; }
.role-opt span { border-color: var(--line); }
.nav-account .who { border-color: var(--line); color: #eef2fb; }
.quiz .opt { background: rgba(255,255,255,.03); color: var(--body); border-color: var(--line); }
.quiz .opt.correct { background: rgba(16,185,129,.15); color: #6ee7b7; }
.quiz .opt.wrong { background: rgba(239,68,68,.15); color: #fca5a5; }
.lesson-nav a:hover { background: var(--blue-tint); }

/* lesson charts on dark */
.figure svg { background: #0e1730; border-color: var(--line); }
.g-grid { stroke: rgba(255,255,255,.07); }
.g-axis { stroke: #5f6d88; }
.g-label { fill: #e6edfb; }
.g-axlabel { fill: #8f9db8; }
.g-dot { fill: #eaf0fb; }

/* footer stays deep (—ink is now light, so pin it) */
.site-footer { background: #05091a; }

@media (max-width: 720px) {
  .nav-links { background: #0b1330; border-bottom-color: var(--line); }
}

/* ---------- Cinematic space hero ---------- */
.hero-space {
  position: relative; overflow: hidden; text-align: center;
  min-height: 92vh; padding: 118px 20px 0;
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(130% 92% at 50% 130%, rgba(59,130,246,.45) 0%, rgba(37,99,235,0) 52%),
    radial-gradient(70% 50% at 82% -8%, rgba(99,102,241,.16), transparent 60%),
    linear-gradient(180deg, #05081a 0%, #070e22 50%, #0a1330 100%);
}
.stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 27% 62%, #cfe0ff, transparent),
    radial-gradient(1.2px 1.2px at 43% 28%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 58% 48%, #e6f0ff, transparent),
    radial-gradient(1.2px 1.2px at 68% 20%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 78% 66%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 88% 34%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 33% 82%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 6% 46%, #dbe8ff, transparent),
    radial-gradient(1.2px 1.2px at 51% 12%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 95% 58%, #fff, transparent),
    radial-gradient(1.1px 1.1px at 18% 38%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 63% 76%, #cfe0ff, transparent),
    radial-gradient(1.2px 1.2px at 72% 44%, #fff, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: .95; } }

.hero-space-inner { position: relative; z-index: 3; max-width: 780px; }
.hero-eyebrow { display: block; font-size: .82rem; letter-spacing: .34em; text-transform: uppercase; color: #8fb4f0; margin-bottom: 20px; font-weight: 600; }
.hero-title {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(3.4rem, 13vw, 8.5rem); line-height: .98; letter-spacing: .01em;
  color: #f4f8ff; margin: 0 0 22px; text-shadow: 0 0 60px rgba(80,140,255,.45);
}
.hero-sub { max-width: 48ch; margin: 0 auto 30px; color: #aab8d6; font-size: 1.06rem; }
.btn-pill { background: #fff; color: #0b1a3a; border-radius: 999px; padding: 15px 36px; font-weight: 600; box-shadow: 0 10px 34px rgba(120,170,255,.32); }
.btn-pill:hover { background: #eaf1ff; color: #0a1230; transform: translateY(-2px); }

/* side orbit labels */
.orbit-label { position: absolute; top: 44%; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: .76rem; letter-spacing: .22em; color: #8090b2; font-weight: 600; }
.orbit-label.left { left: 6%; } .orbit-label.right { right: 6%; }
.orb { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: 0 0 22px rgba(120,170,255,.5); }
.orb-a { background: radial-gradient(circle at 35% 30%, #cfe0ff, #6b7db0 70%, #2a3557); }
.orb-b { background: radial-gradient(circle at 35% 30%, #ffd9b0, #c9793f 65%, #6b2f13); }

/* realistic 3D globe */
.globe-wrap { position: relative; z-index: 2; margin-top: auto; margin-bottom: -20%; width: min(760px, 124vw); }
#earth { width: 100%; aspect-ratio: 1 / 1; }
#earth canvas { display: block; margin: 0 auto; }
.globe-fallback { width: 100%; aspect-ratio: 1/1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #7db3ff, #2f6fe0 45%, #12336f 78%, #0a1f4d); box-shadow: 0 0 90px rgba(80,140,255,.4); }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 5; width: 42px; height: 42px; display: grid; place-items: center; color: #9fb2d8; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); animation: cue 2s infinite; }
.scroll-cue:hover { color: #fff; border-color: var(--blue); }
@keyframes cue { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,7px); } }

/* floating economic motifs */
.econ-motifs { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: #4f79c8; }
.econ-motifs .m { position: absolute; width: 56px; height: 56px; opacity: .16; animation: floatm 9s ease-in-out infinite; }
.m1 { top: 20%; left: 12%; }
.m2 { top: 62%; left: 17%; animation-delay: -2s; }
.m3 { top: 28%; right: 12%; animation-delay: -4s; }
.m4 { top: 66%; right: 15%; animation-delay: -1s; }
.m5 { top: 15%; right: 27%; width: 48px; height: 48px; animation-delay: -3s; }
.m6 { top: 50%; left: 6%; width: 46px; height: 46px; animation-delay: -5s; }
@keyframes floatm { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(6deg); } }

@media (max-width: 720px) {
  .orbit-label { display: none; }
  .econ-motifs .m { opacity: .1; }
  .hero-space { min-height: 88vh; padding-top: 96px; }
  .uz-tag { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .stars, .scroll-cue, .econ-motifs .m, .uz-pulse { animation: none; }
}

/* hide decorative icon badges left empty after emoji removal */
.ico:empty, .mini-ico:empty, .big-ico:empty { display: none; }

/* ============================================================
   Bilingual (EN / UZ) visibility + language toggle
   ============================================================ */
.lang-uz { display: none; }
html[data-lang="uz"] .lang-uz { display: contents; }
html[data-lang="uz"] .lang-en { display: none; }

.lang-switch { display: flex; align-items: center; }
.lang-btn {
  font-family: inherit; font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  color: #dce6fb; background: rgba(255,255,255,.06); border: 1px solid var(--line);
  width: 40px; height: 34px; border-radius: 8px; cursor: pointer; transition: .15s;
}
.lang-btn:hover { border-color: var(--blue); background: var(--blue-tint); color: #fff; }

/* ============================================================
   End-of-topic Test (scored)
   ============================================================ */
.test {
  background: rgba(255,255,255,.035); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin: 40px 0 8px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.test > h2 { margin-top: 0; }
.test-intro { color: var(--muted); margin-bottom: 20px; }
.test-q { padding: 18px 0; border-top: 1px solid var(--line); }
.test-q:first-of-type { border-top: 0; }
.test-q .q { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.test-q label {
  display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  font-size: .98rem; color: var(--body); transition: .15s;
}
.test-q label:hover { border-color: var(--blue); background: rgba(255,255,255,.03); }
.test-q input { margin-top: 3px; accent-color: var(--blue); flex: none; }
.test-q.answered label { cursor: default; }
.test-q.answered label.correct { border-color: #10b981; background: rgba(16,185,129,.14); color: #6ee7b7; }
.test-q.answered label.chosen-wrong { border-color: #ef4444; background: rgba(239,68,68,.14); color: #fca5a5; }
.test-actions { margin-top: 22px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.test-result { font-weight: 700; font-size: 1.05rem; }
.test-scorebar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 16px; }
.test-scorebar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #22c55e); transition: width .6s ease; }
