:root {
  --bs-body-font-family: "Manrope", "Segoe UI", sans-serif;
  --bs-body-color: #e7edf3;
  --bs-body-bg: #0b1420;
  --bs-primary: #8fa9c2;
  --bs-primary-rgb: 143, 169, 194;
  --bs-border-color: rgba(255, 255, 255, 0.08);
  --bs-secondary-color: rgba(231, 237, 243, 0.7);
  --site-bg-1: #0b1420;
  --site-bg-2: #101c2b;
  --site-bg-3: #182634;
  --site-panel: rgba(15, 24, 35, 0.82);
  --site-panel-2: rgba(20, 32, 46, 0.9);
  --site-text-muted: rgba(231, 237, 243, 0.68);
  --site-border: rgba(255, 255, 255, 0.07);
  --site-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  --site-shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.14);
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(143, 169, 194, 0.07), transparent 22%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(180deg, var(--site-bg-1), var(--site-bg-2) 42%, var(--site-bg-3));
  line-height: 1.6;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero-copy h1,
.card-title,
.question,
.candidate-name,
.loader-wrap h3,
.error-wrap h3 {
  font-family: "Noto Serif Armenian", serif;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.btn-primary {
  color: #101926;
  border-color: transparent;
  background: linear-gradient(135deg, #a8bdd1, #869eb7);
  box-shadow: 0 10px 22px rgba(124, 150, 176, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  color: #101926;
  background: linear-gradient(135deg, #b2c6d9, #90a8c0);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #0f1826;
}

.hero-section,
.quiz-section {
  position: relative;
  z-index: 1;
}

.py-lg-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-copy,
.quiz-card,
.glass-card {
  background: linear-gradient(180deg, var(--site-panel), var(--site-panel-2));
  border: 1px solid var(--site-border);
  box-shadow: var(--site-shadow);
}

.hero-copy {
  padding: 3rem;
  border-radius: 1.75rem;
}

.hero-banner {
  padding: 4rem 3.25rem;
}

.hero-copy h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.hero-banner h1 {
  max-width: none;
}

.hero-subtitle {
  margin: 0;
  font-family: "Noto Serif Armenian", serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #f4f7fb;
}

.hero-text,
.start-copy,
.question-sub,
.candidate-copy {
  color: var(--site-text-muted);
}

.hero-text {
  max-width: 58ch;
  font-size: 1.1rem;
}

.section-chip,
.eyebrow,
.result-tag,
.inline-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 169, 194, 0.16);
  background: rgba(143, 169, 194, 0.08);
  color: #d7e2ec;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.quiz-card {
  overflow: hidden;
  border-radius: 1.75rem;
}

.glass-card {
  overflow: hidden;
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(10, 21, 34, 0.92);
  box-shadow: none;
}

.quiz-section {
  padding-top: 2.5rem !important;
  padding-bottom: 5rem !important;
}

.screen {
  position: relative;
}

.screen-anim-enter {
  animation: fadeSlideIn 320ms cubic-bezier(.2, .8, .2, 1);
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-cover {
  height: 260px;
}
.card-cover,
.result-cover {
  position: relative;
  overflow: hidden;
}

.card-cover img,
.result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cover::after,
.result-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(5, 12, 18, 0.96), rgba(5, 12, 18, 0.12)),
    linear-gradient(to right, rgba(8, 18, 28, 0.2), transparent 45%);
}

.body,
.quiz-body,
.result-content {
  padding: 1.85rem 1.75rem 2rem;
}

.start-screen-body {
  text-align: center;
}

.start-screen-body .start-copy {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.start-screen-body .inline-meta {
  justify-content: center;
}

.card-title {
  margin-top: 1rem;
  font-size: 1.8rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.35rem 0 1.7rem;
}

.inline-meta span {
  color: var(--site-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  letter-spacing: 0;
}

.quiz-top {
  padding: 1.65rem 1.75rem 0;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  color: var(--site-text-muted);
  font-size: 0.82rem;
}

.progress {
  height: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
}

.progress-bar {
  background: linear-gradient(90deg, #8aa3bc, #b5c4d2);
  box-shadow: 0 0 14px rgba(143, 169, 194, 0.2);
}

.question {
  font-size: 1.8rem;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.question-sub {
  margin: 0.875rem 0 0;
  font-size: 0.95rem;
}

.options {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1.05rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  text-align: left;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.option:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(143, 169, 194, 0.18);
}

.option-badge {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(143, 169, 194, 0.12);
  border: 1px solid rgba(143, 169, 194, 0.2);
  color: #d9e4ee;
  font-size: 0.8rem;
  font-weight: 800;
}

.option-title {
  font-size: 1rem;
  line-height: 1.5;
}

.candidate-name {
  font-size: 1.95rem;
  line-height: 1.14;
}

.result-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.result-header .candidate-copy {
  max-width: 40rem;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.result-meta-card {
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.result-meta-card span {
  display: block;
  color: var(--site-text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-meta-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1rem;
  color: #f4f7fb;
}

.result-actions-inline {
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-wrap,
.error-wrap {
  padding: 3.25rem 1.5rem;
  text-align: center;
}

.loader-wrap h3,
.error-wrap h3 {
  margin: 0 0 0.625rem;
  font-size: 1.75rem;
}

.loader {
  width: 46px;
  height: 46px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #8fa9c2;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991.98px) {
  .hero-copy {
    padding: 2.25rem;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .hero-banner {
    padding: 3rem 2.25rem;
  }
}

@media (max-width: 767.98px) {
  .hero-copy h1,
  .question,
  .card-title,
  .candidate-name {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .card-cover,
  .result-cover {
    height: 220px;
  }

  .hero-copy,
  .quiz-card,
  .glass-card {
    border-radius: 1.25rem;
  }

  .hero-copy,
  .body,
  .quiz-body,
  .result-content {
    padding: 1.5rem !important;
  }

  .hero-banner {
    padding: 2.5rem 1.5rem !important;
  }

  .hero-section {
    padding-top: 2.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  .quiz-section {
    padding-top: 1.5rem !important;
  }

  .result-meta-grid,
  .result-actions-inline {
    display: grid;
    grid-template-columns: 1fr;
  }
}
