/* ============================================================
   PROJECT: rhythmap-events
   FILE:    style.css
   URL:     events.rhythmap.com
   ============================================================ */

:root {
  --bg:         #040610;
  --pearl:      #F5F0E8;
  --pearl-dark: #E8E2D8;
  --accent:     #4DD0E1;
  --accent-2:   #9C27B0;
  --gold:       #F5C542;
  --white:      #ffffff;
  --muted:      rgba(255,255,255,0.55);
  --dark-text:  #1a1a2e;
  --font:       'Outfit', sans-serif;
  --serif:      'Playfair Display', serif;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--pearl);
  color: var(--dark-text);
  -webkit-font-smoothing: antialiased;
}

/* ── PEARL SIDE PANELS (30% each) ── */
.side-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 15%;
  background: var(--pearl);
  z-index: 0;
  pointer-events: none;
}
.side-left  { left: 0; border-right: 1px solid var(--pearl-dark); }
.side-right { right: 0; border-left: 1px solid var(--pearl-dark); }

/* ── CENTERED CONTENT COLUMN (middle 40%) ── */
.page-center {
  position: relative;
  z-index: 10;
  margin: 0 15%;   /* sit inside the pearl sides */
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  padding-bottom: 80px;
  text-align: center;
}

/* Particle canvas — sits inside hero */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}
.orb-1 { width: 500px; height: 500px; background: rgba(77,208,225,0.1);  top: -120px; left: -120px; animation: orb-float 14s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: rgba(156,39,176,0.12); bottom: -80px; right: -80px; animation: orb-float 18s ease-in-out infinite reverse; }

@keyframes orb-float {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(20px,-20px); }
}

/* Sound waves */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  opacity: 0.18;
  z-index: 2;
  pointer-events: none;
}
.wave-bar {
  width: 7px;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  border-radius: 4px;
  animation: wave-dance 1.3s ease-in-out infinite;
  transform-origin: bottom;
}
.wave-bar:nth-child(2n)  { animation-duration:1.6s; animation-delay:0.2s; height:50%; }
.wave-bar:nth-child(3n)  { animation-duration:1.1s; animation-delay:0.5s; height:90%; }
.wave-bar:nth-child(5n)  { animation-duration:1.4s; animation-delay:0.1s; height:40%; }
.wave-bar:nth-child(7n)  { animation-duration:1.7s; animation-delay:0.4s; height:100%; }
.wave-bar:nth-child(1)   { height:30%; }
.wave-bar:nth-child(4)   { height:70%; }

@keyframes wave-dance {
  0%,100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.25); }
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-img { width: 32px; height: 32px; border-radius: 7px; }
.nav-logo-text { color: var(--white); font-weight: 900; font-size: 1.05rem; letter-spacing: 1px; }
.nav-download {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 16px;
  border-radius: 50px;
  transition: background 0.25s, border-color 0.25s;
}
.nav-download:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Hero inner */
.hero-inner {
  position: relative;
  z-index: 10;
  padding: 40px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Floating Logo */
.hero-logo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 32px;
}
.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(77,208,225,0.25);
  animation: ring-pulse 4s ease-in-out infinite;
}
.ring-2 { inset: -24px; animation-delay: 1.5s; border-color: rgba(156,39,176,0.2); }

@keyframes ring-pulse {
  0%,100% { transform: scale(1);   opacity: 0.4; }
  50%      { transform: scale(1.1); opacity: 1; }
}
.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(77,208,225,0.45));
  animation: logo-float 6s ease-in-out infinite;
}
@keyframes logo-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.badge--cyan {
  background: rgba(77,208,225,0.1);
  border: 1px solid rgba(77,208,225,0.35);
  color: var(--accent);
}
.badge--gold {
  background: rgba(245,197,66,0.1);
  border: 1px solid rgba(245,197,66,0.35);
  color: var(--gold);
}
.badge-pulse {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.6); }
}

/* Title */
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 36px;
  text-transform: uppercase;
}

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 18px 28px;
  margin-bottom: 36px;
}
.c-unit { text-align: center; }
.c-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: mystery-pulse 3s ease-in-out infinite;
}
@keyframes mystery-pulse { 0%,100%{opacity:.5;} 50%{opacity:1;} }
.c-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 6px;
}
.c-sep {
  font-family: var(--serif);
  font-size: 2rem;
  color: rgba(255,255,255,0.12);
  margin-bottom: 14px;
}

/* Hero CTA button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(77,208,225,0.3);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(77,208,225,0.45); }
.btn-hero svg { transition: transform 0.25s; }
.btn-hero:hover svg { transform: translateX(4px); }

/* ── EVENT COPY SECTION ── */
.event-copy {
  background: var(--pearl);
  padding: 80px 40px;
  text-align: center;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #9C27B0;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark-text);
  margin-bottom: 36px;
}

