/* ========================================
   SKILLFORGE — STYLESHEET
   Design direction: a route map / field-guide aesthetic, not a SaaS dashboard.
   Warm paper background, ink text, a forest-green "trail" accent for primary
   actions, and a terracotta "waypoint" accent reserved for start/end markers.
   No blur glows, no rainbow gradients — flat color, hairline rules, and a
   literal dashed path motif that echoes the actual job of this app: showing
   someone the route from where they are to where they're going.
   ======================================== */

:root {
  --paper: #f3efe3;
  --paper-raised: #fffdf7;
  --paper-sunken: #eae3d1;
  --ink: #1e2a22;
  --ink-soft: #5c6358;
  --ink-faint: #93988a;
  --line: #dad0ba;
  --trail: #3c6e52;
  --trail-deep: #294b39;
  --trail-tint: #e3ece5;
  --waypoint: #b5552c;
  --waypoint-tint: #f5e3d4;
  --danger: #a83b2e;
  --danger-tint: #f5e1dc;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(30, 28, 20, 0.07);
  --shadow-md: 0 3px 10px rgba(30, 28, 20, 0.08);
  --shadow-lg: 0 8px 24px rgba(30, 28, 20, 0.10);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

[data-theme="dark"] {
  --paper: #14180f;
  --paper-raised: #1c2116;
  --paper-sunken: #0f130c;
  --ink: #eae3cf;
  --ink-soft: #a6ab97;
  --ink-faint: #696e5e;
  --line: #2a2f21;
  --trail: #79b791;
  --trail-deep: #a3d2b4;
  --trail-tint: rgba(121, 183, 145, 0.13);
  --waypoint: #e08a55;
  --waypoint-tint: rgba(224, 138, 85, 0.14);
  --danger: #e08577;
  --danger-tint: rgba(224, 133, 119, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.25s, color 0.25s;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; }

.logo-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trail);
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover { color: var(--ink); background: var(--paper-sunken); }
.nav-link.active { color: var(--trail-deep); background: var(--trail-tint); }
[data-theme="dark"] .nav-link.active { color: var(--trail); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle:hover { background: var(--paper-sunken); color: var(--ink); }

.nav-hamburger { display: none; font-size: 1.4rem; color: var(--ink); padding: 4px; }

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-primary { background: var(--trail); color: var(--paper-raised); }
.btn-primary:hover:not(:disabled) { background: var(--trail-deep); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-secondary { background: var(--waypoint); color: var(--paper-raised); }
.btn-secondary:hover { opacity: 0.9; }

.btn-outline { border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--trail); color: var(--trail-deep); }
[data-theme="dark"] .btn-outline:hover { color: var(--trail); }

.btn-ghost { color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--paper-sunken); }

.btn-sm { padding: 7px 14px; font-size: 0.825rem; }
.btn-lg { padding: 13px 26px; }

.btn-arrow { transition: transform 0.15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ========================================
   HERO
   ======================================== */
.hero { position: relative; padding: 72px 0 56px; }

.hero-content { text-align: center; position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--trail-deep);
  margin-bottom: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .eyebrow { color: var(--trail); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.text-mark {
  font-style: italic;
  color: var(--trail-deep);
  position: relative;
  white-space: nowrap;
}
[data-theme="dark"] .text-mark { color: var(--trail); }
.text-mark::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: -0.06em;
  height: 0;
  border-bottom: 2px dashed var(--waypoint);
  opacity: 0.7;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: 72px 0; }
.section-alt { background: var(--paper-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-header { text-align: center; margin-bottom: 44px; }

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-desc { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-hover:hover { box-shadow: var(--shadow-md); border-color: var(--trail); }

/* Steps — numbered because the content really is a 3-step sequence */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }

.step-card {
  background: transparent;
  padding: 8px 28px;
  position: relative;
}

.steps-grid .step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  right: -4px;
  width: calc(100% - 20px);
  border-top: 1px dashed var(--line);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--trail-deep);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}
[data-theme="dark"] .step-num { color: var(--trail); }

.step-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.step-desc { color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.feature-card { background: var(--paper-raised); padding: 26px 24px; transition: background 0.15s; }
.feature-card:hover { background: var(--trail-tint); }

.feature-index { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 10px; }
.feature-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 6px; }
.feature-desc { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.6; }

/* CTA Card */
.cta-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  border-left: 4px solid var(--trail);
}

.cta-title { font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; margin-bottom: 10px; }
.cta-desc { color: var(--ink-soft); max-width: 480px; margin: 0 auto 26px; line-height: 1.6; }

/* ========================================
   QUIZ PAGE
   ======================================== */
.quiz-page { min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 36px 0; }
.quiz-container { max-width: 680px; margin: 0 auto; width: 100%; }
.quiz-header { margin-bottom: 28px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

.quiz-back, .quiz-restart {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-family: var(--font-mono);
  color: var(--ink-soft); transition: color 0.15s;
}
.quiz-back:hover:not(:disabled) { color: var(--ink); }
.quiz-back:disabled { opacity: 0.35; cursor: not-allowed; }
.quiz-restart:hover { color: var(--danger); }

/* Progress */
.progress-bar { width: 100%; }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.8125rem; font-family: var(--font-mono); }
.progress-step { color: var(--ink-soft); }
.progress-percent { color: var(--trail-deep); font-weight: 600; }
[data-theme="dark"] .progress-percent { color: var(--trail); }

.progress-track { height: 6px; background: var(--paper-sunken); border-radius: 100px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--trail); border-radius: 100px; transition: width 0.4s ease; }

