:root {
  --bg-main: #081018;
  --bg-alt: #0d1721;

  --panel: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);

  --text-main: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.76);
  --text-faint: rgba(255, 255, 255, 0.56);

  --gold: #d9c07a;
  --gold-soft: rgba(217, 192, 122, 0.85);

  --max-width: 1240px;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: Georgia, "Times New Roman", serif;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

#snow-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;

  width: 100%;
  height: 100%;

  pointer-events: none;
}

.hero {
  position: relative;
  isolation: isolate;

  min-height: 100vh;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow: hidden;

  background: #0a121b;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;

  background-image: url("images/TheLandRedQueen.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  transform: scale(1.035);

  animation: heroDrift 80s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      rgba(5, 8, 12, 0.08) 0%,
      rgba(5, 8, 12, 0.04) 24%,
      rgba(5, 8, 12, 0.08) 48%,
      rgba(5, 8, 12, 0.55) 100%
    ),
    linear-gradient(
      to right,
      rgba(5, 8, 12, 0.46),
      rgba(5, 8, 12, 0.05) 23%,
      rgba(5, 8, 12, 0.02) 50%,
      rgba(5, 8, 12, 0.07) 77%,
      rgba(5, 8, 12, 0.46)
    );

  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(255, 255, 255, 0.08),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 78%,
      rgba(120, 150, 180, 0.07),
      transparent 28%
    );

  pointer-events: none;
}

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;

  height: 220px;

  background:
    linear-gradient(
      to bottom,
      rgba(8, 16, 24, 0) 0%,
      rgba(8, 16, 24, 0.1) 22%,
      rgba(8, 16, 24, 0.38) 54%,
      rgba(8, 16, 24, 0.72) 78%,
      rgba(8, 16, 24, 0.96) 100%
    );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 4;

  width: 100%;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  padding: clamp(50px, 9vh, 110px) 0 150px clamp(55px, 8vw, 150px);
}

.hero-logo {
  width: min(245px, 42vw);
  height: auto;

  margin: 0;

  opacity: 0.98;

  filter:
    drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(225, 187, 72, 0.1));
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;

  width: 54px;
  height: 68px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transform: translateX(-50%);
  opacity: 0.86;

  transition:
    transform var(--transition),
    opacity var(--transition);
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(2px);
}

.scroll-mouse {
  position: relative;

  width: 28px;
  height: 46px;

  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;

  background: rgba(255, 255, 255, 0.02);

  box-shadow:
    0 0 20px rgba(0, 0, 0, 0.22);
}

.scroll-dot {
  position: absolute;
  left: 50%;
  top: 8px;

  width: 4px;
  height: 9px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.88);

  transform: translateX(-50%);

  animation: scrollPulse 1.7s ease-in-out infinite;
}

.content-section {
  position: relative;
  z-index: 4;

  padding: 104px 0;

  background: var(--bg-main);
}

.first-section {
  margin-top: -1px;
}

.alt-section {
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0)
    ),
    var(--bg-alt);
}

.section-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 900px;
}

