:root {
  color-scheme: dark;
  --bg: #070914;
  --panel: rgba(15, 14, 30, 0.66);
  --panel-deep: rgba(10, 11, 24, 0.76);
  --border: rgba(210, 194, 255, 0.16);
  --accent: #8d68d8;
  --accent-soft: #d8c8ff;
  --text: #ece8f4;
  --muted: #c3bad3;
  --quiet: #8e84a5;
  --ok: #6fcf97;
  --gold: #f1d591;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #080915;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  position: relative;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page::before {
  position: absolute;
  inset: 0 0 auto;
  height: min(1040px, 118vh);
  background:
    linear-gradient(90deg, rgba(8, 9, 21, 0.96) 0%, rgba(8, 9, 21, 0.78) 48%, rgba(8, 9, 21, 0.24) 100%),
    linear-gradient(180deg, rgba(8, 9, 21, 0.02) 0%, rgba(8, 9, 21, 0.1) 50%, rgba(8, 9, 21, 0.72) 76%, #080915 100%),
    image-set(url("/landing/assets/hero-mobile.webp") type("image/webp"));
  background-position: center top;
  background-size: cover;
  content: "";
  pointer-events: none;
  z-index: 0;
}

.wrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 0 18px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(216, 200, 255, 0.18);
}

.brand span {
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav {
  display: none;
  align-items: center;
  gap: 18px;
  color: rgba(236, 232, 244, 0.78);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.hero {
  min-height: min(640px, calc(100vh - 82px));
  padding: clamp(64px, 11vh, 118px) 0 84px;
  position: relative;
}

.hero::before {
  display: none;
}

.eyebrow {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin-bottom: 16px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.lead {
  max-width: 620px;
  color: rgba(236, 232, 244, 0.78);
  font-size: 18px;
  margin-bottom: 22px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  margin: 26px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

.cta-band .button {
  width: fit-content;
}

.max-button {
  gap: 10px;
  background: transparent;
  color: #fff;
}

.max-button img {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  border-radius: 5px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.button.secondary {
  padding: 10px 16px;
  border: 1px solid rgba(210, 194, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 9, 21, 0.34);
  color: var(--text);
  box-shadow: none;
}

.topics,
.cards,
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.topic,
.card,
.faq-item {
  min-height: 132px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
}

.topic-section {
  max-width: none;
  margin: -44px 0 46px;
  position: relative;
  z-index: 2;
}

.topic-section .topic {
  min-height: 126px;
  background: rgba(13, 13, 30, 0.58);
}

.topic h3,
.card h3,
.faq-item h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.topic p,
.card p,
.faq-item p,
.markdown {
  color: var(--muted);
}

.section-grid {
  display: grid;
  gap: 14px;
  margin: 0 0 56px;
  max-width: none;
}

.section {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    rgba(12, 12, 28, 0.48);
  backdrop-filter: blur(12px);
}

.section#faq {
  min-height: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.section h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.markdown ol,
.markdown ul {
  padding-left: 22px;
}

.markdown li + li {
  margin-top: 8px;
}

.cta-band {
  max-width: none;
  margin: 34px 0 26px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(12, 12, 28, 0.54);
  backdrop-filter: blur(14px);
}

.cta-band p {
  color: var(--muted);
}

.footer {
  padding: 28px 0 36px;
  color: var(--quiet);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

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

.note {
  color: var(--ok);
  font-weight: 700;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 28px;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: clamp(84px, 12vh, 130px) 0 112px;
  }

  .page::before {
    height: min(1040px, 116vh);
    background:
      linear-gradient(90deg, rgba(8, 9, 21, 0.98) 0%, rgba(8, 9, 21, 0.82) 34%, rgba(8, 9, 21, 0.28) 64%, rgba(8, 9, 21, 0.08) 100%),
      linear-gradient(180deg, rgba(8, 9, 21, 0.02) 0%, rgba(8, 9, 21, 0.08) 50%, rgba(8, 9, 21, 0.72) 76%, #080915 100%),
      image-set(url("/landing/assets/hero-desktop.webp") type("image/webp"));
    background-position: center top;
    background-size: cover;
  }

  .actions {
    flex-direction: row;
    align-items: center;
  }

  .topics,
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

.faq-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .section {
    padding: 24px;
  }
}
