:root {
  --ink: #181321;
  --deep: #171123;
  --panel: #fbf6ff;
  --leaf: #b79cff;
  --leaf-dark: #6e49cf;
  --sun: #ffb45f;
  --sky: #79d3ef;
  --berry: #ff91b9;
  --muted: #665d70;
  --line: rgba(24, 19, 33, 0.14);
  --white: #ffffff;
  font-family: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f3edf8;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px 28px;
  color: var(--white);
  background: rgba(18, 24, 18, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-solid {
  background: rgba(18, 24, 18, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
}

.brand-mark {
  display: flex;
  width: 136px;
  height: 54px;
  align-items: center;
}

.brand-mark img {
  width: 136px;
  max-height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  min-width: 86px;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.icon-button svg,
.primary-action svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-button {
  display: inline-flex;
  min-width: 88px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--deep);
  background: var(--leaf);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(183, 216, 58, 0.25);
}

.hero {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: end;
  padding: 120px 44px 72px;
  color: var(--white);
  background: var(--deep);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(18, 12, 28, 0.96) 0%, rgba(18, 12, 28, 0.74) 44%, rgba(18, 12, 28, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 12, 28, 0.94), rgba(18, 12, 28, 0.12) 46%);
}

.hero-content,
.hero-panel,
.hero-brand {
  position: relative;
  z-index: 2;
}

.hero-brand {
  grid-column: 1 / -1;
  justify-self: center;
  align-self: start;
  width: min(660px, 58vw);
  margin: -18px 0 8px;
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.hero-kicker,
.section-heading p,
.start-copy > p:first-child,
.community-main > p:first-child {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 700px;
  font-size: 54px;
  line-height: 1.02;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  min-width: 186px;
  border: 0;
  cursor: pointer;
  color: var(--deep);
  background: var(--leaf);
  box-shadow: 0 14px 32px rgba(183, 216, 58, 0.26);
}

.secondary-action {
  min-width: 150px;
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-panel strong {
  display: block;
  color: var(--sun);
  font-size: 34px;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-strip a {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  color: var(--deep);
  background: var(--panel);
}

.quick-strip a:hover,
.quick-strip a:focus-visible {
  color: var(--deep);
  background: #e3f1b1;
  outline: none;
}

.section {
  padding: 86px 44px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2,
.start-copy h2,
.community-main h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

.features-section {
  background:
    linear-gradient(180deg, #f3edf8 0%, #fff5ed 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.feature-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 46px rgba(34, 46, 30, 0.08);
}

.feature-card img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
}

.feature-card div {
  padding: 24px;
}

.feature-card h3,
.step-row h3,
.community-list h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.feature-card p,
.step-row p,
.community-list p,
.start-copy p,
.community-main p,
.faq-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.start-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255, 145, 185, 0.14), transparent 36%),
    linear-gradient(180deg, #201632, #120d1c);
}

.start-copy {
  position: sticky;
  top: 110px;
}

.start-copy p:not(:first-child),
.community-main p:not(:first-child) {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.step-row span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--deep);
  background: var(--sun);
  font-weight: 900;
}

.step-row p {
  color: rgba(255, 255, 255, 0.7);
}

.community-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
  align-items: stretch;
  background: #fff5ed;
}

.community-main {
  padding: 44px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(121, 211, 239, 0.24), transparent 44%),
    #241837;
}

.community-list {
  display: grid;
  gap: 12px;
}

.community-list article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-section {
  background: #f3edf8;
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-grid summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 800;
}

.faq-grid p {
  padding: 0 24px 22px;
}

.site-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 32px 44px;
  color: rgba(255, 255, 255, 0.74);
  background: #120d1c;
}

.site-footer img {
  width: 130px;
  height: auto;
}

.site-footer div {
  display: grid;
  gap: 4px;
  flex: 1;
}

.site-footer strong {
  color: var(--white);
}

.site-footer span {
  font-size: 13px;
}

.footer-copy {
  min-width: 104px;
  min-height: 42px;
  border-radius: 8px;
  color: var(--deep);
  background: var(--leaf);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border-radius: 8px;
  color: var(--deep);
  background: var(--leaf);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  font-weight: 800;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.inner-page {
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(183, 156, 255, 0.16), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(255, 145, 185, 0.14), transparent 30%),
    #120d1c;
}

