/* ===================================================
   Human Work Spectrum — Global Styles
   =================================================== */

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

:root {
  --navy:      #1e293b;
  --blue:      #2563eb;
  --blue-lt:   #3b82f6;
  --sky:       #e0f2fe;
  --teal:      #0d9488;
  --amber:     #d97706;
  --violet:    #7c3aed;
  --rose:      #e11d48;
  --slate:     #475569;
  --muted:     #94a3b8;
  --bg:        #f8fafc;
  --white:     #ffffff;
  --border:    #e2e8f0;
  --text:      #1e293b;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- NAV ---- */
nav {
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-brand span { color: var(--blue-lt); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: var(--blue) !important;
  color: #fff !important;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--blue-lt) !important; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-lt);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); text-decoration: none; }

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-lt); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: #fff; }

.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- SECTION ---- */
.section { padding: 5rem 2rem; }
.section-center { text-align: center; }

.container { max-width: 1080px; margin: 0 auto; }
.container-sm { max-width: 720px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

h2.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* ---- 4I GRID ---- */
.four-i-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.four-i-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 4px solid;
}

.four-i-card.interpretive  { border-top-color: var(--blue); }
.four-i-card.integrative   { border-top-color: var(--teal); }
.four-i-card.interpersonal { border-top-color: var(--violet); }
.four-i-card.imaginative   { border-top-color: var(--amber); }

.four-i-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.four-i-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.four-i-card p { font-size: 0.875rem; color: var(--slate); line-height: 1.6; }

/* ---- ARCHETYPE GRID ---- */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.archetype-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.archetype-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.archetype-card .domain-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.badge-interpretive  { background: #dbeafe; color: #1e40af; }
.badge-integrative   { background: #ccfbf1; color: #115e59; }
.badge-interpersonal { background: #ede9fe; color: #5b21b6; }
.badge-imaginative   { background: #fef3c7; color: #92400e; }

.archetype-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }

.archetype-card .tagline {
  font-size: 0.85rem;
  color: var(--blue);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.archetype-card p { font-size: 0.875rem; color: var(--slate); line-height: 1.6; flex: 1; }

.archetype-card .card-link {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.archetype-card .card-link:hover { text-decoration: underline; }

/* ---- HOW IT WORKS ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }

@media (max-width: 680px) {
  .steps { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

.step { text-align: center; }

.step-num {
  width: 48px; height: 48px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.step h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.step p  { font-size: 0.875rem; color: var(--slate); }

/* ---- QUOTE BAND ---- */
.quote-band {
  background: var(--navy);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.quote-band blockquote {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.92);
}

.quote-band cite { font-size: 0.85rem; color: var(--blue-lt); font-style: normal; }

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-band p  { font-size: 1rem; color: rgba(255,255,255,0.82); margin-bottom: 2rem; }

/* ---- FOOTER ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
}

footer a { color: rgba(255,255,255,0.6); }
footer a:hover { color: #fff; }

/* ---- ARCHETYPE DETAIL PAGE ---- */
.archetype-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 2rem 3rem;
}

.archetype-hero .domain-badge { margin-bottom: 1rem; }
.archetype-hero h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 0.5rem; }
.archetype-hero .tagline { font-size: 1.15rem; color: var(--blue-lt); font-style: italic; margin-bottom: 1rem; }
.archetype-hero p { font-size: 1rem; color: rgba(255,255,255,0.8); max-width: 640px; line-height: 1.7; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.detail-card h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.detail-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.detail-card ul li { font-size: 0.9rem; color: var(--slate); padding-left: 1.25rem; position: relative; line-height: 1.5; }
.detail-card ul li::before { content: "→"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }

.action-steps {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 1.5rem;
}

.action-steps h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 1.25rem; }

.action-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.action-step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.action-num {
  width: 32px; height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0;
}

.action-step-content h4 { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.action-step-content p  { font-size: 0.85rem; color: var(--slate); line-height: 1.6; }

/* ---- QUIZ STYLES ---- */
.quiz-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.quiz-progress {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--blue);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.quiz-q-num { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }

.quiz-question { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.4; }
.quiz-context   { font-size: 0.9rem; color: var(--slate); margin-bottom: 2rem; line-height: 1.6; }

.quiz-options { display: flex; flex-direction: column; gap: 0.75rem; }

.quiz-option {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.quiz-option:hover { border-color: var(--blue); background: #f0f6ff; transform: translateX(2px); }
.quiz-option.selected { border-color: var(--blue); background: #dbeafe; }
.quiz-option.selected .option-letter { background: var(--blue); color: #fff; }

.option-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--slate);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-text { font-size: 0.9rem; color: var(--text); line-height: 1.5; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.btn-quiz {
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s, opacity 0.15s;
}

.btn-quiz-primary { background: var(--blue); color: #fff; }
.btn-quiz-primary:hover { background: var(--blue-lt); }
.btn-quiz-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-quiz-back { background: var(--border); color: var(--slate); }
.btn-quiz-back:hover { background: #cbd5e1; }

/* ---- RESULTS ---- */
.results-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.results-hero h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 0.5rem; }
.results-hero p   { color: rgba(255,255,255,0.75); max-width: 520px; margin: 0 auto; }

.radar-wrap {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.results-archetypes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.result-rank { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.result-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.result-card .tagline { font-size: 0.875rem; color: var(--blue); font-style: italic; margin-bottom: 0.75rem; }
.result-card p { font-size: 0.875rem; color: var(--slate); line-height: 1.6; margin-bottom: 1rem; }

.score-bar-wrap { margin-top: 0.75rem; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; }
.score-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width 1s ease; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 0.75rem; }
  .section { padding: 3rem 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
}

@media (max-width: 500px) {
  .nav-links .hide-sm { display: none; }
}
