:root {
  color-scheme: dark;
  --bg: #061a2c;
  --bg-deep: #031121;
  --ink: #edffff;
  --muted: #93aabe;
  --cyan: #43e7ff;
  --cyan-soft: rgba(67, 231, 255, 0.22);
  --panel: rgba(7, 29, 49, 0.78);
  --line: rgba(105, 232, 255, 0.22);
  --pink: #f358b8;
  --green: #44d781;
  --red: #ff665f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 12%, rgba(31, 132, 166, 0.28), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

form {
  margin: 0;
}

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

.sun,
.orbit,
.star {
  position: absolute;
  display: block;
}

.sun {
  width: 360px;
  height: 360px;
  border: 2px solid rgba(26, 165, 190, 0.35);
  border-radius: 50%;
}

.sun::before,
.sun::after {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px dashed rgba(119, 221, 233, 0.18);
  border-radius: 50%;
}

.sun-left {
  left: -210px;
  top: 132px;
}

.sun-right {
  right: -230px;
  top: 90px;
}

.orbit {
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orbit-left {
  left: -230px;
  top: -44px;
}

.orbit-right {
  right: -80px;
  bottom: -160px;
}

.star {
  width: 22px;
  height: 22px;
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.55;
}

.star-a {
  left: 22%;
  top: 26%;
}

.star-b {
  right: 18%;
  top: 47%;
}

.star-c {
  left: 14%;
  bottom: 16%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.logo span {
  color: var(--cyan);
}

.menu-button {
  display: grid;
  gap: 5px;
  width: 38px;
  border: 0;
  padding: 8px;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.header-link,
.site-footer a {
  color: #9df5ff;
  text-decoration: none;
}

.policy-card a {
  color: #9df5ff;
}

.header-link {
  font-weight: 800;
}

.screen {
  display: none;
  width: min(860px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 92px 0 46px;
  text-align: center;
}

.screen.is-active {
  display: grid;
  align-content: center;
  justify-items: center;
}

.hero {
  padding-top: 96px;
}

.hero-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-ornament span {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px var(--cyan);
}

.hero-ornament b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(67, 231, 255, 0.12), 0 0 30px var(--cyan);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: 46px;
  line-height: 1.14;
  font-weight: 700;
}

h2 {
  max-width: 680px;
  font-size: 38px;
  line-height: 1.18;
}

h3 {
  font-size: 22px;
}

.pill {
  margin-top: 12px;
  padding: 5px 22px 7px;
  border-radius: 999px;
  background: rgba(42, 177, 216, 0.18);
  color: #7af4ff;
  font-size: 24px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(67, 231, 255, 0.7);
}

.palm-hero {
  position: relative;
  width: min(620px, 92vw);
  height: 300px;
  margin: 28px 0 26px;
}

.hand-art {
  position: absolute;
  left: 28px;
  top: -12px;
  width: 330px;
  height: 330px;
  object-fit: contain;
  border-radius: 28px;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 26px rgba(67, 231, 255, 0.18));
}

.timeline {
  position: absolute;
  right: 12px;
  top: 46px;
  display: grid;
  gap: 26px;
  text-align: left;
}

.timeline::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 12px;
  width: 1px;
  height: 166px;
  border-left: 2px dashed rgba(255, 255, 255, 0.48);
}

.timeline div {
  position: relative;
  display: grid;
  gap: 4px;
}

.timeline div::before {
  content: "";
  position: absolute;
  left: -44px;
  top: -4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(43, 79, 121, 0.8);
  box-shadow: 0 0 18px rgba(67, 231, 255, 0.25);
}

.timeline b {
  font-size: 16px;
}

.timeline span {
  color: var(--muted);
  font-size: 13px;
}

.primary-button,
.secondary-button,
.upload-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 100%);
  min-height: 60px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.primary-button,
.upload-button {
  color: #052033;
  background: linear-gradient(180deg, #67f2ff, #39d4ec);
  box-shadow: 0 0 0 5px rgba(67, 231, 255, 0.1), 0 12px 28px rgba(30, 216, 238, 0.28);
}

.secondary-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.quiz,
.result {
  gap: 22px;
}

#result > h2,
#result > .benefits {
  display: none;
}

.progress {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--cyan);
}

