:root {
  --bg: #050403;
  --text: #f6f1e7;
  --muted: #a39c8f;
  --gold: #f6c453;
  --gold-light: #fff0c2;
  --gold-deep: #d98a1c;
  --line: rgb(246 196 83 / 0.3);
  --glow: rgb(246 196 83 / 0.45);
}

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

html {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgb(246 196 83 / 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 100%, rgb(217 138 28 / 0.08), transparent 70%),
    var(--bg);
}

body {
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--text);
  font: 400 1rem/1.6 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* campo de estrelas: camadas com tamanhos de tile diferentes pra não parecer grade */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(circle at 23px 41px, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 157px 93px, rgb(255 255 255 / 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88px 188px, var(--gold) 0 1.2px, transparent 2px),
    radial-gradient(circle at 241px 227px, rgb(255 255 255 / 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 376px 31px, rgb(255 255 255 / 0.5) 0 0.8px, transparent 1.3px),
    radial-gradient(circle at 199px 351px, rgb(255 255 255 / 0.4) 0 0.8px, transparent 1.3px);
  background-size: 310px 270px, 310px 270px, 310px 270px, 430px 390px, 430px 390px, 430px 390px;
}

.page {
  width: min(100% - 32px, 640px);
  margin-inline: auto;
  padding-block: clamp(48px, 10vh, 96px) 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 45%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  isolation: isolate;
  padding-block: 24px;
}

.title {
  font: 400 clamp(3.5rem, 17vw, 9.5rem)/0.95 'Anton', Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.title .gold {
  filter: drop-shadow(0 0 22px var(--glow));
}

.tagline {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(0.85rem, 2.6vw, 1.15rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
}

.tagline [aria-hidden] {
  color: var(--gold);
  letter-spacing: 0;
  margin-inline: 0.6em;
}

/* anéis dourados da arte, passando atrás do título */
.orbit {
  --r: -9deg;
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: min(118%, 92vw);
  aspect-ratio: 3.4;
  border: 2px solid rgb(246 196 83 / 0.7);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--glow), inset 0 0 16px rgb(246 196 83 / 0.25);
  translate: -50% -50%;
  rotate: var(--r);
  animation: tilt 9s ease-in-out infinite alternate;
}

.orbit--2 {
  --r: 12deg;
  width: min(100%, 80vw);
  aspect-ratio: 2.6;
  opacity: 0.45;
  animation-direction: alternate-reverse;
}

.orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px 4px var(--gold);
  translate: 0 -50%;
}

.lede {
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* cartão branco do form; 500px = max-width que o próprio WebinarJam impõe ao wrapper */
.panel {
  width: min(100%, 500px);
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 6px rgb(246 196 83 / 0.08), 0 30px 80px -20px rgb(246 196 83 / 0.45);
}

/* fill "backwards": depois de terminar não deixa translate aplicado,
   senão o painel vira containing block e prende popups position:fixed do embed */
.reveal {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--i, 0) * 120ms) backwards;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

@keyframes tilt {
  to {
    rotate: calc(var(--r) + 5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
