:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-warm: #050b1b;
  --ink: #eef3fe;
  --muted: #9aa8c0;
  --soft: #eef3fe;
  --panel: #071122;
  --panel-strong: #02091b;
  --panel-mid: #0a0f1f;
  --line: #1e2a42;
  --line-dark: #26334d;
  --accent: #5885fa;
  --accent-strong: #8aaafc;
  --accent-soft: rgba(88, 133, 250, 0.16);
  --success: #34d399;
  --danger: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(88, 133, 250, 0.14), transparent 360px),
    linear-gradient(180deg, #020617 0%, #050b1b 46%, #020617 100%),
    var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

[hidden] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid rgba(30, 42, 66, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(128px, 16vw, 170px);
  height: auto;
}

.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(88, 133, 250, 0.36);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(88, 133, 250, 0.18), rgba(7, 17, 34, 0.82)),
    #071122;
  color: #eef3fe;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.ghost-link span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: rgba(88, 133, 250, 0.22);
  border-radius: 999px;
  color: var(--accent-strong);
}

.ghost-link:hover {
  border-color: rgba(138, 170, 252, 0.72);
  transform: translateY(-1px);
}

main {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 56px) 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  min-height: 520px;
  padding: clamp(42px, 7vw, 86px) 0 clamp(28px, 6vw, 66px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(88, 133, 250, 0.38);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(2.65rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 780px;
  color: #cddafe;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  padding: 10px 13px;
  background: rgba(7, 17, 34, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #dbe6ff;
  font-size: 0.92rem;
  font-weight: 600;
}

.privacy-card {
  align-self: center;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(145deg, rgba(88, 133, 250, 0.18), transparent 54%),
    var(--panel-strong);
  color: #eef3fe;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.privacy-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(88, 133, 250, 0.38);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.privacy-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.privacy-card p {
  color: #cddafe;
}

.privacy-card p:last-child {
  margin-bottom: 0;
}

.form-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 38px);
  align-items: start;
}

.form-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-panel,
.form-section,
.consent-section {
  background: rgba(7, 17, 34, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.sidebar-panel {
  padding: 22px;
}

.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 700;
}

.progress-heading strong {
  color: var(--ink);
}

.progress-track {
  overflow: hidden;
  height: 8px;
  margin-bottom: 10px;
  background: #101a2f;
  border-radius: 999px;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8aaafc);
  border-radius: inherit;
  transition: width 180ms ease;
}

.progress-detail {
  margin: 0 0 20px;
  color: #cddafe;
  font-size: 0.88rem;
  font-weight: 700;
}

.step-list {
  display: grid;
  counter-reset: wizard-step;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  counter-increment: wizard-step;
}

.step-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px;
  color: #cddafe;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.step-list a::before {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  content: counter(wizard-step);
  background: #0d1a31;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9aa8c0;
  font-size: 0.78rem;
  font-weight: 900;
}

.step-list a:hover,
.step-list a.active {
  background: var(--accent-soft);
  border-color: rgba(88, 133, 250, 0.34);
  color: var(--accent-strong);
}

.step-list li.is-active a::before {
  background: var(--accent);
  border-color: var(--accent);
  color: #020617;
}

.step-list li.is-complete a {
  color: #eef3fe;
}

.step-list li.is-complete a::before {
  content: "✓";
  background: rgba(52, 211, 153, 0.16);
  border-color: rgba(52, 211, 153, 0.38);
  color: var(--success);
}

.sidebar-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.project-form {
  display: grid;
  gap: 18px;
}

