:root {
  --bg-primary: #04060F;
  --bg-secondary: #080D1F;
  --navy-800: #0D1535;
  --navy-700: #122050;
  --border-glass: rgba(148, 163, 184, 0.12);
  --glow-blue: #3B82F6;
  --glow-silver: #94A3B8;
  --glow-ice: #BAE6FD;
  --glow-pulse: #60A5FA;
  --warm-gold: #FBBF24;
  --warm-rose: #FB7185;
  --growth-green: #34D399;
  --text-main: #E2E8F0;
  --glass-bg: rgba(13, 21, 53, 0.55);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--bg-secondary), var(--bg-primary) 42%, #02040a);
  color: var(--text-main);
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.bg-geometry {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hex {
  position: absolute;
  width: 280px;
  height: 280px;
  fill: none;
  stroke: rgba(186, 230, 253, 0.09);
  stroke-width: 1;
  animation: rotate-slow 26s linear infinite;
}

.hex-a {
  top: -80px;
  right: -100px;
}

.hex-b {
  left: -120px;
  bottom: 6%;
  width: 340px;
  height: 340px;
  animation-duration: 36s;
  animation-direction: reverse;
}

.blue-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 66%);
  filter: blur(10px);
  animation: pulse-glow 5s ease-in-out infinite;
}

.glow-a {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
}

.glow-b {
  right: -100px;
  bottom: 12%;
  animation-delay: 1.5s;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 0.8; transform: scale(1.08); }
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 24px 16px max(28px, env(safe-area-inset-bottom));
}

.screen {
  display: none;
  min-height: calc(100vh - 52px);
  min-height: calc(100dvh - 52px);
  align-items: center;
  justify-content: center;
  animation: screen-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen.is-active {
  display: flex;
}

@keyframes screen-enter {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: var(--glass-bg);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(18px);
}

.welcome-card,
.quiz-card,
.processing-card {
  padding: 24px;
}

.scan-arc {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 92px;
  height: 92px;
  opacity: 0.6;
}

.scan-arc circle,
.scan-arc path {
  fill: none;
  stroke: rgba(59, 130, 246, 0.24);
  stroke-width: 2;
}

.scan-arc path {
  stroke: var(--glow-blue);
  stroke-dasharray: 250;
  stroke-dashoffset: 80;
  animation: dash-scan 2.8s ease-in-out infinite;
}

@keyframes dash-scan {
  50% { stroke-dashoffset: 0; }
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 32px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: rgba(8, 13, 31, 0.82);
  color: var(--glow-ice);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 7px 12px;
}

.avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 26px auto 12px;
}

.avatar-hex {
  position: relative;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto;
  color: white;
  filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.45));
}

.avatar-hex svg {
  position: absolute;
  inset: 0;
  fill: rgba(18, 32, 80, 0.74);
  stroke: rgba(186, 230, 253, 0.5);
  stroke-width: 2;
}

.avatar-hex span {
  position: relative;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.online-badge {
  position: absolute;
  right: -8px;
  bottom: 7px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 999px;
  background: rgba(8, 13, 31, 0.96);
  color: #c7f9d4;
  font-size: 10px;
  padding: 5px 8px;
}

.online-badge i,
.social-proof i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 14px #22c55e;
  animation: online-pulse 1.4s ease-in-out infinite;
}

@keyframes online-pulse {
  50% { opacity: 0.45; transform: scale(0.74); }
}

.avatar-copy {
  text-align: center;
}

.avatar-copy h2 {
  margin: 0;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 22px;
}

.avatar-copy p {
  margin: 4px auto 0;
  color: var(--glow-silver);
  font-size: 12px;
}

h1 {
  margin: 24px 0 12px;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

h1 span {
  color: var(--glow-ice);
  text-shadow: 0 0 22px rgba(186, 230, 253, 0.25);
}

.subhead {
  margin: 0;
  color: var(--glow-silver);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.social-proof {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 16px;
  color: var(--glow-silver);
  font-size: 12px;
}

.primary-btn,
.pay-btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.primary-btn {
  min-height: 56px;
  color: white;
  background: var(--glow-blue);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.42);
  font-family: "Syne", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.primary-btn span {
  display: inline-block;
  transition: transform 0.16s ease;
}

.primary-btn:active,
.pay-btn:active {
  transform: scale(0.97);
}

.primary-btn:hover span {
  transform: translateX(4px);
}

.primary-btn:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.disclaimer {
  margin: 14px 0 0;
  color: var(--glow-silver);
  font-size: 11px;
  text-align: center;
}

.progress-shell {
  margin-bottom: 22px;
}

.progress-line,
.processing-line {
  width: 100%;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--navy-800);
}

.progress-line i,
.processing-line i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--glow-blue);
  transition: width 0.4s ease;
}

