:root {
  --bg: #070812;
  --bg-soft: #101223;
  --card: rgba(18, 20, 38, 0.78);
  --card-strong: rgba(22, 25, 46, 0.94);
  --text: #f7f4ff;
  --muted: #a7a2bc;
  --line: rgba(255, 255, 255, 0.1);
  --purple: #8c5cff;
  --purple-strong: #6f3df5;
  --cyan: #29d7ff;
  --green: #43f09a;
  --pink: #ff4fd8;
  --warning: #ffbd5a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(140, 92, 255, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(41, 215, 255, 0.14), transparent 28rem),
    linear-gradient(145deg, #070812 0%, #0b0c18 45%, #111228 100%);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.ambient {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.32;
  pointer-events: none;
  z-index: -1;
}

.ambient-one {
  top: 12%;
  left: -8rem;
  background: var(--purple);
}

.ambient-two {
  right: -8rem;
  bottom: 8%;
  background: var(--cyan);
}

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 32px rgba(140, 92, 255, 0.35);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.security-pill,
.language-switcher {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 999px;
}

.security-pill {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px 7px 14px;
  color: var(--muted);
  font-size: 0.85rem;
}

.language-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 7px 9px;
  color: #fff;
  background: #080914;
  opacity: 0.58;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.language-option.is-active,
.language-option:hover,
.language-option:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.flag {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 12px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.flag-tr {
  background: #e30a17;
}

.flag-tr::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  box-shadow: -2px 0 0 1px #fff;
}

.flag-tr::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 11px;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.flag-us {
  background:
    linear-gradient(90deg, #24468e 0 42%, transparent 42%),
    repeating-linear-gradient(180deg, #b22234 0 1.5px, #fff 1.5px 3px);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 42px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(140, 92, 255, 0.4);
  border-radius: 999px;
  color: #d9ceff;
  background: rgba(140, 92, 255, 0.12);
  font-weight: 700;
  font-size: 0.82rem;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.hero p {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-card,
.onboarding-card,
.trust-row > div {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-card {
  border-radius: 34px;
  padding: 18px;
}

.phone-frame {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 50%),
    #0c0d1a;
}

.phone-top {
  width: 72px;
  height: 7px;
  margin: 0 auto 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-preview strong,
.profile-preview span {
  display: block;
}

.profile-preview span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.avatar-ring {
  width: 68px;
  height: 68px;
  padding: 3px;
  border-radius: 999px;
  background: conic-gradient(from 120deg, var(--purple), var(--pink), var(--warning), var(--purple));
}

.avatar-core {
  width: 100%;
  height: 100%;
  border: 4px solid #111228;
  border-radius: inherit;
  background: linear-gradient(135deg, #2b214d, #0f5a76);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.mini-stats span {
  padding: 14px 8px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.mini-stats b,
.mini-stats small {
  display: block;
}

.mini-stats small {
  margin-top: 4px;
  color: var(--muted);
}

.preview-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.preview-grid span,
.post-grid span {
  aspect-ratio: 1;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(135deg, rgba(140, 92, 255, 0.35), rgba(41, 215, 255, 0.2));
}

.preview-grid span:nth-child(2n),
.post-grid span:nth-child(2n) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, rgba(255, 79, 216, 0.24), rgba(140, 92, 255, 0.26));
}

.onboarding-card {
  border-radius: 34px;
  padding: clamp(20px, 4vw, 34px);
}

.progress-shell {
  margin-bottom: 30px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.progress-track,
.analysis-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

#progressBar,
#analysisProgress {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.35s ease;
}

.step {
  display: none;
}

.step.is-active {
  display: block;
  animation: riseIn 0.34s ease both;
}

.step h2,
.result-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.step p,
.result-header p {
  max-width: 660px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.option-card {
  position: relative;
  min-height: 108px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.option-card:hover,
.option-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(140, 92, 255, 0.72);
  background: rgba(140, 92, 255, 0.13);
  outline: none;
}

.option-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.02rem;
}

.option-card span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.username-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 12px;
  border: 1px solid rgba(140, 92, 255, 0.34);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.07);
}

.username-box > span {
  padding-left: 10px;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 800;
}

.username-box input {
  width: 100%;
  min-height: 54px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 1.22rem;
  font-weight: 700;
  outline: none;
}

.username-box input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.primary-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple-strong), var(--pink));
  box-shadow: 0 16px 34px rgba(140, 92, 255, 0.28);
  font-weight: 800;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.07);
  outline: none;
}