/* Question Card */
.question-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.question-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 26px; line-height: 1.3; }

.question-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 26px; }

.option-btn {
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-btn:hover { border-color: var(--ink-faint); }
.option-btn.selected { border-color: var(--trail); background: var(--trail-tint); }

.option-check {
  width: 20px; height: 20px; border-radius: 4px;
  background: var(--trail); color: var(--paper-raised);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; opacity: 0; transform: scale(0.6);
  transition: opacity 0.15s, transform 0.15s; flex-shrink: 0; margin-left: 10px;
}
.option-btn.selected .option-check { opacity: 1; transform: scale(1); }

.question-textarea {
  width: 100%; min-height: 110px; padding: 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink);
  font-family: inherit; font-size: 0.9rem; resize: vertical;
  margin-bottom: 26px; transition: border-color 0.15s;
}
.question-textarea:focus { outline: none; border-color: var(--trail); }

.question-actions { display: flex; justify-content: flex-end; }

/* ========================================
   AI / FOLLOW-UP PANEL
   ======================================== */
.ai-panel { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; animation: fadeIn 0.2s ease; }
.ai-panel-header { margin-bottom: 18px; }
.ai-panel-title { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.ai-panel-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.ai-thinking { display: flex; gap: 6px; align-items: center; justify-content: center; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--trail); animation: aiBounce 1.4s ease-in-out infinite; }
.ai-dot:nth-child(2) { animation-delay: 0.18s; }
.ai-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } }

.ai-panel-text { color: var(--ink-soft); font-size: 0.9375rem; }

.ai-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--trail-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  margin-bottom: 18px;
}
[data-theme="dark"] .ai-badge { color: var(--trail); }
.ai-badge-local { color: var(--ink-faint); }

.ai-panel.ai-panel-error { border-color: var(--danger); }
.ai-panel-error .ai-panel-title { color: var(--danger); }

/* ========================================
   RESULTS PAGE
   ======================================== */
.results-page { padding: 36px 0 80px; }

.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 55vh; gap: 4px; }

.spinner-container { position: relative; width: 40px; height: 40px; margin-bottom: 20px; }
.spinner-ring { position: absolute; inset: 0; border: 3px solid var(--line); border-top-color: var(--trail); border-radius: 50%; animation: spin 0.9s linear infinite; }
.spinner-ring-2 { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { color: var(--ink-soft); font-size: 1rem; }

.results-header { text-align: center; margin-bottom: 44px; }
.results-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; margin-bottom: 10px; }
.results-desc { color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

.recommendations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 44px; }

.recommendation-card {
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.recommendation-card:hover { box-shadow: var(--shadow-sm); }
.recommendation-card.selected { border-color: var(--trail); border-width: 2px; }

.rec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.rec-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--trail-deep); background: var(--trail-tint); padding: 4px 9px; border-radius: 5px;
}
[data-theme="dark"] .rec-tag { color: var(--trail); }

.rec-match { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--ink-soft); }

.rec-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.rec-desc { color: var(--ink-soft); font-size: 0.875rem; margin-bottom: 14px; line-height: 1.5; }
.rec-reason { font-size: 0.875rem; margin-bottom: 16px; line-height: 1.5; color: var(--ink-soft); }
.rec-reason strong { color: var(--ink); }