#step-label {
  margin: 10px 0 0;
  color: var(--glow-silver);
  font-size: 12px;
  text-align: right;
}

.step-content {
  animation: step-enter 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes step-enter {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-content h2 {
  margin: 0;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 23px;
  line-height: 1.22;
}

.step-content .hint {
  margin: 9px 0 20px;
  color: var(--glow-silver);
  font-size: 13px;
  line-height: 1.45;
}

.date-input {
  width: 100%;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  outline: none;
  background: var(--navy-800);
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 19px;
  letter-spacing: 0;
  padding: 15px 14px;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-input:focus {
  border-color: var(--glow-blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.helper {
  margin: 9px 0 20px;
  color: var(--glow-silver);
  font-size: 12px;
  text-align: center;
}

.error {
  min-height: 17px;
  margin: 0 0 12px;
  color: #fca5a5;
  font-size: 12px;
  text-align: center;
}

.option-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.option-card {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: var(--navy-800);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.42;
  padding: 15px 38px 15px 14px;
  text-align: left;
}

.option-card.is-selected {
  border-color: var(--glow-blue);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.option-card.is-selected::after {
  content: "✓";
  position: absolute;
  top: 13px;
  right: 14px;
  color: var(--glow-blue);
  font-size: 13px;
  font-weight: 800;
}

.processing-card {
  text-align: center;
}

.processing-top {
  margin: 0 0 24px;
  color: white;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.ring-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
}

.processing-ring {
  position: absolute;
  inset: 0;
  animation: rotate-slow 3s linear infinite;
}

.processing-ring circle {
  fill: none;
  stroke-width: 4;
}

.processing-ring circle:first-child {
  stroke: rgba(59, 130, 246, 0.15);
}

.processing-ring circle:last-child {
  stroke: var(--glow-blue);
  stroke-dasharray: 339;
  stroke-dashoffset: 85;
  stroke-linecap: round;
}

.ring-wrap strong {
  position: relative;
  color: var(--glow-ice);
  font-family: "JetBrains Mono", monospace;
  font-size: 26px;
}

.processing-message {
  min-height: 42px;
  margin: 0 0 24px;
  color: var(--glow-silver);
  font-size: 14px;
}

.processing-line {
  margin-bottom: 16px;
}

.processing-line i {
  transition: none;
}

.processing-card small {
  color: var(--glow-silver);
  font-size: 11px;
}

.paywall-stack {
  display: grid;
  gap: 14px;
  width: 100%;
}

.result-card,
.preview-card,
.offer-card,
.quote-card,
.pain-card,
.value-card {
  padding: 20px;
}

.sales-hero {
  border-color: rgba(251, 191, 36, 0.24);
  background:
    radial-gradient(circle at 16% 0%, rgba(251, 191, 36, 0.16), transparent 11rem),
    linear-gradient(145deg, rgba(19, 30, 58, 0.92), rgba(8, 13, 31, 0.86));
  box-shadow: 0 0 42px rgba(251, 191, 36, 0.12), 0 0 40px rgba(59, 130, 246, 0.07);
}

.sales-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.85), transparent);
}

.result-label {
  margin: 0 0 12px;
  color: #fde68a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.result-card h2,
.offer-card h3 {
  margin: 0;
  color: white;
  font-family: "Syne", sans-serif;
  line-height: 1.22;
}

.result-card h2 {
  font-size: 22px;
}

.result-card h2 span,
.offer-card h3 span {
  color: var(--glow-ice);
}

.result-copy {
  margin: 14px 0 0;
  color: var(--glow-silver);
  font-size: 14px;
  line-height: 1.55;
}

.diagnostic-grid {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.diagnostic-grid span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  border: 1px solid rgba(251, 191, 36, 0.14);
  border-radius: 14px;
  background: rgba(4, 6, 15, 0.38);
  color: var(--glow-silver);
  font-size: 11px;
  padding: 10px 12px;
}

.diagnostic-grid b {
  color: white;
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
}

.mini-label {
  margin: 0 0 12px;
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.pain-card {
  border-color: rgba(251, 113, 133, 0.2);
  background:
    linear-gradient(180deg, rgba(127, 29, 29, 0.22), rgba(13, 21, 53, 0.64));
}

.pain-card ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pain-card li {
  position: relative;
  margin: 0;
  padding-left: 18px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.48;
}

.pain-card li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm-rose);
  box-shadow: 0 0 16px rgba(251, 113, 133, 0.55);
}

.preview-card {
  min-height: 190px;
}

.sales-preview {
  min-height: 248px;
  border-color: rgba(186, 230, 253, 0.16);
}

.sales-preview .mini-label {
  position: relative;
  z-index: 3;
}

.blurred-report {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  filter: blur(4px);
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

.blurred-report ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: var(--text-main);
  font-size: 13px;
  list-style: none;
}

.preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(8, 13, 31, 1), rgba(8, 13, 31, 0.78), transparent);
}

.locked-pill {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: max-content;
  height: max-content;
  margin: auto;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--navy-800);
  color: var(--glow-silver);
  font-size: 12px;
  padding: 8px 12px;
}

