/* CUSTOM FONT */
@font-face {
    font-family: 'Burbank Big';
    src: url('burbank.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* VARIABLES */
:root {
    --dark-purple: #1D003A;
    --purple:      #350B53;
    --light-purple:#C87CFF;
    --white:       #FFFFFF;
    --yellow:      #FCD434;
    --pink:        #D31EFE;
}

/* RESET */
*, *::before, *::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: inherit;
    transition: all .2s ease;
}

::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: #999; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.5); }

html {
    scrollbar-gutter: stable;
    color-scheme: dark;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
body {
    width: 100%;
    background: var(--purple);
    color: var(--white);
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.25vw, 18px);
}

p, li {
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 400;
}

p.large {
    font-weight: 700;
    font-size: clamp(18px, 2vw, 24px);
    margin-top: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'roc-grotesk-wide', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 5px 20px var(--dark-purple);
}

/* =============================================
   IMAGES
   ============================================= */
img { max-width: 100%; display: block; }

/* =============================================
   LINKS
   ============================================= */
a, a:link, a:hover, a:visited, a:active {
    color: inherit;
    text-decoration: none;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
section {
    width: 100%;
    position: relative;
}

.mw-700 {
    max-width: 700px;
    margin: 20px auto;
    padding: 0 20px;
}

.mw-700 .yellow {
    font-weight: 700;
    color: var(--yellow);
}

/* =============================================
   HEADER
   ============================================= */
header {
    background: url(../assets/hero-bg.png) no-repeat center / cover;
    padding: 50px 0 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header .purple-light { color: var(--light-purple); }

header .logo {
    max-width: min(532px, 85vw);
    margin: 50px auto 100vh;
}

header .gradient {
    background: linear-gradient(0deg, rgba(53,11,83,1) 10%, rgba(53,11,83,0) 50%);
    padding: 0 20px 50px;
}

/* Heading block */
.heading {
    position: relative;
    margin: 0 auto;
}

.heading h1 {
    font-family: 'roc-grotesk-wide', sans-serif;
    color: var(--yellow);
    font-size: clamp(50px, 10vw, 100px);
    line-height: .8;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.heading h1 span {
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(32px, 3.5vw, 40px);
}

.heading .badge {
    background: var(--pink);
    font-size: 10px;
    font-weight: 700;
    line-height: .8;
    text-align: center;
    text-transform: uppercase;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    color: var(--yellow);
    position: absolute;
    top: -25px;
    left: calc(50% + 200px);
    transform: rotate(10deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.heading .badge span { font-size: 36px; }

/* =============================================
   FLOATING DEBRIS (header particles)
   ============================================= */
.debris {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.debris span {
    position: absolute;
    display: block;
    border-radius: 3px;
    opacity: 0;
    animation: floatDebris linear infinite;
}

/* Generate 15 varied debris pieces */
.debris span:nth-child(1)  { width:6px;  height:6px;  background:var(--yellow);      left:10%;  animation-duration:8s;  animation-delay:0s;   top:110%; }
.debris span:nth-child(2)  { width:4px;  height:10px; background:var(--pink);        left:20%;  animation-duration:11s; animation-delay:1s;   top:110%; }
.debris span:nth-child(3)  { width:8px;  height:5px;  background:var(--light-purple);left:33%;  animation-duration:9s;  animation-delay:2.5s; top:110%; }
.debris span:nth-child(4)  { width:5px;  height:5px;  background:var(--yellow);      left:47%;  animation-duration:13s; animation-delay:0.5s; top:110%; }
.debris span:nth-child(5)  { width:3px;  height:8px;  background:var(--white);       left:58%;  animation-duration:7s;  animation-delay:3s;   top:110%; }
.debris span:nth-child(6)  { width:7px;  height:7px;  background:var(--pink);        left:68%;  animation-duration:10s; animation-delay:1.5s; top:110%; }
.debris span:nth-child(7)  { width:4px;  height:4px;  background:var(--yellow);      left:78%;  animation-duration:12s; animation-delay:4s;   top:110%; }
.debris span:nth-child(8)  { width:9px;  height:4px;  background:var(--light-purple);left:88%;  animation-duration:8s;  animation-delay:0.8s; top:110%; }
.debris span:nth-child(9)  { width:5px;  height:9px;  background:var(--yellow);      left:5%;   animation-duration:14s; animation-delay:2s;   top:110%; }
.debris span:nth-child(10) { width:6px;  height:6px;  background:var(--white);       left:25%;  animation-duration:9s;  animation-delay:3.5s; top:110%; }
.debris span:nth-child(11) { width:4px;  height:4px;  background:var(--pink);        left:40%;  animation-duration:11s; animation-delay:5s;   top:110%; }
.debris span:nth-child(12) { width:8px;  height:3px;  background:var(--yellow);      left:53%;  animation-duration:7s;  animation-delay:1.2s; top:110%; }
.debris span:nth-child(13) { width:3px;  height:7px;  background:var(--light-purple);left:63%;  animation-duration:10s; animation-delay:4.5s; top:110%; }
.debris span:nth-child(14) { width:6px;  height:6px;  background:var(--pink);        left:73%;  animation-duration:13s; animation-delay:0.3s; top:110%; }
.debris span:nth-child(15) { width:5px;  height:5px;  background:var(--yellow);      left:92%;  animation-duration:8s;  animation-delay:2.8s; top:110%; }

@keyframes floatDebris {
    0%   { transform: translateY(0) rotate(0deg);   opacity: 0; }
    5%   { opacity: .7; }
    90%  { opacity: .4; }
    100% { transform: translateY(-120vh) rotate(720deg); opacity: 0; }
}

/* =============================================
   MAIN + CSS GRID BACKGROUND
   ============================================= */
main {
    position: relative;
    text-align: center;
    background-color: var(--purple);
}

/* Fixed CSS grid replaces grid-bg.png */
main::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(200,124,255,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200,124,255,.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

main > * { position: relative; z-index: 1; }

/* =============================================
   FADE-UP ANIMATION
   ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: none; /* handled by animation, not transition */
}

.fade-up.is-visible {
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered children inside key containers */
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }
.fade-up.delay-4 { animation-delay: 0.4s; }
.fade-up.delay-5 { animation-delay: 0.5s; }
.fade-up.delay-6 { animation-delay: 0.6s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-up.is-visible {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* =============================================
   TICKERS (marquee)
   ============================================= */
.purple-ticker,
.purple-ticker-2 {
    background: url(../assets/purple-grit.jpg) no-repeat center / cover var(--light-purple);
    color: var(--white);
    padding: 20px 0;
    margin: 50px 0;
    overflow: hidden;
    white-space: nowrap;
}

.purple-ticker  { transform: skewY(3deg);  }
.purple-ticker-2{ transform: skewY(-3deg); }

.ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 18s linear infinite;
}

.ticker-track h4 {
    display: inline;
    font-family: 'roc-grotesk-wide', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 26px);
    text-shadow: none;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =============================================
   VIDEO SECTION
   ============================================= */
#video { padding: 0 20px; }

.video {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1440px;
    margin: 100px auto;
    gap: 20px;
}

.video img {
    border-radius: 30px;
    border: 1px solid var(--light-purple);
    box-shadow: 0 0 200px var(--light-purple);
    flex: 1 1 600px;
    max-width: 100%;
    height: auto;
    min-width: 0;
}

.video h5 {
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 2vw, 26px);
    color: var(--yellow);
    flex-shrink: 0;
    white-space: nowrap;
}

.video h5:first-child { transform: rotate(-90deg); }
.video h5:last-child  { transform: rotate(90deg);  }

#video .yellow { margin-top: 20px; }

/* =============================================
   REWARDS SECTION
   ============================================= */
#rewards { padding: 100px 20px 50px; }

#rewards h2 {
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 7vw, 100px);
    color: var(--yellow);
}

#rewards h2 span { font-weight: 400; }

#rewards .tags {
    max-width: 768px;
    margin: 0 auto;
}

/* =============================================
   CHALLENGE SECTION
   ============================================= */
#challenge { padding: 100px 20px; }

#challenge h2 {
    font-size: clamp(48px, 13vw, 13vw);
    color: var(--yellow);
    line-height: .8;
}

#challenge h2 span {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 500;
}

#challenge .cards {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1600px;
    margin: -30px auto 40px;
    padding: 0 20px;
    flex-wrap: wrap;
}

#challenge .cards .card {
    border: 2px solid var(--light-purple);
    border-radius: 30px;
    text-align: center;
    padding: 150px 20px;
    flex: 1 1 280px;
    opacity: .3;
    transition: padding .3s ease, box-shadow .3s ease, opacity .3s ease;
    cursor: pointer;
}

