:root {
  --mp-bg: #04150f;
  --mp-bg-soft: #0b261d;
  --mp-surface: #0f2f24;
  --mp-surface-2: #123929;
  --mp-primary: #5472ff;
  --mp-primary-hover: #4560eb;
  --mp-accent: #59d99a;
  --mp-text: #eff8f1;
  --mp-text-muted: #b3c7ba;
  --mp-border: rgba(129, 180, 149, 0.28);
  --mp-success: #67e2a7;
  --mp-error: #ff7584;
  --radius-card: 24px;
  --radius-ui: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 30px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: "Inter", "SF Pro Text", "Satoshi", sans-serif;
  color: var(--mp-text);
  background:
    radial-gradient(circle at 8% 0%, rgba(84, 114, 255, 0.2), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(89, 217, 154, 0.16), transparent 38%),
    linear-gradient(180deg, #04110c 0%, #061a12 45%, #04150f 100%);
  line-height: 1.6;
}

.app-shell { width: min(1140px, 100% - 2rem); margin: 0 auto; padding: 24px 0 44px; }
.brand-bar { display: flex; justify-content: center; margin-bottom: 22px; }
.brand-bar { gap: 10px; align-items: center; }
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--mp-text);
  background: linear-gradient(135deg, rgba(84, 114, 255, 0.15), rgba(89, 217, 154, 0.12));
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  backdrop-filter: blur(6px);
}
.brand-logo img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.lang-selector {
  display: inline-flex;
  align-items: center;
}
.lang-select {
  border: 1px solid var(--mp-border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(10, 30, 22, 0.8);
  color: var(--mp-text);
  font-size: 14px;
  font-weight: 600;
}
.lang-select:focus {
  outline: none;
  border-color: #8ea7ff;
  box-shadow: 0 0 0 3px rgba(84, 114, 255, 0.18);
}

main { min-height: calc(100vh - 130px); display: grid; align-items: center; }
.view { display: none; }
.view.active { display: block; }

.card {
  background: linear-gradient(170deg, rgba(18, 57, 41, 0.92) 0%, rgba(11, 38, 29, 0.96) 100%);
  border: 1px solid var(--mp-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 3vw, 40px);
  backdrop-filter: blur(10px);
}

.hero-card { max-width: 1080px; margin: 0 auto; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 42px);
  align-items: center;
}
.hero-copy { text-align: left; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--mp-accent);
}

h1, h2, h3, p, ul { margin-top: 0; }
h1 {
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.08;
  margin-bottom: 14px;
  font-weight: 700;
  text-wrap: balance;
}
h2 { font-size: clamp(24px, 3.6vw, 30px); line-height: 1.2; margin-bottom: 12px; font-weight: 700; }