.rec-skills-title { font-size: 0.8rem; font-weight: 600; margin-bottom: 8px; color: var(--ink-soft); }
.rec-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.rec-skill-tag { padding: 3px 9px; border-radius: 5px; background: var(--paper-sunken); color: var(--ink-soft); font-size: 0.75rem; font-weight: 500; }

.rec-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rec-meta-label { font-size: 0.7rem; color: var(--ink-faint); margin-bottom: 2px; }
.rec-meta-value { font-size: 0.85rem; font-weight: 600; }

.results-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ========================================
   ROADMAP PAGE
   ======================================== */
.roadmap-page { padding: 36px 0 80px; }
.roadmap-header { margin-bottom: 40px; }
.roadmap-title-row { margin-bottom: 24px; }
.roadmap-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.roadmap-subtitle { color: var(--ink-soft); font-size: 1.05rem; }
.text-primary { color: var(--trail-deep); font-weight: 700; }
[data-theme="dark"] .text-primary { color: var(--trail); }

/* Your Path — the literal route from grade to career */
.path-strip {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 22px 4px 14px;
  margin-bottom: 28px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-node { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 120px; text-align: center; }
.path-node-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-faint); border: 2px solid var(--paper-raised); box-shadow: 0 0 0 1.5px var(--line); margin-bottom: 8px; }
.path-node-start .path-node-dot, .path-node-end .path-node-dot { background: var(--waypoint); box-shadow: 0 0 0 1.5px var(--waypoint); }
.path-node-text { display: flex; flex-direction: column; gap: 2px; }
.path-node-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.path-node-start .path-node-label, .path-node-end .path-node-label { color: var(--waypoint); }
.path-node-value { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }

.path-line { flex: 1; min-width: 24px; border-top: 2px dashed var(--line); margin-top: 6px; }

.roadmap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }

.roadmap-stat { padding: 18px 20px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.roadmap-stat-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.roadmap-stat-value { font-size: 1.15rem; font-weight: 700; }

.roadmap-actions-top { display: flex; gap: 10px; flex-wrap: wrap; }

/* Timeline */
.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ''; position: absolute; left: 14px; top: 6px; bottom: 6px; width: 0; border-left: 2px dashed var(--line); }

.timeline-phase { position: relative; margin-bottom: 28px; animation: fadeIn 0.4s ease; }

.timeline-marker {
  position: absolute; left: -36px; top: 0; width: 28px; height: 28px;
  border-radius: 50%; background: var(--trail); color: var(--paper-raised);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  box-shadow: 0 0 0 4px var(--paper);
}

.timeline-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color 0.15s; }
.timeline-card:hover { border-color: var(--trail); }

.timeline-phase-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.timeline-phase-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }

.timeline-section { margin-bottom: 18px; }
.timeline-section:last-child { margin-bottom: 0; }
.timeline-section-title { font-size: 0.8rem; font-weight: 700; margin-bottom: 9px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }

.timeline-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.timeline-tag { padding: 4px 11px; border-radius: 100px; background: var(--trail-tint); color: var(--trail-deep); font-size: 0.78rem; font-weight: 500; }
[data-theme="dark"] .timeline-tag { color: var(--trail); }

.timeline-list li { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; font-size: 0.875rem; color: var(--ink-soft); }
.timeline-list li::before { content: '–'; color: var(--ink-faint); flex-shrink: 0; }

.timeline-resources { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.timeline-resource { display: flex; align-items: center; gap: 8px; padding: 9px 11px; background: var(--paper-sunken); border-radius: var(--radius-sm); font-size: 0.8rem; color: var(--ink-soft); transition: color 0.15s; }
.timeline-resource:hover { color: var(--trail-deep); }
[data-theme="dark"] .timeline-resource:hover { color: var(--trail); }
.timeline-resource-link { margin-left: auto; font-size: 0.75rem; opacity: 0.5; }

.roadmap-footer-actions { text-align: center; margin-top: 44px; padding-top: 44px; border-top: 1px dashed var(--line); }
.roadmap-footer-text { color: var(--ink-soft); margin-bottom: 18px; }
.roadmap-actions-bottom { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-page { padding: 40px 0 80px; }
.about-hero { text-align: center; margin-bottom: 44px; }
.about-hero-title { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; margin-bottom: 14px; }
.about-hero-desc { font-size: 1.0625rem; color: var(--ink-soft); max-width: 660px; margin: 0 auto; line-height: 1.7; }

.mission-card { background: var(--paper-raised); border: 1px solid var(--line); border-left: 4px solid var(--trail); border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 44px; }
.mission-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-bottom: 10px; }
.mission-desc { color: var(--ink-soft); font-size: 1.0625rem; max-width: 580px; margin: 0 auto; line-height: 1.6; }

.values-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; text-align: center; margin-bottom: 22px; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 44px; }
.value-card { background: var(--paper-raised); padding: 24px; }
.value-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.value-desc { color: var(--ink-soft); font-size: 0.875rem; line-height: 1.6; }

