:root {
  --bg: #060219;
  --ink: #f4f1f8;
  --muted: #cfc8dc;
  --silver: #e8e4f0;
  --line: rgba(232, 228, 240, 0.16);
  --card: rgba(16, 8, 38, 0.72);
  --glow: rgba(140, 80, 220, 0.35);
  --header: 4.25rem;
  --wrap: 68rem;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 85% -10%, rgba(120, 55, 200, 0.28), transparent 58%),
    radial-gradient(ellipse 45% 40% at -5% 25%, rgba(80, 30, 160, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 35% at 100% 90%, rgba(100, 40, 180, 0.16), transparent 50%);
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--silver);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid #f7f4fc;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  background: #f4f1f8;
  color: #160c24;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  min-height: var(--header);
  padding: 0.65rem 1.25rem;
  background: rgba(6, 2, 25, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(232, 228, 240, 0.18), 0 0 18px var(--glow);
}

.brand-name {
  white-space: nowrap;
}

.brand-ticker {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.75rem 0.9rem;
  background: #060219;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.site-nav.is-open {
  display: flex;
  position: static;
  flex-basis: 100%;
  box-shadow: none;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(140, 80, 220, 0.16);
  color: #fff;
}

.hero {
  padding: 1.5rem 0 3.5rem;
  text-align: center;
}

.hero-title {
  margin: 0;
}

.hero-logo,
.wiki-logo {
  display: block;
  margin-inline: auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 48%, #000 72%, transparent 100%);
  filter: drop-shadow(0 0 28px rgba(130, 70, 210, 0.35));
}

.hero-logo {
  width: min(34rem, 100%);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  margin: 0.25rem 0 0.35rem;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--silver);
}

.sign {
  letter-spacing: 0.2em;
}

.motto {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--silver);
}

.rule {
  width: min(14rem, 50%);
  height: 1px;
  margin: 1rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(232, 228, 240, 0.75), transparent);
  position: relative;
}

.rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(232, 228, 240, 0.85);
  background: var(--bg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.pitch {
  max-width: 38rem;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: box-shadow 160ms ease, filter 160ms ease, background 160ms ease;
}

.btn-primary {
  background: linear-gradient(180deg, #f8f6fb, #d8d3e2);
  color: #160c24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 28px rgba(120, 70, 200, 0.28);
}

.btn-primary:hover {
  color: #160c24;
  filter: brightness(1.06);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(232, 228, 240, 0.45);
}

.btn-ghost:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(232, 228, 240, 0.8), 0 0 24px var(--glow);
}

.section {
  padding: 4.25rem 0;
}

.section h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: #ddd2f6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede,
.section p {
  color: var(--muted);
}

.lede {
  margin-top: 0;
  max-width: 65ch;
  color: var(--ink);
}

.band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012));
  border-block: 1px solid rgba(255, 255, 255, 0.05);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid p {
  max-width: 65ch;
}

.facts {
  margin: 0;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.facts div {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.facts div:first-child {
  padding-top: 0;
}

.facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.facts dt {
  color: #ddd2f6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.card,
.why-item,
.steps li {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(140, 80, 220, 0.04);
}

.card {
  padding: 1.3rem 1.25rem 1.35rem;
}

.card h3,
.why-item h3,
.steps h3 {
  margin: 0.7rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.card p,
.why-item p,
.steps p {
  margin: 0;
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: var(--silver);
  background: rgba(140, 80, 220, 0.12);
  box-shadow: inset 0 0 0 1px rgba(232, 228, 240, 0.14);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .card:hover,
  .why-item:hover {
    border-color: rgba(210, 190, 255, 0.45);
    box-shadow: 0 0 28px rgba(130, 70, 210, 0.18);
  }
}

.why-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.why-item {
  padding: 1.1rem 1.2rem 1.2rem;
}

.why-item h3 {
  margin-top: 0;
}

.steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: start;
  padding: 1.05rem 1.15rem;
}

.step-num {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(232, 228, 240, 0.5);
  color: var(--silver);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(130, 70, 210, 0.25);
}

.steps a {
  font-weight: 600;
}

.steps p,
.faq p,
.disclaimer {
  overflow-wrap: anywhere;
}

.faq {
  margin-top: 2.25rem;
}

.faq h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.35rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 48px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--silver);
  border-bottom: 2px solid var(--silver);
  transform: translateY(-0.15rem) rotate(45deg);
}

.faq details[open] summary::after {
  transform: translateY(0.15rem) rotate(-135deg);
}

.faq details p {
  margin: 0 0 0.9rem;
  max-width: 65ch;
}

.site-footer {
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  margin: 0 0 0.8rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin-bottom: 1rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--silver);
}

.disclaimer {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9rem;
}

.wiki-main {
  display: flex;
  align-items: center;
  padding: 2.5rem 0 3.5rem;
}

.wiki-panel {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
  padding: 1.5rem 1.25rem 2rem;
}

.wiki-logo {
  width: min(18rem, 78%);
  margin: 0.25rem auto 0;
}

.wiki-panel h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wiki-panel p {
  color: var(--muted);
}

.wiki-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 420px) {
  .brand-ticker {
    display: none;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 1.75rem));
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .wiki-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav a {
    min-height: 40px;
  }
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
    align-items: start;
    gap: 2.5rem;
  }

  .cards,
  .why-list {
    grid-template-columns: 1fr 1fr;
  }

  .why-list li:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

section[id] {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}