.subtitle, .result-preview, .benefits-list li, .social-proof { font-size: clamp(16px, 2vw, 18px); }
.subtitle { color: var(--mp-text-muted); max-width: 640px; margin: 0 0 18px; }
.social-proof { margin: 14px 0 0; color: #a4c6b2; font-weight: 500; }
.landing-copy { color: #d7e6dc; margin: 0 0 14px; max-width: 680px; }
.landing-subtitle { font-size: 22px; margin: 10px 0 8px; }
.landing-benefits { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; max-width: 680px; text-align: left; }
.landing-benefits li { padding-left: 24px; position: relative; color: #eef8f1; }
.landing-benefits li::before { content: "•"; position: absolute; left: 8px; color: var(--mp-primary); font-weight: 700; }

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
}
.orb-one {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(84, 114, 255, 0.35), transparent 70%);
  top: 16%;
  left: 8%;
}
.orb-two {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(89, 217, 154, 0.24), transparent 70%);
  right: 0;
  bottom: 10%;
}
.phone-mockup {
  width: min(350px, 100%);
  height: 610px;
  border-radius: 42px;
  background:
    linear-gradient(140deg, #0f1b17 0%, #1b2623 45%, #0d1311 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(84, 114, 255, 0.2) inset;
  padding: 14px;
  position: relative;
  transform: perspective(1200px) rotateY(-7deg) rotateX(4deg);
}
.phone-notch {
  width: 34%;
  height: 26px;
  margin: 2px auto 10px;
  border-radius: 0 0 16px 16px;
  background: #080f0c;
}
.phone-screen {
  height: calc(100% - 38px);
  border-radius: 34px;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 80% 10%, rgba(89, 217, 154, 0.22), transparent 32%),
    radial-gradient(circle at 16% 15%, rgba(84, 114, 255, 0.25), transparent 35%),
    linear-gradient(170deg, #0c2a1d 0%, #061510 100%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.screen-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.screen-top img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.screen-top span {
  font-size: 20px;
  font-weight: 600;
  color: #ebf7ee;
}
.screen-chart {
  flex: 1;
  border-radius: 22px;
  border: 1px solid rgba(179, 199, 186, 0.28);
  padding: 14px;
  position: relative;
  background: rgba(6, 20, 15, 0.56);
}
.chart-line {
  position: absolute;
  inset: 22% 11% 18% 11%;
  background: linear-gradient(180deg, rgba(84, 114, 255, 0.28), rgba(84, 114, 255, 0.06));
  clip-path: polygon(0% 80%, 30% 56%, 55% 40%, 85% 14%, 95% 20%, 95% 100%, 0% 100%);
  border-radius: 14px;
}
.chart-points span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #84a4ff;
  box-shadow: 0 0 0 6px rgba(84, 114, 255, 0.2);
}
.screen-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mini-card {
  background: rgba(11, 36, 27, 0.72);
  border: 1px solid rgba(179, 199, 186, 0.22);
  border-radius: 14px;
  padding: 10px;
}
.mini-card p {
  margin: 0;
  font-size: 12px;
  color: #a7bfb0;
}
.mini-card strong {
  font-size: 16px;
  color: #edf9f0;
}
.screen-cta {
  border: none;
  border-radius: 14px;
  min-height: 48px;
  background: linear-gradient(95deg, var(--mp-primary), #7692ff);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.faq-card { max-width: 920px; margin: 18px auto 0; }
.faq-item h3 { margin-bottom: 6px; font-size: 18px; }
.faq-item p { margin-bottom: 10px; color: #d7e6dc; }
.faq-contact {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(84, 114, 255, 0.32);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(84, 114, 255, 0.14) 0%, rgba(17, 47, 34, 0.8) 100%);
  text-align: center;
}
.faq-contact h3 { margin-bottom: 8px; font-size: 20px; }
.faq-contact p { color: #dcebe2; }
.faq-contact-email { margin-top: 10px; font-size: 17px; font-weight: 700; }
.faq-contact-email a { color: #b5c5ff; text-decoration: underline; word-break: break-word; }

.consent-box { margin: 12px 0 8px; max-width: 680px; display: flex; gap: 8px; align-items: flex-start; text-align: left; }
.consent-box label { font-size: 14px; color: #d2e3d7; }
.consent-box a { color: #a9bcff; text-decoration: underline; }
.consent-feedback { min-height: 20px; font-size: 14px; color: var(--mp-error); margin: 0 0 8px; }

.test-card, .result-card, .analysis-card, .paywall-card { max-width: 700px; margin: 0 auto; }

.progress-wrapper { margin-bottom: 24px; }
.progress-label-row {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  color: var(--mp-text-muted); font-size: 14px; font-weight: 500;
}
.progress-track { height: 8px; border-radius: var(--radius-pill); background: rgba(179, 199, 186, 0.2); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--mp-primary), #6fa5ff); transition: width 320ms ease; }

.question-container { min-height: 290px; }
.question-panel { animation: slideFade 280ms ease; }
.question-title { font-size: clamp(22px, 3vw, 28px); line-height: 1.25; font-weight: 600; margin-bottom: 16px; }
.options-grid { display: grid; gap: 12px; }

.option-btn {
  width: 100%;
  text-align: left;
  background: rgba(10, 30, 22, 0.75);
  color: var(--mp-text);
  border: 1.5px solid rgba(179, 199, 186, 0.22);
  border-radius: var(--radius-pill);
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
}
.option-btn:hover { border-color: rgba(169, 188, 255, 0.7); background: rgba(19, 49, 37, 0.86); transform: translateY(-1px); }
.option-btn.selected { border-color: #95acff; background: rgba(84, 114, 255, 0.2); color: #e9efff; }

.navigation-row { margin-top: 20px; display: flex; justify-content: space-between; gap: 10px; }
.btn {
  border: none; border-radius: var(--radius-ui); padding: 12px 18px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: transform 140ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(95deg, var(--mp-primary), #7f97ff); color: #fff; box-shadow: 0 14px 28px rgba(84, 114, 255, 0.35); }
.btn-primary:hover { background: linear-gradient(95deg, var(--mp-primary-hover), #6b87ff); box-shadow: 0 18px 30px rgba(84, 114, 255, 0.4); }
.btn-secondary { background: rgba(179, 199, 186, 0.2); color: #e8f4ec; }
.btn-large { padding: 14px 22px; font-size: 17px; }

.analysis-card { text-align: center; }
.analysis-progress-track {
  height: 10px; background: rgba(179, 199, 186, 0.22); border-radius: var(--radius-pill);
  overflow: hidden; margin: 16px 0 12px;
}
.analysis-progress-fill {
  width: 0; height: 100%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--mp-primary), #65a0ff);
  transition: width 900ms linear;
}
.analysis-status { color: var(--mp-text-muted); font-weight: 500; min-height: 26px; }

.result-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.result-icon {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(84, 114, 255, 0.2);
  display: grid; place-items: center; font-size: 24px; flex-shrink: 0;
}
.result-preview { color: #d7e6dc; margin-bottom: 18px; }

.paywall-inline { border-top: 1px solid var(--mp-border); padding-top: 16px; }
.paywall-inline h3 { font-size: 22px; margin-bottom: 8px; }
.paywall-inline p { color: var(--mp-text-muted); }
.preview-intro { margin: 10px 0 8px; font-weight: 700; color: #eff8f2; }
.preview-box {
  border: 1px solid rgba(84, 114, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 40, 29, 0.92) 0%, rgba(7, 22, 16, 0.95) 100%);
  padding: 12px;
  margin-bottom: 12px;
  text-align: left;
}
.preview-visible { margin: 0 0 8px; color: #edf8f0; font-weight: 600; }
.preview-locked {
  border-radius: 10px;
  border: 1px dashed rgba(169, 188, 255, 0.65);
  background: rgba(84, 114, 255, 0.14);
  padding: 10px;
  filter: blur(2.4px);
  user-select: none;
  pointer-events: none;
}
.preview-locked p { margin: 0 0 6px; color: #dae8df; }
.preview-locked p:last-child { margin-bottom: 0; }
.preview-locked-note { margin: 8px 0 0; font-size: 13px; color: var(--mp-text-muted); }

.paywall-surface { background: rgba(8, 26, 19, 0.85); border-radius: 16px; padding: 16px; }
.paywall-card { text-align: center; }
.paywall-card > p { color: var(--mp-text-muted); }
.transformation-block { margin: 14px 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
.transform-col {
  text-align: left;
  background: rgba(10, 30, 22, 0.72);
  border: 1px solid rgba(179, 199, 186, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
}
.transform-col h3 { margin: 0 0 8px; font-size: 17px; }
.transform-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 15px;
}
.paywall-section-title { margin: 12px 0 8px; font-size: 21px; }
.benefits-list { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.benefits-list li { position: relative; padding-left: 24px; color: #edf8f0; }
.benefits-list li::before { content: "✔"; position: absolute; left: 0; color: var(--mp-success); font-weight: 700; }

.price { margin: 0 0 14px; color: #f5fcf7; font-size: 22px; font-weight: 700; }
.paywall-microcopy { margin: -8px 0 14px; color: var(--mp-text-muted); font-size: 15px; }

.pay-button {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(95deg, var(--mp-primary), #80a1ff);
  color: #fff;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(84, 114, 255, 0.32);
  transition: background 180ms ease, transform 140ms ease, box-shadow 180ms ease;
  margin: 8px 0 14px;
}
.pay-button:hover { background: linear-gradient(95deg, var(--mp-primary-hover), #6f8dff); transform: translateY(-1px); box-shadow: 0 18px 34px rgba(69, 96, 235, 0.36); }
.pay-button:active { transform: scale(0.985); }
.checkout-security { margin: 8px 0 0; color: #d5e5db; font-size: 14px; font-weight: 600; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.trust-row span {
  border: 1px solid rgba(179, 199, 186, 0.24);
  border-radius: 999px;
  background: rgba(10, 30, 22, 0.76);
  color: #d6e8dc;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}

.reset-button {
  background: rgba(179, 199, 186, 0.2);
  color: #eff8f1;
  border: 1px solid rgba(179, 199, 186, 0.22);
  padding: 10px 16px;
  border-radius: 10px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.reset-button:hover { background: rgba(179, 199, 186, 0.3); }

#email-form { display: grid; gap: 10px; }
label { font-size: 14px; font-weight: 600; color: #d6e7dc; }
input[type="email"] {
  width: 100%; border: 1px solid rgba(179, 199, 186, 0.32); border-radius: 12px;
  background: rgba(8, 22, 16, 0.8);
  color: var(--mp-text);
  padding: 12px 14px; font-size: 16px; transition: border-color 180ms ease, box-shadow 180ms ease;
}
input[type="email"]:focus { outline: none; border-color: #8ea7ff; box-shadow: 0 0 0 4px rgba(84, 114, 255, 0.16); }
.email-feedback { min-height: 22px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--mp-success); }

.fade-in { animation: fadeIn 320ms ease; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
@keyframes slideFade { from { opacity: 0; transform: translateX(8px);} to { opacity: 1; transform: translateX(0);} }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .subtitle, .landing-copy, .landing-benefits, .consent-box { margin-left: auto; margin-right: auto; }
  .hero-visual { min-height: 460px; }
  .phone-mockup { transform: none; }
}

@media (max-width: 760px) {
  .app-shell { width: min(980px, 100% - 1rem); padding-top: 16px; }
  main { min-height: calc(100vh - 90px); }
  .card { padding: 22px; border-radius: 18px; }
  .navigation-row { flex-direction: column; }
  .navigation-row .btn, .pay-button, #start-test-btn, #unlock-btn { width: 100%; max-width: 100%; min-height: 52px; }
  .transformation-block { gap: 8px; }
  .faq-contact { padding: 14px; }
  .faq-contact-email { font-size: 16px; }
  .preview-box { padding: 10px; }
  .phone-mockup {
    width: min(300px, 100%);
    height: 520px;
  }
  .hero-visual { min-height: 420px; }
}

@media (min-width: 761px) {
  .transformation-block { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}