/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d14;
  --bg2: #13131f;
  --bg3: #1a1a2e;
  --cyan: #22d3ee;
  --cyan-dim: rgba(34,211,238,0.15);
  --cyan-glow: rgba(34,211,238,0.35);
  --gold: #e2a832;
  --gold-dim: rgba(226,168,50,0.15);
  --gold-glow: rgba(226,168,50,0.4);
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --border: rgba(255,255,255,0.07);
  --radius: 12px;
  --transition: 0.35s ease;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  opacity: 0;
  transition: opacity var(--transition);
  min-height: 100vh;
}
.screen.active {
  display: flex;
  flex-direction: column;
}
.screen.visible {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--bg3);
  flex-shrink: 0;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #7dd3fc);
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  width: 0%;
  box-shadow: 0 0 8px var(--cyan-glow);
}
.progress-bar.full { width: 100%; }

/* ===== INTRO ===== */
.badge {
  display: inline-block;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  margin-top: 20px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(28px, 8vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.accent-cyan { color: var(--cyan); }

.subheadline {
  font-size: clamp(15px, 4vw, 18px);
  color: var(--text-muted);
  margin-bottom: 10px;
  max-width: 420px;
}

.small-text {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 36px;
  opacity: 0.7;
}

.footer-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 24px;
  opacity: 0.55;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--cyan), #0ea5e9);
  color: #0d0d14;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 0 24px var(--cyan-glow);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px var(--cyan-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-gold {
  display: block;
  background: linear-gradient(135deg, var(--gold), #f59e0b);
  color: #0d0d14;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 0 24px var(--gold-glow);
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.01em;
  margin-top: 24px;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--gold-glow);
}

.btn-secondary {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  margin-top: 16px;
  padding: 8px;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.btn-secondary:hover { color: var(--cyan); border-bottom-color: var(--cyan-dim); }

/* ===== QUIZ ===== */
.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  margin-top: 28px;
  width: 100%;
  text-align: left;
}

.question-area {
  width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.question-area.fading {
  opacity: 0;
  transform: translateY(8px);
}

h2 {
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 28px;
  text-align: left;
  color: var(--text);
  letter-spacing: -0.01em;
}

.answer-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.answer-btn {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  padding: 15px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.1s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.answer-btn:hover {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-dim);
}
.answer-btn.selected {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan-glow);
  color: var(--cyan);
}
.answer-btn:active { transform: scale(0.99); }

.answer-letter {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  margin-top: 1px;
}
.answer-btn:hover .answer-letter,
.answer-btn.selected .answer-letter {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #0d0d14;
}

/* ===== RESULT ===== */
.result-intro {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 28px;
  margin-bottom: 16px;
}

.result-card {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--cyan);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(34,211,238,0.08);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 40px var(--cyan-glow), 0 0 80px rgba(34,211,238,0.08); }
  50%       { box-shadow: 0 0 60px var(--cyan-glow), 0 0 100px rgba(34,211,238,0.14); }
}

.result-icon {
  font-size: 48px;
  margin-bottom: 8px;
  line-height: 1;
}

#result-name {
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-align: center;
}

#result-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  text-align: left;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.result-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px;
  text-align: left;
}

.result-box-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-box-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

/* ===== APTITUDE BAR ===== */
.aptitude-section {
  margin-bottom: 4px;
}

.aptitude-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-align: left;
}

.aptitude-label span {
  color: var(--cyan);
  font-weight: 700;
}

.aptitude-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
}

.aptitude-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1) 0.3s;
  width: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .container { padding: 24px 16px 40px; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card { padding: 22px 16px; }
}
