/* ============================================================
   ARCANA landing page. Cinematic full screen CTA with video
   background, liquid glass buttons and a minimal footer bar.
   Black ground, gold light, Instrument Serif italic display.
   ============================================================ */

:root {
  --gold: #d4af6a;
  --gold-bright: #f0d493;
  --gold-deep: #a67f3b;
  --ink: #ffffff;
  --violet: #8b6fd0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: #000; }

body.landing {
  min-height: 100vh;
  background: #000;
  color: var(--ink);
  font-family: "Barlow", system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Layer 0: CSS cosmic ground (shows until video loads) ---------- */
.cosmic {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, #2a1f4d 0%, #140f28 38%, #000 72%);
}
.nebula {
  position: absolute; inset: -30%;
  background:
    radial-gradient(circle at 22% 30%, rgba(139,111,208,0.30) 0%, transparent 46%),
    radial-gradient(circle at 78% 62%, rgba(212,175,106,0.20) 0%, transparent 44%),
    radial-gradient(circle at 50% 88%, rgba(90,60,150,0.22) 0%, transparent 52%);
  filter: blur(48px);
  animation: drift 34s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  50%  { transform: translate3d(2%, 2%, 0) scale(1.07); }
  100% { transform: translate3d(-1%, 1.5%, 0) scale(1.03); }
}
.sheen {
  position: absolute; top: 50%; left: 50%;
  width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(212,175,106,0.05) 40deg, transparent 90deg,
    transparent 180deg, rgba(139,111,208,0.05) 220deg, transparent 280deg);
  animation: spin 120s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute; background: #fff; border-radius: 50%;
  opacity: 0.15; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.08; } 50% { opacity: 0.8; } }

/* ---------- Layer 0: HLS video (covers cosmic once playing) ---------- */
#bg-video {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
#bg-video.ready { opacity: 1; }

/* ---------- Layer 1: gradient fades that blend edges into black ---------- */
.fade-top, .fade-bottom {
  position: fixed; left: 0; right: 0; height: 220px;
  z-index: 1; pointer-events: none;
}
.fade-top { top: 0; background: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0.55) 45%, transparent 100%); }
.fade-bottom { bottom: 0; background: linear-gradient(to top, #000 0%, rgba(0,0,0,0.65) 45%, transparent 100%); }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 42%, rgba(0,0,0,0.62) 100%);
}
/* Center scrim: holds the headline legible over bright plate detail
   (the brass compass and candles) without flattening the video. */
.scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 46% at 50% 46%, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.46) 55%, transparent 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.12) 50%, rgba(0,0,0,0.40) 100%);
}
/* When the film is playing, cool and settle it so gold type stays on top */
#bg-video.ready { filter: saturate(0.88) contrast(1.04) brightness(0.62); }

/* ---------- Layer 10: content ---------- */
.landing-inner {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 40px 24px 32px;
  max-width: 1180px; margin: 0 auto;
}
@media (min-width: 768px) { .landing-inner { padding: 48px 64px 40px; } }
@media (min-width: 1024px) { .landing-inner { padding: 52px 96px 44px; } }

.wordmark {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.05rem; letter-spacing: 0.42em; text-indent: 0.42em;
  color: var(--gold);
  text-align: center;
  text-shadow: 0 0 30px rgba(212,175,106,0.45);
  animation: rise 1s cubic-bezier(.2,.7,.3,1) both;
}

.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 64px 0;
}

.eyebrow {
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); font-weight: 400;
  margin-bottom: 22px;
  animation: rise 1s cubic-bezier(.2,.7,.3,1) 0.1s both;
}
.eyebrow .sep { color: var(--gold); margin: 0 10px; }

h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(2.9rem, 8.2vw, 6.2rem);
  line-height: 0.88; letter-spacing: -0.022em;
  max-width: 16ch; margin: 0 auto 22px;
  color: #fff;
  text-shadow: 0 2px 60px rgba(0,0,0,0.85), 0 0 90px rgba(212,175,106,0.18);
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) 0.18s both;
}
h1 .gold {
  color: var(--gold-bright);
  text-shadow: 0 2px 60px rgba(0,0,0,0.85), 0 0 54px rgba(212,175,106,0.42);
}

.sub {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  font-weight: 300; line-height: 1.7;
  color: rgba(255,255,255,0.76);
  max-width: 40rem; margin: 0 auto 40px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 2px 28px rgba(0,0,0,0.9);
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) 0.28s both;
}

.cta-row {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; flex-wrap: wrap;
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) 0.38s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px; padding: 15px 28px;
  font-family: "Barlow", sans-serif; font-size: 0.94rem; font-weight: 500;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: none; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn .arrow { width: 18px; height: 18px; flex: 0 0 auto; transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn .cn { font-family: "Noto Serif SC", serif; font-size: 0.86em; opacity: 0.75; margin-left: 2px; }

/* Liquid glass, gold tinted for Arcana */
.liquid-glass-strong {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.012);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: 4px 4px 14px rgba(0,0,0,0.28), inset 0 1px 1px rgba(255,255,255,0.15);
  color: #fff;
}
.liquid-glass-strong::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(240,212,147,0.72) 0%,
    rgba(212,175,106,0.30) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(212,175,106,0.30) 80%,
    rgba(240,212,147,0.72) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
  box-shadow: 4px 8px 26px rgba(0,0,0,0.34), inset 0 1px 1px rgba(255,255,255,0.22);
}

/* Solid gold, matching Arcana's primary button */
.btn-gold {
  background: linear-gradient(135deg, #e5c073, #a67f3b);
  color: #1e1707;
  box-shadow: 0 6px 26px rgba(201,163,90,0.28);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(201,163,90,0.44);
  background: linear-gradient(135deg, #f0d493, #b98d43);
}

/* ---------- Footer bar ---------- */
.footer-bar {
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 16px;
  animation: rise 1.1s cubic-bezier(.2,.7,.3,1) 0.5s both;
}
@media (min-width: 768px) { .footer-bar { flex-direction: row; } }
.footer-bar p {
  color: rgba(255,255,255,0.38); font-size: 0.74rem; font-weight: 300;
}
.footer-links { display: flex; align-items: center; gap: 26px; }
.footer-links a {
  color: rgba(255,255,255,0.38); font-size: 0.74rem; font-weight: 300;
  text-decoration: none; transition: color 0.25s ease;
}
.footer-links a:hover { color: rgba(255,255,255,0.78); }

@media (prefers-reduced-motion: reduce) {
  .nebula, .sheen, .star { animation: none; }
  .wordmark, .eyebrow, h1, .sub, .cta-row, .footer-bar { animation: none; }
}
