:root {
  --bg: #0b0b1f;
  --bg-2: #13132e;
  --card: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f2fb;
  --muted: #b4b4cc;
  --accent: #00e1f0;
  --accent-2: #ff3fc2;
  --grad: linear-gradient(45deg, #9d00ff, #ff00e4);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  background: rgba(11, 11, 31, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 1px;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  background: var(--grad);
  color: #fff;
  font: 600 1rem "Inter", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--border); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }

main { max-width: 920px; margin: 0 auto; padding: 0 20px; }

.hero { text-align: center; padding: 90px 0 60px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
  background: linear-gradient(45deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { max-width: 620px; margin: 0 auto 24px; color: var(--muted); font-size: 1.1rem; }
.note { color: var(--muted); font-size: 0.85rem; }

section { padding: 48px 0; }
section h2 { text-align: center; font-size: 1.8rem; margin: 0 0 24px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.card h3 { margin: 0 0 6px; }

/* Quiz */
.quiz { max-width: 640px; margin: 0 auto; }
.progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.08); overflow: hidden; margin-bottom: 20px; }
.progress > div { height: 100%; width: 0; background: var(--grad); transition: width 0.3s ease; }
.q-count { color: var(--muted); font-size: 0.9rem; }
.q-text { font-size: 1.35rem; margin: 6px 0 20px; }
.options { display: grid; gap: 10px; }
.option {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: 1rem "Inter", sans-serif;
  cursor: pointer;
}
.option:hover, .option:focus-visible { border-color: var(--accent); outline: none; }
.quiz-nav { margin-top: 16px; }
.linklike { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; }

/* Result */
.result { display: none; }
.result-head { text-align: center; padding: 24px; border-radius: 20px; border: 2px solid var(--arch, var(--accent)); }
.result-head .emoji { font-size: 3rem; }
.result-head h2 { margin: 6px 0; color: var(--arch, var(--accent)); }
.cols { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.cols ul { margin: 0; padding-left: 20px; }
.exercise { margin-top: 20px; border-left: 4px solid var(--arch, var(--accent)); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.friend-banner { margin-top: 16px; text-align: center; }

.offer { text-align: center; margin-top: 32px; background: linear-gradient(135deg, rgba(157,0,255,0.25), rgba(255,0,228,0.15)); }
.price { font-size: 2rem; font-weight: 700; }
.price s { color: var(--muted); font-size: 1.1rem; font-weight: 400; margin-left: 8px; }

/* Legal and long text */
.prose { max-width: 720px; margin: 0 auto; padding: 40px 0; }
.prose h1 { font-size: 2rem; }
.prose h2 { text-align: left; font-size: 1.3rem; margin-top: 32px; }

footer.site {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 24px 5%;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
footer.site a { color: var(--muted); margin: 0 8px; }

@media (max-width: 600px) {
  .hero { padding: 60px 0 40px; }
  .q-text { font-size: 1.15rem; }
}
