:root {
  --bg: #080c17;
  --bg-2: #0d1322;
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .1);
  --text: #eef1f8;
  --muted: #9aa4ba;
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --pink: #f472b6;
  --good: #34d399;
  --bad: #fb7185;
  --shadow: 0 24px 70px -28px rgba(0, 0, 0, .75);
  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
:root[data-theme="light"] {
  --bg: #f5f7fc;
  --bg-2: #eef2fb;
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: #ffffff;
  --border: rgba(20, 30, 60, .09);
  --text: #111827;
  --muted: #5b6478;
  --shadow: 0 24px 60px -30px rgba(30, 40, 90, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: "Heebo", system-ui, sans-serif; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6;
}
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.hidden { display: none !important; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(circle at 30% 20%, #1a1447, var(--bg) 60%); transition: opacity .6s var(--ease), visibility .6s;
}
.intro.done { opacity: 0; visibility: hidden; }
.intro-logo {
  width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 20px 60px -10px var(--brand);
  animation: pop-in .9s var(--ease) both;
}
.intro-logo svg { width: 50px; height: 50px; fill: #fff; }
.intro-word {
  margin: 0; font-size: 34px; font-weight: 900; letter-spacing: -.02em; color: #fff;
  animation: rise .9s .2s var(--ease) both;
}
.intro-bar { width: 180px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: fill 1.4s .3s var(--ease) forwards; }
@keyframes pop-in { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes fill { to { width: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-orbs span { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(100px); opacity: .32; animation: float 20s ease-in-out infinite; }
.bg-orbs span:nth-child(1) { background: var(--brand); top: -180px; right: -140px; }
.bg-orbs span:nth-child(2) { background: var(--brand-2); bottom: -220px; left: -180px; animation-delay: -7s; }
.bg-orbs span:nth-child(3) { background: var(--pink); top: 45%; left: 35%; width: 420px; height: 420px; opacity: .14; animation-delay: -13s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -35px) scale(1.07); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 16px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; transform: scaleX(-1); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 16px 36px -14px var(--brand); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -14px var(--brand); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--brand); }
.btn-small { padding: 10px 18px; font-size: 14px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.chip {
  font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1px solid var(--border);
  background: var(--surface-strong); color: var(--text); transition: border-color .2s;
}
.chip:hover { border-color: var(--brand); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform .3s var(--ease);
}
.icon-btn:hover { transform: rotate(-14deg) scale(1.06); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--border); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; }
.logo {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 10px 24px -10px var(--brand);
}
.logo svg { width: 22px; height: 22px; fill: #fff; }
.links { display: flex; gap: 26px; font-weight: 500; color: var(--muted); }
.links a { position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; bottom: -6px; right: 0; width: 0; height: 2px; background: var(--brand-2); transition: width .3s var(--ease); }
.links a:hover { color: var(--text); }
.links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform .3s; }

/* ---------- Hero ---------- */
main { display: block; }
.hero {
  max-width: 1200px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) clamp(18px, 4vw, 48px) 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 var(--good); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1.08; font-weight: 900; letter-spacing: -.035em; margin: 22px 0 18px; }
.grad { background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--pink)); background-size: 200%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shift 6s linear infinite; }
@keyframes shift { to { background-position: 200% 0; } }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 18px; flex-wrap: wrap; margin: 28px 0 0; padding: 0; color: var(--muted); font-size: 14px; }
.trust li::before { content: "✓ "; color: var(--good); font-weight: 900; }

.hero-visual { position: relative; height: 420px; }
.mock {
  position: absolute; inset: 40px 40px 60px 0; border-radius: 24px; background: var(--surface-strong);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; animation: bob 7s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(.5deg); } }
