@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #050b1f;
  --surface: #0b1630;
  --surface-strong: #0f1c3c;
  --ink: #f5f9ff;
  --muted: #a4b4cc;
  --accent: #39e6ff;
  --accent-strong: #2e8bff;
  --accent-soft: #0f2a45;
  --border: #1f2f52;
  --warning: #ffb4aa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0c1838 0%, #050b1f 55%, #04070f 100%);
  color: var(--ink);
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(240px, 420px) minmax(320px, 560px);
  gap: 48px;
  padding: 48px clamp(24px, 6vw, 80px);
  align-items: start;
}

.hero {
  position: sticky;
  top: 32px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(57, 230, 255, 0.12), rgba(4, 12, 26, 0.8));
  border: 1px solid rgba(57, 230, 255, 0.15);
  box-shadow: inset 0 0 40px rgba(57, 230, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.logo {
  width: 180px;
  max-width: 100%;
  height: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: rgba(245, 249, 255, 0.7);
  margin: 0 0 16px;
  font-weight: 600;
}

h1 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.2rem, 3vw, 3.2rem);
  margin: 0 0 16px;
}

.subhead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-points li {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(9, 19, 40, 0.8);
  border: 1px solid rgba(57, 230, 255, 0.12);
  font-weight: 600;
}

.card {
  background: var(--surface);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(2, 6, 16, 0.55);
  border: 1px solid rgba(57, 230, 255, 0.12);
}

.progress {
  margin-bottom: 24px;
}

.progress-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--muted);
}

.progress-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #1a2a4d;
  border-radius: 999px;
}

.progress-fill {
  height: 100%;
  width: 33.33%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.3s ease;
}

.step {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step.active {
  display: block;
}

.step h2 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin-top: 0;
  margin-bottom: 6px;
}

.step-note {
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0c1a33;
  color: var(--ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(164, 180, 204, 0.7);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 230, 255, 0.18);
}

.radio-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.radio-pill,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(57, 230, 255, 0.2);
  background: rgba(9, 19, 40, 0.8);
  cursor: pointer;
  font-weight: 600;
}

.radio-pill input,
.chip input {
  accent-color: var(--accent);
}

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

.need-panel {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(57, 230, 255, 0.15);
  background: #0b1833;
}

.need-panel h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-note {
  text-align: center;
  margin-top: 12px;
}

.optional-toggle {
  margin-top: 8px;
  margin-bottom: 4px;
}

.optional-section {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.calc-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: #0b2240;
  border: 1px solid rgba(57, 230, 255, 0.25);
}

.calc-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.calc-value {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 6px;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #031022;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(120deg, #6cf0ff, #3aa0ff);
}

button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(57, 230, 255, 0.4);
}

button.ghost:hover {
  background: rgba(15, 107, 95, 0.08);
}

.consent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #0b1c38;
  border: 1px solid rgba(57, 230, 255, 0.2);
  margin-top: 12px;
}

.success,
.error {
  margin-top: 24px;
  padding: 18px;
  border-radius: 16px;
}

.success {
  background: #0f2a26;
  border: 1px solid #2f776c;
}

.error {
  background: #3a1a1a;
  border: 1px solid #ffb4aa;
  color: var(--warning);
}

.loading {
  position: fixed;
  inset: 0;
  background: rgba(17, 21, 22, 0.45);
  display: grid;
  place-items: center;
  z-index: 100;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 11, 31, 0.7);
  display: grid;
  place-items: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  z-index: 110;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: #0b1833;
  padding: 28px 32px;
  border-radius: 20px;
  width: min(420px, 92vw);
  max-height: calc(100vh - 40px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 70px rgba(2, 6, 16, 0.7);
  border: 1px solid rgba(57, 230, 255, 0.2);
  display: grid;
  gap: 14px;
}

body.modal-open {
  overflow: hidden;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.hidden {
  display: none;
}

.loading.hidden {
  display: none;
}

.loading-card {
  background: #0b1833;
  padding: 28px 32px;
  border-radius: 20px;
  text-align: center;
  width: min(360px, 90vw);
  box-shadow: 0 20px 60px rgba(2, 6, 16, 0.6);
}

.spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #1d2f52;
  border-top-color: var(--accent);
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 920px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero {
    position: static;
  }
}
