/* === VARIABLES === */
:root {
  --navy: #1a1f2e;
  --navy-mid: #252b3b;
  --navy-light: #2e3650;
  --accent: #c8a96e;
  --accent-light: #e8d5a8;
  --text: #f0eee8;
  --text-muted: #9a97a0;
  --text-dim: #6b6876;
  --white: #ffffff;
  --surface: #202535;
  --surface-alt: #252b3b;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(200,169,110,0.3);
  --green: #4caf82;
  --red: #e05c5c;
  --blue: #5c9ee0;
  --shadow: 0 4px 32px rgba(0,0,0,0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(26, 31, 46, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 48px 80px;
  text-align: center;
  position: relative;
  background: radial-gradient(ellipse at 60% 0%, rgba(200,169,110,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(92,158,224,0.04) 0%, transparent 60%),
              var(--navy);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200,169,110,0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.disclaimer-badge.small {
  font-size: 10px;
  padding: 4px 10px;
  margin: 0;
}

.hero-meta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 32px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-author {
  font-size: 13px;
  color: var(--text-dim);
}
.hero-author strong { color: var(--text-muted); }

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* === SECTIONS === */
.section {
  padding: 100px 48px;
}
.section-alt {
  background: var(--surface);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}

.section-content {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-intro {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* === TNA CARDS === */
.tna-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.tna-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.section-alt .tna-card {
  background: var(--navy);
}
.tna-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.tna-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.tna-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.tna-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === FISHBONE === */
.fishbone-container {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}

.diagram-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.diagram-sub {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.fishbone {
  position: relative;
  height: 220px;
  margin-bottom: 16px;
}

.fishbone-spine {
  position: absolute;
  top: 50%;
  left: 0;
  right: 80px;
  height: 2px;
  background: rgba(200,169,110,0.5);
  transform: translateY(-50%);
}

.fishbone-head {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.fishbone-problem {
  background: var(--accent);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.fishbone-bones {
  position: absolute;
  left: 40px;
  right: 100px;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
}

.bone {
  position: absolute;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.2s;
}
.bone:hover { opacity: 0.85; }
.bone:hover .bone-label { color: var(--accent); }

.bone-top {
  top: 0;
  flex-direction: column;
}
.bone-bottom {
  bottom: 0;
  flex-direction: column-reverse;
}

.bone:nth-child(1) { left: 5%; }
.bone:nth-child(2) { left: 33%; }
.bone:nth-child(3) { left: 61%; }
.bone:nth-child(4) { left: 5%; }
.bone:nth-child(5) { left: 33%; }
.bone:nth-child(6) { left: 61%; }

.bone-line {
  width: 1px;
  height: 60px;
  background: rgba(200,169,110,0.4);
}
.bone-top .bone-line::after,
.bone-bottom .bone-line::after {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: -3px auto;
}
.bone-bottom .bone-line::after { margin-top: 0; }

.bone-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 0;
  transition: color 0.2s;
}
.bone-detail {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.bone-info-panel {
  background: var(--navy);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.bone-info-panel.visible { opacity: 1; }

.bone-info-title {
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.bone-info-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === STRATEGY === */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.strategy-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.strategy-card:hover { border-color: var(--border-accent); }

.strategy-icon { font-size: 28px; margin-bottom: 14px; }
.strategy-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.strategy-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.strategy-card em { color: var(--accent); font-style: italic; }

/* === ROADMAP === */
.roadmap-container {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 40px;
}

.roadmap {
  position: relative;
  padding: 24px 0 16px;
}

.roadmap-track {
  position: absolute;
  top: 38px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border);
}

.roadmap-phases {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  padding: 0 40px;
}

.phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 10px;
}

.phase-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--navy-mid);
  transition: all 0.2s;
}

.phase.active .phase-dot,
.phase:hover .phase-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,169,110,0.15);
}

.phase-week {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.phase-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.phase.active .phase-title,
.phase:hover .phase-title { color: var(--accent); }

.phase-detail {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  min-height: 120px;
}

.phase-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.phase-detail-week {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.phase-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
#phaseDetailDesc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.6;
}
#phaseDetailItems {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#phaseDetailItems li {
  font-size: 12px;
  font-weight: 500;
  background: rgba(200,169,110,0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border-accent);
}

/* === OBJECTIVES === */
.objectives-container {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.objectives-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.objective {
  display: grid;
  grid-template-columns: 80px 1fr 140px;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.objective:last-child { border-bottom: none; }

.obj-level {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.obj-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.obj-text strong { color: var(--text); }

.obj-bloom {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  text-align: center;
}
.bloom-1 { background: rgba(92,158,224,0.1); color: #5c9ee0; border: 1px solid rgba(92,158,224,0.2); }
.bloom-2 { background: rgba(76,175,130,0.1); color: #4caf82; border: 1px solid rgba(76,175,130,0.2); }
.bloom-3 { background: rgba(200,169,110,0.1); color: var(--accent); border: 1px solid var(--border-accent); }
.bloom-4 { background: rgba(224,92,92,0.1); color: #e05c5c; border: 1px solid rgba(224,92,92,0.2); }

/* === BUILD === */
.build-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}

.build-feature {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.build-feature:hover { border-color: var(--border-accent); }

.build-feature-icon {
  font-size: 32px;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  margin-top: 2px;
}

.build-feature-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.build-feature-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.build-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.build-tags span {
  font-size: 11px;
  font-weight: 500;
  background: var(--navy);
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* === GAME === */
.game-container {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.game-wrapper {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.game-email {
  padding: 28px 32px;
  font-size: 14px;
  line-height: 1.7;
}

.email-header-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.email-header-row:last-of-type { border-bottom: none; }

.email-field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding-top: 2px;
}

.email-field-val {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.email-field-val:hover {
  background: rgba(200,169,110,0.08);
  border-color: rgba(200,169,110,0.2);
}
.email-field-val.selected-suspect {
  background: rgba(224,92,92,0.12);
  border-color: rgba(224,92,92,0.3);
  color: #e05c5c;
}
.email-field-val.correct {
  background: rgba(76,175,130,0.12);
  border-color: rgba(76,175,130,0.3);
  color: var(--green);
}
.email-field-val.missed {
  background: rgba(224,92,92,0.12);
  border-color: rgba(224,92,92,0.3);
  color: #e05c5c;
  animation: pulse-red 0.5s ease;
}

.email-body-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}
.email-body-text {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.7;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.game-instruction {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 12px 32px;
  background: rgba(200,169,110,0.05);
  border-top: 1px solid var(--border);
}

.game-submit-btn {
  margin: 0 32px 24px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.game-submit-btn:hover { opacity: 0.85; }

.game-feedback {
  padding: 0 32px;
  font-size: 13px;
  line-height: 1.6;
  min-height: 20px;
  color: var(--text-muted);
}

.game-score-bar {
  display: flex;
  justify-content: space-between;
  padding: 16px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

.game-next-btn {
  margin: 16px 32px;
  padding: 10px 24px;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.game-next-btn:hover { background: rgba(200,169,110,0.08); }

.game-complete {
  margin-top: 16px;
}
.game-complete-inner {
  text-align: center;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
}
.game-complete-icon { font-size: 40px; margin-bottom: 12px; }
.game-complete-inner h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}
.game-complete-inner p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.btn-restart {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--navy);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-restart:hover { opacity: 0.85; }

/* === KIRKPATRICK === */
.kirkpatrick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.kp-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.kp-card:hover { border-color: var(--border-accent); }
.kp-card.highlight {
  border-color: var(--border-accent);
  background: rgba(200,169,110,0.05);
}

.kp-level {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.kp-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.kp-value {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.kp-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* === CHARTS === */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chart-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.chart-card.chart-wide {
  grid-column: 1 / -1;
}

.chart-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.chart-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* === FOOTER === */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-author strong {
  font-size: 15px;
  color: var(--text);
}
.footer-author span {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 0; padding: 16px; }
  .stat { padding: 0 14px; }
  .stat-num { font-size: 18px; }
  .section { padding: 64px 20px; }
  .tna-grid, .strategy-grid { grid-template-columns: 1fr; }
  .kirkpatrick-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .chart-card.chart-wide { grid-column: auto; }
  .objective { grid-template-columns: 60px 1fr; }
  .obj-bloom { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .fishbone { height: 260px; }
  .roadmap-phases { gap: 8px; }
}