#challenge .cards .card.active {
    padding: 200px 20px;
    box-shadow: 0 0 50px var(--light-purple);
    opacity: 1;
}

#challenge .cards .card:hover {
    padding: 200px 20px;
    box-shadow: 0 0 50px var(--light-purple);
    opacity: 1;
}

/* Reset active card when sibling is hovered */
#challenge .cards:has(.fuego-room:hover) .active,
#challenge .cards:has(.intense-nacho-room:hover) .active {
    padding: 150px 20px;
    box-shadow: none;
    opacity: .3;
}

.fuego-room        { background: url(../assets/fuego-room.png)         no-repeat center / cover; }
.blue-heat-room    { background: url(../assets/blue-heat-room.png)     no-repeat center / cover; }
.intense-nacho-room{ background: url(../assets/intense-nacho-room.png) no-repeat center / cover; }

#challenge .large { margin: 20px auto; }

/* =============================================
   HOW IT WORKS
   ============================================= */
#works { padding: 100px 20px; }

.how-it-works {
    max-width: 1240px;
    max-height: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    border-radius: 30px;
    border: 1px solid var(--light-purple);
    background: rgba(41,1,82,.5);
    box-shadow: 0 10px 100px 10px rgba(210,97,225,.2);
    backdrop-filter: blur(2px);
    overflow: visible;
}

