﻿:root {
  --text: #eef4ff;
  --muted: #a6b2cf;
  --line: rgba(255,255,255,0.12);
  --card: rgba(9, 14, 28, 0.74);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background: linear-gradient(180deg, #02030a 0%, #061023 100%);
}

.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,.78), transparent 74%);
}
.orb {
  position: absolute;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(56px);
  opacity: .36;
}
.orb-a { left: 2%; top: -6%; background: radial-gradient(circle, rgba(64,92,255,.9), rgba(64,92,255,0)); }
.orb-b { right: 4%; top: 24%; background: radial-gradient(circle, rgba(115,68,255,.82), rgba(115,68,255,0)); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(3, 6, 13, .58);
  backdrop-filter: blur(12px);
}
.brand {
  text-decoration: none;
  color: #eaf1ff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112,138,255,.75);
  color: #90a8ff;
  font-size: .84rem;
}
nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-link {
  color: #d7e0fb;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav-link:hover { border-color: var(--line); background: rgba(255,255,255,.03); }

.container {
  width: min(980px, calc(100% - 30px));
  margin: 24px auto 40px;
}
.intro h1 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
}
.intro p { margin: 0; color: var(--muted); }
.eyebrow {
  margin: 0;
  font-size: .78rem;
  color: #9fb3ff;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 700;
}

.survey-card,
.result-card {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.01)),
    var(--card);
  box-shadow: 0 20px 65px rgba(0,0,0,.42);
}

.survey-card { padding: 18px; }
.identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.identity-company { grid-column: 1 / -1; }
.identity-grid label {
  display: grid;
  gap: 6px;
  color: #dbe5ff;
  font-size: .95rem;
}
.identity-grid input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(6, 10, 22, .65);
  color: #f0f5ff;
  padding: 8px 10px;
}
.consent-note {
  margin: 2px 0 14px;
  color: #b9c6e6;
  font-size: .9rem;
  line-height: 1.55;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #dbe5ff;
  font-size: .95rem;
  margin-bottom: 8px;
}
.progress-track {
  width: 100%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 20px;
  overflow: hidden;
}
.progress-fill {
  width: 20%;
  height: 100%;
  background: linear-gradient(90deg, #4f73ff, #7e52ff);
  transition: width 260ms ease;
}
.question-title {
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.3;
}
.option-list {
  display: grid;
  gap: 10px;
}
.option-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 13px 14px;
  color: #dfe7ff;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.option-card:hover {
  border-color: rgba(124, 149, 255, .72);
  transform: translateY(-1px);
}
.option-card.selected {
  border-color: rgba(124, 149, 255, .85);
  background: rgba(89, 117, 255, .18);
}

.open-wrap {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}
.open-wrap label { color: #dbe5ff; }
.open-wrap textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(6, 10, 22, .65);
  color: #f0f5ff;
  padding: 10px 12px;
  resize: vertical;
}

.actions {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.submit-btn,
.ghost-btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}
.submit-btn {
  border: 1px solid rgba(102,129,255,.35);
  background: linear-gradient(135deg, rgba(61,96,255,.95), rgba(102,58,255,.92));
  color: white;
}
.ghost-btn {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: #deebff;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.result-card { padding: 16px; }
.result-card h2 { margin: 0 0 10px; }
.result-card ul { margin: 0 0 12px; padding-left: 20px; }
.result-card li { margin-bottom: 7px; color: #dbe5ff; }
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  margin-bottom: 10px;
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-link {
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(119,145,255,.45);
  color: #edf2ff;
  background: rgba(74, 104, 255, .2);
}

.hidden { display: none; }

@media (max-width: 640px) {
  .topbar { padding: 0 14px; }
  .survey-card { padding: 14px; }
  .identity-grid { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .submit-btn,
  .ghost-btn { width: 100%; }
}
