:root {
  --bg-dark: #0a0015;
  --bg-panel: rgba(37, 11, 53, 0.9);
  --bg-panel-alt: rgba(25, 7, 36, 0.85);
  --accent: #a95bff;
  --accent-strong: #e58bff;
  --text-primary: #f5ecff;
  --text-muted: #c6b3de;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 82px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(92, 33, 122, 0.4), transparent 50%),
              linear-gradient(135deg, #05000d, #1b0127 65%, #05000d);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.amethyst-body {
  background-attachment: fixed;
}

.shell,
.content-shell {
  width: min(1200px, 90%);
  margin: 0 auto;
}

.page-content {
  padding-bottom: 140px;
}

.hero-full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border: none;
  line-height: 0;
  background: #05000d;
  padding-bottom: 20px;
}

.hero-full-bleed figure {
  margin: 0;
  height: clamp(320px, 55vw, 560px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-full-bleed figure a {
  display: block;
  width: 100%;
}

.hero-full-bleed img {
  width: 100%;
  height: auto;
  display: block;
}

.bonus-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.bonus-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bonus-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}

.bonus-modal__card {
  position: relative;
  width: min(420px, 90vw);
  background: rgba(15, 0, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.bonus-modal__card img {
  margin: 0 auto;
  width: 120px;
  height: auto;
}

.bonus-modal__card p {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.bonus-modal__cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ffefff, var(--accent));
  color: #160021;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(169, 91, 255, 0.45);
  transition: transform 0.2s ease;
}

.bonus-modal__cta:hover {
  transform: translateY(-2px);
}

.bonus-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 480px) {
  .bonus-modal__card {
    padding: 36px 24px 32px;
    border-radius: 22px;
  }
}

.content-shell {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.text-section {
  padding: 48px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.text-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-section h1,
.text-section h2,
.text-section h3 {
  margin-top: 0;
  color: var(--accent-strong);
  letter-spacing: 0.02em;
}

.text-section ul,
.text-section ol,
.text-section dl {
  margin-left: 1.2rem;
  color: var(--text-muted);
  padding-left: 0;
}

.text-section li + li,
.text-section p + p {
  margin-top: 0.7rem;
}

.text-section ul {
  list-style: none;
}

.text-section ul li {
  position: relative;
  padding-left: 32px;
}

.text-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle, rgba(233, 180, 255, 0.6), rgba(169, 91, 255, 0.2));
  transform: translateY(-50%);
}

.text-section ol {
  counter-reset: orderedList;
  list-style: none;
}

.text-section ol li {
  counter-increment: orderedList;
  padding-left: 36px;
  position: relative;
}

.text-section ol li::before {
  content: counter(orderedList, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.text-section dl {
  margin: 0;
}

.text-section dt {
  margin-top: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(169, 91, 255, 0.08);
  border: 1px solid rgba(169, 91, 255, 0.2);
}

.text-section dd {
  margin: 0.4rem 0 0;
  padding: 0 20px 12px 20px;
  border-left: 2px solid rgba(169, 91, 255, 0.4);
  color: var(--text-muted);
}

.text-section blockquote {
  margin: 1rem 0;
  padding: 1.2rem 1.6rem;
  background: rgba(233, 180, 255, 0.08);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.banner figure {
  margin: 0;
}

.banner figure a {
  display: block;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(2, 1, 5, 0.2), rgba(28, 0, 53, 0.35));
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mid-banner {
  margin-top: 10px;
  margin-bottom: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(9, 2, 14, 0.85);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.site-header .shell {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--text-primary);
  background: rgba(169, 91, 255, 0.2);
}

.main-nav a.nav-register {
  color: #0c0312;
  background: linear-gradient(135deg, #fbf0ff, var(--accent));
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(169, 91, 255, 0.4);
}

.main-nav a.nav-register:hover {
  background: linear-gradient(135deg, #fbf0ff, var(--accent-strong));
  transform: translateY(-2px);
}

.cta-link {
  text-decoration: none;
  color: #0c0312;
  background: linear-gradient(135deg, #fbf0ff, var(--accent));
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(169, 91, 255, 0.4);
  transition: transform 0.2s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  width: 70%;
  margin: 0 auto;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-footer {
  background: rgba(5, 0, 10, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 80px;
  color: var(--text-muted);
}

.site-footer .shell {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.site-footer p {
  margin: 0 0 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 6px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-primary);
}

.footer-brand img {
  width: 120px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
}

.footer-disclaimer {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 12px;
  text-align: center;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-copy {
  margin: 0;
  color: var(--text-primary);
}

.scroll-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, #fbf0ff, var(--accent));
  color: #13041e;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 60;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-6px);
}

@media (max-width: 1024px) {
  .text-section {
    padding: 36px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(6, 0, 16, 0.95);
    padding: 24px 0;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
  }

  .site-header.open .main-nav {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.open .nav-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.open .nav-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .cta-link {
    display: none;
  }

  .main-nav a.nav-register {
    display: inline-block;
    margin-top: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .text-section {
    padding: 28px;
  }

  .banner {
    border-radius: var(--radius-md);
  }

  .footer-disclaimer {
    margin-bottom: 10px;
  }
}
