:root {
  --bg: #ffffff;
  --ink: #111318;
  --muted: #6c7280;
  --line: #e8eaf0;
  --soft: #f7f8fb;
  --teal: #00cfc8;
  --blue: #316cff;
  --purple: #7c3aed;
  --pink: #e63aac;
  --gradient: linear-gradient(100deg, #00cfc8 0%, #316cff 36%, #7c3aed 68%, #e63aac 100%);
  --shadow: 0 16px 40px rgba(26, 33, 51, .10);
  --radius: 22px;
  --font-display: "Raleway", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; font-family: var(--font-body); }
a { color: inherit; }
h1, h2, h3,
.brand-copy strong, .brand-mark,
.eyebrow, .module-kicker, .question-number, .lesson-step,
.result-descriptor, .metric-label, .metric-value,
.shape-pill, .shape-x {
  font-family: var(--font-display);
}
h1, h2, h3 { font-weight: 800; }
.site-shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 0 18px; border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: white; font-weight: 900; font-size: 23px; background: var(--gradient);
  box-shadow: 0 8px 20px rgba(72, 79, 220, .18);
}
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 16px; }
.brand-copy small { color: var(--muted); margin-top: 5px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.ghost-btn, .link-btn, .icon-btn { border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.ghost-btn { padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; }
.ghost-btn:hover, .ghost-btn:focus-visible { background: var(--soft); color: var(--ink); }
.ghost-btn:focus-visible, .primary-btn:focus-visible, .secondary-btn:focus-visible, .answer-card:focus-visible, .link-btn:focus-visible, .icon-btn:focus-visible { outline: 3px solid rgba(49,108,255,.25); outline-offset: 3px; }
main { min-height: 620px; }
.screen { animation: rise .36s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; } }

.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 54px;
  padding: 72px 0 62px;
}
.eyebrow { font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
h1 { margin: 14px 0 20px; font-size: clamp(48px, 6.2vw, 84px); line-height: .96; letter-spacing: -.055em; max-width: 760px; }
h2 { margin: 8px 0 14px; font-size: clamp(31px, 4vw, 52px); line-height: 1.02; letter-spacing: -.04em; }
h3 { margin: 0 0 12px; font-size: 20px; }
.lead { margin: 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.45; color: #3d4350; max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-btn, .secondary-btn {
  min-height: 50px; border-radius: 14px; padding: 0 20px; font-weight: 800; border: 0; cursor: pointer;
}
.primary-btn { color: white; background: var(--gradient); box-shadow: 0 10px 26px rgba(84, 57, 220, .18); }
.primary-btn:hover { transform: translateY(-1px); }
.secondary-btn { background: white; color: var(--ink); border: 1px solid var(--line); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 700; }
.meta-row span::before { content: "•"; margin-right: 8px; color: var(--teal); }
.hero-visual {
  position: relative; min-height: 430px; display: grid; place-items: center;
}
.shape-orbit { position: relative; width: min(430px, 100%); aspect-ratio: 1; }
.shape-orbit::before, .shape-orbit::after {
  content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 1px solid #e8e9f1;
}
.shape-orbit::after { inset: 19%; border-style: dashed; }
.shape-x {
  position: absolute; inset: 27%; display: grid; place-items: center; border-radius: 34px;
  background: var(--gradient); color: white; font-size: 118px; font-weight: 900; line-height: 1;
  box-shadow: 0 22px 60px rgba(86, 64, 220, .22); transform: rotate(-2deg);
}
.shape-pill {
  position: absolute; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 24px;
  background: white; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 30px; font-weight: 900;
}
.pill-i { left: 2%; top: 42%; color: var(--teal); }
.pill-t { left: 20%; top: 5%; color: var(--purple); }
.pill-v { right: 18%; top: 6%; color: var(--blue); }
.pill-m { right: 1%; top: 46%; color: var(--pink); }
.hero-note { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.5; max-width: 640px; }

.quiz-wrap { max-width: 860px; margin: 0 auto; padding: 42px 0 58px; }
.quiz-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 14px; }
.module-kicker { color: var(--purple); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.progress-copy { color: var(--muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.progress-track { height: 8px; background: #eceef4; border-radius: 99px; overflow: hidden; margin-bottom: 42px; }
.progress-fill { height: 100%; width: 0; background: var(--gradient); border-radius: inherit; transition: width .25s ease; }
.question-number { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.question-title { margin: 10px 0 24px; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.answer-list { display: grid; gap: 12px; }
.answer-card {
  width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 18px 20px;
  display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; cursor: pointer; color: var(--ink);
  box-shadow: 0 1px 0 rgba(17,19,24,.02); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.answer-card:hover { border-color: #c9ccda; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(32, 39, 58, .07); }
.answer-card.selected { border-color: transparent; background: linear-gradient(#fff,#fff) padding-box, var(--gradient) border-box; border: 2px solid transparent; padding: 17px 19px; }
.answer-key { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); font-size: 12px; font-weight: 900; color: var(--muted); }
.answer-card.selected .answer-key { background: var(--gradient); color: white; }
.answer-text { font-size: 17px; line-height: 1.42; font-weight: 600; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; min-height: 52px; }
.back-btn { border: 0; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; padding: 10px 0; }
.keyboard-hint { color: #a1a6b1; font-size: 12px; }

.lesson { max-width: 900px; margin: 0 auto; padding: 64px 0 70px; }
.lesson-card {
  border-radius: 30px; padding: clamp(28px, 5vw, 54px); background: #101218; color: white; position: relative; overflow: hidden;
}
.lesson-card::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; right: -160px; top: -160px; background: var(--gradient); filter: blur(16px); opacity: .20; }
.lesson-step { color: #72f1ea; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.lesson-card h2 { max-width: 700px; margin-top: 12px; }
.lesson-card p { color: #d9dce5; max-width: 720px; font-size: 18px; line-height: 1.6; }
.stat-callout { margin: 28px 0; padding: 20px 22px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; display: grid; gap: 5px; max-width: 720px; background: rgba(255,255,255,.04); }
.stat-callout strong { font-size: clamp(24px, 4vw, 36px); line-height: 1.05; }
.stat-callout span { color: #c8ccd7; line-height: 1.45; }
.stat-callout a { color: #8ff6ef; font-size: 12px; font-weight: 800; margin-top: 5px; width: fit-content; }
.lesson-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.lesson .primary-btn { min-width: 170px; }

.result-wrap { padding: 52px 0 70px; }
.result-hero { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.badge-panel { display: grid; place-items: center; }
.badge-image { width: min(460px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 60px rgba(28, 34, 54, .16); }
.result-copy .eyebrow { margin-bottom: 10px; }
.result-copy h1 { font-size: clamp(46px, 6vw, 74px); margin: 0 0 12px; }
.result-descriptor { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--purple); }
.result-summary { font-size: 19px; line-height: 1.58; color: #444b58; max-width: 650px; margin: 20px 0 24px; }
.score-chip { display: inline-flex; align-items: center; gap: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font-weight: 800; }
.score-chip strong { font-size: 22px; background: var(--gradient); color: transparent; -webkit-background-clip: text; background-clip: text; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.section { margin-top: 58px; }
.section-head { max-width: 780px; margin-bottom: 24px; }
.section-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 0; }
.metric-label { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-height: 30px; }
.metric-value { font-size: 28px; font-weight: 900; margin: 8px 0 10px; }
.metric-track { height: 7px; background: #eef0f4; border-radius: 99px; overflow: hidden; }
.metric-fill { height: 100%; background: var(--gradient); border-radius: inherit; }
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.insight-card { border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.insight-card strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); margin-bottom: 10px; }
.insight-card p { margin: 0; font-size: 18px; line-height: 1.5; }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: move; }
.move-card { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: white; position: relative; }
.move-card::before { counter-increment: move; content: counter(move); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--gradient); color: white; font-weight: 900; margin-bottom: 28px; }
.move-card h3 { font-size: 19px; }
.move-card p { margin: 0; color: #545b68; line-height: 1.55; }
.challenge { margin-top: 16px; border-radius: 24px; padding: 28px; background: #101218; color: white; }
.challenge .eyebrow { color: #7ff3ec; }
.challenge p { margin: 10px 0 0; font-size: 20px; line-height: 1.5; max-width: 800px; }
.share-box { border: 1px solid var(--line); border-radius: 26px; padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.share-copy p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; max-width: 690px; }
.share-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.small-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.sparkle-star {
  position: absolute;
  z-index: 12;
  left: var(--left);
  top: var(--top);
  width: var(--size);
  height: var(--size);
  pointer-events: none;
  opacity: 0;
  background: var(--spark-color);
  clip-path: polygon(50% 0%, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0% 50%, 39% 38%);
  filter: drop-shadow(0 0 6px rgba(83, 72, 220, .35));
  animation: sparkle-pop .72s cubic-bezier(.2,.82,.25,1) var(--delay) forwards;
}
@keyframes sparkle-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.15) rotate(0deg); }
  34% { opacity: 1; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.15) rotate(18deg); }
  72% { opacity: .95; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(.8) rotate(36deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(.15) rotate(54deg); }
}
.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
.confetti-piece {
  position: absolute;
  left: var(--left);
  top: -28px;
  width: var(--w);
  height: var(--h);
  opacity: 0;
  background: var(--confetti-color);
  border-radius: var(--rounding);
  animation: confetti-fall var(--duration) cubic-bezier(.16,.72,.32,1) var(--delay) forwards;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translate3d(0,-24px,0) rotate(0deg); }
  8% { opacity: 1; }
  100% { opacity: .96; transform: translate3d(var(--drift), var(--fall), 0) rotate(var(--spin)); }
}
.footer { border-top: 1px solid var(--line); padding: 24px 0 36px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.link-btn { text-decoration: underline; color: var(--muted); }
.method-dialog { border: 0; padding: 0; background: transparent; width: min(820px, calc(100% - 28px)); }
.method-dialog::backdrop { background: rgba(12,14,20,.48); backdrop-filter: blur(6px); }
.dialog-card { background: white; border-radius: 26px; padding: 28px; box-shadow: var(--shadow); max-height: min(82vh, 780px); overflow: auto; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.dialog-head h2 { font-size: 34px; }
.icon-btn { font-size: 28px; width: 42px; height: 42px; border-radius: 12px; }
.icon-btn:hover { background: var(--soft); }
.dialog-card > p { color: #4f5663; line-height: 1.55; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 22px 0 28px; }
.method-grid div { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.method-grid strong { display: block; margin-bottom: 6px; }
.method-grid span { color: var(--muted); font-size: 13px; line-height: 1.4; }
.source-list { display: grid; gap: 10px; padding-left: 20px; color: #4f5663; line-height: 1.5; }
.source-list a { font-weight: 800; color: #2e56c5; }
.dialog-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #111318; color: white; padding: 12px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 100; font-weight: 700; font-size: 13px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .hero, .result-hero { grid-template-columns: 1fr; }
  .hero { gap: 20px; padding-top: 48px; }
  .hero-visual { min-height: 330px; }
  .shape-orbit { width: min(360px, 88vw); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .share-box { grid-template-columns: 1fr; }
  .share-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .site-shell { width: min(100% - 24px, 1180px); }
  .topbar { padding-top: 16px; }
  .brand-copy small { display: none; }
  .ghost-btn { font-size: 12px; }
  .hero { padding: 42px 0 44px; }
  h1 { font-size: 50px; }
  .shape-pill { width: 60px; height: 60px; border-radius: 18px; font-size: 24px; }
  .shape-x { font-size: 86px; }
  .quiz-wrap { padding-top: 28px; }
  .quiz-top { align-items: flex-start; }
  .progress-copy { font-size: 11px; }
  .progress-track { margin-bottom: 30px; }
  .answer-card { grid-template-columns: 34px 1fr; padding: 16px; }
  .answer-card.selected { padding: 15px; }
  .answer-text { font-size: 16px; }
  .keyboard-hint { display: none; }
  .lesson { padding: 36px 0 48px; }
  .lesson-card { border-radius: 22px; }
  .metrics { grid-template-columns: 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
  .result-wrap { padding-top: 34px; }
  .result-copy h1 { font-size: clamp(40px, 12vw, 54px); line-height: 1; }
  .result-summary { font-size: 17px; }
  .badge-image { border-radius: 22px; }
  .hero-visual { min-height: 310px; }
  .shape-orbit { width: min(330px, 90vw); }
  .share-actions .primary-btn, .share-actions .secondary-btn { width: 100%; }
}
