:root {
  --bg: #fbf7f2;
  --bg-2: #f3ede4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --text: #201a17;
  --muted: #6f675f;
  --line: rgba(32, 26, 23, 0.10);
  --line-strong: rgba(32, 26, 23, 0.16);
  --accent: #171717;
  --accent-2: #7c5cff;
  --accent-soft: rgba(124, 92, 255, 0.08);
  --shadow: 0 20px 60px rgba(41, 31, 24, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.10), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(255, 182, 193, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f8f3ec 100%);
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  padding: 28px;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.7;
}

.ambient-a {
  width: 320px;
  height: 320px;
  background: rgba(124, 92, 255, 0.14);
  top: -80px;
  right: -60px;
}

.ambient-b {
  width: 280px;
  height: 280px;
  background: rgba(255, 166, 0, 0.10);
  bottom: -80px;
  left: -40px;
}

.topbar {
  max-width: 1120px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 14px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), #b48cff);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.12);
}

.progress-meta {
  color: var(--muted);
  font-size: 14px;
}

.stage {
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: center;
  position: relative;
  z-index: 2;
}

.panel {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.55);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.panel-question {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(32, 26, 23, 0.08);
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #242424 0%, var(--accent-2) 100%);
  transition: width .35s ease;
}

.question-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 34px 10px 20px;
}

.question-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.slide-in {
  animation: floatIn .32s ease;
}

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

.question-number {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.question-title {
  margin: 0 0 14px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.question-subtitle {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

.selection-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  margin: -12px 0 10px;
}

.selection-notice {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.10);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
}

.options-grid {
  display: grid;
  gap: 14px;
}

.option-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.35);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 30px rgba(31, 24, 20, 0.08);
}

.option-card.is-active {
  border-color: rgba(124, 92, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.10);
}

.option-card.selected {
  border-color: var(--accent-2);
  background: linear-gradient(180deg, rgba(124,92,255,0.08), rgba(255,255,255,0.96));
  box-shadow: 0 14px 34px rgba(124, 92, 255, 0.12);
  transform: translateY(-2px) scale(1.01);
}

.option-key {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.option-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 92, 255, 0.12);
  flex-shrink: 0;
}

.option-main {
  flex: 1;
}

.option-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.option-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.option-check {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: transparent;
  border: 1.5px solid var(--line);
  background: rgba(255,255,255,0.88);
  flex-shrink: 0;
}

.option-card.selected .option-check {
  color: white;
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.text-input-wrapper {
  width: 100%;
}

.text-input {
  width: 100%;
  border: none;
  outline: none;
  padding: 8px 0 16px;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border-bottom: 2px solid var(--line-strong);
}

.text-input:focus {
  border-bottom-color: var(--accent-2);
}

.text-input::placeholder {
  color: rgba(111, 103, 95, 0.55);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.contact-field .text-input {
  font-size: 18px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.78);
}

.contact-field .text-input:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(124, 92, 255, 0.08);
}

.nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 26, 23, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.key-hint {
  color: var(--muted);
  font-size: 14px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.03);
}

.btn-ghost,
.btn-primary,
.cta-primary,
.cta-secondary {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  text-decoration: none;
}

.btn-ghost {
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.65);
  color: var(--text);
}

.btn-primary,
.cta-primary {
  background: linear-gradient(135deg, #171717 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 14px 28px rgba(38, 25, 89, 0.18);
}

.btn-primary:hover:not(:disabled),
.cta-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
}

.panel-result {
  padding: 34px;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-content {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.result-badge {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.10);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
}

.result-title {
  margin: 0 0 14px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.result-desc {
  max-width: 680px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 20px;
}

.result-score {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.result-route-card {
  max-width: 420px;
  margin: 0 auto 28px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
}

.result-route-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.result-route-value {
  font-size: 22px;
  font-weight: 700;
}

.score-label {
  color: var(--muted);
  font-size: 14px;
}

.score-value {
  font-weight: 700;
}

.cta-grid {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
}

.cta-secondary:hover {
  background: rgba(255,255,255,1);
}

@media (max-width: 900px) {
  .page-shell {
    padding: 18px;
  }

  .panel-question,
  .panel-result {
    min-height: calc(100vh - 36px);
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .question-wrapper {
    padding: 24px 0 16px;
  }

  .panel-question,
  .panel-result {
    padding: 20px;
    border-radius: 22px;
  }

  .option-text {
    font-size: 17px;
  }

  .nav-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-right {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
  }

  .btn-ghost,
  .btn-primary {
    width: 100%;
  }

  .key-hint {
    display: none;
  }
}
