/* ============================================================
   AI Research Survey — public stylesheet
   Direction: "Luminous academic intelligence"
   Aurora gradient (cyan→indigo→violet→magenta) over midnight,
   Morabba display + Vazirmatn body, glassmorphism, RTL.
   ============================================================ */

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

:root {
  --ink:      #0B1020;
  --ink-2:    #121A33;
  --ink-3:    #1B2547;
  --paper:    #EEF1FB;
  --surface:  #FFFFFF;
  --text:     #1A2036;
  --muted:    #626C88;
  --line:     #E4E8F4;

  --cyan:    #22D3EE;
  --indigo:  #6366F1;
  --violet:  #8B5CF6;
  --magenta: #EC4899;
  --gold:    #FBBF24;

  --aurora:  linear-gradient(115deg, #22D3EE 0%, #6366F1 36%, #8B5CF6 64%, #EC4899 100%);
  --aurora-soft: linear-gradient(115deg, rgba(34,211,238,.14), rgba(139,92,246,.14) 60%, rgba(236,72,153,.14));

  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow:    0 18px 50px -20px rgba(20, 26, 60, .28);
  --shadow-lg: 0 40px 90px -30px rgba(20, 26, 60, .45);
  --glow:      0 0 0 1px rgba(255,255,255,.06), 0 20px 60px -18px rgba(99,102,241,.55);

  --font-body:    'Vazirmatn', 'Tahoma', system-ui, -apple-system, sans-serif;
  --font-display: 'Morabba', 'Vazirmatn', 'Tahoma', serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* subtle aurora ambience behind light pages */
body.has-ambient::before {
  content: "";
  position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: -1;
  background:
    radial-gradient(40% 60% at 80% 0%, rgba(139,92,246,.18), transparent 70%),
    radial-gradient(45% 55% at 10% 10%, rgba(34,211,238,.16), transparent 70%),
    radial-gradient(40% 50% at 50% 30%, rgba(236,72,153,.10), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(139,92,246,.24); }

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------------------- Buttons ---------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.9rem; border: 0; border-radius: 100px;
  font-weight: 700; font-size: 1.02rem; line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .3s;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-grad {
  color: #fff; background: var(--aurora); background-size: 180% 180%;
  box-shadow: 0 16px 40px -14px rgba(99,102,241,.7);
  animation: auroraShift 8s ease infinite;
}
.btn-grad:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -14px rgba(139,92,246,.75); }
.btn-lg { padding: 1.15rem 2.6rem; font-size: 1.15rem; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-light { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--line); }
.btn-light:hover { transform: translateY(-2px); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.grad-text {
  background: var(--aurora); background-size: 160% 160%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: auroraShift 9s ease infinite;
}

/* ==========================================================
   LOADING SCREEN
   ========================================================== */
#loader {
  position: fixed; inset: 0; z-index: 999;
  background: radial-gradient(120% 120% at 50% 0%, #16204a 0%, var(--ink) 55%);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
#loader.hide { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; position: relative; }
.loader-orbits { width: 150px; height: 150px; margin: 0 auto 2rem; position: relative; }
.loader-orbits .core {
  position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--aurora); box-shadow: 0 0 40px 6px rgba(139,92,246,.8);
  animation: pulseCore 1.6s ease-in-out infinite;
}
.loader-orbits .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid transparent;
}
.loader-orbits .ring::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; top: -5px; left: calc(50% - 5px); box-shadow: 0 0 14px 2px var(--cyan);
}
.loader-orbits .r1 { animation: spin 2.4s linear infinite; }
.loader-orbits .r2 { inset: 22px; animation: spin 3.4s linear infinite reverse; }
.loader-orbits .r2::after { background: var(--magenta); box-shadow: 0 0 14px 2px var(--magenta); }
.loader-orbits .r3 { inset: 44px; animation: spin 4.6s linear infinite; }
.loader-orbits .r3::after { background: var(--gold); box-shadow: 0 0 14px 2px var(--gold); }
.loader-orbits .r1 { border-color: rgba(34,211,238,.22); }
.loader-orbits .r2 { border-color: rgba(236,72,153,.22); }
.loader-orbits .r3 { border-color: rgba(251,191,36,.22); }
.loader-title { font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: .5px; }
.loader-sub { color: rgba(255,255,255,.55); margin-top: .5rem; font-size: .95rem; }
.loader-bar { width: 220px; height: 4px; border-radius: 4px; margin: 1.6rem auto 0; background: rgba(255,255,255,.12); overflow: hidden; }
.loader-bar > i { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--aurora); animation: loadSlide 1.3s var(--ease) infinite; }

