/* Landing page: a full-screen moving sanctuary, then a few short sections. */
* { box-sizing: border-box; }
:root {
  --night: #0b0b22;
  --ink: #f4efe6;
  --muted: #b9b2c9;
  --gold: #f2c14e;
  --serif: Georgia, 'Times New Roman', serif;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--night);
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---- Top bar ---- */
.topbar {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  transition: background .4s, box-shadow .4s;
}
.topbar.solid { background: rgba(11, 11, 34, .88); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.brand { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .02em; }
.topbar nav { display: flex; gap: 1.25rem; align-items: center; font-size: .95rem; }
.topbar nav a:not(.pill-btn) { opacity: .85; }
.topbar nav a:not(.pill-btn):hover { opacity: 1; }
.pill-btn { padding: .4rem 1rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; }
.pill-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: var(--gold); color: #1a1430; box-shadow: 0 8px 30px rgba(242, 193, 78, .25); }
.btn.gold:hover { box-shadow: 0 10px 36px rgba(242, 193, 78, .4); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, .4); }
.btn.ghost:hover { border-color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: max(100svh, 620px);
  display: grid;
  place-items: end center;
  overflow: hidden;
  text-align: center;
}
.scene { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #2a2160 0%, #120f33 55%, #07071a 100%); }

/* Slow camera drift over the whole scene, like a long handheld shot. */
.drift { position: absolute; inset: -6%; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: scale(1.02) translate(-1%, 1%); }
  to { transform: scale(1.12) translate(1.5%, -1.5%); }
}

.glow {
  position: absolute;
  left: 50%;
  top: 6%;
  width: 70vmax;
  height: 70vmax;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 214, 140, .35) 0%, rgba(255, 190, 110, .1) 30%, transparent 60%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .65; } }

.window {
  position: absolute;
  left: 50%;
  top: 11%;
  width: clamp(100px, min(11vw, 18vh), 170px);
  transform: translateX(-50%);
  filter: brightness(1.05) saturate(1.1) drop-shadow(0 0 40px rgba(255, 210, 130, .45));
}

/* Light beams falling from the window. */
.beams { position: absolute; left: 50%; top: 17%; width: 0; height: 0; }
.beams i {
  position: absolute;
  top: 0;
  left: -6vmax;
  width: 12vmax;
  height: 120vh;
  transform-origin: 50% 0;
  background: linear-gradient(rgba(255, 225, 160, .22), rgba(255, 225, 160, 0) 80%);
  filter: blur(6px);
  animation: beam 9s ease-in-out infinite;
}
.beams i:nth-child(1) { transform: rotate(-28deg); animation-delay: -1s; }
.beams i:nth-child(2) { transform: rotate(-12deg); animation-delay: -4s; }
.beams i:nth-child(3) { transform: rotate(2deg); animation-delay: -2s; }
.beams i:nth-child(4) { transform: rotate(16deg); animation-delay: -6s; }
.beams i:nth-child(5) { transform: rotate(30deg); animation-delay: -3s; }
@keyframes beam { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }

/* Candle row at the foot of the scene. */
.candles {
  position: absolute;
  left: 50%;
  bottom: 10%;
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 3vw, 34px);
  transform: translateX(-50%);
}
.candles i {
  position: relative;
  width: 12px;
  height: var(--h);
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #d9ceb6, #fffaf0 45%, #cfc3a8);
  opacity: .9;
}
.candles i::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 10px;
  height: 18px;
  margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 70%, #fff 0%, #ffd56b 35%, #ff8a2a 70%, transparent 72%);
  box-shadow: 0 0 18px 6px rgba(255, 170, 60, .4);
  transform-origin: 50% 90%;
  animation: flicker 1.3s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08, .94) rotate(2deg); }
  100% { transform: scale(.94, 1.06) rotate(-1deg); }
}

.embers { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Darkens the centre and edges so the headline stays readable over any footage. */
.shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(7, 7, 26, .55) 0%, rgba(7, 7, 26, .15) 45%, transparent 70%),
    linear-gradient(rgba(7, 7, 26, .35), transparent 25%, transparent 88%, var(--night));
}

