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

:root {
  --bg: #051022;
  --surface: rgba(10, 22, 49, 0.84);
  --surface-strong: rgba(8, 18, 40, 0.96);
  --surface-soft: rgba(18, 31, 64, 0.76);
  --ink: #edf3ff;
  --muted: #a8b6d2;
  --line: rgba(111, 145, 204, 0.26);
  --brand: #9855f0;
  --brand-deep: #7341c4;
  --accent: #2ad8dc;
  --success: #38d39f;
  --warning: #ffbe64;
  --danger: #ff9494;
  --shadow: 0 28px 70px rgba(2, 7, 20, 0.5);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1240px;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(42, 216, 220, 0.2), transparent 24%),
    radial-gradient(circle at 12% 84%, rgba(152, 85, 240, 0.28), transparent 30%),
    linear-gradient(145deg, #050c1b 8%, #061228 48%, #09183a 100%);
  position: relative;
  overflow-x: hidden;
}

body,
input,
textarea,
button {
  font: inherit;
}

.page-shell {
  position: relative;
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: grid;
  gap: 1.2rem;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 30%, rgba(42, 216, 220, 0.14), transparent 22%),
    radial-gradient(circle at 18% 76%, rgba(152, 85, 240, 0.18), transparent 28%);
}

.background-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 34%, black 0%, transparent 80%);
  opacity: 0.4;
}

.page-topbar {
  position: relative;
  z-index: 1;
}

.page-topbar-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.page-topbar-label,
.page-topbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 105, 156, 0.4);
  background: rgba(8, 18, 40, 0.7);
  color: #dce6fb;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 16px 34px rgba(2, 7, 20, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.page-topbar-label {
  padding: 0 1.05rem;
}

.page-topbar-pill {
  padding: 0 0.9rem;
  color: #adc2ea;
}

.page-topbar-accent {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  box-shadow:
    0 0 0 1px rgba(80, 141, 201, 0.3),
    0 10px 30px rgba(11, 34, 75, 0.28);
}

.access-gate[hidden],
.questionnaire-app[hidden] {
  display: none !important;
}

.questionnaire-app {
  display: grid;
  gap: 1.2rem;
}

.access-gate {
  max-width: min(100%, 44rem);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  border-radius: 34px;
  border: 1px solid rgba(83, 112, 170, 0.34);
  background:
    linear-gradient(145deg, rgba(12, 25, 52, 0.94), rgba(8, 18, 40, 0.9)),
    var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.access-gate::before,
.hero::before,
.sidebar-card::before,
.questionnaire-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(152, 85, 240, 0.9), rgba(42, 216, 220, 0.9));
  opacity: 0.9;
}

.gate-accent {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  margin-bottom: 1.3rem;
}

.hero {
  padding: 2.5rem;
  border: 1px solid rgba(83, 112, 170, 0.3);
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(145deg, rgba(14, 28, 59, 0.92), rgba(11, 21, 46, 0.88)),
    rgba(8, 18, 40, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 2.5rem 0;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  opacity: 0.95;
}

.eyebrow,
.section-kicker,
.meta-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: #d4dbef;
}

.access-gate > .eyebrow,
.hero-badge-row > .eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0 0.82rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 105, 156, 0.36);
  background: rgba(8, 18, 40, 0.65);
  box-shadow: inset 0 0 0 1px rgba(200, 219, 255, 0.03);
}

.access-gate h1,
.hero h1 {
  margin: 0.55rem 0 0;
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 14ch;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 68ch;
  line-height: 1.7;
  color: var(--muted);
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(83, 112, 170, 0.5);
  background: rgba(12, 25, 52, 0.9);
  color: #d8e2f7;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.meta-card,
.sidebar-card,
.questionnaire-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.meta-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(14, 29, 61, 0.84), rgba(11, 21, 45, 0.78)),
    var(--surface-soft);
}

.meta-card strong {
  display: block;
  margin-top: 0.35rem;
}

.access-form {
  margin-top: 1.35rem;
  display: grid;
  gap: 1rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: start;
}

.sidebar-card {
  position: sticky;
  top: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(12, 25, 52, 0.92), rgba(8, 18, 39, 0.84)),
    var(--surface);
}

.sidebar-card h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.sidebar-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.65;
}