.content-section h1,
.content-section h2 {
  margin: 0 0 22px;

  color: var(--gold);

  font-size: clamp(1.8rem, 2.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.content-section p {
  margin: 0 0 18px;

  color: var(--text-soft);

  font-size: 1.08rem;
  line-height: 1.85;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;

  margin-top: 34px;
}

.info-card {
  padding: 24px;

  background: var(--panel);

  border: 1px solid var(--panel-border);
  border-radius: 18px;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.18);
}

.info-card h3 {
  margin: 0 0 12px;

  color: var(--text-main);

  font-size: 1.15rem;
  line-height: 1.4;
}

.info-card p {
  margin: 0;

  font-size: 1rem;
  line-height: 1.75;
}

.faq-list {
  display: grid;
  gap: 14px;

  margin-top: 28px;
}

.faq-list details {
  padding: 18px 20px;

  background: var(--panel);

  border: 1px solid var(--panel-border);
  border-radius: 14px;
}

.faq-list summary {
  position: relative;

  padding-right: 32px;

  color: var(--text-main);

  cursor: pointer;

  font-weight: 700;
  line-height: 1.5;

  list-style: none;
}

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

.faq-list summary::after {
  content: "+";

  position: absolute;
  top: 50%;
  right: 2px;

  color: var(--gold);

  font-size: 1.2rem;

  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin-top: 14px;
  margin-bottom: 0;
}

.site-footer {
  position: relative;
  z-index: 5;

  background: #060c12;

  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  min-height: 72px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;

  color: var(--text-faint);

  font-size: 0.92rem;
  line-height: 1.5;
}

.beta-sigil {
  appearance: none;

  padding: 8px;

  color: rgba(255, 255, 255, 0.3);
  background: transparent;

  border: none;

  cursor: pointer;

  font-size: 1rem;

  transition:
    color var(--transition),
    transform var(--transition);
}

.beta-sigil:hover,
.beta-sigil:focus-visible {
  color: var(--gold-soft);
  transform: scale(1.08);
}

.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 50;

  display: none;
}

.beta-modal.open {
  display: block;
}

.beta-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(5, 10, 16, 0.54);

  backdrop-filter: blur(10px) saturate(120%);
}

.beta-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;

  width: min(460px, calc(100% - 28px));

  padding: 32px 28px 28px;

  text-align: center;

  background:
    linear-gradient(
      to bottom,
      rgba(17, 25, 35, 0.96),
      rgba(8, 14, 22, 0.98)
    );

  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;

  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.45);

  transform: translate(-50%, -50%);
}

.beta-modal-panel h3 {
  margin: 0 0 14px;

  color: var(--gold);

  font-size: 1.5rem;
}

.beta-modal-panel p {
  margin: 0 0 22px;

  color: var(--text-soft);

  line-height: 1.7;
}

.beta-link {
  display: inline-block;

  padding: 12px 20px;

  color: var(--text-main);
  background: rgba(217, 192, 122, 0.08);

  border: 1px solid rgba(217, 192, 122, 0.35);
  border-radius: 999px;

  transition:
    background var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.beta-link:hover,
.beta-link:focus-visible {
  background: rgba(217, 192, 122, 0.14);

  border-color: rgba(217, 192, 122, 0.55);

  transform: translateY(-1px);
}

.beta-close {
  position: absolute;
  top: 12px;
  right: 14px;

  appearance: none;

  padding: 4px 8px;

  color: rgba(255, 255, 255, 0.7);
  background: transparent;

  border: none;

  cursor: pointer;

  font-size: 1.6rem;
  line-height: 1;
}

.beta-close:hover,
.beta-close:focus-visible {
  color: var(--gold);
}

@keyframes heroDrift {
  0% {
    transform:
      scale(1.035)
      translate3d(0, 0, 0);
  }

  100% {
    transform:
      scale(1.07)
      translate3d(-1.1%, -0.8%, 0);
  }
}

@keyframes scrollPulse {
  0% {
    opacity: 0.95;

    transform:
      translateX(-50%)
      translateY(0);
  }

  50% {
    opacity: 0.28;

    transform:
      translateX(-50%)
      translateY(12px);
  }

  100% {
    opacity: 0.95;

    transform:
      translateX(-50%)
      translateY(0);
  }
}

@media (max-width: 980px) {
  .hero-content {
    padding-top: 52px;
  }

  .hero-logo {
    width: min(225px, 48vw);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-content {
    padding-top: 38px;
  }

  .hero-logo {
    width: min(205px, 58vw);
  }

  .hero-bottom-fade {
    height: 180px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  .content-section {
    padding: 82px 0;
  }

  .content-section p {
    font-size: 1rem;
  }

  .footer-inner {
    min-height: auto;

    padding: 18px 0;

    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .hero-bg,
  .scroll-dot {
    animation: none;
  }
}