:root {
  --bg: #05090d;
  --bg-raised: #0a1016;
  --bg-card: #0e161f;
  --bg-deep: #030609;
  --line: rgba(74, 222, 168, 0.18);
  --line-soft: rgba(148, 184, 196, 0.12);
  --text: #eef7f4;
  --text-soft: #a9bcc2;
  --text-dim: #6f858d;
  --accent: #2fe0a0;
  --accent-strong: #1fb87f;
  --accent-ink: #05130c;
  --warning: #ffc857;
  --danger: #ff6b6b;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 36px, 560px);
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 9, 13, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.topbar-inner {
  width: min(100% - 28px, 560px);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  filter: drop-shadow(0 0 10px rgba(47, 224, 160, 0.3));
}

.brand-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  flex: 0 0 auto;
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 8px;
  border-radius: 6px;
  min-width: 34px;
  text-align: center;
}

.lang-btn.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 26px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(47, 224, 160, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 224, 160, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 90% 72% at 50% 38%, #000 28%, transparent 74%);
  mask-image: radial-gradient(ellipse 90% 72% at 50% 38%, #000 28%, transparent 74%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: 34%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 224, 160, 0.14), transparent 66%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section .eyebrow,
.window-card .eyebrow,
.stats-head .eyebrow,
.final-inner .eyebrow {
  justify-content: flex-start;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(47, 224, 160, 0.9);
}

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

h1 {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

h2 {
  font-size: 25px;
  line-height: 1.18;
  font-weight: 800;
  margin-bottom: 10px;
}

h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 750;
  margin-bottom: 6px;
}

.hero-sub,
.section-sub,
.window-sub {
  color: var(--text-soft);
  font-size: 15.5px;
  margin-bottom: 22px;
}

.hero-actions,
.final-actions,
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--line-soft);
}

.btn-lg {
  width: 100%;
  min-height: 52px;
  padding: 16px 20px;
  font-size: 15px;
}

.btn-sm {
  min-height: 44px;
  padding: 12px 16px;
  font-size: 14px;
}

.text-btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
}

.hero-proof {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px auto 0;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 650;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 224, 160, 0.13);
}

.window-section {
  padding: 0 0 34px;
}

.window-card {
  background: linear-gradient(150deg, rgba(47, 224, 160, 0.1), rgba(14, 22, 31, 0.92) 46%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}

.window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.window-head h2 {
  font-size: 19px;
  margin-bottom: 4px;
}

.window-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.window-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 224, 160, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.window-sub {
  font-size: 14px;
  margin-bottom: 18px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.count-cell {
  background: rgba(5, 9, 13, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 12px 6px 10px;
  text-align: center;
}

.count-cell strong {
  display: block;
  font-size: 26px;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.count-cell span {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section {
  padding: 38px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-sub {
  margin-bottom: 0;
  font-size: 14.5px;
}

.quiz-shell,
.result-shell {
  margin-top: 22px;
}

.quiz-shell {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 20px;
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

#quizChoiceLabel {
  color: var(--accent);
  text-align: right;
}

.quiz-progress,
.scan-progress {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  margin: 14px 0 20px;
  overflow: hidden;
}

.quiz-progress span,
.scan-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  transition: width 0.35s ease;
}

.quiz-question {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  margin-bottom: 16px;
}

.quiz-options {
  display: grid;
  gap: 10px;
}

.quiz-option {
  appearance: none;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.quiz-option .opt-index {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
}

.quiz-option:active {
  transform: scale(0.99);
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.quiz-option.is-chosen {
  background: rgba(47, 224, 160, 0.1);
  border-color: var(--accent);
}

.quiz-option.is-chosen .opt-index {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.quiz-back {
  margin-top: 16px;
}

.result-shell {
  margin-top: 22px;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.result-banner {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
}

.scan-stage {
  padding: 30px 20px;
  text-align: center;
}

.scan-stage p {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.scan-stage .scan-progress {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.scanner {
  position: relative;
  width: 120px;
  height: 8px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: rgba(47, 224, 160, 0.18);
  overflow: hidden;
}

.scanner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(47, 224, 160, 0.8);
  animation: scan 1.2s ease-in-out infinite;
}

@keyframes scan {
  0% { left: -40%; }
  100% { left: 100%; }
}

.result-content {
  padding: 22px 20px 24px;
}

.score-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}

.score-ring {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--bg-card) 58%, transparent 60%),
    conic-gradient(var(--accent) var(--score, 0%), rgba(255, 255, 255, 0.08) 0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring strong {
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.score-ring span {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 750;
}

.score-copy {
  min-width: 0;
}

.score-tag {
  display: inline-block;
  background: rgba(255, 200, 87, 0.12);
  color: var(--warning);
  border: 1px solid rgba(255, 200, 87, 0.28);
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  margin-bottom: 8px;
}

.score-copy h3 {
  margin-bottom: 6px;
}

.score-copy p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.module-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.module-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 13px 14px;
}

.module-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(47, 224, 160, 0.12);
  color: var(--accent);
}

.module-icon svg {
  width: 18px;
  height: 18px;
}

.module-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.module-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
}

.how-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.steps {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.step p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 14px;
}

.stats-section {
  padding: 38px 0;
}

.stats-head {
  margin-bottom: 20px;
}

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

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 18px 16px;
}

.stat strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 850;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat span {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.integration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.integration-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 99px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
}

.final-cta {
  position: relative;
  padding: 44px 0;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(47, 224, 160, 0.12), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--line-soft);
}

.final-inner {
  text-align: center;
}

.final-inner .eyebrow {
  justify-content: center;
}

.final-inner p:not(.eyebrow) {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 22px;
}

.final-actions {
  margin-top: 4px;
}

.footer {
  padding: 30px 0 34px;
  background: var(--bg-deep);
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 700;
}

.footer-note,
.footer-risk {
  margin: 0;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.55;
}

.footer-risk {
  color: rgba(111, 133, 141, 0.72);
}

@media (min-width: 700px) {
  .container {
    width: min(100% - 44px, 640px);
  }

  .topbar-inner {
    width: min(100% - 40px, 640px);
  }

  .hero-actions,
  .final-actions,
  .result-actions {
    flex-direction: row;
    justify-content: center;
  }

  .btn-lg {
    width: auto;
    min-width: 240px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 359px) {
  h1 {
    font-size: 29px;
  }

  .brand-name {
    letter-spacing: 0.1em;
    font-size: 11px;
  }

  .lang-btn {
    min-width: 31px;
    padding: 8px 7px;
  }
}
