:root {
  --bg: #0f1115;
  --surface: #161920;
  --surface-light: #1e222b;
  --text: #e6e6e6;
  --text-muted: #8b92a8;
  --accent: #c9a227;
  --accent-hover: #e0b93a;
  --danger: #c94f4f;
  --success: #5b9a6d;
  --border: #2a2f3a;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header a:hover {
  color: var(--accent);
}

header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

header li a {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 700px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

.card-accent {
  border-left: 4px solid var(--accent);
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #0f1115;
  border: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

button:hover, .button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

button:disabled {
  background: #444;
  color: #888;
  cursor: not-allowed;
  transform: none;
}

.button-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.button-outline:hover {
  background: rgba(201, 162, 39, 0.1);
}

.progress-container {
  margin-bottom: 2rem;
}

.progress-bar {
  height: 8px;
  background: var(--surface-light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.question-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.question-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.question-text {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.likert {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.likert label {
  flex: 1;
  min-width: 70px;
  text-align: center;
  cursor: pointer;
}

.likert input {
  display: none;
}

.likert span {
  display: block;
  padding: 0.7rem 0.5rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.15s;
}

.likert input:checked + span {
  background: var(--accent);
  color: #0f1115;
  border-color: var(--accent);
  font-weight: 600;
}

.likert span:hover {
  border-color: var(--accent);
  color: var(--text);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.result-header h2 {
  font-size: 2rem;
}

.result-myth {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.result-myth.primary {
  border-left: 5px solid var(--accent);
}

.result-myth.secondary {
  border-left: 5px solid var(--text-muted);
}

.result-myth h3 {
  margin: 0 0 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-myth .score {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.result-myth .tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.result-myth p {
  margin: 0;
  color: var(--text-muted);
}

.chart-container {
  position: relative;
  height: 420px;
  margin: 2rem 0;
}

.table-results {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.table-results th,
.table-results td {
  padding: 0.8rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table-results th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-results td {
  color: var(--text);
}

.table-results .bar-cell {
  width: 45%;
}

.table-results .bar-bg {
  background: var(--surface-light);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.table-results .bar-fill {
  background: var(--accent);
  height: 100%;
  border-radius: 5px;
}

.hidden {
  display: none !important;
}

.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.method-section {
  margin-bottom: 2.5rem;
}

.method-section h3 {
  color: var(--accent);
}

.method-section ul, .method-section ol {
  color: var(--text-muted);
  padding-left: 1.4rem;
}

.method-section li {
  margin-bottom: 0.6rem;
}

footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .card { padding: 1.25rem; }
  .likert label { min-width: 100%; }
  .likert span { padding: 0.6rem; }
  header ul { gap: 1rem; }
}
