/* =========================================================
   Hyped Events | index.css  (Home)
   ========================================================= */

/* ---------- Hero ---------- */
.hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  padding:calc(var(--nav-h) + clamp(40px,6vw,80px)) 0 clamp(110px,12vw,150px);
  background:var(--night);
  color:#cfc6f5;
}
.hero-bg{ position:absolute; inset:0; z-index:-1; pointer-events:none; }

/* soft colour blobs drifting slowly (transform only) */
.blob{
  position:absolute;
  border-radius:50%;
  animation:drift 18s ease-in-out infinite alternate;
}
.blob-1{
  width:620px; height:620px;
  top:-220px; left:-160px;
  background:radial-gradient(closest-side,rgba(124,58,237,.75),transparent);
}
.blob-2{
  width:560px; height:560px;
  bottom:-240px; right:-120px;
  background:radial-gradient(closest-side,rgba(59,130,246,.7),transparent);
  animation-duration:22s;
  animation-delay:-6s;
}
.blob-3{
  width:360px; height:360px;
  top:30%; left:44%;
  background:radial-gradient(closest-side,rgba(236,72,153,.35),transparent);
  animation-duration:16s;
  animation-delay:-3s;
}
@keyframes drift{
  0%{ transform:translate(0,0) scale(1); }
  100%{ transform:translate(60px,40px) scale(1.12); }
}

