:root {
  --bg-main: #0a0e1a;
  --bg-panel: #111828;
  --bg-card: #141e31;
  --bg-card-strong: #17243d;
  --text-main: #f8faff;
  --text-muted: #9cb0d3;
  --line-soft: rgba(112, 146, 203, 0.24);
  --line-strong: rgba(59, 130, 246, 0.62);
  --accent: #3b82f6;
  --accent-strong: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.32);
  --good: #18c47a;
  --warn: #f59e0b;
  --purple: #8b5cf6;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "IBM Plex Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(59, 130, 246, 0.26), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.15), transparent 30%),
    linear-gradient(170deg, #090d19 0%, #0a0e1a 48%, #090d18 100%);
  line-height: 1.45;
}

.page-shell {
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 48px 0 36px;
}

.hero {
  margin-bottom: 26px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(120, 159, 222, 0.44);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(3, 9, 24, 0.38);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-kicker {
  margin: 0 0 10px;
  color: #c8d4ed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Avenir Next", sans-serif;
  letter-spacing: 0.01em;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
}

.wizard-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 23, 39, 0.94), rgba(11, 18, 32, 0.95));
  padding: 22px 22px 26px;
  box-shadow: var(--shadow-lg);
}

.step-indicator {
  margin-bottom: 22px;
}

.step-track {
  height: 8px;
  background: rgba(61, 90, 142, 0.24);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.step-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4f8ef8 0%, #60a5fa 55%, #7dd3fc 100%);
  border-radius: inherit;
  transition: width 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.step-labels {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9aaecf;
  padding: 8px 10px;
  border-radius: 999px;
  transition: background-color 200ms ease, color 200ms ease;
}

.step-label.is-active,
.step-label.is-complete {
  background: rgba(59, 130, 246, 0.12);
  color: #dbe9ff;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 169, 209, 0.38);
  font-size: 0.86rem;
  font-weight: 700;
}

.step-label.is-active .step-number,
.step-label.is-complete .step-number {
  border-color: rgba(86, 147, 251, 0.78);
  background: rgba(59, 130, 246, 0.26);
}

.step-text {
  font-size: 0.9rem;
  font-weight: 600;
}

.step-arrow {
  color: #7492c5;
  font-weight: 600;
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
  animation: panel-reveal 320ms ease;
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.34rem, 2.3vw, 1.8rem);
  font-weight: 650;
}

.step-subheading {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 840px;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.tier-card {
  width: 100%;
  text-align: left;
  background: linear-gradient(155deg, rgba(23, 33, 53, 0.92), rgba(15, 24, 41, 0.94));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px 14px 15px;
  color: var(--text-main);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.tier-card:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 157, 248, 0.58);
}

.tier-card.is-selected {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 0 24px var(--accent-glow);
}

.tier-label {
  display: block;
  font-size: 0.75rem;
  color: #b4c5e5;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 7px;
}

.tier-name {
  display: block;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1rem;
  margin-bottom: 7px;
  font-weight: 600;
}

.tier-range {
  display: block;
  color: #d4e2fb;
  font-size: 0.95rem;
}

.needs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.need-card {
  width: 100%;
  text-align: left;
  padding: 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-soft);
  background: linear-gradient(162deg, rgba(19, 27, 44, 0.92), rgba(13, 22, 39, 0.92));
  color: var(--text-main);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.need-card:hover {
  transform: translateY(-2px);
  border-color: rgba(108, 160, 249, 0.5);
}

.need-card.is-selected {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.22);
  background: linear-gradient(162deg, rgba(26, 40, 67, 0.94), rgba(14, 26, 47, 0.94));
}

.need-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.need-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(125, 173, 248, 0.35);
  font-size: 1rem;
}

.need-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(140, 165, 205, 0.4);
  display: grid;
  place-items: center;
  color: transparent;
  transition: all 180ms ease;
  font-size: 0.84rem;
}

.need-card.is-selected .need-check {
  color: #eaf3ff;
  background: rgba(24, 196, 122, 0.24);
  border-color: rgba(24, 196, 122, 0.7);
}

.need-title {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
}