.value-card {
  border-color: rgba(52, 211, 153, 0.18);
  background:
    radial-gradient(circle at 90% 0%, rgba(52, 211, 153, 0.12), transparent 10rem),
    rgba(13, 21, 53, 0.64);
}

.value-list {
  display: grid;
  gap: 9px;
}

.value-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(4, 6, 15, 0.32);
  padding: 10px;
}

.value-list b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.14);
  color: var(--warm-gold);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

.value-list span {
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.42;
}

.offer-card {
  text-align: center;
}

.sales-offer {
  border-color: rgba(251, 191, 36, 0.28);
  background:
    linear-gradient(180deg, rgba(251, 191, 36, 0.12), rgba(13, 21, 53, 0.7) 34%),
    var(--glass-bg);
}

.offer-badge {
  display: inline-flex;
  justify-content: center;
  max-width: 100%;
  margin: 0 0 13px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.11);
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 12px;
}

.offer-card h3 {
  font-size: 19px;
}

.sales-offer h3 span {
  color: #fde68a;
}

.offer-card > p {
  margin: 10px 0 18px;
  color: var(--glow-silver);
  font-size: 12px;
}

.timer-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0 0 16px;
}

.timer-row span {
  color: var(--glow-silver);
  font-size: 12px;
}

.timer-row b {
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: var(--navy-800);
  color: var(--glow-ice);
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  padding: 5px 10px;
}

.price-block {
  margin: 0 0 16px;
}

.old-price {
  margin: 0;
  color: var(--glow-silver);
  font-size: 14px;
  opacity: 0.6;
  text-decoration: line-through;
}

.new-price {
  margin: 0;
  color: white;
  font-family: "Syne", sans-serif;
  font-size: 34px;
  font-weight: 800;
}

.price-block small {
  color: var(--glow-silver);
  font-size: 11px;
}

.pay-btn {
  min-height: 54px;
  margin-top: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.payme {
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: white;
  background: linear-gradient(90deg, #2563eb, #3b82f6 58%, #22c55e);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.35), 0 0 28px rgba(34, 197, 94, 0.16);
}

.kaspi {
  border: 1px solid var(--border-glass);
  color: var(--glow-silver);
  background: var(--navy-800);
}

.cta-note {
  margin: 14px 0 0;
  color: var(--glow-silver);
  font-size: 11px;
  line-height: 1.42;
}

.trust-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 14px;
}

.trust-pills span {
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--glow-silver);
  background: rgba(8, 13, 31, 0.62);
  font-size: 10px;
  padding: 8px 10px;
}

.quote-card {
  color: var(--glow-silver);
  font-size: 12px;
  font-style: italic;
  line-height: 1.48;
}

@media (max-width: 380px) {
  .app {
    padding-inline: 12px;
  }

  h1 {
    font-size: 24px;
  }

  .welcome-card,
  .quiz-card,
  .processing-card,
  .result-card,
  .preview-card,
  .offer-card,
  .quote-card,
  .pain-card,
  .value-card {
    padding: 18px;
  }
}