.tech-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.tech-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 18px; }
.tech-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tech-tag { padding: 6px 13px; border-radius: 100px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.8rem; font-family: var(--font-mono); }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: var(--paper-sunken); border-top: 1px solid var(--line); padding: 44px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 44px; margin-bottom: 30px; }
.footer-desc { color: var(--ink-soft); font-size: 0.875rem; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-heading { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.footer-link { display: block; color: var(--ink-soft); font-size: 0.875rem; padding: 4px 0; transition: color 0.15s; }
.footer-link:hover { color: var(--trail-deep); }
[data-theme="dark"] .footer-link:hover { color: var(--trail); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-copy { font-size: 0.8125rem; color: var(--ink-faint); }
.footer-socials { display: flex; gap: 10px; }
.footer-social { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); transition: border-color 0.15s, color 0.15s; }
.footer-social:hover { border-color: var(--trail); color: var(--trail-deep); }
[data-theme="dark"] .footer-social:hover { color: var(--trail); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .steps-grid .step-card::after { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .recommendations-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .roadmap-stats { grid-template-columns: 1fr; }
  .question-options { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 14px 24px; gap: 4px;
  }
  .nav-links.active { display: flex; }
  .nav-hamburger { display: block; }

  .hero { padding: 44px 0 36px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 44px 0; }
  .section-title { font-size: 1.6rem; }
  .cta-card { padding: 36px 22px; }
  .question-card { padding: 22px; }
  .question-text { font-size: 1.2rem; }
  .timeline { padding-left: 28px; }
  .timeline-marker { left: -28px; width: 22px; height: 22px; font-size: 0.65rem; }
  .timeline-resources { grid-template-columns: 1fr; }
  .roadmap-title { font-size: 1.6rem; }
  .about-hero-title { font-size: 1.6rem; }
  .mission-card { padding: 28px 20px; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }
  .results-title { font-size: 1.6rem; }
  .rec-meta { grid-template-columns: 1fr; }
  .roadmap-actions-top { flex-direction: column; }
  .roadmap-actions-top .btn { width: 100%; }
  .path-node { width: 96px; }
}

::selection { background: var(--trail-tint); }

/* ========================================
   ENHANCED ANIMATIONS — SkillForge v2
   AI-first. DevPost-ready.
   ======================================== */

/* ── Orbit Loader ─────────────────────── */
.ai-orbit-loader {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.orbit-1 {
  border-top-color: var(--trail);
  border-right-color: var(--trail);
  animation: orbitSpin 1.4s linear infinite;
}

.orbit-2 {
  inset: 12px;
  border-bottom-color: var(--waypoint);
  border-left-color: var(--waypoint);
  animation: orbitSpin 1.0s linear infinite reverse;
}

.orbit-core {
  position: absolute;
  inset: 28px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trail);
  animation: orbitPulse 2s ease-in-out infinite;
}

@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitPulse { 0%, 100% { opacity: 0.7; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }

.loading-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* ── Card Reveal Animation ─────────────── */
.recommendation-card {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.15s,
    box-shadow 0.2s;
}

.recommendation-card.card-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Magnetic hover lift */
.recommendation-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--trail);
}

/* Match score badge */
.rec-match-badge {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.rec-match-num {
  font-size: 1.1rem;
  color: var(--trail-deep);
}
[data-theme="dark"] .rec-match-num { color: var(--trail); }

.rec-match-pct {
  font-size: 0.7rem;
  color: var(--ink-faint);
  font-weight: 400;
}

/* Animated match score fill bar */
.rec-match-bar {
  height: 3px;
  background: var(--line);
  border-radius: 100px;
  margin: 6px 0 14px;
  overflow: hidden;
}

.rec-match-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--trail), var(--trail-deep));
  border-radius: 100px;
  width: 0;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-visible .rec-match-fill {
  width: var(--match-width, 80%);
}

/* Reason label pill */
.rec-reason-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--trail-tint);
  color: var(--trail-deep);
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 4px;
}
[data-theme="dark"] .rec-reason-label { color: var(--trail); }