.need-detail {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.panel-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.offer-btn,
.enterprise-btn {
  border: 0;
  text-decoration: none;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 170ms ease, filter 170ms ease;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: #f5f9ff;
  background: linear-gradient(130deg, #2563eb 0%, #3b82f6 62%, #60a5fa 100%);
  padding: 11px 16px;
  min-height: 44px;
}

.primary-btn:hover,
.offer-btn:hover,
.enterprise-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.primary-btn.full-width {
  width: 100%;
}

.ghost-link {
  border: 0;
  background: transparent;
  color: #b9cae7;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.ghost-link:hover {
  color: #d8e6fd;
}

.is-hidden {
  display: none !important;
}

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.summary-pill {
  font-size: 0.82rem;
  color: #d9e7ff;
  background: rgba(34, 54, 93, 0.72);
  border: 1px solid rgba(98, 134, 189, 0.48);
  border-radius: 999px;
  padding: 7px 10px;
}

.offers-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.offer-card {
  background: linear-gradient(160deg, rgba(17, 25, 41, 0.95), rgba(12, 20, 35, 0.98));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.offer-header {
  display: flex;
  gap: 10px;
}

.offer-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.04rem;
  background: rgba(59, 130, 246, 0.17);
  border: 1px solid rgba(133, 177, 246, 0.42);
}

.offer-title {
  margin: 0 0 5px;
  font-size: 1.02rem;
}

.offer-desc {
  margin: 0;
  color: #ccdcf8;
  font-size: 0.91rem;
}

.offer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 10px;
}

.badge-credit {
  color: #d7e7ff;
  background: rgba(43, 69, 112, 0.46);
  border: 1px solid rgba(102, 145, 216, 0.52);
}

.badge-price {
  color: #d7e7ff;
  background: rgba(30, 73, 141, 0.52);
  border: 1px solid rgba(111, 166, 250, 0.58);
}

.badge-retainer {
  color: #dcfce7;
  background: rgba(14, 116, 74, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.58);
}

.badge-recommended {
  color: #1e2d0f;
  background: rgba(245, 158, 11, 0.9);
}

.badge-enterprise {
  color: #f2ebff;
  background: rgba(139, 92, 246, 0.48);
  border: 1px solid rgba(165, 128, 249, 0.64);
}

.match-line {
  margin: 0;
  color: #95b3e5;
  font-size: 0.82rem;
}

.impact-block h4 {
  margin: 0 0 5px;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ec0ff;
}

.impact-block p {
  margin: 0;
  color: #d3e2fc;
  font-size: 0.9rem;
}

.detail-block h4 {
  margin: 0 0 6px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #9ec0ff;
}

.detail-list {
  margin: 0;
  padding-left: 18px;
  color: #d3e2fc;
  font-size: 0.89rem;
  display: grid;
  gap: 4px;
}

.offer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.offer-btn,
.enterprise-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-weight: 700;
}

.offer-btn {
  color: #f6f9ff;
  background: linear-gradient(130deg, #1d4ed8, #2563eb);
}

.enterprise-btn {
  color: #f2ebff;
  background: rgba(139, 92, 246, 0.26);
  border: 1px solid rgba(179, 150, 248, 0.58);
}

.offers-divider {
  margin: 17px 0 11px;
  color: #b5c9ea;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.empty-state {
  margin: 5px 0 0;
  color: #c1d4f4;
  padding: 12px;
  border: 1px dashed rgba(118, 151, 205, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(17, 29, 51, 0.55);
}

.panel-actions-step3 {
  margin-top: 18px;
}

.page-footer {
  margin-top: 18px;
  border: 1px solid rgba(102, 132, 186, 0.3);
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(13, 21, 37, 0.95), rgba(10, 17, 30, 0.94));
  padding: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 9px;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(120, 159, 222, 0.44);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand-name {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-weight: 600;
}

.footer-brand-copy {
  margin: 0;
  color: #b2c5e7;
  font-size: 0.9rem;
}

.footer-address {
  margin: 0;
  color: #9db6df;
  font-size: 0.84rem;
}

.footer-created {
  margin: 0;
  color: #9cb3d9;
  font-size: 0.88rem;
}

.footer-created a {
  color: #d8e8ff;
}

.footer-col {
  display: grid;
  gap: 8px;
}

.footer-col-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #9cb3d9;
  font-weight: 700;
}

.footer-col a {
  color: #dbe8ff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover,
.footer-created a:hover {
  color: #8fc0ff;
}

.footer-bottom {
  margin-top: 14px;
  border-top: 1px solid rgba(102, 132, 186, 0.28);
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
  color: #9cb3d9;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(1160px, 94vw);
    padding-top: 30px;
  }

  .wizard-panel {
    padding: 18px 15px 20px;
  }

  .step-text {
    font-size: 0.84rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .hero {
    margin-bottom: 20px;
  }

  .step-labels {
    gap: 6px;
  }

  .step-label {
    padding: 7px 8px;
  }

  .step-arrow {
    display: none;
  }

  .tier-grid,
  .needs-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offer-actions {
    flex-direction: column;
  }

  .offer-btn,
  .enterprise-btn {
    width: 100%;
  }

  .panel-actions {
    align-items: stretch;
  }

  .ghost-link {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