.event-description {
  text-align: left;
  max-width: 100%;
  margin-bottom: 48px;
}
.event-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a3a5c;
  margin-bottom: 18px;
}
.event-description strong { color: var(--dark-text); font-weight: 800; }

/* ── EVENT IMAGES ── */
/* Images spanning across the pearl white sides */
.img-box {
  margin: 0 auto 48px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  background: var(--bg);
}
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.img-box:hover img {
  transform: scale(1.03);
}
.img-50 {
  width: 50vw;
  margin-left: calc(-50vw/2 + 35vw);
  height: 320px;
}
.img-70 {
  width: 70vw;
  margin-left: calc(-70vw/2 + 35vw);
  height: 380px;
}


/* Contest Box */
.contest-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: linear-gradient(135deg, #1a0a2e, #0d1a26);
  border: 1px solid rgba(245,197,66,0.3);
  border-radius: 20px;
  padding: 32px;
  text-align: left;
  margin-bottom: 48px;
  color: var(--white);
}
.contest-icon { font-size: 2.8rem; flex-shrink: 0; }
.contest-box h3 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 10px;
}
.contest-box p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 14px;
}
.contest-box strong { color: var(--white); }
.coming-soon-chip {
  display: inline-block;
  background: rgba(245,197,66,0.15);
  border: 1px solid rgba(245,197,66,0.4);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ── SIGNUP SECTION ── */
.signup {
  position: relative;
  background: var(--bg);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
}
.signup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(77,208,225,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.signup .section-label { color: var(--accent); }
.signup .section-title { color: var(--white); }

.signup-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  max-width: 400px;
  margin: 0 auto 32px;
}
.signup-desc strong { color: var(--white); }

.invite-form { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.input-group {
  display: flex;
  width: 100%;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.input-group:focus-within { border-color: var(--accent); }
.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 20px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
}
.input-group input::placeholder { color: rgba(255,255,255,0.3); }
.btn-glow {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  border: none;
  padding: 16px 24px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.25s, transform 0.25s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn-glow:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-glow:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.privacy-note { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success State */
.success-state { padding: 16px 0; }
.success-icon { font-size: 3.5rem; margin-bottom: 12px; animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes pop { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
.success-state h3 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 10px;
}
.success-state p { font-size: 0.95rem; color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: 8px; }
.promise { font-style: italic; font-size: 0.82rem !important; color: rgba(255,255,255,0.35) !important; }

.share-row { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.share-row > p { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 12px; }
.share-btns { display: flex; justify-content: center; gap: 10px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-x    { background: #000; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.share-copy { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.15); }
.share-copy.copied { background: rgba(77,208,225,0.15); border-color: var(--accent); color: var(--accent); }

/* ── FOOTER ── */
.footer {
  background: #000;
  text-align: center;
  padding: 40px 24px;
  color: rgba(255,255,255,0.45);
}
.footer-logo { width: 32px; height: 32px; border-radius: 8px; margin-bottom: 14px; }
.footer p { font-size: 0.82rem; line-height: 1.7; }
.footer p a { color: var(--accent); text-decoration: none; }
.footer p a:hover { text-decoration: underline; }
.footer-app-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 50px;
  transition: color 0.25s, border-color 0.25s;
}
.footer-app-link:hover { color: var(--accent); border-color: var(--accent); }

/* ── CONFETTI ── */
.confetti-container { position:fixed; inset:0; pointer-events:none; z-index:9999; overflow:hidden; }
.confetti-piece {
  position:absolute;
  top:-20px;
  border-radius: 2px;
  animation: confetti-fall 4s ease-in forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity:1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity:0; }
}

/* ── SLIDE-UP ENTRY ANIMATION ── */
.slide-up {
  opacity: 0;
  transform: translateY(28px);
  animation: slideUp 0.8s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes slideUp { to { opacity:1; transform:translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .side-panel { display: none; }
  .page-center { margin: 0; }
  .img-50 { width: 92vw; margin-left: -4vw; height: 260px; }
  .img-70 { width: 100vw; margin-left: -0vw; height: 300px; border-radius: 0; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 2.4rem; }
  .hero-logo-wrap { width: 140px; height: 140px; }
  .countdown { padding: 14px 16px; gap: 8px; }
  .c-num { font-size: 1.8rem; }
  .event-copy, .signup { padding: 60px 24px; }
  .input-group { flex-direction: column; border-radius: 0; background: transparent; border: none; gap: 10px; }
  .input-group input { border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; }
  .btn-glow { border-radius: 12px; padding: 16px; width: 100%; justify-content: center; }
  .contest-box { flex-direction: column; }
}