/* playful floating shapes */
.shape{ position:absolute; display:block; animation:floaty 7s ease-in-out infinite; }
.shape-ring{
  bottom:16%; left:44%;
  width:54px; height:54px;
  border:6px solid var(--sky);
  border-radius:50%;
  opacity:.8;
}
.shape-star{ top:16%; right:40%; width:30px; color:var(--sun); animation-delay:-2s; }
.shape-star-2{ top:auto; bottom:26%; left:46%; right:auto; width:18px; color:#f0abfc; animation-delay:-4s; }
.shape-squiggle{
  top:12%; left:36%;
  width:120px;
  fill:none;
  stroke:#c084fc;
  stroke-width:5;
  stroke-linecap:round;
  animation-delay:-1s;
}
.shape-dot{
  top:12%; right:8%;
  width:16px; height:16px;
  border-radius:50%;
  background:var(--pink);
  animation-delay:-3s;
}
.shape-pill{
  bottom:30%; right:4%;
  width:70px; height:22px;
  border-radius:999px;
  background:var(--grad);
  --r:-30deg;
  animation-name:floatyTilt;
  animation-delay:-5s;
}
@keyframes floatyTilt{
  0%,100%{ transform:rotate(-30deg) translateY(0); }
  50%{ transform:rotate(-12deg) translateY(-14px); }
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:clamp(40px,6vw,80px);
  align-items:center;
}
.hero-title{
  margin-top:22px;
  color:#fff;
  font-size:clamp(2.8rem,6.6vw,5.6rem);
  line-height:1;
}
/* the rotating word sits in a tilted gradient tag */
.rotator{
  display:inline-grid;
  vertical-align:bottom;
  overflow:hidden;
  margin:.08em 0;
  padding:0 .22em .06em;
  border-radius:.2em;
  background:var(--grad);
  transform:rotate(-2.5deg);
  box-shadow:0 18px 40px -18px rgba(124,58,237,.9);
}
.word{
  grid-area:1 / 1;
  justify-self:center;
  color:#fff;
  opacity:0;
  transform:translateY(100%);
  transition:transform .6s var(--bounce), opacity .4s ease;
}
.word.is-active{ opacity:1; transform:none; }
.word.is-leaving{ opacity:0; transform:translateY(-100%); }
.hero-title .grad-text{
  display:block;
  background-image:linear-gradient(120deg,#c4b5fd 0%,#a5b4fc 50%,#7dd3fc 100%);
}
.hero-lead{
  margin-top:26px;
  max-width:46ch;
  font-size:clamp(1rem,1.5vw,1.15rem);
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:34px;
}
.hero-proof{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top:34px;
  font-size:.9rem;
}
.hero-proof p{ display:flex; flex-direction:column; line-height:1.4; }
.hero-proof strong{ color:#fff; }
.avatars{ display:flex; }
.avatars span,
.avatar{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:3px solid var(--night);
  border-radius:50%;
  background:var(--c);
  color:#fff;
  font-size:.78rem;
  font-weight:700;
}
.avatars span + span{ margin-left:-12px; }

/* hero entrance */
.js [data-hero]{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay:calc(var(--h,0) * 120ms + 150ms);
}
.js .hero-go [data-hero]{ opacity:1; transform:none; }

/* polaroid collage */
.hero-art{
  position:relative;
  min-height:520px;
}
.polaroid{
  position:absolute;
  padding:10px 10px 0;
  border-radius:18px;
  background:#fff;
  box-shadow:0 30px 60px -24px rgba(0,0,0,.7);
  transition:transform .6s var(--bounce);
}
.polaroid img{
  width:100%;
  border-radius:10px;
  aspect-ratio:1/1;
  object-fit:cover;
}
.polaroid figcaption{
  padding:10px 4px 12px;
  color:var(--ink);
  font-family:var(--display);
  font-size:1.05rem;
  font-weight:700;
  text-align:center;
}
.p1{ top:0; left:12%; width:58%; transform:rotate(-5deg); z-index:2; }
.p2{ top:34%; right:0; width:46%; transform:rotate(6deg); z-index:3; }
.p3{ bottom:0; left:0; width:42%; transform:rotate(-2deg); z-index:1; }
.polaroid:hover{ transform:rotate(0) scale(1.05); z-index:5; }
.sticker-a{
  position:absolute;
  top:6%; right:4%;
  z-index:4;
  --tilt:8deg;
}
.sticker-a strong{ font-size:1.3rem; }
.sticker-b{
  position:absolute;
  bottom:8%; right:10%;
  z-index:4;
  background:#fff;
  color:var(--purple);
  --tilt:-8deg;
}

.hero-wave{
  position:absolute;
  left:0;
  bottom:-1px;
  width:100%;
  height:70px;
}

@media (max-width:980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-art{ min-height:0; height:clamp(360px,90vw,520px); max-width:560px; width:100%; margin-inline:auto; }
}
@media (max-width:700px){
  .shape-squiggle,
  .shape-ring{ display:none; }
}
@media (max-width:520px){
  .hero-proof{ align-items:flex-start; flex-direction:column; }
  /* spread the polaroids out so every caption stays readable */
  .hero-art{ height:clamp(380px,112vw,470px); }
  .p1{ top:0; left:0; width:60%; }
  .p2{ top:30%; right:0; width:52%; }
  .p3{ bottom:0; left:6%; width:46%; }
  .polaroid figcaption{ font-size:.9rem; padding:8px 2px 10px; }
  .sticker-a{ top:-4%; right:0; }
  .sticker-b{ bottom:2%; right:0; }
}

/* ---------- Ticker ---------- */
.marquee-wrap{
  position:relative;
  z-index:2;
  overflow:hidden;
  margin-top:-34px;
  padding-block:24px 30px;
}
.marquee{
  overflow:hidden;
  margin-inline:-20px;
  padding-block:18px;
  background:var(--grad);
  color:#fff;
  transform:rotate(-1.5deg);
  box-shadow:0 18px 40px -24px rgba(91,75,255,.9);
}
.marquee-track{
  display:flex;
  align-items:center;
  gap:28px;
  width:max-content;
  animation:marquee 30s linear infinite;
}
.marquee span{
  font-family:var(--display);
  font-size:clamp(1.2rem,2.4vw,1.7rem);
  font-weight:800;
  white-space:nowrap;
}
.marquee svg{ width:22px; height:22px; color:var(--sun); flex-shrink:0; }
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* ---------- Service cards ---------- */
.service-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.4vw,26px);
}
.service-card{
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding:30px 28px 28px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  transition:transform .45s var(--bounce), box-shadow .45s ease, border-color .3s ease;
}
.service-card::before{
  content:'';
  position:absolute;
  right:-60px;
  top:-60px;
  width:160px;
  height:160px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--g1),var(--g2));
  opacity:.1;
  transition:transform .6s var(--ease), opacity .4s ease;
}
.service-card:hover{
  transform:translateY(-8px) rotate(-.6deg);
  border-color:transparent;
  box-shadow:var(--shadow);
}
.service-card:hover::before{ transform:scale(1.6); opacity:.16; }
.service-icon{
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--g1),var(--g2));
  color:#fff;
  box-shadow:0 14px 26px -12px var(--g1);
  transition:transform .5s var(--bounce);
}
.service-icon svg{ width:30px; height:30px; }
.service-card:hover .service-icon{ transform:rotate(-10deg) scale(1.1); }
.service-card h3{ margin-top:22px; font-size:1.45rem; }
.service-card p{ margin-top:8px; font-size:.95rem; }
.service-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:auto;
  padding-top:18px;
  color:var(--purple);
  font-weight:700;
  font-size:.92rem;
}
.service-link svg{ width:16px; height:16px; transition:transform .35s var(--bounce); }
.service-card:hover .service-link svg{ transform:translateX(6px); }