.inner-page .site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.page-hero {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 124px 24px 72px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(18, 13, 28, 0.24), rgba(18, 13, 28, 0.96)),
    url("/assets/party.webp") center / cover;
}

.page-hero.compact {
  min-height: 460px;
}

.page-hero.vote-hero {
  min-height: 330px;
  padding: 98px 24px 42px;
}

.page-hero.vote-hero .page-logo {
  width: min(320px, 62vw);
  margin-bottom: 10px;
}

.page-hero.vote-hero h1 {
  font-size: 34px;
  max-width: 700px;
}

.page-hero.vote-hero .page-lead {
  max-width: 680px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.52;
}

.page-logo {
  width: min(480px, 78vw);
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.page-hero > p:first-of-type,
.eyebrow {
  margin: 0 0 12px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 50px;
  line-height: 1.04;
}

.page-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.72;
}

.page-section {
  padding: 76px 44px;
}

.launcher-section {
  background: #f3edf8;
  color: var(--ink);
}

.launcher-grid,
.vote-grid,
.wiki-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.launcher-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.launcher-card,
.vote-card,
.wiki-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 46px rgba(24, 19, 33, 0.08);
}

.launcher-card {
  padding: 30px;
}

.launcher-card.preferred {
  border-color: rgba(183, 156, 255, 0.56);
  box-shadow: 0 26px 58px rgba(110, 73, 207, 0.12);
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--deep);
  background: var(--leaf);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.soft {
  background: #ffe1ed;
}

.launcher-card h3,
.vote-card h2,
.wiki-card h2 {
  margin: 18px 0 10px;
  font-size: 26px;
}

.launcher-card p,
.vote-card p,
.wiki-card p,
.wiki-copy p,
.split-info p {
  color: var(--muted);
  line-height: 1.68;
}

.launcher-card ol {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.launcher-card strong {
  color: var(--ink);
}

.card-action,
.inline-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--deep);
  background: var(--leaf);
  font-weight: 900;
}

.card-action.secondary {
  background: #ffe1ed;
}

.split-info {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
  background:
    linear-gradient(135deg, rgba(183, 156, 255, 0.12), transparent 38%),
    #120d1c;
}

.split-info h2,
.wiki-copy h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.12;
}

.split-info > div:first-child > p:last-child,
.wiki-copy p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.74);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.info-list h3 {
  margin: 0 0 8px;
}

.info-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.inline-copy {
  cursor: pointer;
  margin-top: 10px;
}

.vote-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f3edf8;
}

.vote-grid.page-section {
  width: auto;
}

.vote-card {
  display: block;
  padding: 30px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.vote-card:not(.muted):hover,
.vote-card:not(.muted):focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(110, 73, 207, 0.14);
  outline: none;
}

.vote-card span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--deep);
  background: var(--sun);
  font-weight: 900;
}

.vote-card.muted {
  opacity: 0.76;
}

.wiki-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #f3edf8;
}

.wiki-grid.page-section {
  width: auto;
}

.wiki-card {
  padding: 26px;
}

.wiki-card span {
  color: var(--leaf-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wiki-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--leaf-dark);
  font-weight: 900;
}

.wiki-copy {
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 88vh;
  }

  .hero-brand {
    width: min(560px, 78vw);
    margin-top: -8px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid,
  .start-section,
  .community-section,
  .launcher-grid,
  .split-info,
  .vote-grid,
  .wiki-grid {
    grid-template-columns: 1fr;
  }

  .start-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 10px 14px;
    gap: 12px;
  }

  .brand-mark,
  .brand-mark img {
    width: 112px;
    height: 44px;
  }

  .nav-button {
    display: none;
  }

  .hero {
    min-height: 90vh;
    padding: 104px 20px 42px;
  }

  .hero-logo {
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .quick-strip {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 62px 20px;
  }

  .page-section {
    padding: 58px 20px;
  }

  .page-hero {
    min-height: 520px;
    padding: 104px 20px 54px;
  }

  .page-hero.vote-hero {
    min-height: 300px;
    padding: 92px 20px 34px;
  }

  .page-hero.vote-hero .page-logo {
    width: min(260px, 72vw);
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero.vote-hero h1 {
    font-size: 28px;
  }

  .page-lead {
    font-size: 16px;
  }

  .section-heading h2,
  .start-copy h2,
  .community-main h2 {
    font-size: 30px;
  }

  .community-main {
    padding: 28px;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 20px;
  }
}
