:root {
  --bg: #0b0b0d;
  --bg-raised: #101012;
  --bg-card: #141416;
  --bg-deep: #060607;
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #f2f2f3;
  --text-soft: #a6a6ab;
  --text-dim: #6f6f76;
  --accent: #ff7a1a;
  --accent-strong: #e9670a;
  --accent-ink: #160a02;
  --blue: #4f8bff;
  --purple: #a06bff;
  --green: #34c07f;
  --radius: 6px;
  --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, 640px);
  margin-left: auto;
  margin-right: auto;
}

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

.topbar-inner {
  width: min(100% - 24px, 640px);
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

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

.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
}

.brand-name {
  display: none;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
  flex: 0 0 auto;
  max-width: calc(100vw - 64px);
  overflow-x: auto;
  scrollbar-width: none;
}

.lang-switch::-webkit-scrollbar {
  display: none;
}

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

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

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

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 94%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 94%);
  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 192, 127, 0.8);
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0 auto;
  max-width: 560px;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

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

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

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

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

.btn-primary:hover {
  background: #ff8b38;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
  min-height: 48px;
  padding: 0 20px;
  font-size: 15px;
}

.hero-proof {
  margin: 16px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 192, 127, 0.14);
  flex: 0 0 auto;
}

.hero-radar {
  position: relative;
  margin: 26px auto 0;
  max-width: 560px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.hero-radar::-webkit-scrollbar {
  display: none;
}

.hero-scan {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3px;
  height: 30px;
  background: var(--accent);
  border-radius: 3px;
  transform: translateY(-50%);
  opacity: 0;
  animation: radarSweep 7s linear infinite;
}

@keyframes radarSweep {
  0% {
    left: 0;
    opacity: 0;
  }
  6% {
    opacity: 0.85;
  }
  94% {
    opacity: 0.85;
  }
  100% {
    left: calc(100% - 3px);
    opacity: 0;
  }
}

.radar-chip {
  flex: 0 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
}

.radar-section {
  padding: 18px 0 0;
}

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

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

.radar-head .eyebrow {
  margin-bottom: 8px;
}

.radar-head h2,
.section-head h2,
.stats-head h2,
.final-inner h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.radar-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 6px 9px;
  border: 1px solid rgba(52, 192, 127, 0.28);
  border-radius: 999px;
  background: rgba(52, 192, 127, 0.09);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.radar-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}

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

.radar-sub {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

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

.count-cell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 6px 12px;
  text-align: center;
}

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

.count-cell span {
  display: block;
  margin-top: 7px;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
}

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

.window-chip {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.section {
  padding: 52px 0 0;
}

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

.section-sub {
  margin: 12px auto 0;
  max-width: 480px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

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

.quiz-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
}

.quiz-topline span:last-child {
  color: var(--accent);
  text-align: right;
}

.quiz-progress,
.reveal-progress {
  height: 6px;
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress {
  margin: 12px 0 18px;
}

.quiz-progress span,
.reveal-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.quiz-body h3 {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.option-card:active {
  transform: scale(0.98);
}

.option-card.is-selected {
  border-color: var(--accent);
  background: rgba(255, 122, 26, 0.09);
}

.option-index {
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
}

.option-card > span:last-child {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.quiz-back {
  margin-top: 16px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 0;
}

.quiz-back:hover {
  color: var(--text);
}

.match-shell {
  padding-bottom: 4px;
}

.match-banner {
  margin: 0 0 14px;
  text-align: center;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

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

.reveal-stage {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  position: relative;
}

.scanner {
  width: 108px;
  height: 108px;
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 122, 26, 0.04);
  position: relative;
  overflow: hidden;
}

.scanner::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  top: 8%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: scan 1.5s linear infinite;
}

@keyframes scan {
  0% {
    top: 8%;
  }
  100% {
    top: 88%;
  }
}

.reveal-stage p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.reveal-progress {
  width: min(100%, 260px);
}

.match-content {
  padding: 20px;
}

.match-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-art {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ff8a33, #d25e00);
  color: #150a01;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  font-weight: 900;
}

.match-id {
  min-width: 0;
  flex: 1;
}

.match-tag {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.match-id strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
}

.reward-chip {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 999px;
  background: rgba(255, 122, 26, 0.12);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.status-chip {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.status-chip.is-live {
  color: var(--green);
  border-color: rgba(52, 192, 127, 0.3);
  background: rgba(52, 192, 127, 0.09);
}

.status-chip.is-points {
  color: var(--blue);
  border-color: rgba(79, 139, 255, 0.32);
  background: rgba(79, 139, 255, 0.09);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.fact {
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px;
  min-width: 0;
}

.fact span {
  display: block;
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 800;
}

.fact strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.match-thesis {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.match-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

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

.text-btn:hover {
  color: var(--text);
}

.steps {
  display: grid;
  gap: 10px;
}

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

.step-num {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.cat-list {
  display: grid;
  gap: 8px;
}

.cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.cat-check {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 122, 26, 0.32);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-check svg {
  width: 14px;
  height: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.tool-chip:hover {
  border-color: rgba(255, 122, 26, 0.45);
  background: rgba(255, 122, 26, 0.07);
}

.tool-chip svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: 0 0 auto;
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.final-cta {
  padding: 52px 0 0;
}

.final-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.final-inner .eyebrow {
  margin-bottom: 12px;
}

.final-inner > p:not(.eyebrow) {
  margin: 12px auto 0;
  max-width: 420px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.final-actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.footer {
  margin-top: 52px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line-soft);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--text);
}

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

@media (min-width: 430px) {
  .brand-name {
    display: inline;
  }

  .lang-btn {
    min-width: 36px;
    padding: 0 8px;
  }
}

@media (min-width: 700px) {
  .hero {
    min-height: calc(100svh - 58px);
    padding: 48px 0 28px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .radar-head h2,
  .section-head h2,
  .stats-head h2,
  .final-inner h2 {
    font-size: 30px;
  }

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

  .option-card {
    min-height: 118px;
    padding: 14px;
  }

  .option-card > span:last-child {
    font-size: 14px;
  }

  .match-content {
    padding: 24px;
  }

  .match-art {
    width: 72px;
    height: 72px;
    font-size: 27px;
  }

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

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

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

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

  .match-actions {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .text-btn {
    padding: 0 8px;
  }
}