@media (max-width:960px){
  .service-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px){
  .service-grid{ grid-template-columns:1fr; }
}

/* ---------- How it works ---------- */
.how-steps{
  position:relative;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:clamp(16px,2.4vw,26px);
}
/* dashed line joining the steps */
.how-steps::before{
  content:'';
  position:absolute;
  top:62px;
  left:12%;
  right:12%;
  border-top:3px dashed #c4b5fd;
}
.how-step{
  position:relative;
  padding:30px 22px;
  border-radius:var(--radius);
  background:#fff;
  text-align:center;
  box-shadow:0 18px 40px -30px rgba(60,20,160,.45);
  transition:transform .45s var(--bounce);
}
.how-step:nth-child(even){ transform:translateY(22px); }
.how-step:hover{ transform:translateY(-6px) rotate(1deg); }
.how-no{
  position:absolute;
  top:-14px;
  left:50%;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--sun);
  color:var(--ink);
  font-family:var(--display);
  font-weight:800;
  transform:translateX(-50%);
}
.how-icon{
  display:grid;
  place-items:center;
  width:64px;
  height:64px;
  margin:0 auto;
  border-radius:50%;
  background:var(--grad);
  color:#fff;
}
.how-icon svg{ width:30px; height:30px; }
.how-step h3{ margin-top:18px; }
.how-step p{ margin:8px auto 0; font-size:.92rem; }

@media (max-width:960px){
  .how-steps{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:40px; }
  .how-steps::before{ display:none; }
  .how-step:nth-child(even){ transform:none; }
}
@media (max-width:520px){
  .how-steps{ grid-template-columns:1fr; }
}

