:root {
  --bg: #06090f;
  --bg-soft: #0d1420;
  --card: rgba(16, 24, 38, 0.74);
  --card-strong: rgba(13, 20, 31, 0.92);
  --line: rgba(127, 153, 191, 0.23);
  --text: #e8f0ff;
  --muted: #95a7c7;
  --accent: #00d4ff;
  --accent-2: #7c5cff;
  --ok: #21d38a;
  --danger: #ff5d7b;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 212, 255, 0.16), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(124, 92, 255, 0.2), transparent 32%),
    linear-gradient(150deg, #05080e 0%, #070c14 42%, #0a1320 100%);
}

body {
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.ambient-a {
  width: 280px;
  height: 280px;
  background: rgba(0, 212, 255, 0.22);
  top: -70px;
  left: 8%;
  animation: driftA 12s ease-in-out infinite;
}

.ambient-b {
  width: 340px;
  height: 340px;
  background: rgba(124, 92, 255, 0.22);
  top: 35%;
  right: -110px;
  animation: driftB 14s ease-in-out infinite;
}

.ambient-c {
  width: 220px;
  height: 220px;
  background: rgba(33, 211, 138, 0.17);
  bottom: -60px;
  left: 35%;
  animation: driftC 11s ease-in-out infinite;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1220px, 100% - 2rem);
  margin: 1.5rem auto 2.5rem;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.2rem;
}

.hero-card,
.form-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, var(--card) 0%, var(--card-strong) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.hero-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px dashed rgba(0, 212, 255, 0.34);
  border-radius: 50%;
  right: -140px;
  top: -120px;
  animation: rotate 20s linear infinite;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 212, 255, 0.3));
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0.15rem 0 0;
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  font-family: "Space Grotesk", sans-serif;
}

