/* css/splash.css — Splash / access gate screen */

/* ── Overlay ─────────────────────────────────────────────────────────────── */
#splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-10) var(--s-8) var(--s-8);
  background-color: #080808;
  background-image: radial-gradient(ellipse 75% 55% at 50% 48%, #131211 0%, #070707 100%);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 1s;
  overflow-y: auto;
}

/* Grain texture overlay */
#splash-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.038'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 300px 300px;
}

/* All direct children sit above the grain layer */
#splash-screen > * {
  position: relative;
  z-index: 1;
}

#splash-screen.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ── Top accent rule ─────────────────────────────────────────────────────── */
.splash-top-rule {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  z-index: 2;
}

/* ── Brand name — venetian-blind stripe effect ───────────────────────────── */
.splash-brand {
  font-family: var(--f-ui);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 10rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  margin-top: var(--s-12);
  margin-bottom: var(--s-4);

  /* Horizontal stripe clipped to text shape */
  background: repeating-linear-gradient(
    to bottom,
    #999999 0px,
    #cccccc 2px,
    #2e2e2e 4px,
    #111111 10px
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── "PRIVATE ACCESS" label ──────────────────────────────────────────────── */
.splash-access-label {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.5);
  margin-bottom: var(--s-10);
}

/* ── Decorative vertical divider ─────────────────────────────────────────── */
.splash-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(200, 169, 110, 0.5), transparent);
  margin: 0 auto var(--s-4);
}

/* ── Combined glass card ─────────────────────────────────────────────────── */
.splash-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: var(--s-6) var(--s-8);
  max-width: 360px;
  margin-bottom: var(--s-6);
}

.splash-card__copy {
  font-family: var(--f-ui);
  font-size: var(--t-sm);
  font-weight: 300;
  color: rgba(250, 249, 246, 0.5);
  text-align: center;
  line-height: 1.9;
  letter-spacing: 0.03em;
  margin: 0;
}

.splash-card__divider {
  width: 40px;
  height: 1px;
  background: rgba(200, 169, 110, 0.25);
  margin: var(--s-5) auto;
}

/* ── CTA wrap + button ───────────────────────────────────────────────────── */
.splash-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 350ms ease;
}

#splash-screen.is-entering .splash-cta-wrap {
  opacity: 0;
  pointer-events: none;
}

.splash-cta {
  padding: var(--s-4) var(--s-12);
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(180deg,
    rgba(120, 120, 120, 0.25) 0%,
    rgba(40, 40, 40, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 220ms ease, border-color 220ms ease, transform 150ms ease;
}

.splash-cta:hover {
  background: linear-gradient(180deg,
    rgba(140, 140, 140, 0.35) 0%,
    rgba(60, 60, 60, 0.65) 100%);
  border-color: rgba(255, 255, 255, 0.25);
}

.splash-cta:active {
  transform: scaleX(0.97);
}

/* ── Entering animation ──────────────────────────────────────────────────── */
.splash-entering-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease 200ms; /* slight delay so CTA fades first */
  z-index: 2;
}

#splash-screen.is-entering .splash-entering-wrap {
  opacity: 1;
}

.splash-entering-label {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.45);
}

.splash-progress-track {
  width: 100px;
  height: 1px;
  background: rgba(200, 169, 110, 0.15);
  position: relative;
  overflow: hidden;
}

.splash-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--c-accent);
  transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Pre-order terms (inside combined card) ─────────────────────────────── */
.splash-card__heading {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(200, 169, 110, 0.6);
  margin-bottom: var(--s-3);
}

.splash-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.splash-card__list li {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 300;
  color: rgba(250, 249, 246, 0.45);
  line-height: 1.6;
  letter-spacing: 0.02em;
  padding-left: var(--s-3);
  position: relative;
}

.splash-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(200, 169, 110, 0.4);
}

.splash-card__list li strong {
  color: rgba(200, 169, 110, 0.7);
  font-weight: 400;
}

/* ── Mobile adjustments ──────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #splash-screen {
    padding: var(--s-6) var(--s-4) var(--s-12);
  }

  .splash-card {
    padding: var(--s-4) var(--s-5);
    max-width: 300px;
  }

  .splash-card__copy {
    font-size: 11px;
  }

  .splash-cta {
    padding: var(--s-3) var(--s-8);
  }

  .splash-access-label {
    letter-spacing: 0.35em;
  }

  .splash-card__list li {
    font-size: 10px;
  }
}