/* ---------- Next event + countdown ---------- */
.next{ position:relative; overflow:hidden; isolation:isolate; }
.next::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(50% 70% at 0% 50%,rgba(124,58,237,.45),transparent 70%),
    radial-gradient(50% 70% at 100% 50%,rgba(59,130,246,.4),transparent 70%);
}
.next-card{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  overflow:hidden;
  border-radius:32px;
  background:rgba(255,255,255,.04);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);
}
.next-img{ position:relative; min-height:340px; }
.next-img img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.sticker-next{ position:absolute; top:22px; left:22px; font-size:1.2rem; }
.next-body{ padding:clamp(28px,5vw,56px); }
.next-body h2{ margin-top:16px; font-size:clamp(2rem,4.4vw,3.2rem); }
.next-meta{ margin-top:18px; }
.next-meta li{ display:flex; align-items:center; gap:10px; margin-top:6px; color:#d8d1f7; }
.next-meta svg{ width:20px; height:20px; color:var(--sky); flex-shrink:0; }
.countdown{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-top:26px;
}
.countdown div{
  padding:14px 6px 10px;
  border-radius:18px;
  background:rgba(255,255,255,.07);
  text-align:center;
}
.countdown strong{
  display:block;
  color:#fff;
  font-family:var(--display);
  font-size:clamp(1.8rem,4vw,2.6rem);
  font-weight:800;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.countdown span{ font-size:.75rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.countdown .tick{ animation:tick .5s var(--bounce); }
@keyframes tick{ from{ transform:translateY(-8px); opacity:.3; } }
.countdown-done{ margin-top:22px; color:#fff; font-weight:700; }
.next-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:18px; margin-top:28px; }
.next-price strong{ color:#fff; font-family:var(--display); font-size:1.6rem; }

@media (max-width:860px){
  .next-card{ grid-template-columns:1fr; }
  .next-img{ min-height:260px; }
}

/* ---------- Highlights bento ---------- */
.bento{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:clamp(180px,20vw,260px);
  gap:clamp(12px,1.8vw,20px);
}
.bento-item{
  position:relative;
  overflow:hidden;
  border-radius:var(--radius);
}
.b-big{ grid-column:span 2; grid-row:span 2; }
.bento-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform 1s var(--ease);
}
.bento-item::after{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,transparent 45%,rgba(15,10,42,.85));
}
.bento-item figcaption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:16px;
  z-index:1;
  color:#fff;
  font-family:var(--display);
  font-size:1.2rem;
  font-weight:700;
  transition:transform .45s var(--bounce);
}
.bento-item figcaption span{
  display:table;
  margin-bottom:6px;
  padding:3px 10px;
  border-radius:999px;
  background:var(--grad);
  font-family:var(--body);
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.04em;
}
.bento-item:hover img{ transform:scale(1.08); }
.bento-item:hover figcaption{ transform:translateY(-6px); }

@media (max-width:860px){
  .bento{ grid-template-columns:1fr 1fr; }
}
@media (max-width:520px){
  .bento{ grid-template-columns:1fr; grid-auto-rows:220px; }
  .b-big{ grid-column:auto; grid-row:span 1; }
}

/* ---------- Stats band ---------- */
.stats-band{
  padding-block:clamp(48px,7vw,80px);
  background:var(--grad);
  color:#fff;
}
.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  text-align:center;
}
.stat + .stat{ border-left:1px solid rgba(255,255,255,.25); }
.stat strong{
  display:block;
  font-family:var(--display);
  font-size:clamp(2.6rem,6vw,4.2rem);
  font-weight:800;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.stat span{ display:block; margin-top:8px; font-weight:600; opacity:.9; }
@media (max-width:700px){
  .stats{ grid-template-columns:1fr 1fr; row-gap:30px; }
  .stat:nth-child(3){ border-left:0; }
}

/* ---------- Reviews ---------- */
.reviews{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2.4vw,28px);
  align-items:start;
}
.review{
  padding:30px 28px;
  border-radius:var(--radius);
  background:#fff;
  box-shadow:0 22px 44px -30px rgba(60,20,160,.5);
  transform:rotate(var(--tilt,0deg));
  transition:transform .45s var(--bounce);
}
.review:nth-child(1){ --tilt:-1.5deg; }
.review:nth-child(2){ --tilt:1.2deg; margin-top:26px; }
.review:nth-child(3){ --tilt:-.8deg; }
.review:hover{ transform:rotate(0) translateY(-6px); }
.review blockquote{
  margin-top:14px;
  color:var(--ink);
  font-size:1.02rem;
  font-weight:500;
  line-height:1.6;
}
.review figcaption{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:20px;
  font-size:.85rem;
  line-height:1.4;
}
.review figcaption strong{ display:block; color:var(--ink); font-size:.95rem; }
.review .avatar{ border-color:#fff; }

@media (max-width:900px){
  .reviews{ grid-template-columns:1fr; max-width:560px; margin-inline:auto; }
  .review:nth-child(2){ margin-top:0; }
}