/* ==========================================================
   LANDING HERO (immersive dark)
   ========================================================== */
.hero {
  position: relative; min-height: 100svh; color: #fff; overflow: hidden;
  background:
    radial-gradient(130% 90% at 50% -10%, #17224d 0%, transparent 60%),
    linear-gradient(180deg, #0d1533 0%, #0B1020 60%, #0B1020 100%);
  display: flex; flex-direction: column;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero-blobs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-blobs span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: float 14s ease-in-out infinite;
}
.hero-blobs .b1 { width: 460px; height: 460px; background: rgba(99,102,241,.55); top: -120px; inset-inline-end: -80px; }
.hero-blobs .b2 { width: 380px; height: 380px; background: rgba(34,211,238,.45); bottom: -120px; inset-inline-start: -60px; animation-delay: -4s; }
.hero-blobs .b3 { width: 320px; height: 320px; background: rgba(236,72,153,.4); top: 40%; inset-inline-start: 40%; animation-delay: -8s; }

.topbar {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: .3px; }
.brand .logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--aurora); box-shadow: 0 10px 30px -8px rgba(139,92,246,.8); color: #fff; font-size: 1.2rem;
}
.brand small { display: block; font-weight: 500; color: rgba(255,255,255,.55); font-size: .78rem; }
.topbar .btn-ghost { padding: .6rem 1.2rem; font-size: .9rem; }

.hero-center {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.2rem 0 3.5rem;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.1rem; border-radius: 100px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  font-size: .9rem; color: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  margin-bottom: 1.5rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px 2px var(--cyan); animation: pulseCore 1.8s infinite; }
.hero h1, .hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 3.7vw, 3rem); line-height: 1.34; max-width: 21ch;
  letter-spacing: -.3px; margin-bottom: 1rem; color: #fff;
  text-shadow: 0 6px 44px rgba(139,92,246,.4);
}
.hero-title { position: relative; }
.hero-title:not(.grad-text)::after {
  content: ""; display: block; width: 120px; height: 4px; margin: 1.1rem auto 0; border-radius: 4px;
  background: var(--aurora); background-size: 200% 100%;
  box-shadow: 0 0 26px 2px rgba(139,92,246,.7); animation: auroraShift 5s ease infinite;
}
.hero .lead {
  max-width: 56ch; color: rgba(255,255,255,.72);
  font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.85; margin-bottom: 1.8rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-meta {
  display: flex; gap: 1.6rem; flex-wrap: wrap; justify-content: center; margin-top: 2.8rem;
  color: rgba(255,255,255,.6); font-size: .95rem;
}
.hero-meta .m { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta .m i { color: var(--cyan); font-style: normal; }
.scroll-hint {
  position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .82rem; display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.scroll-hint .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.4); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 3px; background: #fff; animation: mouseDot 1.6s infinite; }

/* ---- mouse spotlight ---- */
.spotlight {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(340px 340px at var(--mx, 50%) var(--my, 28%), rgba(139,92,246,.22), transparent 72%);
}
/* ---- floating AI words ---- */
.hero-words { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-words span {
  position: absolute; font-family: var(--font-display); font-weight: 800; white-space: nowrap;
  font-size: clamp(1.1rem, 2.2vw, 2.1rem); color: rgba(255,255,255,.05);
  animation: floatWord 9s ease-in-out infinite;
}
.hero-words span:nth-child(2n) { animation-duration: 11s; animation-delay: -3s; }
.hero-words span:nth-child(3n) { animation-duration: 13s; animation-delay: -6s; }

/* ---- typewriter line ---- */
.type-line { min-height: 2em; margin-bottom: 1.1rem; font-size: clamp(1rem, 1.5vw, 1.22rem); font-weight: 600; }
.type-static { color: rgba(255,255,255,.5); }
.type-rot { background: var(--aurora); background-size: 180% 180%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; animation: auroraShift 8s ease infinite; }
.caret { color: var(--cyan); font-weight: 400; animation: blink 1.05s steps(1) infinite; }

/* ---- hero stat pills ---- */
.hero-stats { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: 1.9rem; }
.hstat {
  display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 118px;
  padding: 1rem 1.4rem; border-radius: var(--r); background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.hstat:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.hstat b {
  font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums;
  background: var(--aurora); background-size: 160% 160%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: auroraShift 7s ease infinite;
}
.hstat span { color: rgba(255,255,255,.6); font-size: .85rem; }

/* ---- glowing CTA ---- */
.btn-glow { position: relative; z-index: 0; }
.btn-glow::after {
  content: ""; position: absolute; inset: -3px; border-radius: 100px; z-index: -1;
  background: var(--aurora); background-size: 200% 200%; filter: blur(15px);
  animation: auroraShift 6s ease infinite, glowPulse 2.6s ease-in-out infinite;
}

/* ---- theme marquee ---- */
.theme-marquee { background: var(--ink); overflow: hidden; border-block: 1px solid rgba(255,255,255,.06); padding: 1.05rem 0; }
.tm-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 28s linear infinite; }
.tm-track span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: rgba(255,255,255,.26); white-space: nowrap; }

/* ---- gradient-border tilt cards ---- */
.study-card.tilt { transform-style: preserve-3d; }
.study-card.tilt::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); padding: 1.5px;
  background: var(--aurora); background-size: 200% 200%; opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; animation: auroraShift 6s ease infinite;
}
.study-card.tilt:hover::before { opacity: 1; }
.study-card .ico, .study-card h3, .study-card p { position: relative; z-index: 1; }

