.home-body {
  background:
    radial-gradient(circle at 83% 8%, rgba(169, 112, 255, .23), transparent 29rem),
    radial-gradient(circle at 8% 43%, rgba(183, 250, 104, .065), transparent 25rem),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 64px 64px, 64px 64px, auto;
}

.home {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 82px;
  right: -120px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(169, 112, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(169, 112, 255, .035), 0 0 0 124px rgba(169, 112, 255, .02);
}

.home .topbar {
  margin-bottom: 34px;
}

.home .topbar nav a {
  transition: color .18s ease;
}

.home .topbar nav a:first-child {
  color: var(--text);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, .92fr);
  gap: clamp(34px, 6vw, 74px);
  align-items: center;
  min-height: 570px;
  padding: clamp(36px, 6vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(13, 23, 30, .985), rgba(18, 22, 41, .94)),
    var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
}

.home-hero::after {
  content: "DOQUIZ";
  position: absolute;
  right: -20px;
  bottom: -36px;
  color: rgba(245, 247, 244, .018);
  font-size: clamp(100px, 18vw, 220px);
  font-weight: 950;
  letter-spacing: -.08em;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(183, 250, 104, .1), 0 0 14px rgba(183, 250, 104, .65);
}

.home h1 {
  max-width: 620px;
  margin: 18px 0 20px;
  font-size: clamp(48px, 6.6vw, 82px);
  line-height: .92;
}

.home h1 span {
  display: block;
  color: var(--purple);
}

.hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: #c3d0c9;
  font-size: 17px;
  line-height: 1.72;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-tags span {
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(214, 235, 220, .12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
}

.home .button {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.home .button:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.home-primary {
  gap: 18px;
  background: var(--purple);
  border-color: var(--purple);
  box-shadow: 0 12px 30px rgba(169, 112, 255, .2);
}

.home-primary:hover {
  background: #b784ff;
  border-color: #c49aff;
}

.quiz-demo {
  position: relative;
  z-index: 2;
  padding: 18px;
  background: rgba(5, 12, 17, .76);
  border: 1px solid rgba(214, 235, 220, .18);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .44);
  transform: rotate(1.2deg);
}

.quiz-demo::before,
.quiz-demo::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
}

.quiz-demo::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--purple);
  border-left: 2px solid var(--purple);
  border-radius: 16px 0 0;
}

.quiz-demo::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  border-radius: 0 0 16px;
}

.demo-glow {
  position: absolute;
  inset: 25% 12%;
  z-index: -1;
  background: rgba(169, 112, 255, .17);
  filter: blur(42px);
}

.demo-head,
.demo-score,
.mode-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-head {
  padding-bottom: 13px;
  color: var(--muted);
  border-bottom: 1px solid rgba(214, 235, 220, .11);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.demo-head span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-head i {
  width: 6px;
  height: 6px;
  background: var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(183, 250, 104, .7);
}

.demo-head strong {
  color: var(--text);
  font-size: 20px;
}

.demo-head small,
.demo-score small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.demo-question {
  padding: 22px 3px 18px;
}

.demo-question span {
  display: block;
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}

.demo-question strong {
  display: block;
  max-width: 300px;
  font-size: 21px;
  line-height: 1.15;
}

.demo-choices {
  display: grid;
  gap: 8px;
}

.demo-choices span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px;
  color: #c8d2cd;
  background: rgba(255, 255, 255, .036);
  border: 1px solid rgba(214, 235, 220, .095);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
}

.demo-choices b {
  width: 26px;
  height: 26px;
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  color: var(--purple);
  background: rgba(169, 112, 255, .12);
  border: 1px solid rgba(169, 112, 255, .34);
  border-radius: 6px;
  font-size: 11px;
}

.demo-choices .picked {
  color: var(--text);
  background: rgba(169, 112, 255, .14);
  border-color: rgba(169, 112, 255, .63);
  box-shadow: inset 3px 0 var(--purple);
}

.demo-choices .picked b {
  color: #091117;
  background: var(--acid);
  border-color: var(--acid);
}

.demo-score {
  gap: 10px;
  margin-top: 14px;
  padding: 13px 12px;
  background: linear-gradient(90deg, rgba(169, 112, 255, .12), rgba(183, 250, 104, .04));
  border: 1px solid rgba(169, 112, 255, .2);
  border-radius: 9px;
}

.demo-score span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.demo-score i {
  width: 3px;
  height: 22px;
  background: var(--purple);
  border-radius: 2px;
}

.demo-score strong {
  margin-left: auto;
  font-size: 19px;
}

.demo-score em {
  padding: 5px 7px;
  color: var(--acid);
  background: rgba(183, 250, 104, .09);
  border-radius: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.rules-section,
.modes-section {
  padding: 92px 0 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 30px;
}

.section-heading h2,
.first-vote h2,
.good-to-know h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.section-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.step-card,
.mode-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(13, 23, 30, .96), rgba(18, 22, 41, .76));
  border: 1px solid var(--line);
  border-radius: 15px;
}

.step-card {
  min-height: 278px;
  padding: 26px;
}

.step-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 110px;
  height: 110px;
  background: rgba(169, 112, 255, .07);
  border: 1px solid rgba(169, 112, 255, .12);
  border-radius: 50%;
}