.note-block {
  margin-top: 1.4rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(152, 85, 240, 0.14), rgba(42, 216, 220, 0.12));
  border: 1px solid rgba(120, 140, 201, 0.22);
}

.note-block p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-nav-panel {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(120, 140, 201, 0.18);
}

.workspace-nav {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.workspace-nav-button {
  appearance: none;
  width: 100%;
  min-height: 3.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 201, 0.18);
  background: linear-gradient(145deg, rgba(17, 32, 66, 0.82), rgba(10, 20, 43, 0.74));
  color: var(--ink);
  font-weight: 700;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.workspace-nav-button:hover {
  transform: translateY(-1px);
}

.workspace-nav-button.is-active {
  border-color: rgba(98, 132, 252, 0.42);
  background: linear-gradient(135deg, rgba(111, 70, 208, 0.28), rgba(24, 62, 102, 0.42));
  box-shadow: 0 16px 32px rgba(26, 49, 93, 0.16);
}

.sidebar-stat-grid {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.sidebar-stat-card {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 201, 0.18);
  background: linear-gradient(145deg, rgba(17, 32, 66, 0.82), rgba(10, 20, 43, 0.74));
}

.sidebar-stat-card strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--ink);
}

.sidebar-stat-label {
  display: block;
  color: #cad6ef;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-subtitle {
  margin: 1.35rem 0 0;
  font-size: 1rem;
}

.workspace-panel-stack {
  display: grid;
  min-width: 0;
}

.content-grid > *,
.workspace-panel,
.maps-workspace-card,
.questionnaire-card,
.maps-metric-card,
.maps-overview-card,
.maps-detail-card,
.recommendation-card,
.flow-chart-card,
.phase-card,
.phase-card > *,
.hosting-option-head > * {
  min-width: 0;
}

.workspace-panel[hidden] {
  display: none !important;
}

.maps-workspace-card,
.questionnaire-card {
  padding: 1.4rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(12, 24, 51, 0.94), rgba(8, 17, 37, 0.88)),
    var(--surface);
}

.maps-workspace-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.maps-workspace-card h3,
.maps-workspace-card h4 {
  margin: 0;
}

.hero h1,
.access-gate h1,
.sidebar-card h2,
.section-heading h2,
.maps-section-heading h3,
.maps-workspace-card h3,
.maps-workspace-card h4,
.hosting-option-price,
.hosting-option-facts dd,
.phase-card p,
.hero-copy,
.note-block p {
  overflow-wrap: anywhere;
}

.maps-hero {
  display: grid;
  gap: 1rem;
}

.maps-hero-copy p:last-child {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.maps-hero-metrics,
.maps-overview-grid,
.maps-option-grid,
.maps-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.maps-metric-card,
.maps-overview-card,
.maps-detail-card,
.recommendation-card,
.flow-chart-card {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 201, 0.18);
  background: linear-gradient(145deg, rgba(14, 28, 59, 0.9), rgba(9, 18, 40, 0.84));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.maps-detail-card.is-recommended,
.recommendation-card {
  border-color: rgba(98, 132, 252, 0.36);
  box-shadow:
    inset 0 0 0 1px rgba(98, 132, 252, 0.1),
    0 16px 32px rgba(26, 49, 93, 0.16);
}

.maps-metric-label,
.flow-step-label,
.sidebar-stat-label {
  display: block;
  color: #cad6ef;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.maps-metric-card strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.1rem;
}

.maps-metric-card p,
.maps-overview-card p,
.recommendation-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.maps-overview-card h4,
.recommendation-card h4 {
  margin-top: 0.7rem;
}

.maps-section {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(120, 140, 201, 0.18);
}

.maps-section-heading {
  margin-bottom: 1rem;
}

.maps-section-heading h3 {
  margin-top: 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.decision-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.flow-chart-card h4 {
  margin-bottom: 0.9rem;
}

.flow-chart {
  display: grid;
  gap: 0.75rem;
}

.flow-step {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(120, 140, 201, 0.18);
  background: rgba(8, 18, 40, 0.76);
}

.flow-step strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
}

.flow-step p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  color: #dbe7ff;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.hosting-option-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.hosting-option-head h4 {
  margin: 0;
  font-size: 1rem;
}

.hosting-option-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(152, 85, 240, 0.16);
  border: 1px solid rgba(152, 85, 240, 0.2);
  color: #ddc8ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hosting-option-price {
  margin: 0.55rem 0 0;
  color: #d7e3ff;
  font-weight: 600;
  line-height: 1.5;
}