/* Per-card roadmap button */
.rec-roadmap-btn {
  width: 100%;
  margin-top: 18px;
  padding: 11px 18px;
  font-size: 0.875rem;
  position: relative;
  overflow: hidden;
}

.rec-roadmap-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--trail-deep);
  transform: translateX(-101%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.rec-roadmap-btn:hover::after {
  transform: translateX(0);
}

.rec-roadmap-btn > * {
  position: relative;
  z-index: 1;
}

/* Results footer hint */
.results-footer-note {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  padding: 20px 0 0;
  letter-spacing: 0.04em;
}

.results-footer-icon {
  animation: nudgeUp 2s ease-in-out infinite;
  display: inline-block;
  margin-right: 6px;
}

@keyframes nudgeUp { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* ── Path Strip Reveal ─────────────────── */
.path-node,
.path-line-anim {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.path-line-anim {
  transform: scaleX(0);
  transform-origin: left center;
}

.path-node.path-revealed { opacity: 1; transform: scale(1); }
.path-line-anim.path-revealed { opacity: 1; transform: scaleX(1); }

/* ── Timeline Scroll Reveal ───────────── */
.timeline-phase.tl-hidden {
  opacity: 0;
  transform: translateX(-20px);
}

.timeline-phase.tl-visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Timeline marker pulse on entry */
.tl-visible .timeline-marker {
  animation: markerPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes markerPop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Hero Particle Canvas ─────────────── */
#heroCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}
[data-theme="dark"] #heroCanvas { opacity: 0.3; }

/* ── Scroll-triggered section reveals ─── */
.reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── AI badge on eyebrow ──────────────── */
.eyebrow.eyebrow-ai::before {
  content: '✦';
  margin-right: 6px;
  animation: sparkle 2s ease-in-out infinite;
  color: var(--waypoint);
}

@keyframes sparkle { 0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(15deg); } }

/* ── Animated progress fill on roadmap stats ── */
.roadmap-stat-value {
  animation: countUp 0.6s ease both;
}

@keyframes countUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Dashed path line draw animation ──── */
.timeline::before {
  animation: drawLine 1.2s ease forwards;
  animation-delay: 0.3s;
}

@keyframes drawLine {
  from { transform: scaleY(0); transform-origin: top; }
  to { transform: scaleY(1); transform-origin: top; }
}

/* ── Skill tag pop-in ─────────────────── */
.tl-visible .timeline-tag {
  animation: tagPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.tl-visible .timeline-tag:nth-child(1) { animation-delay: 0.05s; }
.tl-visible .timeline-tag:nth-child(2) { animation-delay: 0.1s; }
.tl-visible .timeline-tag:nth-child(3) { animation-delay: 0.15s; }
.tl-visible .timeline-tag:nth-child(4) { animation-delay: 0.2s; }

@keyframes tagPop { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: scale(1); } }

/* ── Hero CTA button shimmer ─────────── */
.btn-primary.btn-lg {
  position: relative;
  overflow: hidden;
}

.btn-primary.btn-lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  animation: shimmer 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes shimmer { 0% { left: -100%; } 50%, 100% { left: 150%; } }


/* ========================================
   QUIZ v2 — Two-column layout + panels
   ======================================== */

/* Override quiz-page to use new layout */
.quiz-page {
  min-height: calc(100vh - 64px);
  padding: 0;
  display: block;
}

.quiz-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  min-height: calc(100vh - 64px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.quiz-main {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--line);
  min-height: calc(100vh - 64px);
}

/* ── Progress Panel (right sidebar) ─────────── */
.progress-panel {
  padding: 32px 0 32px 28px;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.pp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.pp-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.pp-icon { font-size: 0.9rem; }

.pp-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--trail-deep);
  font-weight: 700;
}
[data-theme="dark"] .pp-count { color: var(--trail); }

.pp-list { display: flex; flex-direction: column; gap: 10px; }

.pp-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pp-item.pp-item-in {
  opacity: 1;
  transform: translateX(0);
}

.pp-item-q {
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.4;
}

.pp-item-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--trail);
  color: var(--paper-raised);
  font-size: 0.6rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pp-item-a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.pp-footer { margin-top: 18px; }

.pp-bar-track {
  height: 4px;
  background: var(--paper-sunken);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--trail), var(--trail-deep));
  border-radius: 100px;
  width: 0;
  transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
