/* Fonts & base */
:root {
  --bg: #0b0f14;
  --text: #e6ebf2;
  --muted: #a8b3c7;
  --brand: #7c4dff;
  --brand-2: #3dd9eb;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-stroke: rgba(255, 255, 255, 0.12);
  --card: rgba(9, 13, 19, 0.6);
  --success: #19c37d;
  --danger: #ff5c5c;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at -10% -20%, rgba(124,77,255,0.25), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(61,217,235,0.20), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(124,77,255,0.15), transparent 60%);
  filter: saturate(120%);
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0c0f14;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav {
  display: flex;
  gap: 16px;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}
.nav-link:hover { opacity: 1; }

.hero {
  margin-top: 32px;
  padding: 36px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}
.hero-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  margin: 0 0 12px 0;
  font-weight: 800;
}
.hero-subtitle {
  margin: 0 auto 24px auto;
  max-width: 820px;
  color: var(--muted);
}
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f14;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.2s ease;
}
.cta:hover { transform: translateY(-1px); }
.trust-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.glass {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-stroke);
  border-radius: 16px;
  background: var(--glass);
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

.quiz-section {
  margin-top: 28px;
  padding: 24px;
}
.quiz-header {
  display: grid;
  gap: 8px;
}
.progress {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  width: 0%;
  transition: width 0.25s ease;
}
.progress-label {
  color: var(--muted);
  font-size: 14px;
}

.quiz-form {
  margin-top: 16px;
}
.question-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
}
.question-title {
  margin: 0 0 10px 0;
  font-weight: 700;
}
.options {
  display: grid;
  gap: 10px;
}
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
}
.option input { accent-color: var(--brand); }
.option:hover { border-color: rgba(255,255,255,0.16); }

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.btn {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f14;
  border: none;
  font-weight: 700;
}
.btn.secondary { opacity: 0.9; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.footer {
  margin: 40px auto;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}
.footer-link { color: var(--text); }

.hidden { display: none; }

@media (max-width: 720px) {
  .quiz-actions { flex-direction: column; align-items: stretch; }
  .footer { flex-direction: column; gap: 10px; align-items: center; }
}