.hosting-option-facts {
  margin: 0.85rem 0 0;
  display: grid;
  gap: 0.65rem;
}

.hosting-option-facts div {
  display: grid;
  gap: 0.18rem;
}

.hosting-option-facts dt {
  color: #cad6ef;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hosting-option-facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.phase-ladder {
  display: grid;
  gap: 0.8rem;
}

.phase-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(120, 140, 201, 0.18);
  background: rgba(8, 18, 40, 0.76);
}

.phase-card h4 {
  margin: 0;
}

.phase-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: white;
  font-weight: 800;
}

.hosting-map-footnote {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.84rem;
}


.section-block + .section-block {
  margin-top: 1.2rem;
}

.section-block {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: rgba(16, 29, 59, 0.62);
  border: 1px solid rgba(102, 129, 181, 0.16);
  position: relative;
  overflow: hidden;
}

.section-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(152, 85, 240, 0.85), rgba(42, 216, 220, 0.75));
}

.section-heading {
  margin-bottom: 1rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

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

.field {
  display: grid;
  gap: 0.4rem;
}

.field span,
.option-group legend {
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(76, 105, 156, 0.42);
  background: rgba(6, 16, 37, 0.94);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(111, 143, 247, 0.72);
  box-shadow: 0 0 0 4px rgba(111, 143, 247, 0.16);
  transform: translateY(-1px);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #7082a5;
}

.option-group {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.choice-pill {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: block;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(83, 112, 170, 0.26);
  border-radius: 16px;
  background: rgba(8, 18, 40, 0.82);
  color: var(--ink);
  line-height: 1.45;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.choice-pill input:checked + span {
  border-color: rgba(98, 132, 252, 0.56);
  background: linear-gradient(135deg, rgba(111, 70, 208, 0.28), rgba(24, 62, 102, 0.42));
  box-shadow: 0 12px 28px rgba(37, 68, 120, 0.24);
  transform: translateY(-1px);
}

.choice-pill span:hover {
  transform: translateY(-1px);
}

.action-block {
  margin-top: 1.25rem;
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(14, 28, 60, 0.92), rgba(10, 20, 42, 0.88));
  border: 1px solid rgba(102, 129, 181, 0.2);
  position: relative;
  overflow: hidden;
}

.action-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(42, 216, 220, 0.85), rgba(152, 85, 240, 0.75));
}

.status-banner {
  display: none;
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

.status-banner.is-visible {
  display: block;
}

.status-banner[data-tone="success"] {
  background: rgba(56, 211, 159, 0.14);
  color: var(--success);
}

.status-banner[data-tone="warning"] {
  background: rgba(255, 190, 100, 0.14);
  color: var(--warning);
}

.status-banner[data-tone="neutral"] {
  background: rgba(61, 89, 142, 0.18);
  color: #ced7ea;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.92rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

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

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 18px 30px rgba(41, 71, 128, 0.26);
}

.button-secondary {
  background: rgba(11, 21, 46, 0.92);
  color: var(--ink);
  border: 1px solid rgba(83, 112, 170, 0.34);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px dashed rgba(83, 112, 170, 0.34);
}

.footnote {
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .content-grid,
  .field-grid-2,
  .choice-grid,
  .hero-meta,
  .maps-hero-metrics,
  .maps-overview-grid,
  .maps-option-grid,
  .maps-recommendation-grid,
  .decision-flow-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

  .hero,
  .maps-workspace-card,
  .questionnaire-card,
  .sidebar-card,
  .access-gate {
    padding: 1.2rem;
  }

  .section-block,
  .action-block {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding: 0.75rem 0 2rem;
  }

  .page-topbar-copy {
    gap: 0.5rem;
    margin-bottom: 0.7rem;
  }

  .page-topbar-label,
  .page-topbar-pill {
    min-height: 2.2rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero-badge-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hosting-option-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero h1,
  .access-gate h1 {
    max-width: none;
  }

  .hero::after {
    inset-inline: 1.2rem;
  }

  .workspace-nav-button,
  .hosting-option-tag {
    white-space: normal;
  }

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

  .button {
    width: 100%;
  }

  .phase-card {
    grid-template-columns: 1fr;
  }
}