.step-card.featured {
  border-color: rgba(169, 112, 255, .52);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.step-number {
  position: absolute;
  top: 21px;
  right: 22px;
  color: rgba(245, 247, 244, .25);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}

.step-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  color: var(--purple);
  background: rgba(169, 112, 255, .1);
  border: 1px solid rgba(169, 112, 255, .31);
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.featured .step-icon {
  color: #071016;
  background: var(--acid);
  border-color: var(--acid);
}

.step-card h3,
.mode-card h3 {
  margin: 0 0 11px;
  font-size: 20px;
  letter-spacing: -.02em;
}

.step-card p,
.mode-card p,
.mode-card li {
  color: var(--muted);
  line-height: 1.62;
}

.step-card p {
  margin: 0;
  font-size: 14px;
}

.step-card strong {
  color: var(--text);
}

.first-vote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: 78px;
  padding: 34px 38px;
  background:
    linear-gradient(110deg, rgba(169, 112, 255, .14), rgba(13, 23, 30, .94) 44%, rgba(183, 250, 104, .055)),
    var(--panel);
  border: 1px solid rgba(169, 112, 255, .37);
  border-radius: 17px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .22);
}

.lock-mark {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: rgba(169, 112, 255, .12);
  border: 1px solid rgba(169, 112, 255, .4);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(169, 112, 255, .035);
}

.lock-mark span {
  color: var(--acid);
  font-size: 31px;
  font-weight: 950;
}

.first-vote h2 {
  font-size: clamp(25px, 3.2vw, 38px);
}

.first-vote p {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.route-visual {
  display: grid;
  grid-template-columns: auto 24px auto 24px auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.route-visual strong {
  padding: 9px 11px;
  color: var(--acid);
  background: rgba(183, 250, 104, .08);
  border: 1px solid rgba(183, 250, 104, .28);
  border-radius: 7px;
  white-space: nowrap;
}

.route-visual i {
  height: 1px;
  background: rgba(214, 235, 220, .23);
}

.section-heading.compact {
  margin-bottom: 25px;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.mode-card {
  min-height: 356px;
  padding: 30px;
}

.mode-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(214, 235, 220, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(214, 235, 220, .018);
}

.mcq-card {
  border-top: 3px solid var(--purple);
}

.blind-card {
  border-top: 3px solid var(--acid);
}

.mode-label,
.mode-status {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mode-label {
  color: var(--purple);
}

.blind-card .mode-label {
  color: var(--acid);
}

.mode-status {
  padding: 6px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(214, 235, 220, .11);
  border-radius: 999px;
}

.mode-card h3 {
  margin-top: 34px;
  font-size: 28px;
}

.mode-card p {
  margin: 0;
  font-size: 15px;
}

.mode-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(214, 235, 220, .1);
  list-style: none;
}

.mode-card li {
  position: relative;
  padding-left: 21px;
  font-size: 13px;
}

.mode-card li::before {
  content: "◆";
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--purple);
  font-size: 8px;
}

.blind-card li::before {
  color: var(--acid);
}

.good-to-know {
  display: grid;
  grid-template-columns: .64fr 1.36fr;
  gap: 56px;
  margin-top: 78px;
  padding: 42px;
  background: rgba(8, 17, 23, .6);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.good-to-know h2 {
  font-size: 34px;
}

.know-list {
  display: grid;
}

.know-list p {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 0 12px;
  margin: 0;
  padding: 16px 0;
  color: var(--muted);
  border-bottom: 1px solid rgba(214, 235, 220, .1);
  line-height: 1.55;
}

.know-list p:last-child {
  border-bottom: 0;
}

.know-list span {
  grid-row: 1;
  color: var(--purple);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.know-list strong {
  color: var(--text);
}

.home-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-top: 72px;
  padding: 30px 6px 4px;
  border-top: 1px solid rgba(214, 235, 220, .1);
  text-align: left;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.glyph.small {
  width: 34px;
  height: 37px;
  font-size: 19px;
}

.footer-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.footer-brand strong {
  font-size: 12px;
  letter-spacing: .13em;
}

.footer-brand small {
  color: #778a80;
  font-size: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

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

.home-footer > p {
  grid-column: 1 / -1;
  margin: 7px 0 0;
  color: #60736a;
  font-size: 10px;
}

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quiz-demo {
    width: min(480px, 100%);
    transform: none;
  }

  .first-vote {
    grid-template-columns: auto 1fr;
  }

  .route-visual {
    grid-column: 2;
    justify-content: start;
  }
}

@media (max-width: 760px) {
  .home {
    width: min(100% - 28px, 1180px);
    padding-top: 22px;
  }

  .home-hero {
    padding: 34px 25px;
    border-radius: 16px;
  }

  .home h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .section-heading,
  .good-to-know {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    gap: 16px;
  }

  .steps,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .step-card {
    min-height: 240px;
  }

  .first-vote {
    grid-template-columns: 1fr;
    padding: 29px 24px;
  }

  .route-visual {
    grid-column: 1;
  }

  .good-to-know {
    gap: 22px;
    padding: 29px 24px;
  }

  .home-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .home .topbar nav {
    gap: 10px 14px;
  }

  .home .topbar nav a {
    font-size: 12px;
  }

  .home .actions .button {
    justify-content: center;
    width: 100%;
  }

  .quiz-demo {
    padding: 14px;
  }

  .demo-question strong {
    font-size: 18px;
  }

  .rules-section,
  .modes-section {
    padding-top: 68px;
  }

  .first-vote,
  .good-to-know {
    margin-top: 62px;
  }

  .route-visual {
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    text-align: center;
  }

  .route-visual i {
    display: none;
  }

  .route-visual strong {
    grid-column: 2;
    grid-row: 1;
  }

  .route-visual span:first-child {
    grid-column: 1;
  }

  .route-visual span:last-child {
    grid-column: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .button,
  .home .topbar nav a {
    transition: none;
  }
}
