:root {
  color-scheme: dark;
  --bg: #050608;
  --ink: #f7f1e5;
  --muted: #b7ab96;
  --gold: #c9a45e;
  --gold-strong: #f0d18f;
  --line: rgba(201, 164, 94, 0.18);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

body {
  --cursor-x: 50vw;
  --cursor-y: 32vh;
  --cursor-opacity: 0;
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(240, 209, 143, 0.28), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(201, 164, 94, 0.2), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(201, 164, 94, 0.14), transparent 34%),
    linear-gradient(180deg, #0b0d12 0%, #06070a 100%);
  overflow-x: hidden;
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(circle at 50% 46%, rgba(240, 209, 143, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(3, 4, 7, 0.94), rgba(2, 3, 5, 0.985));
  opacity: 1;
  transition:
    opacity 880ms cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 880ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 880ms cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(18px);
  transform: scale(1);
}

.page-transition::before,
.page-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-transition::before {
  background:
    radial-gradient(circle at 50% 48%, rgba(240, 209, 143, 0.16), transparent 18%),
    radial-gradient(circle at 50% 48%, rgba(201, 164, 94, 0.08), transparent 36%);
  opacity: 0.72;
  transform: scale(1.02);
  transition:
    opacity 880ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-transition::after {
  inset: 22px;
  border: 1px solid rgba(240, 209, 143, 0.12);
  border-radius: 32px;
  opacity: 0.52;
  transition: opacity 880ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.is-page-ready .page-transition {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transform: scale(1.02);
}

body.is-page-ready .page-transition::before,
body.is-page-ready .page-transition::after,
body.is-page-ready .page-transition-orb,
body.is-page-ready .page-transition-line {
  opacity: 0;
}

body.is-page-leaving .page-transition {
  opacity: 1;
  pointer-events: auto;
  backdrop-filter: blur(18px);
  transform: scale(1);
}

body.is-page-leaving .page-transition::before {
  opacity: 1;
  transform: scale(1);
}

body.is-page-leaving .page-transition::after {
  opacity: 0.68;
}

.page-transition-orb {
  position: absolute;
  width: min(68vw, 760px);
  height: min(48vw, 520px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(255, 241, 205, 0.24) 0%, rgba(240, 209, 143, 0.14) 24%, rgba(201, 164, 94, 0.06) 46%, transparent 74%),
    radial-gradient(ellipse at 50% 50%, rgba(143, 107, 52, 0.12), transparent 70%);
  filter: blur(28px);
  opacity: 0.88;
  transform: scale(0.96);
  animation: pageTransitionBloom 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}

.page-transition-line {
  display: none;
}

.cursor-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  opacity: var(--cursor-opacity);
  transform: translate3d(calc(var(--cursor-x) - 50%), calc(var(--cursor-y) - 50%), 0);
  background:
    radial-gradient(circle, rgba(240, 209, 143, 0.24) 0%, rgba(201, 164, 94, 0.13) 28%, transparent 68%),
    conic-gradient(from 120deg, transparent, rgba(240, 209, 143, 0.14), transparent, rgba(143, 107, 52, 0.12), transparent);
  filter: blur(18px);
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
  animation: cursorAuraRotate 12s linear infinite;
}

body.is-leaving .welcome-shell {
  transform: scale(0.98);
  opacity: 0;
  filter: blur(10px);
}

body.is-leaving::before {
  opacity: 0;
}

body.is-leaving::after {
  opacity: 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.24;
}

body::after {
  background:
    radial-gradient(circle at 25% 32%, rgba(240, 209, 143, 0.16), transparent 18%),
    radial-gradient(circle at 72% 28%, rgba(201, 164, 94, 0.16), transparent 20%),
    radial-gradient(circle at 50% 70%, rgba(168, 123, 54, 0.1), transparent 26%);
  filter: blur(18px);
  animation: drift 18s ease-in-out infinite alternate;
}

.welcome-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.welcome-shell {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.95fr);
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background:
    radial-gradient(circle at 72% 18%, rgba(201, 164, 94, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 25, 0.9), rgba(9, 10, 14, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform 700ms ease,
    opacity 700ms ease,
    filter 700ms ease;
}

.welcome-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #020304;
  opacity: 0;
  pointer-events: none;
  transition: opacity 700ms ease;
}

body.is-leaving .welcome-page::after {
  opacity: 1;
}

.welcome-visual {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.welcome-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.welcome-content {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.25vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #fff7e8;
}

.lead {
  max-width: 42ch;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.welcome-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.welcome-points span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(201, 164, 94, 0.1);
  color: var(--gold-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.enter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7b16a 0%, #a87b36 100%);
  color: #171109;
  text-decoration: none;
  font-weight: 800;
  box-shadow:
    0 18px 38px rgba(115, 83, 31, 0.28),
    inset 0 1px 0 rgba(255, 246, 214, 0.42);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    transform: translate3d(1.5%, -2%, 0) scale(1.06);
  }
}

@keyframes cursorAuraRotate {
  0% {
    rotate: 0deg;
  }

  100% {
    rotate: 360deg;
  }
}

@keyframes pageTransitionBloom {
  0% {
    transform: scale(0.94);
    opacity: 0.46;
  }

  100% {
    transform: scale(1.02);
    opacity: 0.88;
  }
}


@media (prefers-reduced-motion: reduce) {
  .cursor-spotlight {
    animation: none;
    transition: none;
  }

  .page-transition,
  .page-transition-orb,
  .page-transition-line {
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .welcome-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .welcome-visual {
    min-height: 360px;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .welcome-page {
    padding: 12px;
  }

  .welcome-shell {
    border-radius: 26px;
  }

  .welcome-content {
    padding: 18px 8px 22px;
  }

  .enter-button {
    width: 100%;
  }
}
