:root {
  --bg: #0b0f1a;
  --fg: #e6e8eb;
  --muted: #9aa1a9;
  --accent-1: #7c3aed;
  --accent-2: #22d3ee;
  --accent-3: #f97316;
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: var(--bg);
}

.bg { position: fixed; inset: 0; overflow: hidden; z-index: -1; }
.aurora {
  position: absolute; inset: -20% -20% -20% -20%;
  background:
    radial-gradient(60% 80% at 10% 20%, rgba(124,58,237,0.35), transparent 60%),
    radial-gradient(50% 70% at 90% 30%, rgba(34,211,238,0.25), transparent 60%),
    radial-gradient(40% 60% at 50% 80%, rgba(249,115,22,0.20), transparent 60%);
  filter: blur(80px) saturate(110%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-4%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(6%, -3%, 0) scale(1.08); }
}
.grain { position:absolute; inset:0; pointer-events:none; opacity:.08; background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="220" height="220"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="1" stitchTiles="stitch"/></filter><rect width="220" height="220" filter="url(%23n)"/></svg>'); mix-blend-mode: overlay; }

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 2rem;
}

.brand { width: 100%; max-width: 1100px; display:flex; align-items:center; justify-content:flex-end; }
.theme-toggle { width: 36px; height: 36px; border-radius: 10px; border:1px solid var(--border); background: var(--glass); backdrop-filter: blur(10px); cursor:pointer; position:relative; display:grid; place-items:center; color: var(--fg); font-size: 18px; transition: transform .18s ease, filter .18s ease; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.theme-toggle::before { content:""; position:absolute; inset:6px; border-radius:8px; background: conic-gradient(from 120deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1)); filter: blur(12px); opacity:.85; }
.theme-toggle svg { width: 22px; height: 22px; z-index: 1; }
.theme-toggle:hover { transform: translateY(-1px); filter: brightness(1.08); }

.hero { width: 100%; display:grid; justify-items:center; }
.card {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.2rem;
  align-items: center;
  padding: clamp(1.2rem, 3.5vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}
.card__content { padding-bottom: 84px; }
.card__media img { width: 100%; height: auto; border-radius: 18px; border:1px solid var(--border); box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.card__content h1 { margin: 0 0 .75rem; font-size: clamp(1.6rem, 5vw, 3rem); letter-spacing: .4px; }
.card__content p { margin: 0 0 1.25rem; color: var(--muted); font-size: clamp(0.95rem, 2.2vw, 1.125rem); }

.waitlist, .hint, .socials { display: none !important; }
.cheer-note { color: var(--muted); font-size: 1rem; margin: 0 0 .75rem; }
.clap-count { font-weight: 600; opacity: .9; }
.cheer-ui { position: absolute; bottom: 18px; right: 18px; display:flex; align-items:center; gap:.6rem; z-index: 2; }
.cheer-emoji { background: none; border: none; box-shadow: none; color: var(--fg); font-size: 40px; line-height: 1; padding: 0; cursor: pointer; }
.cheer-emoji:hover { transform: translateY(-1px) scale(1.04); }
.cheer-emoji:active { transform: translateY(0) scale(1.0); }
.cheer-emoji { animation: floatPulse 2.4s ease-in-out infinite; }
@keyframes floatPulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
.cheer-emoji.pop { animation: popOnce 260ms ease-out; }
@keyframes popOnce {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.emoji { position: fixed; z-index: 5; font-size: 24px; will-change: transform, opacity; animation: fly var(--dur, 900ms) ease-out forwards; pointer-events: none; }
@keyframes fly {
  0% { transform: translate(0,0) scale(.8) rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(var(--rot)); opacity: 0; }
}

.footer { width: 100%; max-width: 1100px; opacity:.7; font-size:.95rem; padding-top: 1rem; text-align: center; }
.tagline { margin-left: .75rem; color: var(--muted); }
.divider { width: 100%; max-width: 1100px; height: 1px; margin: 1.5rem 0 .75rem; background: linear-gradient(90deg, transparent, var(--border), transparent); }

@media (max-width: 900px) {
  .card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .card__content { padding-bottom: 104px; }
}

@media (max-width: 380px) {
  .page { padding: 1rem; }
  .card { padding: 0.9rem; border-radius: 18px; }
  .card__content h1 { font-size: clamp(1.4rem, 7.2vw, 2.2rem); }
  .card__content p { font-size: clamp(0.9rem, 3.8vw, 1rem); }
  .cheer-ui { bottom: 14px; right: 14px; }
  .card__content { padding-bottom: 120px; }
}

@media (min-width: 700px) and (max-width: 1024px) {
  .card { grid-template-columns: 1.35fr 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
  .cheer-emoji { animation: none; }
}