/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

html, body {
  width: 100%;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
  color: #f0f0f8;
  background: linear-gradient(135deg, #07091e 0%, #0d1a4a 35%, #350d4a 65%, #4a0d2a 100%);
  background-attachment: fixed;
}

body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ── Decorative glow spheres ── */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 63, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 45, 120, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

ul, ol {
  list-style-position: outside;
}

/* ── Page layout ── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(7, 9, 30, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #f0f0f8;
}

.site-header__logo-icon {
  font-size: 1.4rem;
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7b3fff, #00b4ff);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.site-header__cta:hover {
  box-shadow: 0 0 24px rgba(123, 63, 255, 0.55);
  transform: translateY(-1px);
}

/* ── Site Footer ── */
.site-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(7, 9, 30, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__copy {
  font-size: 0.82rem;
  color: rgba(240, 240, 248, 0.4);
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-footer__link {
  font-size: 0.82rem;
  color: rgba(240, 240, 248, 0.45);
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
}

.site-footer__link:hover {
  color: rgba(240, 240, 248, 0.85);
  background: rgba(255, 255, 255, 0.07);
}

.site-footer__sep {
  color: rgba(240, 240, 248, 0.2);
  font-size: 0.75rem;
}

/* ── Content ── */
.content {
  width: 100%;
  max-width: 928px;
  padding: 24px 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

/* ── Typography ── */
.display-small {
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  color: #f0f0f8;
}

.headline-medium {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: #f0f0f8;
}

.body-medium {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(240, 240, 248, 0.8);
}

.body-small {
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(240, 240, 248, 0.65);
}

/* ── Sections ── */
.section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Anchor offset for sticky header */
.anchor {
  pointer-events: none;
  height: 0;
  padding-top: 72px;
  margin-top: -72px;
}

/* ── TOC ── */
.toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.toc .body-medium {
  color: #c084fc;
}

.toc a {
  color: #c084fc;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.toc a:hover {
  color: #f0f0f8;
}

/* ── Lists ── */
.content ul {
  margin-left: 22px;
}

.content ul li {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(240, 240, 248, 0.8);
}

.content ul li::marker {
  color: #c084fc;
}

/* ── Links ── */
.link-blue {
  color: #00b4ff;
  text-underline-offset: 3px;
}

.link-blue:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.mt-16 {
  margin-top: 16px;
}

/* ── Legacy header (kept for compat) ── */
.header {
  position: sticky;
  top: 0;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: center;
  background: rgba(7, 9, 30, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-inner {
  width: 100%;
  max-width: 1274px;
  padding: 8px 16px;
  background: transparent;
  display: flex;
  align-items: center;
}

/* ── Legacy footer (kept for compat) ── */
.footer {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 430px;
  filter: blur(100px);
  background-image:
    linear-gradient(0deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.05) 100%),
    linear-gradient(90deg, rgba(123,63,255,0.25) 0%, rgba(255,45,120,0.2) 100%);
  background-position: bottom;
  border-radius: 1920px 1920px 0 0;
}

.footer-inner {
  width: 100%;
  max-width: 1242px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-disclaimer {
  border-radius: 52px;
  padding: 24px 16px;
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-meta-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-meta-links a {
  white-space: nowrap;
  color: rgba(240, 240, 248, 0.5);
}

.footer-meta-links a:hover {
  color: rgba(240, 240, 248, 0.85);
}

/* ── Responsive: md (768px) ── */
@media (min-width: 768px) {
  .header-inner {
    padding: 12px 24px;
  }

  .content {
    padding: 32px 24px 72px;
  }

  .display-small {
    font-size: 36px;
    line-height: 48px;
  }

  .footer {
    padding: 32px 24px;
  }

  .footer-disclaimer {
    padding: 24px 32px;
  }

  .footer-meta {
    flex-direction: row;
    justify-content: space-between;
    gap: 36px;
  }

  .footer-meta-links {
    flex-direction: row;
    gap: 36px;
  }

  .footer-meta-links a {
    text-align: end;
  }

  .site-footer__inner {
    flex-direction: row;
  }
}

/* ── Responsive: xl (1280px) ── */
@media (min-width: 1280px) {
  .header-inner {
    padding: 12px 16px 12px 32px;
  }

  .content {
    padding: 40px 0 80px;
  }

  .display-small {
    font-size: 40px;
    line-height: 52px;
  }

  .footer {
    padding: 80px 40px 40px 40px;
  }

  .footer-inner {
    gap: 40px;
  }

  .footer-disclaimer {
    padding: 40px 100px;
  }
}

@media (max-width: 560px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