.full-width {
  width: 100%;
}

.input-error {
  min-height: 24px;
  color: #ff8f8f !important;
  font-weight: 700;
}

.analysis-step {
  text-align: center;
}

.scanner {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: #050611;
}

.scanner-orbit {
  position: absolute;
  inset: 4px;
  border: 3px solid rgba(67, 240, 154, 0.14);
  border-top-color: var(--green);
  border-right-color: rgba(67, 240, 154, 0.72);
  border-radius: 999px;
  animation: spin 1.1s linear infinite;
  box-shadow: 0 0 28px rgba(67, 240, 154, 0.18);
}

.scanner-core {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  overflow: hidden;
  padding: 0;
  border-radius: 999px;
  background: #050611;
  box-shadow: none;
}

.scanner-core img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.52);
}

.terminal {
  max-width: 720px;
  min-height: 214px;
  margin: 24px auto;
  padding: 18px;
  border: 1px solid rgba(67, 240, 154, 0.22);
  border-radius: 22px;
  text-align: left;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 24px rgba(67, 240, 154, 0.04);
}

.terminal-line {
  margin: 0 0 11px;
  color: #bdfbd8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.terminal-line::before {
  content: "> ";
  color: var(--green);
}

.result-panel {
  display: none;
}

.result-panel.is-visible {
  display: block;
  animation: riseIn 0.4s ease both;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.success-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #08130d;
  background: var(--green);
  font-weight: 900;
  font-size: 0.78rem;
}

.checkmark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #06120b;
  background: var(--green);
  font-size: 2rem;
  font-weight: 900;
}

.paywall-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  margin-top: 28px;
}

.blurred-preview {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.post-grid {
  position: relative;
  filter: blur(22px) saturate(0.28) brightness(0.68);
  transform: scale(1.12);
  opacity: 0.38;
}

.post-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(7, 8, 18, 0.12), rgba(7, 8, 18, 0.72)),
    rgba(7, 8, 18, 0.42);
}

.post-grid span {
  background-position: center;
  background-size: cover;
}