.hero-copy {
  margin: 1.3rem 0 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.hero-points li {
  position: relative;
  padding-left: 1.5rem;
  color: #c8d5ee;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.4);
}

.form-card {
  padding: 1.3rem;
}

.stepper {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.step-dot {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  color: #8ca0c2;
}

.step-dot span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(127, 153, 191, 0.34);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: rgba(8, 13, 22, 0.75);
}

.step-dot p {
  margin: 0;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.step-dot.active {
  color: #dff7ff;
}

.step-dot.active span {
  border-color: rgba(0, 212, 255, 0.6);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}

.step-dot.done span {
  border-color: rgba(33, 211, 138, 0.7);
  background: rgba(33, 211, 138, 0.16);
}

.step-line {
  height: 1px;
  background: linear-gradient(to right, rgba(98, 116, 146, 0.25), rgba(98, 116, 146, 0.65));
}

.form-step {
  animation: stepIn 260ms ease;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.section-title-row h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.status-chip,
.section-sub {
  font-size: 0.75rem;
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #b1f3ff;
  border-radius: 999px;
  padding: 0.35rem 0.68rem;
  background: rgba(0, 212, 255, 0.08);
  white-space: nowrap;
}

.section-sub {
  border-color: rgba(124, 92, 255, 0.45);
  color: #cec1ff;
  background: rgba(124, 92, 255, 0.12);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.field span {
  font-size: 0.82rem;
  color: #b2c2de;
}

input,
select,
textarea {
  border: 1px solid rgba(123, 141, 174, 0.33);
  background: rgba(8, 13, 22, 0.8);
  color: var(--text);
  border-radius: 12px;
  padding: 0.78rem 0.85rem;
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea {
  resize: vertical;
  min-height: 112px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.18);
  transform: translateY(-1px);
}

.plans-wrap {
  margin: 1rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(127, 153, 191, 0.2);
  border-radius: 18px;
  background: rgba(7, 12, 21, 0.52);
}

.step3-meta {
  justify-content: flex-start;
  margin-top: -0.2rem;
}

.plans-container {
  display: grid;
  gap: 0.8rem;
}

.plan-category {
  border: 1px solid rgba(127, 153, 191, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(6, 11, 18, 0.76);
}

.category-head {
  width: 100%;
  border: 0;
  background: rgba(131, 163, 215, 0.08);
  color: #d6e3fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.78rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.category-head span:last-child {
  opacity: 0.85;
  transition: transform 180ms ease;
}

.plan-category.open .category-head span:last-child {
  transform: rotate(180deg);
}

.plan-list {
  display: grid;
  gap: 0.56rem;
  padding: 0.82rem;
}

.plan-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
  border: 1px solid rgba(127, 153, 191, 0.24);
  border-radius: 12px;
  background: rgba(9, 16, 27, 0.92);
  padding: 0.7rem;
  transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.plan-card:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-1px);
}

.plan-card input {
  margin-top: 0.25rem;
  accent-color: var(--ok);
}

.plan-card h4 {
  margin: 0;
  font-size: 0.93rem;
}

.plan-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.plan-card.selected {
  border-color: rgba(33, 211, 138, 0.62);
  background: rgba(10, 30, 24, 0.62);
}

.cta-btn,
.ghost-btn,
.icon-btn {
  border: 0;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

.cta-btn {
  width: 100%;
  padding: 0.95rem 1rem;
  background: linear-gradient(110deg, #00c8ff 0%, #7d5cff 58%, #7d5cff 100%);
  color: #041120;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(57, 88, 255, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cta-btn .btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(4, 17, 32, 0.28);
  border-top-color: #041120;
}

.cta-btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  pointer-events: none;
}

.cta-btn.is-loading .btn-spinner {
  display: inline-block;
  animation: spin 700ms linear infinite;
}

.cta-btn.is-loading .btn-label {
  opacity: 0.9;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(57, 88, 255, 0.44);
}

.cta-btn:active {
  transform: translateY(0);
}

.hidden-honeypot {
  position: absolute;
  left: -5000px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(660px, calc(100% - 1.6rem));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(11, 18, 28, 0.96), rgba(9, 15, 25, 0.97));
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: modalRise 220ms ease;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-family: "Space Grotesk", sans-serif;
}

.icon-btn {
  width: 32px;
  height: 32px;
  background: rgba(123, 141, 174, 0.2);
  color: #d7e6ff;
  font-size: 1.1rem;
}

.modal-copy {
  color: var(--muted);
  margin: 0.6rem 0 0.9rem;
  font-size: 0.92rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.preview-label {
  margin: 0;
  color: #9db0cf;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.preview-value {
  margin: 0.14rem 0 0;
  font-size: 0.9rem;
  color: #deebff;
  word-break: break-word;
}

.preview-plans {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.preview-plan-chip {
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: #c8f6ff;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  background: rgba(0, 212, 255, 0.08);
}

.submit-success {
  margin-top: 1rem;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.45rem;
}

.submit-success h4 {
  margin: 0.2rem 0 0;
  font-size: 1.08rem;
  font-family: "Space Grotesk", sans-serif;
}

.submit-success p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.success-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(33, 211, 138, 0.45);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(33, 211, 138, 0.28);
  animation: successPulse 1.1s ease-out 1;
}

.success-check {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(33, 211, 138, 0.2);
  color: #a9ffd8;
  font-weight: 700;
  font-size: 1.35rem;
  animation: popIn 350ms ease;
}

.modal-actions {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
}

.modal-actions .cta-btn,
.modal-actions .ghost-btn {
  width: 100%;
}

.ghost-btn {
  background: rgba(123, 141, 174, 0.14);
  color: #d8e8ff;
  font-weight: 600;
}

.step-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.step-actions.right {
  justify-content: flex-end;
}

.step-actions.between {
  justify-content: space-between;
}

.step-actions .cta-btn,
.step-actions .ghost-btn {
  width: auto;
  min-width: 124px;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes driftA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(16px, 18px);
  }
}

@keyframes driftB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-22px, 12px);
  }
}

@keyframes driftC {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -16px);
  }
}

@keyframes modalRise {
  from {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes popIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes successPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 211, 138, 0.35);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(33, 211, 138, 0);
  }
}

@keyframes stepIn {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .page-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .grid.two,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .step-line {
    display: none;
  }

  .step-dot {
    grid-template-columns: auto 1fr;
    align-items: center;
    justify-items: start;
    gap: 0.55rem;
  }

  .step-dot p {
    font-size: 0.76rem;
  }

  .hero-card,
  .form-card {
    border-radius: 20px;
  }

  .hero-card {
    padding: 1.35rem;
  }

  .form-card {
    padding: 0.95rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .step-actions {
    flex-direction: column-reverse;
  }

  .step-actions .cta-btn,
  .step-actions .ghost-btn {
    width: 100%;
  }
}