.how-it-works .img {
    width: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.how-it-works .img img { margin-bottom: -10px; }

.how-it-works .content {
    width: 50%;
    text-align: left;
    padding: 50px;
}

.how-it-works .content h2 {
    font-size: clamp(40px, 5vw, 72px);
    color: var(--yellow);
}

.how-it-works .content .list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    list-style: none;
}

.how-it-works .content .item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-family: 'roc-grotesk', sans-serif;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.how-it-works .content .item span {
    font-size: 18px;
    font-weight: 400;
    text-transform: none;
}

.how-it-works .content .item .number {
    background: url(../assets/yellow-grit.jpg) no-repeat center / cover var(--yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    min-height: 40px;
    font-weight: 900;
    border-radius: 20px;
    color: var(--dark-purple);
    flex-shrink: 0;
}

.how-it-works .content h3 {
    color: var(--yellow);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

/* =============================================
   WIN SECTION
   ============================================= */
#win { padding: 100px 20px; }

#win h2 {
    font-size: clamp(48px, 7vw, 100px);
    color: var(--yellow);
    line-height: .8;
}

#win h2 span {
    font-weight: 400;
    font-size: clamp(46px, 6.8vw, 97px);
}

#win .merch {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#win .merch .merch-item { 
    width: 33.33%;
}
#win .merch .merch-item img {
    width: 90%;
    margin: 0 auto;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--dark-purple);
    padding: 100px 20px;
    border-top: 2px solid var(--pink);
}

footer section {
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
    color: var(--light-purple);
}

footer h5 {
    font-family: 'roc-grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2vw, 26px);
    margin-bottom: 20px;
}

/* =============================================
   TAGS & BUTTONS (Burbank Big font applied)
   ============================================= */
.tag-yellow {
    display: inline-block;
    background: url(../assets/yellow-grit.jpg) no-repeat center / 100% 100% var(--yellow);
    margin: 20px auto;
    color: var(--dark-purple);
    padding: 5px 30px;
    border-radius: 10px;
    font-family: 'Burbank Big', 'roc-grotesk-wide', sans-serif;
    text-transform: uppercase;
}

.tag-yellow span {
    font-weight: 600;
    font-size: clamp(16px, 1.5vw, 20px);
}

.tag-purple {
    display: inline-block;
    background: url(../assets/purple-grit.jpg) no-repeat center / 100% 100% var(--purple);
    margin: 1px 5px;
    color: var(--white);
    padding: 7px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-family: 'Burbank Big', 'roc-grotesk-wide', sans-serif;
}

.btn-yellow {
    display: inline-block;
    background: url(../assets/yellow-grit.jpg) no-repeat center / 100% 100% var(--yellow);
    margin: 20px auto;
    color: var(--dark-purple) !important;
    padding: 7px 25px;
    border-radius: 7px;
    font-family: 'Burbank Big', 'roc-grotesk-wide', sans-serif;
    font-weight: 700;
    font-size: clamp(18px, 1.8vw, 24px);
    text-transform: uppercase;
}

.btn-yellow:hover {
    padding: 10px 30px;
    margin: 17px auto;
}

/* =============================================
   TEXT MODIFIERS
   ============================================= */
.left    { text-align: left;    }
.right   { text-align: right;   }
.center  { text-align: center;  }
.justify { text-align: justify; }

/* =============================================
   RESPONSIVE — TABLET (max 900px)
   ============================================= */
@media (max-width: 900px) {
    header .logo { margin-bottom: 50vh; }

    .heading .badge {
        top: -40px;
        left: calc(50% + 200px);
    }

    .video {
        flex-direction: column;
        margin: 60px auto;
        gap: 12px;
    }
    .video h5:first-child,
    .video h5:last-child { 
        transform: rotate(0deg); 
        writing-mode: horizontal-tb;
    }
    .video img {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .how-it-works {
        flex-direction: column-reverse;
        max-height: none;
        align-items: stretch;
    }
    .how-it-works .img,
    .how-it-works .content {
        width: 100%;
    }

    #challenge {
        padding: 50px 0;
    }
    #works,
    #win {
        padding: 50px 20px;
    }
    #win .merch { justify-content: center; }
    #win .merch .merch-item {
        width: 100%;
        text-align: center;
        margin: 20px auto;
    }

    #challenge .cards { 
        flex-direction: column; 
        align-items: stretch; 
        margin-top: -10px;
        padding: 0 40px;
    }
    #challenge .cards .card,
    #challenge .cards .card.active,
    #challenge .cards .card:hover { 
        width: 100%; 
        flex: unset; 
        padding: 150px 20px; }
}

/* =============================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================= */
@media (max-width: 600px) {
    header .logo { margin-bottom: 40vh; }

    .heading h1 { line-height: .85; margin-bottom: 30px; }

    .heading .badge {
        top: -90px;
        left: calc(50% - 50px);
    }

    #rewards h2 { font-size: clamp(36px, 11vw, 60px); }

    #challenge h2 { line-height: .7; }

    .how-it-works .content { padding: 30px 20px; }

    #win h2 { line-height: .85; }

    .video { gap: 8px; }

    footer { padding: 60px 20px; }
}
