:root {
  --bg: #0A0A0A;
  --panel: #111111;
  --panel-2: #151515;
  --border: #2A2A2A;
  --border-strong: #404040;
  --text: #FFFFFF;
  --muted: #9CA3AF;
  --accent: #1B9AAA;
  --purple: #4C1D95;
  --danger: #FF6B6B;
  --success: #66E3A7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.background-glow {
  position: fixed;
  inset: -30% -20% auto auto;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(76, 29, 149, 0.28), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.background-glow::after {
  content: '';
  position: fixed;
  bottom: -25%;
  left: -18%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(27, 154, 170, 0.13), transparent 62%);
  pointer-events: none;
  z-index: -1;
}

.topbar {
  width: min(1100px, calc(100% - 32px));
  margin: 28px auto 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(27, 154, 170, 0.38);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(27, 154, 170, 0.1) 0%, rgba(76, 29, 149, 0.08) 100%);
  box-shadow:
    0 0 28px rgba(27, 154, 170, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(27, 154, 170, 0.85) 35%, rgba(27, 154, 170, 0.85) 65%, transparent);
  border-radius: 0 2px 2px 0;
}

.mark-b,
.mark-g {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.mark-num {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.58rem;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 7px;
  letter-spacing: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1;
}

.brand-connector {
  color: var(--muted);
  font-weight: 500;
}

.brand-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow.accent {
  color: var(--accent);
}

.tagline {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(17, 17, 17, 0.88);
}

.progress-wrap {
  margin-bottom: 28px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.progress-bar {
  height: 8px;
  background: #1A1A1A;
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  width: 10%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 220ms ease;
}

.form-page {
  display: none;
  animation: fadeIn 180ms ease;
}

.form-page.active {
  display: block;
}

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

.hero {
  padding: 10px 0 4px;
}

h1, h2 {
  letter-spacing: -0.045em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin: 8px 0 14px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  margin: 0 0 12px;
}

.hero h2 {
  color: var(--accent);
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
}

.section-intro {
  margin-top: -4px;
  margin-bottom: 24px;
  max-width: 760px;
}

.notice,
.observation-box {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(27, 154, 170, 0.35);
  border-radius: 18px;
  background: rgba(27, 154, 170, 0.08);
  color: var(--text);
}

.observation-box {
  border-color: rgba(76, 29, 149, 0.55);
  background: rgba(76, 29, 149, 0.16);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field,
fieldset.field {
  display: block;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
}

.field span,
legend,
.slider-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

b {
  color: var(--accent);
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0D0D0D;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}

textarea {
  min-height: 115px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #0F0F0F;
}

::placeholder {
  color: #6B7280;
}

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

.radio-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0D0D0D;
  cursor: pointer;
}

.radio-row input {
  accent-color: var(--accent);
}

.slider-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-2);
}

.helper {
  margin-top: -2px;
  font-size: 0.94rem;
}

.scorecard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.scorecard-header .slider-label {
  margin-bottom: 0;
  flex: 1;
}

.score-display {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  background: #0D0D0D;
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.scorecard-range {
  width: 100%;
  accent-color: var(--accent);
  vertical-align: middle;
  margin-top: 8px;
}

input[type="range"] {
  width: calc(100% - 58px);
  accent-color: var(--accent);
  vertical-align: middle;
}

output {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  margin-left: 10px;
  border-radius: 12px;
  background: #0D0D0D;
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 800;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, background 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: var(--accent);
  color: #041010;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.form-error {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.thank-you {
  padding: 36px 0;
}

footer {
  width: min(920px, calc(100% - 32px));
  margin: 18px auto 36px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

.invalid input,
.invalid textarea,
.invalid .radio-row label {
  border-color: var(--danger);
}

@media (max-width: 720px) {
  .topbar {
    margin-top: 18px;
  }

  .app {
    padding: 18px 18px 90px;
    border-radius: 22px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .radio-row {
    flex-direction: column;
  }

  .radio-row label {
    width: 100%;
  }

  .form-nav {
    position: sticky;
    bottom: 0;
    margin-left: -18px;
    margin-right: -18px;
    padding: 14px 18px;
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(8px);
  }

  .btn {
    flex: 1;
  }
}
