:root {
  --gold: #eaa00a;
  --gold-soft: #f4b733;
  --red: #e40014;
  --red-bright: #fb2c36;
  --ink: #0b0b0c;
  --muted: #6b6b73;
  --line: #ececef;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 18px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.14);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow: hidden;
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 0;
}

/* ---------- 16:9 surface (fills the screen, no card chrome) ---------- */
.stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  background: var(--bg);
  overflow: hidden;
  container-type: size;
}
/* Brand glow inside the stage */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 88% -8%, rgba(234, 160, 10, 0.16), transparent 60%),
    radial-gradient(55% 45% at 4% 108%, rgba(228, 0, 20, 0.10), transparent 60%);
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5cqh 6cqw;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.title {
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: 6cqw;
}
.title__app {
  display: block;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-soft) 55%, var(--red) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title__line { display: block; color: var(--ink); }

.lede {
  margin: 2.4cqh auto 0;
  max-width: 46cqw;
  font-size: 1.25cqw;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Event details ---------- */
.details {
  margin: 4cqh auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4cqw;
  width: min(82cqw, 100%);
}
.detail {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.2cqw;
  padding: 1.8cqh 1.6cqw 2cqh;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4cqh;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.detail:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.detail::before {
  content: "";
  position: absolute;
  left: 0; top: 1.6cqh; bottom: 1.6cqh;
  width: 0.32cqw;
  border-radius: 0 4px 4px 0;
  background: var(--gold);
}
.detail--guest { background: var(--ink); color: #fff; border-color: var(--ink); }
.detail--guest::before { background: var(--red); }

.detail__icon {
  width: 2cqw; height: 2cqw;
  color: var(--gold);
  margin-bottom: 0.4cqh;
}
.detail__icon svg { width: 100%; height: 100%; }

.detail__label {
  font-size: 0.92cqw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.detail--guest .detail__label { color: var(--gold-soft); }

.detail__value {
  font-size: 1.55cqw;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.detail__value sup { font-size: 0.6em; font-weight: 700; }
.detail__meta { font-size: 1.05cqw; color: var(--muted); font-weight: 500; }
.detail--guest .detail__meta { color: #c9c9d0; }

/* ---------- Launch button ---------- */
.launch {
  margin-top: 4cqh;
  display: inline-flex;
  align-items: center;
  gap: 0.9cqw;
  padding: 1.5cqh 2.6cqw;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 1.4cqw;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  cursor: pointer;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(11, 11, 12, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.launch:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(11, 11, 12, 0.34); }
.launch:active { transform: translateY(0) scale(0.99); }
.launch:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.launch.is-launched { pointer-events: none; opacity: 0.55; filter: grayscale(0.3); }

/* ---------- Dashboard reveal (overlay within the stage) ---------- */
.reveal {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.4cqh;
  padding: 4cqh 5cqw;
  background: var(--bg);
  opacity: 0;
  transform: scale(0.97);
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  pointer-events: auto;
}
.reveal__frame {
  width: min(72cqw, 100%);
  border-radius: 1cqw;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
}
.reveal__bar {
  display: flex;
  align-items: center;
  gap: 0.6cqw;
  padding: 1cqh 1.4cqw;
  background: #f6f6f7;
  border-bottom: 1px solid var(--line);
}
.reveal__bar span { width: 0.9cqw; height: 0.9cqw; border-radius: 50%; background: #d8d8dd; }
.reveal__bar span:nth-child(1) { background: var(--red); }
.reveal__bar span:nth-child(2) { background: var(--gold); }
.reveal__bar span:nth-child(3) { background: #22c55e; }
.reveal__bar em {
  margin-left: 1.2cqw;
  font-style: normal;
  font-size: 1cqw;
  font-weight: 600;
  color: var(--muted);
}
.reveal__img { display: block; width: 100%; height: auto; }
.reveal__caption {
  text-align: center;
  font-size: 1.9cqw;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.reveal__caption strong { color: var(--red); }

/* ---------- Footer ---------- */
.foot {
  position: absolute;
  left: 0; right: 0; bottom: 1.6cqh;
  text-align: center;
  font-size: 1cqw;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
