:root {
  --bg: #07111f;
  --text: #f5f7fb;
  --muted: #97a9c1;
  --line: rgba(255, 255, 255, 0.08);
  --soft: rgba(255, 255, 255, 0.05);
  --accent: #ff875c;
  --accent-2: #ffd36a;
  --accent-3: #68d8ff;
  --success: #5de1a4;
  --danger: #ffadad;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 18%, rgba(104, 216, 255, 0.1), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255, 135, 92, 0.12), transparent 24%),
    linear-gradient(180deg, #07111f 0%, #0b1425 52%, #0d172b 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.55;
  animation: blob-float 24s ease-in-out infinite alternate;
}

.blob-one {
  width: 260px;
  height: 260px;
  top: -70px;
  right: -70px;
  background: radial-gradient(circle, rgba(255, 135, 92, 0.3), rgba(255, 135, 92, 0.02) 72%);
}

.blob-two {
  width: 220px;
  height: 220px;
  left: -100px;
  top: 34%;
  background: radial-gradient(circle, rgba(104, 216, 255, 0.22), rgba(104, 216, 255, 0.02) 72%);
  animation-duration: 28s;
}

.blob-three {
  width: 0;
  height: 0;
  left: 40%;
  bottom: -180px;
  background: transparent;
  animation: none;
}

.site-shell {
  width: min(760px, calc(100vw - 40px));
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 0 40px;
}

.site-topbar,
.site-footer,
.main-column {
  position: relative;
  z-index: 1;
}

.site-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark,
h1,
h2,
.brand-copy strong,
.score-number {
  font-family: "Sora", sans-serif;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #08111f;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(255, 135, 92, 0.2);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy small,
.eyebrow,
.lead,
.field span,
.inline-copy,
.center-note,
.meta-line span,
.debt-row p,
.legal-copy p,
.site-footer,
.micro-points span {
  color: var(--muted);
}

.install-chip,
.primary-button {
  border: 0;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.install-chip {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: #08111f;
  font-weight: 700;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent-3), #a7f0ff);
}

.install-chip.is-hidden {
  display: none;
}

.main-column {
  display: grid;
  gap: 44px;
}

.hero-flow,
.page-flow,
.form-flow,
.payment-flow,
.result-flow,
.contract-flow,
.simple-flow {
  width: 100%;
}

.hero-flow,
.page-flow {
  text-align: center;
}

.hero-flow h1,
.page-flow h1 {
  margin: 8px auto 14px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-flow h1 {
  max-width: 11ch;
  font-size: clamp(2.2rem, 5.4vw, 3.7rem);
}

.page-flow h1 {
  max-width: 12ch;
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
}

.lead {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.micro-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 22px;
  font-size: 0.92rem;
}

.micro-points span {
  position: relative;
  padding-left: 18px;
}

.micro-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(255, 135, 92, 0.4);
}

.form-flow,
.payment-flow,
.result-flow,
.contract-flow,
.simple-flow {
  max-width: 640px;
  margin: 0 auto;
}

.stack-form,
.meta-lines {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: rgba(104, 216, 255, 0.9);
  transform: translateY(-1px);
}

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

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  color: #08111f;
  font-weight: 700;
  font-size: 0.96rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(255, 135, 92, 0.18);
}

.primary-button:hover,
.install-chip:hover {
  transform: translateY(-2px) scale(1.01);
}

.inline-actions,
.centered-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.inline-copy,
.center-note {
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.65;
}

.alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 173, 173, 0.08);
  color: var(--danger);
  text-align: center;
  font-size: 0.92rem;
}

.qr-mock {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  max-width: 220px;
  margin: 20px auto 14px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
  animation: qr-breathe 6s ease-in-out infinite;
}

.qr-mock span {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #d9e2ec;
}

.qr-mock span.filled {
  background: #08111f;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.score-number {
  font-size: clamp(3rem, 10vw, 4.8rem);
  text-align: center;
  line-height: 0.96;
  letter-spacing: -0.08em;
  margin-bottom: 6px;
}

.score-label {
  text-align: center;
  font-size: 0.98rem;
  color: var(--muted);
}

.score-bar {
  width: 100%;
  height: 12px;
  margin: 22px 0 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 28px rgba(104, 216, 255, 0.22);
}

.result-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 22px;
  text-align: center;
  font-size: 0.94rem;
}

.debt-stream {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.debt-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.debt-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.debt-amount {
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.95rem;
}

.offer-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.96rem;
}

.legal-copy {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.legal-copy p {
  margin: 0;
  line-height: 1.72;
  font-size: 0.95rem;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.check-line input {
  margin-top: 4px;
}

.site-footer {
  padding-top: 8px;
  text-align: center;
  font-size: 0.84rem;
  opacity: 0.8;
}

.reveal {
  animation: fade-rise 0.7s cubic-bezier(.2,1,.3,1) both;
}

.delay-1 {
  animation-delay: 0.14s;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blob-float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(16px, -14px, 0) scale(1.04);
  }
}

@keyframes qr-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100vw - 22px, 760px);
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .site-topbar,
  .offer-line,
  .meta-line,
  .debt-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-flow h1,
  .page-flow h1 {
    max-width: none;
  }

  .primary-button,
  .install-chip {
    width: 100%;
  }

  .micro-points,
  .result-highlights {
    justify-content: flex-start;
    text-align: left;
  }
}