@keyframes floatWord { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes glowPulse { 0%, 100% { opacity: .4; } 50% { opacity: .8; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* landing "what we study" strip */
.study {
  background: var(--paper); padding: 4.5rem 0 5rem; position: relative;
}
.study h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); text-align: center; margin-bottom: .6rem; }
.study .sub { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 3rem; }
.study-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.study-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem;
  box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s;
}
.study-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.study-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: #fff; margin-bottom: 1.1rem; background: var(--aurora); }
.study-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.study-card p { color: var(--muted); font-size: .96rem; }
.study-card:nth-child(2) .ico { background: linear-gradient(135deg,#22D3EE,#6366F1); }
.study-card:nth-child(3) .ico { background: linear-gradient(135deg,#8B5CF6,#EC4899); }
.study-card:nth-child(4) .ico { background: linear-gradient(135deg,#EC4899,#FBBF24); }

.site-foot { background: var(--ink); color: rgba(255,255,255,.55); text-align: center; padding: 2.4rem 0; font-size: .9rem; }
.site-foot a { color: rgba(255,255,255,.8); }

/* ==========================================================
   SURVEY WIZARD
   ========================================================== */
.survey-body { background: var(--paper); min-height: 100vh; }
.progress-top {
  position: sticky; top: 0; z-index: 40; background: rgba(238,241,251,.82);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.progress-top .inner { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; }
.progress-top .brand { color: var(--text); font-size: .95rem; }
.progress-top .brand small { color: var(--muted); }
.progress-track { flex: 1; height: 8px; border-radius: 100px; background: #dfe4f3; overflow: hidden; }
/* fill grows via transform (scaleX) rather than width for smooth GPU compositing */
.progress-fill {
  height: 100%; width: 100%; border-radius: 100px;
  background: var(--aurora); background-size: 200% 100%;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .6s var(--ease); animation: auroraShift 6s ease infinite;
}
.progress-count { font-size: .9rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.survey-main { padding: 2.5rem 0 4rem; }
.survey-shell { width: min(760px, 94vw); margin-inline: auto; }

.form-hat {
  background: var(--ink); color: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 2.4rem 2.2rem;
  position: relative; overflow: hidden;
}
.form-hat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 100% 0, rgba(139,92,246,.5), transparent 60%), radial-gradient(70% 120% at 0 0, rgba(34,211,238,.35), transparent 60%); opacity: .9; }
.form-hat > * { position: relative; }
.form-hat .kicker { font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: .8rem; display: inline-flex; gap: .5rem; align-items: center; }
.form-hat h1 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.5; margin-bottom: .8rem; }
.form-hat p { color: rgba(255,255,255,.75); font-size: 1rem; }
.preview-flag { display: inline-block; margin-top: 1rem; padding: .4rem 1rem; border-radius: 100px; background: rgba(251,191,36,.16); color: var(--gold); border: 1px solid rgba(251,191,36,.35); font-size: .82rem; }

.wizard { background: transparent; }
.page-panel { display: none; animation: fadeUp .6s var(--ease); }
.page-panel.active { display: block; }

.page-head {
  background: var(--surface); border-inline: 1px solid var(--line); padding: 1.8rem 2.2rem 1.2rem;
}
.page-head .pno { font-size: .85rem; color: var(--violet); font-weight: 700; margin-bottom: .3rem; }
.page-head h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: .35rem; }
.page-head p { color: var(--muted); font-size: .96rem; }

.q-list { background: var(--surface); border-inline: 1px solid var(--line); }
.q-card {
  padding: 1.7rem 2.2rem; border-top: 1px solid var(--line); position: relative;
  transition: background .3s;
}
.q-card:first-child { border-top: 0; }
.q-card.q-error { background: linear-gradient(90deg, rgba(244,63,94,.05), transparent); }
.q-card .q-head { display: flex; gap: .5rem; align-items: baseline; margin-bottom: 1.1rem; }
.q-num {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-size: .82rem; font-weight: 800; color: #fff; background: var(--aurora); margin-top: .1rem;
}
.q-title { font-size: 1.12rem; font-weight: 700; line-height: 1.7; }
.q-title .req { color: var(--magenta); margin-inline-start: .25rem; }
.q-desc { color: var(--muted); font-size: .92rem; margin: .2rem 0 0; padding-inline-start: calc(30px + .5rem); }
.q-body { padding-inline-start: calc(30px + .5rem); }
.q-err-msg { display: none; color: #e11d48; font-size: .85rem; margin-top: .6rem; padding-inline-start: calc(30px + .5rem); }
.q-card.q-error .q-err-msg { display: block; }

/* text inputs */
.inp, .txta, .sel {
  width: 100%; font-family: inherit; font-size: 1.02rem; color: var(--text);
  background: #F7F9FE; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: .9rem 1.05rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.inp:focus, .txta:focus, .sel:focus {
  outline: none; border-color: var(--indigo); background: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,.14);
}
.txta { min-height: 120px; resize: vertical; line-height: 1.9; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%236366F1' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 1rem center; padding-inline-start: 2.6rem; }

/* option cards (radio + checkbox) */
.opts { display: grid; gap: .7rem; }
.opt {
  display: flex; align-items: center; gap: .85rem; padding: .95rem 1.15rem;
  border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; position: relative;
}
.opt:hover { border-color: #c7cff0; transform: translateX(-3px); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt .mark {
  flex: none; width: 22px; height: 22px; border: 2px solid #c3cbe6; display: grid; place-items: center;
  transition: all .2s; color: #fff;
}
.opt.radio .mark { border-radius: 50%; }
.opt.check .mark { border-radius: 7px; }
.opt .mark svg { width: 13px; height: 13px; opacity: 0; transform: scale(.5); transition: .2s; }
.opt .lbl { font-size: 1.02rem; }
.opt.is-selected, .opt:has(input:checked) {
  border-color: var(--indigo); background: linear-gradient(90deg, rgba(99,102,241,.09), rgba(139,92,246,.05));
  box-shadow: 0 8px 22px -12px rgba(99,102,241,.6);
}
.opt.is-selected .mark, .opt:has(input:checked) .mark { background: var(--aurora); border-color: transparent; }
.opt.is-selected .mark svg, .opt:has(input:checked) .mark svg { opacity: 1; transform: scale(1); }

/* scale */
.scale-wrap { }
.scale-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; margin-bottom: .7rem; }
.scale-ends b { color: var(--text); }
.scale {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .6rem;
}
.scale label {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  padding: .9rem .3rem; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff;
  cursor: pointer; transition: all .22s var(--ease); font-weight: 700;
}
.scale label:hover { transform: translateY(-3px); border-color: #c7cff0; }
.scale label input { position: absolute; opacity: 0; }
.scale label .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #c3cbe6; transition: .2s; }
.scale label .n { font-size: 1.15rem; color: var(--text); }
.scale label:has(input:checked), .scale label.is-selected {
  border-color: transparent; color: #fff; background: var(--aurora);
  box-shadow: 0 14px 30px -12px rgba(139,92,246,.7); transform: translateY(-3px);
}
.scale label:has(input:checked) .n, .scale label.is-selected .n { color: #fff; }
.scale label:has(input:checked) .dot, .scale label.is-selected .dot { background: #fff; border-color: #fff; }

/* footer nav */
.wiz-foot {
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl); padding: 1.4rem 2.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  box-shadow: var(--shadow);
}
.wiz-foot .steps { display: flex; gap: .4rem; }
.wiz-foot .steps i { width: 9px; height: 9px; border-radius: 50%; background: #d3dab0; background: #d3d9ee; transition: .3s; }
.wiz-foot .steps i.on { background: var(--indigo); transform: scale(1.25); }
.wiz-foot .steps i.done { background: var(--violet); }
.btn-nav {
  padding: .85rem 1.7rem; border-radius: 100px; font-weight: 700; border: 1.5px solid var(--line);
  background: #fff; color: var(--text); transition: .25s;
}
.btn-nav:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-prev[hidden] { visibility: hidden; }

/* ==========================================================
   THANK YOU
   ========================================================== */
.thanks-screen {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: radial-gradient(120% 120% at 50% 0, #16204a, var(--ink));
  color: #fff; text-align: center; padding: 2rem;
}
.thanks-screen.show { display: grid; animation: fadeIn .5s ease; }
.thanks-card { position: relative; max-width: 520px; }
.check-burst { width: 130px; height: 130px; margin: 0 auto 2rem; position: relative; }
.check-burst .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(139,92,246,.4); animation: burst 2.4s var(--ease) infinite; }
.check-burst .ring:nth-child(2) { animation-delay: .5s; }
.check-burst .ring:nth-child(3) { animation-delay: 1s; }
.check-burst .disc { position: absolute; inset: 24px; border-radius: 50%; background: var(--aurora); display: grid; place-items: center; box-shadow: 0 20px 50px -12px rgba(139,92,246,.8); }
.check-burst .disc svg { width: 48px; height: 48px; stroke: #fff; stroke-width: 3; }
.check-burst .disc svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .3s var(--ease) forwards; }
.thanks-card h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; }
.thanks-card p { color: rgba(255,255,255,.75); font-size: 1.08rem; margin-bottom: 2rem; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; opacity: .9; animation: fall linear forwards; }

/* closed / 404 */
.notice-screen {
  min-height: 100vh; display: grid; place-items: center; text-align: center; color: #fff; padding: 2rem;
  background: radial-gradient(120% 120% at 50% 0, #16204a, var(--ink));
}
.notice-screen .box { max-width: 520px; }
.notice-screen .big { font-family: var(--font-display); font-size: clamp(2rem,6vw,3.4rem); margin-bottom: 1rem; }
.notice-screen p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }

/* ---------------------- keyframes ---------------------- */
@keyframes auroraShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseCore { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .8; } }
@keyframes loadSlide { 0% { transform: translateX(120%); } 100% { transform: translateX(-260%); } }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(20px,-24px) scale(1.05); } 66% { transform: translate(-16px,16px) scale(.97); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mouseDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,10px); } }
@keyframes burst { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------- responsive ---------------------- */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .form-hat, .page-head, .q-card, .wiz-foot { padding-inline: 1.25rem; }
  .form-hat { padding-top: 2rem; }
  .q-desc, .q-body, .q-err-msg { padding-inline-start: 0; }
  .q-head { align-items: flex-start; }
  .scale { gap: .4rem; }
  .scale label { padding: .7rem .2rem; }
  .scale label .n { font-size: 1rem; }
  .hero-meta { gap: 1rem; }
  .btn-lg { padding: 1rem 2rem; }
  .wiz-foot { flex-wrap: wrap; }
  .hero-words { display: none; }
  .hero-stats { gap: .5rem; }
  .hstat { min-width: calc(50% - .5rem); padding: .8rem 1rem; }
  .hstat b { font-size: 1.5rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; }
}

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