.mock-top { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-body { padding: 22px; display: grid; gap: 14px; }
.mock-line { height: 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(124, 92, 255, .4), rgba(34, 211, 238, .3)); }
.w80 { width: 80%; } .w60 { width: 60%; } .w90 { width: 90%; }
.mock-chips { display: flex; gap: 8px; margin-top: 10px; }
.mock-chips b { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.float-card {
  position: absolute; padding: 14px 18px; border-radius: 18px; background: var(--surface-strong); border: 1px solid var(--border);
  box-shadow: var(--shadow); display: grid; gap: 6px; min-width: 150px; backdrop-filter: blur(14px);
}
.float-card small { color: var(--muted); font-size: 12px; }
.float-card strong { font-size: 26px; font-weight: 900; color: var(--good); }
.fc1 { top: 0; left: 0; animation: float-y 6s ease-in-out infinite; }
.fc2 { bottom: 0; right: 0; animation: float-y 7s ease-in-out infinite reverse; }
.fc3 { top: 130px; right: -10px; animation: float-y 8s ease-in-out infinite; padding: 0; background: none; border: 0; box-shadow: none; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.mini-bar { height: 6px; width: 140px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.mini-bar span { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); animation: grow 3s var(--ease) infinite alternate; }
@keyframes grow { from { width: 20%; } to { width: 80%; } }
.flip-demo { width: 170px; height: 110px; border-radius: 18px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--pink)); box-shadow: var(--shadow); animation: flip 5s ease-in-out infinite; }
@keyframes flip { 0%, 40% { transform: rotateY(0); } 60%, 100% { transform: rotateY(180deg); } }
.flip-demo span { transform: rotateY(0); }

/* ---------- Stats ---------- */
.stats {
  max-width: 1100px; margin: 20px auto 0; padding: 0 clamp(18px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stats > div {
  text-align: center; padding: 26px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
}
.stats strong { display: block; font-size: 40px; font-weight: 900; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(70px, 10vw, 120px) clamp(18px, 4vw, 48px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--brand-2); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 30px 60px -30px var(--brand); }
.f-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .3), rgba(34, 211, 238, .22));
}
.f-ico svg { width: 26px; height: 26px; fill: var(--text); }
.feature h3 { margin: 0 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li {
  padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative;
}
.num {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; font-weight: 900; font-size: 20px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 18px; box-shadow: 0 14px 30px -12px var(--brand);
}
.steps h3 { margin: 0 0 8px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Studio ---------- */
.studio .section-head { margin-bottom: 40px; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 19px; }
.step {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; font-weight: 900; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.dropzone {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 18px; text-align: center; cursor: pointer;
  border: 1.5px dashed rgba(124, 92, 255, .45); border-radius: 20px; background: linear-gradient(180deg, rgba(124, 92, 255, .07), transparent);
  transition: all .3s var(--ease);
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-2); background: rgba(34, 211, 238, .08); transform: translateY(-2px); }
.dropzone svg { width: 42px; height: 42px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: 16px; }
.dropzone span { color: var(--muted); font-size: 13px; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-chip { font-style: normal; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-top: 6px; background: var(--surface-strong); border: 1px solid var(--border); }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
textarea {
  width: 100%; resize: vertical; min-height: 150px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--surface-strong); color: var(--text); font: 16px/1.7 "Heebo", system-ui, sans-serif; transition: border-color .2s, box-shadow .2s;
}
textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
.meta { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-strong); color: var(--text); font-size: 18px; cursor: pointer; }
.stepper b { color: var(--text); }
.mode-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mode {
  text-align: start; display: grid; gap: 4px; padding: 16px; border-radius: 18px; cursor: pointer; font: inherit; color: var(--text);
  border: 1px solid var(--border); background: var(--surface-strong); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.mode:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, .55); box-shadow: 0 14px 30px -18px var(--brand); }