.progress span {
  font-size: 30px;
  font-weight: 800;
}

.progress p {
  color: var(--muted);
  font-size: 18px;
}

.subtitle {
  max-width: 540px;
  color: var(--muted);
  line-height: 1.55;
}

.scanner-card {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 34, 57, 0.74);
  box-shadow: inset 0 0 44px rgba(67, 231, 255, 0.1);
}

.scanner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #fff;
}

.empty-state svg {
  width: 120px;
  height: 120px;
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -30%;
  height: 30%;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(67, 231, 255, 0.34), transparent);
  border-top: 1px solid rgba(67, 231, 255, 0.75);
  border-bottom: 1px solid rgba(67, 231, 255, 0.75);
}

.scanner-card.scanning .scan-line {
  opacity: 1;
  animation: scan 1.4s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(560px);
  }
}

.upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.scan-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(620px, 100%);
  padding: 0;
  margin: 0;
  list-style: none;
}

.scan-steps li {
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.scan-steps li.active,
.scan-steps li.done {
  color: #fff;
  border-color: rgba(67, 231, 255, 0.65);
  background: var(--cyan-soft);
}

.single-field,
.choice-grid,
.locked-box,
#freeSummary,
#fullReport,
.result-card,
.insight-card,
.summary-card,
.benefits {
  width: min(520px, 100%);
}

.single-field {
  display: grid;
  gap: 10px;
  text-align: left;
}

.single-field span {
  color: #c8f8ff;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px 18px;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(67, 231, 255, 0.12);
}

textarea {
  resize: vertical;
}

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

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

.choice-grid label {
  cursor: pointer;
}

.choice-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-grid span {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 800;
}

.choice-grid input:checked + span {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  box-shadow: 0 0 24px rgba(67, 231, 255, 0.18);
}

.disclaimer {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.insight-card,
.summary-card,
.benefits {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

.mini-palm {
  width: 104px;
  height: 104px;
  fill: none;
  stroke: #fff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zodiac-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.zodiac-list span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
}

.zodiac-list b {
  color: #fff;
  font-size: 14px;
}

.accuracy {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg) 58%, transparent 59%),
    conic-gradient(var(--cyan) 0 34%, rgba(255, 255, 255, 0.1) 34% 100%);
  box-shadow: 0 0 38px rgba(67, 231, 255, 0.24);
}

.accuracy b {
  font-size: 42px;
}

.accuracy span {
  position: absolute;
  left: 50%;
  bottom: 36px;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.summary-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(67, 231, 255, 0.16);
  color: var(--cyan);
  font-size: 42px;
  box-shadow: 0 0 24px rgba(67, 231, 255, 0.25);
}

dl {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  text-align: left;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: #fff;
  text-align: right;
}

.upload-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(520px, 100%);
}

.upload-actions .upload-button {
  width: 100%;
}

.secondary-upload {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  box-shadow: none;
}

.scan-status {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.scan-status b {
  color: var(--cyan);
  font-size: 32px;
}

.final-cta {
  margin-top: -10px;
}

#freeSummary {
  display: grid;
  gap: 12px;
}

#freeSummary p,
.report-section {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.55;
  text-align: left;
}

.report-section {
  position: relative;
  overflow: hidden;
}

.report-section::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.report-section h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 19px;
}

.report-section p {
  color: #c8dce8;
  font-size: 14px;
}

.result-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(67, 231, 255, 0.42);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(67, 231, 255, 0.28), transparent 26%),
    radial-gradient(circle at 90% 8%, rgba(243, 88, 184, 0.18), transparent 30%),
    linear-gradient(155deg, rgba(7, 29, 49, 0.94), rgba(4, 18, 34, 0.96));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28), inset 0 0 44px rgba(67, 231, 255, 0.08);
  text-align: left;
}

.result-card > span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-card h3 {
  font-size: 26px;
  line-height: 1.15;
}

.result-card > p {
  color: var(--muted);
  line-height: 1.45;
}

#cardBullets {
  display: grid;
  gap: 10px;
}

