:root {
  --background: #080c17;
  --panel: #111827;
  --panel-border: #1f2937;
  --text: #f9fafb;
  --muted: #9ca3af;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.1);
  --good: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background-color: var(--background);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  width: min(1200px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.hero-copy {
  color: var(--muted);
  font-size: 18px;
  max-width: 800px;
  margin: 0;
}

.main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.sidebar {
  position: sticky;
  top: 48px;
  align-self: start;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.step-item {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.step-item.active {
  background: var(--panel);
  border-color: var(--panel-border);
  box-shadow: var(--shadow);
}

.step-item-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.step-item-copy {
  font-size: 12px;
  color: var(--muted);
}

.summary-chip-grid {
  display: grid;
  gap: 12px;
}

.summary-chip {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.summary-chip-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.summary-chip-value {
  font-size: 16px;
  font-weight: 700;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.panel-copy {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 640px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.choice-button {
  text-align: left;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--muted);
}

.choice-button.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.choice-title {
  font-weight: 700;
  font-size: 16px;
}

.choice-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-button {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.criterion-grid {
  display: grid;
  gap: 20px;
}

.criterion-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.criterion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.criterion-title {
  font-size: 18px;
  font-weight: 700;
}

.criterion-description {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

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

.range-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: inherit;
  padding: 12px;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.action-button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.secondary-button {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: inherit;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.result-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.result-state {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.result-state-value {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-state-value.good { color: var(--good); }
.result-state-value.warn { color: var(--warn); }
.result-state-value.bad { color: var(--bad); }

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-item {
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
}

.insight-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.small-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.small-table th {
  text-align: left;
  color: var(--muted);
  padding-bottom: 8px;
}

.small-table td {
  padding: 6px 0;
  border-bottom: 1px solid var(--panel-border);
}

@media (max-width: 1024px) {
  .main-grid, .result-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .button-grid, .range-group { grid-template-columns: minmax(0, 1fr); }
}

.main-grid > *, .result-layout > *, .range-group > * { min-width: 0; }