.mode.active { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }
.mode.featured { background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .12)); }
.mode strong { font-size: 16px; }
.mode small { color: var(--muted); font-size: 13px; }
.mode .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px; background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .2)); }
.mode .ico svg { width: 22px; height: 22px; fill: var(--text); }
.mode:disabled { opacity: .55; cursor: wait; transform: none; }
.hint { margin: 16px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

/* Output */
.output-panel { margin-top: 20px; min-height: 260px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 50px 0; color: var(--muted); }
.empty svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .6; }
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.result-head h3 { margin: 0; font-size: 22px; }
.actions { display: flex; gap: 8px; }
.prose { line-height: 1.9; font-size: 16px; }
.prose h1, .prose h2, .prose h3 { line-height: 1.3; margin: 1.2em 0 .5em; }
.prose h2 { font-size: 21px; }
.prose h3 { font-size: 18px; color: var(--brand-2); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin: .3em 0; }
.prose code { background: var(--surface-strong); padding: 2px 6px; border-radius: 6px; display: inline-block; direction: ltr; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 1.4em 0; }
.prose strong { color: var(--text); }
.loading { display: grid; gap: 12px; padding: 10px 0; }
.loading i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--surface), var(--surface-strong), var(--surface)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.loading i:nth-child(2) { width: 85%; } .loading i:nth-child(3) { width: 70%; } .loading i:nth-child(4) { width: 92%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Flashcards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.flip { position: relative; height: 170px; perspective: 1000px; cursor: pointer; outline: none; }
.flip-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.flip.open .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center;
  text-align: center; padding: 18px; border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 17px; line-height: 1.5;
}
.front { background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(34, 211, 238, .2)); font-weight: 700; }
.back { background: var(--surface-strong); transform: rotateY(180deg); }
.cards-hint { grid-column: 1 / -1; color: var(--muted); font-size: 13px; text-align: center; margin: 6px 0 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.faq details[open] { border-color: rgba(124, 92, 255, .5); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--brand-2); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.footer { margin-top: 110px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 36px clamp(18px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.feature.reveal.in, .steps li.reveal.in { transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 160%); z-index: 60; max-width: min(520px, 92vw);
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow);
  padding: 13px 20px; border-radius: 16px; font-size: 14px; transition: transform .45s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast.error { border-color: rgba(251, 113, 133, .6); }

/* ---------- Quiz popup ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(4, 7, 14, .65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 16px; animation: fade .3s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.quiz {
  position: relative; width: min(600px, 100%); max-height: 92vh; overflow: auto; background: var(--surface-strong); border: 1px solid var(--border);
  border-radius: 28px; padding: 30px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7); animation: pop .45s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.close {
  position: absolute; top: 14px; left: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
}
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; margin: 6px 0 22px; }
.progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .6s var(--ease); }
.q-count { color: var(--muted); font-size: 13px; margin: 0; }
.q-text { font-size: 21px; font-weight: 700; line-height: 1.5; margin: 8px 0 20px; }
.option {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; margin-bottom: 10px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; cursor: pointer; transition: all .25s var(--ease);
}
.option:hover:not(:disabled) { border-color: var(--brand); transform: translateX(-3px); }
.option .letter { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 700; background: var(--surface-strong); border: 1px solid var(--border); }
.option.right { border-color: var(--good); background: rgba(52, 211, 153, .14); }
.option.wrong { border-color: var(--bad); background: rgba(251, 113, 133, .14); }
.option:disabled { cursor: default; }
.feedback { min-height: 48px; margin: 10px 0; padding: 12px 14px; border-radius: 14px; font-size: 15px; line-height: 1.6; }
.feedback.good { background: rgba(52, 211, 153, .12); color: var(--good); }
.feedback.bad { background: rgba(251, 113, 133, .12); color: var(--bad); }
.next { width: 100%; padding: 14px; border-radius: 16px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.score-wrap { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 10px 0; }
.ring { width: 160px; height: 160px; }
.ring circle { fill: none; stroke-width: 12; }
.ring .track { stroke: var(--surface); }
.ring .fill { stroke: url(#grad); stroke-linecap: round; transition: stroke-dashoffset 1.3s var(--ease); }
.ring text { fill: var(--text); font-size: 30px; font-weight: 900; text-anchor: middle; dominant-baseline: central; }
.score-wrap h2 { margin: 6px 0 0; font-size: 24px; }
.score-wrap p { margin: 0; color: var(--muted); }
.restart { margin-top: 8px; padding: 12px 24px; border-radius: 14px; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { height: 380px; max-width: 520px; margin: 0 auto; width: 100%; }
  .feature-grid, .steps { grid-template-columns: 1fr 1fr; }
  .studio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .burger { display: block; }
  .nav.open .links {
    display: flex; flex-direction: column; position: absolute; top: 100%; right: 12px; left: 12px; padding: 18px;
    border-radius: 18px; background: var(--surface-strong); border: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .feature-grid, .steps, .stats, .mode-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .fc3 { display: none; }
  .float-card { min-width: 130px; }
  .mock { inset: 30px 0 60px 0; }
  .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
