/* ——— Fonts ——— */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0d12;
  --fg: #e9edf1;
  --muted: #a9b1bb;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --success: #21d07a;
  --danger: #ff5d5d;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--fg);
  background: radial-gradient(
      1200px 600px at 10% -10%,
      rgba(124, 92, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 90% 0%,
      rgba(0, 212, 255, 0.18),
      transparent 60%
    ),
    var(--bg);
  background-attachment: fixed; /* 🔹 add this line */
  background-size: cover; /* 🔹 optional, ensure full coverage */
  background-repeat: no-repeat; /* 🔹 avoid tiling */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(
    to bottom,
    rgba(11, 13, 18, 0.85),
    rgba(11, 13, 18, 0.35)
  );
  border-bottom: 1px solid var(--stroke);
  z-index: 5;
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0b0d12;
  box-shadow: var(--shadow);
}
.brand__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.2px;
}
.brand__tagline {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav__link {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav__link:hover {
  border-color: var(--stroke);
}
.nav__cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      600px 300px at 20% 10%,
      rgba(124, 92, 255, 0.25),
      transparent 60%
    ),
    radial-gradient(
      700px 400px at 80% 0%,
      rgba(0, 212, 255, 0.18),
      transparent 60%
    );
  filter: blur(30px);
  opacity: 0.9;
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 48px auto 72px;
  padding: 0 20px;
  text-align: center;
}
.hero__title {
  margin: 10px 0 6px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero__badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  color: #0b0d12;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.hero__subtitle {
  margin: 10px auto 20px;
  font-size: 16px;
  color: var(--muted);
  max-width: 750px;
}
.code-pill {
  display: inline-block;
  margin: 10px 0 26px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.code-pill code {
  color: #dfe7ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ——— Demo Card ——— */
.demo-card {
  margin: 0 auto;
  max-width: 760px;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  box-shadow: var(--shadow);
}
.demo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px 10px;
}
.demo-card__title {
  font-weight: 800;
}
.demo-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  font-size: 12px;
  color: #0b0d12;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--stroke);
  background: rgba(11, 13, 18, 0.6);
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--muted);
}
.site-footer .dot {
  opacity: 0.6;
}

/* ——— Quiz styles (hooks into your classes) ——— */
.qt-container {
  margin: 12px 0 0;
}

.qt-form {
  display: block;
  margin: 0;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 12px;
}

.qt-question {
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed var(--stroke);
  border-radius: 10px;
}
.qt-question-text {
  font-weight: 700;
  margin: 0 0 8px;
}
.qt-options {
  display: grid;
  gap: 8px;
}

.qt-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  transition: transform 0.06s ease, border-color 0.15s ease,
    background 0.15s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
}
.qt-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
}
.qt-option-input {
  transform: scale(1.15);
}
.qt-option-label {
  line-height: 1.2;
}

.qt-captcha {
  margin-top: 10px;
  display: block;
}

.qt-button.qt-submit {
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.qt-button.qt-submit:hover {
  filter: brightness(1.05);
}
.qt-error,
.qt-load-error {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 92, 92, 0.35);
  background: rgba(255, 92, 92, 0.08);
  color: #ffd1d1;
}

/* ——— Results mode ——— */
.qt-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--stroke);
  border-radius: 10px;
}
.qt-results-title {
  font-weight: 800;
}
.qt-results-score .qt-score {
  color: var(--success);
}

.qt-result-item {
  margin: 10px 0;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.qt-result-item.is-correct {
  border-color: rgba(33, 208, 122, 0.35);
}
.qt-result-item.is-incorrect {
  border-color: rgba(255, 93, 93, 0.35);
}
.qt-result-question {
  font-weight: 700;
  margin-bottom: 6px;
}
.qt-result-summary {
  cursor: pointer;
}

.qt-count-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  padding: 2px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.qt-count-row:last-child {
  border-bottom: none;
}

/* ——— Responsive ——— */
@media (max-width: 720px) {
  .demo-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav {
    display: none;
  }
}