.lock-card {
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  width: min(280px, calc(100% - 40px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  color: var(--text);
  text-align: center;
  background: rgba(7, 8, 18, 0.74);
  backdrop-filter: blur(18px);
  cursor: pointer;
  animation: lockPulse 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.lock-card:hover,
.lock-card:focus-visible {
  transform: translate(-50%, -50%) scale(1.03);
  border-color: rgba(67, 240, 154, 0.62);
  background: rgba(7, 8, 18, 0.86);
  outline: none;
}

.lock-icon {
  margin-bottom: 10px;
  font-size: 2rem;
}

.lock-card small {
  margin-top: 5px;
  color: var(--muted);
}

.result-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.found-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.found-stats > div,
.pricing-card,
.social-proof {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.found-stats > div {
  padding: 18px;
}

.found-stats strong,
.found-stats span {
  display: block;
}

.found-stats strong {
  font-size: 2rem;
  letter-spacing: -0.055em;
}

.found-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pricing.is-highlighted .pricing-card {
  animation: planGlow 1.35s ease both;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 28px 24px;
  color: var(--text);
  text-align: left;
  overflow: hidden;
}

.pricing-card.is-popular {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.045);
}

.plan-gem {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 30px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffe45e, #ff9f1c);
  transform: rotate(45deg);
}

.pricing-card.is-popular .plan-gem {
  background: linear-gradient(135deg, #2df7c8, #0bb6ff);
}

.popular-badge {
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #07110e;
  background: #21e7c2;
  font-size: 0.72rem;
  font-weight: 900;
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.pricing-card p {
  margin: 18px 0 8px;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-card ul {
  display: grid;
  gap: 13px;
  min-height: 148px;
  margin: 14px 0 26px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 24px;
  color: #d8d3e7;
  font-size: 0.94rem;
}

.pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff3d83;
  font-weight: 900;
}

.plan-price {
  margin-top: auto;
}

.plan-price strong {
  display: block;
  color: var(--text);
  font-size: 1.65rem;
  letter-spacing: -0.05em;
}

.plan-price span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.9rem;
}

.plan-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  margin-top: 26px;
  padding: 13px 24px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.pricing-card.is-popular .plan-button {
  background: linear-gradient(135deg, #ff43a2, #ff7b45);
  box-shadow: 0 14px 34px rgba(255, 67, 162, 0.24);
}

.social-proof {
  padding: 18px;
}

.stars {
  color: var(--warning);
  font-weight: 900;
}

.stars span {
  color: var(--text);
}

.social-proof p,
.social-proof blockquote {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.social-proof blockquote {
  padding-left: 13px;
  border-left: 2px solid rgba(140, 92, 255, 0.72);
  font-size: 0.92rem;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.trust-row > div {
  border-radius: 24px;
  padding: 18px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes lockPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(67, 240, 154, 0);
  }
  50% {
    box-shadow: 0 0 34px rgba(67, 240, 154, 0.18);
  }
}

@keyframes planGlow {
  0%,
  100% {
    box-shadow: var(--shadow);
  }
  35% {
    box-shadow: 0 0 0 1px rgba(67, 240, 154, 0.48), 0 24px 70px rgba(67, 240, 154, 0.18);
  }
}

@media (max-width: 900px) {
  .hero,
  .paywall-layout,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 430px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header,
  .header-actions,
  .result-header {
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .security-pill {
    display: none;
  }

  .hero {
    gap: 24px;
  }

  .option-grid,
  .username-box,
  .found-stats {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .username-box {
    gap: 6px;
  }

  .username-box > span {
    display: none;
  }

  .primary-button {
    width: 100%;
  }

  .phone-frame {
    min-height: 430px;
  }

  .blurred-preview {
    min-height: 380px;
  }
}

/* Quiz funnel layout: ad traffic lands directly in the onboarding test. */
.site-header {
  width: min(680px, calc(100% - 28px));
  padding: 16px 0 8px;
}

.page-shell {
  display: grid;
  place-items: start center;
  width: min(680px, calc(100% - 28px));
  min-height: calc(100vh - 72px);
  padding: 14px 0 34px;
}

.onboarding-card {
  width: 100%;
  min-height: min(760px, calc(100vh - 112px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 30px;
}

.quiz-intro {
  margin-bottom: 30px;
  text-align: center;
}

.quiz-intro .eyebrow {
  margin: 0 auto 14px;
}

.quiz-intro h1 {
  max-width: 560px;
  margin: 0 auto;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.quiz-intro p {
  max-width: 500px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.6;
}

.progress-shell {
  margin-bottom: 28px;
}

.step {
  max-width: 590px;
  margin: 0 auto;
  text-align: center;
}

.step h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
}

.step p {
  margin-right: auto;
  margin-left: auto;
}

.option-grid {
  grid-template-columns: 1fr;
  max-width: 520px;
  margin-right: auto;
  margin-left: auto;
}

.option-card {
  min-height: 0;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.option-card::after {
  content: ">";
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.option-card strong {
  margin-bottom: 0;
}

.username-box {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.analysis-step {
  max-width: 640px;
}

.terminal {
  min-height: 190px;
}

.result-panel {
  width: 100%;
}

body.showing-result .site-header,
body.showing-result .page-shell {
  width: min(1040px, calc(100% - 28px));
}

body.showing-result .onboarding-card {
  min-height: auto;
}

.result-header {
  text-align: left;
}

.paywall-layout {
  grid-template-columns: 1fr;
}

.blurred-preview {
  min-height: 330px;
}

.post-grid span {
  border-radius: 14px;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 680px);
    padding-top: 8px;
  }

  .onboarding-card {
    min-height: calc(100vh - 100px);
    padding: 20px 16px;
    border-radius: 24px;
  }

  .quiz-intro {
    margin-bottom: 20px;
  }

  .option-card {
    padding: 16px;
  }

  .username-box {
    display: grid;
    padding: 12px;
  }

  .result-header {
    text-align: left;
  }
}