/* Sits in the lower part of the hero, under the window and above the candles. */
.hero-copy { position: relative; z-index: 1; max-width: 44rem; padding: 7rem 1.25rem max(22vh, 150px); }
.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  line-height: 1.05;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .5);
}
.sub { max-width: 34rem; margin: 1.5rem auto 2.25rem; color: #e4ddef; font-size: clamp(1.05rem, 2.2vw, 1.25rem); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* Staggered entrance for the hero text. */
.hero-copy > * { animation: rise 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---- Sections ---- */
.section { max-width: 1040px; margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) 1.25rem 0; text-align: center; }
.section h2, .closing h2 { margin: 0 0 1rem; font-family: var(--serif); font-weight: normal; font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.lead { max-width: 34rem; margin: 0 auto 2.5rem; color: var(--muted); font-size: 1.1rem; }
.note { margin: 2rem 0 0; color: var(--muted); font-size: .95rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; text-align: left; }
.steps li {
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}
.steps .num {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--serif);
}
.steps h3 { margin: 1rem 0 .4rem; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }

.voices { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.25rem; margin: 0; padding: 0; }
.voice { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: 1.25rem .75rem; }
.voice .avatar {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin-bottom: .6rem;
  border-radius: 50%;
  background: var(--c);
  color: #1a1430;
  font-family: var(--serif);
  font-size: 1.5rem;
  box-shadow: 0 0 28px -4px var(--c);
  transition: transform .3s, box-shadow .3s;
}
.voice:hover .avatar { transform: translateY(-3px); box-shadow: 0 0 40px 0 var(--c); }
.voice .role { color: var(--c); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.voice .focus { margin-top: .3rem; color: var(--muted); font-size: .9rem; }

/* Plans: kept quiet, no featured tier, prices no louder than the text around them. */
.tiers { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 0; padding: 0; text-align: left; }
.tier {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}
.tier h3 { margin: 0 0 .35rem; font-family: var(--serif); font-weight: normal; font-size: 1.3rem; }
.tier p { margin: 0; }
.tier-price { color: var(--ink); }
.tier-credits { margin-top: .15rem !important; color: var(--gold); font-size: .88rem; }
.tier-summary { flex: 1; margin: .75rem 0 1rem !important; color: var(--muted); font-size: .92rem; }
.tier-link { align-self: flex-start; color: var(--ink); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; opacity: .85; }
.tier-link:hover { opacity: 1; color: var(--gold); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tiers { grid-template-columns: 1fr; } }

.closing {
  max-width: 1040px;
  margin: clamp(4rem, 10vw, 7rem) auto 0;
  padding: clamp(3rem, 7vw, 4.5rem) 1.25rem;
  border-radius: 24px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(242, 193, 78, .18), transparent 65%), rgba(255, 255, 255, .03);
}
.closing h2 { margin-bottom: 1.75rem; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: .85rem;
}

/* ---- Video landing section ---- */
.video-hero { background: #000; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
body.video-started .hero-video { opacity: 1; }

/* Animated scene only when there is no video; its window is left out so it can't meet the headline. */
.hero-fallback { visibility: hidden; }
.hero-fallback .window { display: none; }
body.no-video .hero-fallback { visibility: visible; }

/* Light shading while the video plays (keeps the top bar readable), deeper once the headline shows. */
.video-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent 18%);
}
.video-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(7, 7, 26, .55), transparent 65%),
    linear-gradient(transparent 35%, rgba(7, 7, 26, .7) 75%, var(--night));
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.video-done .video-shade::after { opacity: 1; }

/* The headline waits for the video to finish. */
.video-hero .hero-copy { padding-bottom: max(12vh, 90px); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 1s .15s ease, transform 1s .15s ease; }
.video-hero .hero-copy > * { animation: none; }
body.video-done .video-hero .hero-copy { opacity: 1; transform: none; pointer-events: auto; }
body.no-video .video-hero .hero-copy { padding-bottom: max(22vh, 150px); }
.replay { min-height: 1.5em; margin: 1.25rem 0 0; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: .95rem; opacity: .8; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { opacity: 1; }
.link-btn[hidden] { display: none; }

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: max(2.2rem, 5vh);
  padding: .55rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(4px);
  font-size: .9rem;
  transform: translateX(-50%);
  transition: opacity .6s;
}
.scroll-cue span { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
body.video-done .scroll-cue { opacity: 0; pointer-events: none; }

.sound-btn {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 4vw, 2.5rem);
  bottom: max(2.2rem, 5vh);
  padding: .45rem .9rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.sound-btn[hidden] { display: none; }
.video-progress { position: absolute; z-index: 1; inset: auto 0 0; height: 3px; background: rgba(255, 255, 255, .1); transition: opacity .6s; }
.video-progress div { width: 0; height: 100%; background: var(--gold); transition: width .25s linear; }
body.video-done .video-progress, body.no-video .video-progress { opacity: 0; }

/* Create account appears in the top bar once the video is scrolled away. */
.topbar .when-solid { display: none; }
.topbar.solid .when-solid { display: inline-block; }

.closing-login { margin: 1.25rem 0 0; color: var(--muted); font-size: .95rem; }
.closing-login a, .footer a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .sound-btn { bottom: auto; top: 4.4rem; } }

/* Fade-up as sections come into view. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