#cardBullets div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
}

#cardBullets b {
  color: #fff;
}

#cardBullets span {
  color: #c8dce8;
  font-size: 13px;
  line-height: 1.45;
}

.locked-box {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
}

.locked-box p {
  color: var(--muted);
  line-height: 1.5;
}

.paywall-box {
  position: relative;
  justify-items: center;
  gap: 18px;
  padding: 34px 34px 28px;
  border-radius: 24px;
  background: rgba(9, 42, 68, 0.92);
}

.paywall-close,
.payment-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.paywall-ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--cyan);
}

.paywall-ornament span {
  width: 92px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.paywall-ornament b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(67, 231, 255, 0.12), 0 0 30px var(--cyan);
}

.paywall-benefits {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 24px;
  color: #ecffff;
  font-size: 27px;
  line-height: 1.25;
  text-align: left;
}

.price-pill {
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(67, 231, 255, 0.1);
  color: var(--cyan);
  font-weight: 800;
}

.offer-timer {
  color: var(--cyan);
  font-size: 70px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.paywall-email {
  width: 100%;
}

.paywall-email input {
  text-align: center;
}

.paywall-note {
  color: var(--muted);
  font-size: 13px;
}

.paywall-note a {
  color: #9df5ff;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 7, 12, 0.76);
}

.payment-modal[hidden] {
  display: none;
}

.payment-dialog {
  position: relative;
  width: min(632px, 100%);
  padding: 38px 32px 32px;
  border-radius: 20px;
  background: #fff;
  color: #101521;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.payment-close {
  background: #f5f5f5;
  color: #111;
  font-size: 28px;
}

.payment-dialog h3,
.payment-dialog h4 {
  margin: 0;
}

.payment-dialog h3 {
  margin-bottom: 24px;
}

.payment-group {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: #f6f6f6;
}

.payment-group + .payment-group {
  margin-top: 14px;
}

.pay-method {
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.pay-method:disabled {
  cursor: wait;
  opacity: 0.65;
}

.pay-method span {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #14aa4c;
  font-size: 14px;
}

.sber-pay {
  background: linear-gradient(100deg, #c7ff00, #10bf45, #24b6e1);
}

.sber-card {
  background: #1fa238;
}

.tinkoff-pay {
  background: #ffdc34;
  color: #111;
}

.bank-card {
  background: #090d19;
}

.payment-status {
  min-height: 20px;
  margin-top: 14px;
  color: #566070;
  font-size: 14px;
  text-align: center;
}

.payment-done {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 12px;
  background: #101521;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
}

#fullReport {
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: #e8fbff;
  line-height: 1.55;
  text-align: left;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  width: min(860px, calc(100vw - 32px));
  margin: -26px auto 28px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.policy-page {
  width: min(920px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 112px 0 48px;
}

.policy-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(7, 29, 49, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.policy-card h1,
.policy-card h2,
.policy-card p,
.policy-card li {
  text-align: left;
}

.policy-card h1 {
  max-width: none;
  margin-bottom: 18px;
  font-size: 40px;
}

.policy-card h2 {
  max-width: none;
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 24px;
}

.policy-card p,
.policy-card li {
  color: #c5d5e2;
  line-height: 1.65;
}

.policy-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.policy-kicker {
  margin-bottom: 8px;
  color: var(--cyan) !important;
  font-weight: 800;
}

.policy-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

@media (max-width: 720px) {
  .site-header {
    padding: 18px;
  }

  .logo {
    font-size: 24px;
  }

  .screen {
    padding-top: 82px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 30px;
  }

  .pill {
    font-size: 20px;
  }

  .palm-hero {
    height: 430px;
  }

  .hand-art {
    left: 50%;
    top: -4px;
    width: min(360px, 94vw);
    height: min(360px, 94vw);
    transform: translateX(-50%);
  }

  .timeline {
    top: 290px;
    right: auto;
    left: 50%;
    width: 210px;
    transform: translateX(-36%);
  }

  .scan-steps,
  .choice-grid,
  .choice-grid.two,
  .zodiac-list,
  .upload-actions {
    grid-template-columns: 1fr;
  }
}