[data-theme="dark"] .pp-bar-fill {
  background: linear-gradient(90deg, var(--trail), #a3d2b4);
}

.pp-bar-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ── Thinking Panel ──────────────────────── */
.think-panel {
  position: relative;
  background: var(--paper-raised);
  border: 1.5px solid var(--trail);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  overflow: hidden;
  animation: thinkIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes thinkIn {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Animated border beam */
.think-beam {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 340deg, var(--trail) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  animation: beamSpin 2s linear infinite;
  opacity: 0.8;
}

@keyframes beamSpin { to { transform: rotate(360deg); } }

.think-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

/* Mini orbit orb */
.think-orb {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.think-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
}

.think-orb-ring.r1 {
  border-top-color: var(--trail);
  animation: orbitSpin 1.2s linear infinite;
}

.think-orb-ring.r2 {
  inset: 7px;
  border-bottom-color: var(--waypoint);
  animation: orbitSpin 0.8s linear infinite reverse;
}

.think-orb-core {
  position: absolute;
  inset: 14px;
  background: var(--paper-raised);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trail);
}

.think-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--trail-deep);
}
[data-theme="dark"] .think-label { color: var(--trail); }

.think-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
}

.think-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--trail);
  animation: aiBounce 1.2s ease-in-out infinite;
}
.think-dots span:nth-child(2) { animation-delay: 0.15s; }
.think-dots span:nth-child(3) { animation-delay: 0.3s; }

.think-body { position: relative; }

.think-line {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 18px;
  min-height: 1.6em;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.think-progress {
  height: 3px;
  background: var(--paper-sunken);
  border-radius: 100px;
  overflow: hidden;
}

.think-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--trail), var(--waypoint));
  border-radius: 100px;
  width: 0;
  transition: width 2.4s cubic-bezier(0.4,0,0.2,1);
}

/* ── Card slide-in animation ──────────────── */
.question-card {
  /* existing styles kept — just adding animation class */
}

.qcard-in {
  animation: qcardSlide 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes qcardSlide {
  from { opacity: 0; transform: translateX(28px) scale(0.98); clip-path: inset(0 100% 0 0); }
  to   { opacity: 1; transform: translateX(0)    scale(1);    clip-path: inset(0 0% 0 0); }
}

/* ── Option button stagger ────────────────── */
.option-btn {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s;
}

.option-btn.opt-in {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic hover glow */
.option-btn:hover {
  box-shadow: 0 4px 16px rgba(60,110,82,0.18);
  transform: translateY(-2px) scale(1.01);
}

.option-btn.selected {
  box-shadow: 0 0 0 2px var(--trail);
  transform: translateY(0) scale(1);
}

/* ── AI source badge on question card ─────── */
.qcard-top {
  margin-bottom: 14px;
}

.ai-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--trail-tint);
  color: var(--trail-deep);
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
[data-theme="dark"] .ai-source-badge { color: var(--trail); }

.ai-source-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--trail);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.ai-source-fallback {
  background: var(--paper-sunken);
  color: var(--ink-faint);
}

/* ── qcard-inner  ────────────────────────── */
.qcard-inner { display: flex; flex-direction: column; }

/* ── Continue button ─────────────────────── */
.qcontinue-btn {
  align-self: flex-end;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}

.qcontinue-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--trail-deep);
  transform: translateX(-101%);
  transition: transform 0.28s cubic-bezier(0.22,1,0.36,1);
  z-index: 0;
}

.qcontinue-btn:not(:disabled):hover::after {
  transform: translateX(0);
}

.qcontinue-btn > span,
.qcontinue-btn > .btn-arrow {
  position: relative;
  z-index: 1;
}

/* ── Particle burst ──────────────────────── */
.burst-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bc, var(--trail));
  pointer-events: none;
  z-index: 9999;
  animation: burst 0.65s cubic-bezier(0.22,1,0.36,1) forwards;
  transform: translate(-50%, -50%);
}

@keyframes burst {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(0); opacity: 0; }
}

/* ── Scramble reveal text ─────────────────── */
/* The JS handles this — just ensuring font monospace during scramble */
.question-text { font-variant-ligatures: none; }

/* ── Responsive quiz layout ──────────────── */
@media (max-width: 860px) {
  .quiz-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .quiz-main {
    padding: 24px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .progress-panel {
    padding: 20px 0;
    position: static;
    max-height: none;
  }
}

@media (max-width: 600px) {
  .think-panel { padding: 24px 18px 20px; }
  .think-line { font-size: 1rem; }
  .think-label { font-size: 0.7rem; }
}

