:root {
  --stone-langa: #faf8f5;
  --stone-langa-deep: #f5efeb;
  --brand: #1e3f35;
  --brand-dark: #173229;
  --tech: #3b82f6;
  --solar: #eab308;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 30rem),
    radial-gradient(circle at 85% 8%, rgba(234, 179, 8, 0.13), transparent 26rem),
    linear-gradient(180deg, var(--stone-langa), #fff 42%, var(--stone-langa-deep));
}

img {
  max-width: 100%;
}

.text-slate-650 {
  color: #526173;
}

.nav-link {
  position: relative;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  content: "";
  background: var(--tech);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover {
  color: var(--brand);
}

.nav-link:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero-shell {
  position: relative;
}

.hero-shell::before {
  position: absolute;
  top: 5rem;
  left: 50%;
  width: min(88rem, 94vw);
  height: 32rem;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 35% 20%, rgba(59, 130, 246, 0.17), transparent 24rem),
    radial-gradient(circle at 72% 35%, rgba(234, 179, 8, 0.16), transparent 24rem);
  filter: blur(10px);
  transform: translateX(-50%);
}

.feature-pill,
.trust-item,
.partner-point {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 3.75rem;
  padding: 1rem;
  font-weight: 700;
  color: #263238;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 1.25rem;
  box-shadow: 0 14px 42px rgba(30, 63, 53, 0.08);
}

.feature-pill svg,
.trust-item svg,
.partner-point svg {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--tech);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  gap: 0.65rem;
  padding: 0.95rem 1.25rem;
  font-weight: 800;
  border-radius: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn-primary {
  color: white;
  background: var(--brand);
  box-shadow: 0 18px 42px rgba(30, 63, 53, 0.24);
}

.btn-secondary {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(30, 63, 53, 0.09);
  box-shadow: 0 14px 36px rgba(30, 63, 53, 0.08);
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-primary svg,
.btn-secondary svg {
  width: 1.15rem;
  height: 1.15rem;
}

.hero-image {
  transform: rotate(1deg);
}

.floating-card {
  position: absolute;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 1.5rem;
  box-shadow: 0 22px 62px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(16px);
  animation: float-card 6s ease-in-out infinite;
}

.floating-card:nth-of-type(3) {
  animation-delay: -2s;
}

.animated-meter {
  width: 85%;
  animation: meter-pulse 2.4s ease-in-out infinite;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--tech);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.section-kicker::before {
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  background: var(--solar);
  border-radius: 999px;
}

.info-tile,
.step-card {
  min-height: 100%;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 1.5rem;
  box-shadow: 0 18px 48px rgba(30, 63, 53, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.info-tile:hover,
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 62px rgba(30, 63, 53, 0.13);
}

.info-tile svg,
.step-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--brand);
}

.info-tile h3,
.step-card h3 {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
}

.info-tile p,
.step-card p {
  margin-top: 0.7rem;
  line-height: 1.7;
  color: #64748b;
}

.choice-group {
  padding: 0;
  margin: 0;
  border: 0;
}

.choice-group legend {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  font-weight: 900;
  color: #334155;
}

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

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

.choice-button {
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #475569;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  transition: color 180ms ease, background 180ms ease, border 180ms ease, transform 180ms ease;
}

.choice-button:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.4);
}

.choice-button.active {
  color: white;
  background: linear-gradient(135deg, var(--brand), #225c4d);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(30, 63, 53, 0.22);
}

.result-panel {
  min-height: 100%;
  padding: 1.4rem;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 18rem),
    linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1.75rem;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card span {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  font-size: 0.85rem;
  font-weight: 900;
  color: rgba(30, 63, 53, 0.22);
}

.partner-point {
  align-items: flex-start;
  min-height: 8.2rem;
  background: #f8fafc;
}

.form-card {
  position: relative;
  padding: 1.25rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  box-shadow: 0 24px 80px rgba(30, 63, 53, 0.13);
}

.form-card label {
  font-size: 0.9rem;
  font-weight: 900;
  color: #334155;
}

.form-card input:not([type="checkbox"]),
.form-card select,
.form-card textarea {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  margin-top: 0.55rem;
  font-weight: 650;
  color: #172033;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-card textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  background: white;
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.privacy-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
}

.privacy-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--brand);
}

.privacy-row span {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.6;
  color: #475569;
}

.form-overlay {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1.25rem;
  background: rgba(250, 248, 245, 0.84);
  backdrop-filter: blur(12px);
}

.form-overlay.show {
  display: grid;
}

.overlay-box {
  width: min(30rem, 100%);
  padding: 2rem;
  text-align: center;
  background: white;
  border: 1px solid #eef2f7;
  border-radius: 1.75rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.13);
}

.overlay-box h3 {
  margin-top: 1rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #111827;
}

.overlay-box p {
  margin-top: 0.65rem;
  line-height: 1.65;
  color: #64748b;
}

.spinner,
.status-icon {
  display: inline-grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
}

.spinner {
  border: 4px solid #dbeafe;
  border-top-color: var(--tech);
  animation: spin 900ms linear infinite;
}

.status-icon.success {
  color: #047857;
  background: #d1fae5;
}

.status-icon.error {
  color: #b91c1c;
  background: #fee2e2;
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes meter-pulse {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.35);
  }
}

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

@media (max-width: 760px) {
  .choice-grid,
  .choice-grid.three {
    grid-template-columns: 1fr;
  }

  .hero-image {
    transform: none;
  }

  .floating-card {
    max-width: calc(100% - 2rem);
  }
}

@media (min-width: 640px) {
  .form-card {
    padding: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