.wizard-status {
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(88, 133, 250, 0.14), transparent 54%),
    rgba(7, 17, 34, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.wizard-status span {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wizard-status strong {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
}

.form-section,
.consent-section {
  padding: clamp(20px, 4vw, 34px);
  scroll-margin-top: 96px;
}

.form-section.is-active,
.consent-section.is-active {
  animation: pageIn 180ms ease both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  display: grid;
  gap: 18px;
}

fieldset {
  min-width: 0;
  margin: 0;
}

legend {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

legend span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.92rem;
}

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

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

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

label,
.choice-group {
  display: grid;
  gap: 8px;
}

label > span,
.group-label {
  color: #dbe6ff;
  font-size: 0.92rem;
  font-weight: 700;
}

label > small {
  color: var(--muted);
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  min-width: 0;
  background: #050b1b;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  background: #071122;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(88, 133, 250, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.subsection,
.content-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #081225;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.suggestion-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #081225;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.suggestion-panel.compact {
  padding: 12px;
}

.suggestion-panel > span {
  color: #dbe6ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-actions button {
  min-height: 36px;
  padding: 8px 11px;
  background: #0a1326;
  color: #dbe6ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.suggestion-actions button:hover {
  background: var(--accent-soft);
  border-color: rgba(88, 133, 250, 0.45);
  color: var(--accent-strong);
}

.subsection h3,
.content-block h3,
.consent-section h2 {
  margin-bottom: 0;
  font-size: 1.04rem;
}

.subsection p,
.section-intro {
  margin-bottom: 0;
  color: var(--muted);
}

.checkbox-grid,
.section-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label,
.section-picker label,
.consent,
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: #081225;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #cddafe;
}

.choice-card {
  cursor: pointer;
}

.choice-card strong {
  display: block;
  color: var(--ink);
}

.choice-card em {
  display: inline-flex;
  margin-left: 6px;
  padding: 3px 7px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  vertical-align: middle;
}

.choice-card:has(input:checked),
.checkbox-grid label:has(input:checked),
.section-picker label:has(input:checked),
.consent:has(input:checked),
.upsell-card:has(input:checked) {
  background: var(--accent-soft);
  border-color: rgba(88, 133, 250, 0.45);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}

.locked {
  color: var(--muted);
}

.upsell-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(88, 133, 250, 0.2), transparent 56%),
    #050b1b;
  color: #eef3fe;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.upsell-callout strong {
  display: block;
  margin-bottom: 4px;
}

.upsell-callout p {
  margin-bottom: 0;
  color: #cddafe;
  font-size: 0.94rem;
}

.upsell-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.upsell-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #081225;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #cddafe;
}

.upsell-card.featured {
  border-color: rgba(88, 133, 250, 0.55);
  box-shadow: inset 0 0 0 1px rgba(88, 133, 250, 0.1);
}

.upsell-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.upsell-card em {
  display: block;
  margin-top: 8px;
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 800;
}

.file-field {
  padding: 16px;
  background: #050b1b;
  border: 1px dashed #33435f;
  border-radius: var(--radius);
}

.file-field input {
  width: 100%;
}

.file-field small {
  color: var(--muted);
}

.consent-section {
  display: grid;
  gap: 14px;
}

.form-message {
  min-height: 28px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.wizard-actions {
  position: sticky;
  bottom: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: rgba(2, 9, 27, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.wizard-draft-actions,
.wizard-main-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wizard-main-actions {
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(88, 133, 250, 0.28);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.small {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 9px 12px;
  font-size: 0.9rem;
}

.button.secondary {
  background: #0e1a32;
  color: #ffffff;
  border-color: var(--line-dark);
}

.button.ghost {
  background: #081225;
  color: #dbe6ff;
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 30px 16px 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--accent-strong);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .hero,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .form-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header,
  .header-actions,
  .form-actions,
  .wizard-actions,
  .wizard-draft-actions,
  .wizard-main-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .brand {
    justify-content: center;
  }

  .brand-logo {
    width: 148px;
  }

  .ghost-link,
  .button {
    width: 100%;
  }

  .wizard-actions {
    position: static;
  }

  .suggestion-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding-top: 34px;
  }

  .grid.two,
  .grid.three,
  .checkbox-grid,
  .section-picker,
  .upsell-grid,
  .step-list {
    grid-template-columns: 1fr;
  }

  .upsell-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .form-section,
  .consent-section,
  .sidebar-panel {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.8rem);
  }

  .hero-meta span {
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
