/* ============================================
   AFTERPARTY 
   NeoPOP Design System for Web
   ============================================ */

/* ============================================
   FONTS
   ============================================ */
@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('fonts/Gilroy-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cirka';
    src: url('fonts/Cirka-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cirka';
    src: url('fonts/Cirka-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cirka';
    src: url('fonts/Cirka-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   NEOPOP COLOR TOKENS
   ============================================ */
:root {
    /* Pop Black Scale - From AfterpartyColors.dart */
    --pop-black-100: #8A8A8A;
    --pop-black-200: #3D3D3D;
    --pop-black-300: #161616;
    --pop-black-400: #121212;
    --pop-black-500: #0D0D0D;

    /* Pop White Scale */
    --pop-white-100: #D2D2D2;
    --pop-white-200: #E0E0E0;
    --pop-white-300: #EFEFEF;
    --pop-white-400: #FBFBFB;
    --pop-white-500: #FFFFFF;

    /* Accent Colors - From AfterpartyColors.dart */
    --manna: #FFCB45;
    --manna-dark: #B38E30;
    --pink-pong: #FF426F;
    --neo-paccha: #E5FE40;
    --poli-purple: #6A35FF;
    --orange-sunshine: #FF8744;
    --green-accent: #8DD04A;
    /* AfterpartyGreen */
    --green-dark: #5C7A35;
    /* AfterpartyShadowGreen */
    --green-darker: #3F6915;
    /* AfterpartyDarkGreen */

    /* Button Edge Width */
    --edge-width: 3px;

    /* Spacing System - Expanded for grandeur */
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    /* Increased from 16 */
    --spacing-lg: 32px;
    /* Increased from 24 */
    --spacing-xl: 48px;
    /* Increased from 32 */
    --spacing-xxl: 80px;
    /* Increased from 48 */
    --spacing-xxxl: 120px;
    /* Increased from 64 */

    /* Typography */
    --font-sans: 'Gilroy', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Cirka', Georgia, serif;

    /* Grid Background */
    --grid-color: rgba(61, 61, 61, 0.1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--pop-black-500);
}

body {
    font-family: var(--font-sans);
    background-color: var(--pop-black-500);
    color: var(--pop-white-500);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Grid background similar to waitlist screen */
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    line-height: 1.4;
}

::selection {
    background: var(--manna);
    color: var(--pop-black-500);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
/* ============================================
   TYPOGRAPHY - MATCHING AfterpartyTypography.dart
   ============================================ */
.logo {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(3.5rem, 12vw, 6rem);
    letter-spacing: -2px;
    line-height: 1;
    color: var(--pop-white-500);
}

.tagline-container {
    display: grid;
    grid-template-areas: "stack";
    justify-content: center;
    align-items: center;
    min-height: 2.5em;
    /* Tightened height */
    margin: 0 auto var(--spacing-sm);
    /* Reduced top and bottom spacing */
    max-width: 420px;
}

.tagline {
    grid-area: stack;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    color: var(--pop-black-100);
    line-height: 1.5;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.tagline--original {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.tagline--interactive {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    filter: blur(8px);
    color: var(--green-accent);
    font-weight: 700;
}

.tagline--hidden {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
    filter: blur(8px);
    pointer-events: none;
}

.tagline--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.heading-xl {
    font-family: var(--font-sans);
    font-weight: 800;
    /* extraBold */
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.heading-lg {
    font-family: var(--font-sans);
    font-weight: 700;
    /* bold */
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.body-text {
    font-family: var(--font-sans);
    font-weight: 400;
    /* regular */
    font-size: 16px;
    line-height: 1.4;
    color: var(--pop-black-100);
}

.caps-text {
    font-family: var(--font-sans);
    font-weight: 700;
    /* bold */
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.small-text {
    font-family: var(--font-sans);
    font-weight: 500;
    /* medium */
    font-size: 11px;
    color: var(--pop-black-100);
    letter-spacing: 0.5px;
}

/* ============================================
   NEOPOP BUTTON - ELEVATED PRIMARY (WHITE)
   ============================================ */
.neopop-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-right: var(--edge-width);
    margin-bottom: var(--edge-width);
}

.neopop-btn--primary {
    background-color: var(--pop-white-500);
    color: var(--pop-black-500);
}

.neopop-btn--primary::before {
    content: '';
    position: absolute;
    right: calc(-1 * var(--edge-width));
    top: 0;
    width: var(--edge-width);
    height: 100%;
    background-color: var(--pop-white-100);
    transform: skewY(45deg);
    transform-origin: top left;
    transition: width 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.neopop-btn--primary::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--edge-width));
    left: 0;
    width: 100%;
    height: var(--edge-width);
    background-color: var(--pop-white-200);
    /* Slightly darker bottom face */
    transform: skewX(45deg);
    transform-origin: top left;
    transition: height 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.neopop-btn--primary:hover {
    transform: translate(1px, 1px);
}

.neopop-btn--primary:active {
    transform: translate(var(--edge-width), var(--edge-width));
}

/* ============================================
   NEOPOP BUTTON - STROKE (DARK WITH BORDER)
   ============================================ */
.neopop-btn--stroke {
    background-color: var(--pop-black-500);
    color: var(--pop-white-500);
    border: 1px solid var(--green-accent);
}

.neopop-btn--stroke::before {
    content: '';
    position: absolute;
    right: calc(-1 * var(--edge-width));
    top: 0;
    width: var(--edge-width);
    height: 100%;
    background-color: var(--green-dark);
    transform: skewY(45deg);
    transform-origin: top left;
}

.neopop-btn--stroke::after {
    content: '';
    position: absolute;
    bottom: calc(-1 * var(--edge-width));
    left: 0;
    width: 100%;
    height: var(--edge-width);
    background-color: var(--green-darker);
    transform: skewX(45deg);
    transform-origin: top left;
}

.neopop-btn--stroke:hover {
    transform: translate(1px, 1px);
}

.neopop-btn--stroke:active {
    transform: translate(var(--edge-width), var(--edge-width));
}

/* Button shimmer effect */
.neopop-btn--shimmer {
    overflow: hidden;
}

.neopop-btn--shimmer::before {
    z-index: 1;
}

/* Manifesto Animation */
.manifesto-animation {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25em;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--pop-white-500);
    font-size: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: var(--spacing-xl);
}

.manifesto-prefix {
    position: relative;
    display: inline-block;
    height: 1.5em;
    overflow: hidden;
    color: var(--green-accent);
    text-align: right;
    min-width: 120px;
}

.manifesto-prefix-container {
    display: flex;
    flex-direction: column;
    animation: alternatePrefix 9s infinite;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.manifesto-prefix.paused .manifesto-prefix-container {
    animation-play-state: paused;
}

.manifesto-prefix-item {
    cursor: pointer;
    transition: color 0.3s ease;
    display: block;
    height: 1.5em;
    line-height: 1.5em;
}

.manifesto-prefix-item:hover {
    color: var(--pop-white-500);
}

@keyframes alternatePrefix {

    0%,
    25% {
        transform: translateY(0);
    }

    33%,
    58% {
        transform: translateY(-1.5em);
    }

    66%,
    91% {
        transform: translateY(-3em);
    }

    100% {
        transform: translateY(0);
    }
}

.manifesto-static {
    font-weight: 800;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    transition: max-width 0.3s ease;
}

/* ============================================
   ULTRAWIDE ADAPTATION
   ============================================ */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }

    html {
        font-size: 18px;
        /* Scale up base size */
    }

    .hero {
        min-height: 80vh;
        /* Don't force full height if it stretches too much */
        padding: 180px var(--spacing-xxl);
    }
}

.fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__logo {
    margin-bottom: var(--spacing-xxs);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero__tagline {
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero__cta {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero__status {
    margin-top: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1.1s;
}

/* Noise texture overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.04;
    /* Reduced noise for cleaner, darker feel */
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glow pulse behind logo */
.glow-pulse {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--manna) 0%, transparent 70%);
    opacity: 0;
    filter: blur(80px);
    animation: glowPulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.05;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.15;
        transform: scale(1.2);
    }
}

/* Green glow pulse variant */
.glow-pulse--green {
    background: radial-gradient(circle, var(--green-accent) 0%, transparent 70%);
}

/* ============================================
   WAITLIST SECTION
   ============================================ */
.waitlist-section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    text-align: center;
    background-color: var(--pop-black-400);
    border-top: 1px solid var(--pop-black-200);
    border-bottom: 1px solid var(--pop-black-200);
}

.waitlist-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ============================================
   FOMO SECTION
   ============================================ */
.fomo-section {
    padding: var(--spacing-xxl) var(--spacing-lg);
    text-align: center;
    border-top: 1px solid var(--pop-black-200);
}

.fomo-hint {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid var(--pop-black-200);
    margin-bottom: var(--spacing-xl);
}

.fomo-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xxl);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.fomo-stat {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fomo-stat:nth-child(1) {
    animation-delay: 0.3s;
}

.fomo-stat:nth-child(2) {
    animation-delay: 0.5s;
}

.fomo-stat:nth-child(3) {
    animation-delay: 0.7s;
}

.fomo-stat__number {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--green-accent);
    line-height: 1;
}

.fomo-stat__label {
    margin-top: var(--spacing-xs);
    color: var(--pop-black-100);
}

/* ============================================
   MYSTERY GRID
   ============================================ */
.mystery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background-color: var(--pop-black-200);
    margin: var(--spacing-xxl) 0;
}

.mystery-card {
    background-color: var(--pop-black-500);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.mystery-card:hover {
    background-color: var(--pop-black-400);
}

.mystery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--manna), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mystery-card:hover::before {
    opacity: 1;
}

.mystery-card__icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.mystery-card__title {
    margin-bottom: var(--spacing-sm);
}

.mystery-card__redacted {
    color: var(--pop-black-100);
    text-decoration: line-through;
    filter: blur(4px);
    user-select: none;
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    animation: revealPop 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal--logo {
    animation-delay: 0.2s;
}

.reveal--tagline {
    animation-delay: 0.4s;
}

.reveal--manifesto {
    animation-delay: 0.6s;
}

.reveal--cta {
    animation-delay: 0.8s;
}

.reveal--status {
    animation-delay: 1s;
}

@keyframes revealPop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer {
    padding: var(--spacing-xl) var(--spacing-lg);
    border-top: 1px solid var(--pop-black-200);
    text-align: center;
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer__link {
    color: var(--pop-black-100);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: var(--pop-white-500);
}

.footer__copy {
    color: var(--pop-black-100);
    font-size: 0.75rem;
}

.footer__domain {
    color: var(--green-accent);
    font-weight: 700;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    75% {
        opacity: 0.9;
    }
}

.flicker {
    animation: flicker 0.15s ease-in-out infinite;
}

/* Subtle float animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Line animation for brutalist aesthetic */
.line-reveal {
    position: relative;
    overflow: hidden;
}

.line-reveal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--pop-white-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.line-reveal:hover::after {
    transform: scaleX(1);
}

/* ============================================
   STATUS INDICATOR
   ============================================ */
.status-dot {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--green-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(141, 208, 74, 0.4);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(141, 208, 74, 0);
    }
}

/* ============================================
   BADGES & PILLS
   ============================================ */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background-color: var(--pop-black-400);
    border: 1px solid var(--pop-black-300);
    border-radius: 100px;
    color: var(--pop-white-200);
    font-size: 12px;
    font-weight: 500;
    cursor: default;
}

.status-pill .dot {
    width: 6px;
    height: 6px;
    background-color: var(--green-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-accent);
    animation: pulse 2s infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: var(--spacing-xxl) var(--spacing-md);
    }

    .logo,
    .hero__title {
        letter-spacing: -0.01em;
        /* Prevent clipping */
        padding: 0 10px;
        /* Safety margin */
    }

    .tagline-container {
        min-height: 3.5em;
        /* Allow more space for wrapping text on mobile */
    }

    .neopop-btn {
        padding: 12px 24px;
        width: 100%;
        max-width: 280px;
        font-size: 14px;
        /* Slightly smaller to fit text */
        white-space: nowrap;
        /* Keep text on one line */
    }

    .manifesto-animation {
        font-size: 1.1rem;
        /* Scale down for mobile */
    }

    .party-timer-container {
        margin-bottom: var(--spacing-lg);
        /* Tighter for mobile */
    }

    .party-timer {
        font-size: 1.1rem;
    }

    .fomo-stats {
        gap: var(--spacing-xl);
        flex-direction: column;
    }

    .footer__links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

/* ============================================
   SMALL MOBILE ADAPTATION (< 360px)
   ============================================ */
@media (max-width: 360px) {
    .hero {
        padding: var(--spacing-xl) var(--spacing-sm);
    }

    .hero__title {
        font-size: clamp(3rem, 15vw, 5rem);
        /* Tame the beast on tiny screens */
    }

    .neopop-btn {
        padding: 12px 16px;
        font-size: 13px;
        max-width: 100%;
    }

    .tagline {
        font-size: 1rem;
    }
}

/* ============================================
   BRUTALIST ACCENTS & INTERACTIONS
   ============================================ */
.brutalist-border {
    border: 1px solid var(--pop-white-500);
}

.brutalist-border--thick {
    border-width: 2px;
}

.text-stroke {
    -webkit-text-stroke: 1px var(--pop-white-500);
    color: transparent;
}

.text-highlight {
    color: var(--neo-paccha);
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0.2em;
    background-color: var(--neo-paccha);
    opacity: 0.3;
    transform: skewX(-20deg);
    z-index: -1;
    transition: height 0.3s ease;
}

.text-highlight:hover::after {
    height: 80%;
}

.text-glitch {
    position: relative;
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-glitch::before {
    color: var(--pink-pong);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.text-glitch::after {
    color: var(--neo-paccha);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(-2px, 2px);
    }
}

/* Fire emoji animation */
.fire-emoji {
    display: inline-block;
    animation: fireFlicker 0.5s ease-in-out infinite alternate;
}

@keyframes fireFlicker {
    0% {
        transform: scale(1) rotate(-2deg);
    }

    100% {
        transform: scale(1.05) rotate(2deg);
    }
}


/* ============================================
   REBEL MANIFESTO TYPOGRAPHY
   ============================================ */

.hero__title {
    /* Massive branding */
    font-family: var(--font-serif);
    /* Switch to serif for "cool" contrast? No, keep it bold sans or try mix. Stick to design system. */
    font-family: var(--font-sans);
    font-weight: 900;
    /* Max weight */
    font-size: clamp(5rem, 20vw, 14rem);
    /* Even BIGGER */
    margin-bottom: var(--spacing-sm);
    line-height: 0.85;
    /* Tighter */
    letter-spacing: -0.06em;
    /* Tighter */
    text-transform: lowercase;
    /* Stylistic choice for "cool" factor, wait, logo says "Afterparty.". Let's keep it as is but tighter. */
    transform: translateX(-4px);
    /* Optical alignment */
}

.hero__subtitle {
    font-family: 'Courier New', Courier, monospace;
    /* Tech/Raw feel */
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.3em;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-xxl);
    text-transform: uppercase;
    opacity: 0.6;
}

.manifesto-section {
    padding: 100px var(--spacing-lg);
    background-color: var(--pop-black-500);
}

.statements {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.statement-text {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -2px;
    color: var(--pop-white-500);
    /* Initial state for potential scroll reveal */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.statement-text:hover {
    color: var(--neo-paccha);
    /* Highlight on hover */
    transform: scale(1.02);
    cursor: default;
}

.statement-divider {
    width: 2px;
    height: 60px;
    background-color: var(--pop-black-200);
}

/* Fix CTA Button Contrast */
.neopop-btn {
    /* Ensure no conflicts with previous override */
    font-weight: 800;
    letter-spacing: 1px;
}

/* Ensure the text inside is solid black on white background */
.neopop-btn--primary span {
    color: var(--pop-black-500) !important;
    -webkit-text-stroke: 0 !important;
}

/* ============================================
   REFINED INTERACTION OVERRIDES
   ============================================ */

/* 1. True 3D Button Press */
.neopop-btn--primary:active {
    transform: translate(var(--edge-width), var(--edge-width));
}

.neopop-btn--primary:active::before {
    width: 0;
}

.neopop-btn--primary:active::after {
    height: 0;
}

/* ============================================
   PARTY TIMER ("Fluid Sentence" Aesthetic)
   ============================================ */
.party-timer-container {
    margin-top: var(--spacing-xxl);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.party-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

#timer-label {
    /* capsExtraBold12 */
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2.0px;
    color: var(--pop-white-200);
    text-transform: uppercase;
}

.timer-value {
    /* headingExtraBold44 */
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 44px);
    letter-spacing: -0.5px;
    color: var(--pop-primary);
    /* Manna */
    line-height: 1.2;
    opacity: 0.9;
}

/* Staggered Delay for Timer Reveal */
.reveal--timer {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--pop-black-500);
}

::-webkit-scrollbar-thumb {
    background: var(--pop-black-200);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pop-black-100);
}

/* ============================================
   NEOPOP FORM ELEMENTS
   ============================================ */
.neopop-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    width: 100%;
}

.neopop-label {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pop-black-100);
}

.neopop-input {
    width: 100%;
    padding: 16px;
    background-color: var(--pop-black-400);
    border: 1px solid var(--pop-black-100);
    color: var(--pop-white-500);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.neopop-input:focus {
    border-color: var(--pop-white-500);
    background-color: var(--pop-black-500);
    box-shadow: none;
}

.neopop-input::placeholder {
    color: var(--pop-black-200);
}

.neopop-select {
    appearance: none;
    width: 100%;
    padding: 16px;
    background-color: var(--pop-black-400);
    border: 1px solid var(--pop-black-100);
    color: var(--pop-white-500);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    border-radius: 0;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%238A8A8A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.neopop-select:focus {
    border-color: var(--pop-white-500);
    box-shadow: none;
}

.phone-input-row {
    display: flex;
    gap: 8px;
}

.phone-input-row .neopop-select {
    width: 110px;
    flex-shrink: 0;
}

/* ============================================
   NEOPOP MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.neopop-modal {
    width: 90%;
    max-width: 480px;
    background-color: var(--pop-black-500);
    border: 1px solid var(--pop-white-500);
    padding: var(--spacing-xl);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 20px 20px 0 rgba(0, 0, 0, 0.5);
}

.modal-overlay.open .neopop-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--pop-black-200);
    color: var(--pop-white-500);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--pop-white-500);
    color: var(--pop-black-500);
}

.modal-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    color: var(--pop-white-500);
}

.modal-subtitle {
    font-family: var(--font-sans);
    color: var(--pop-black-100);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.success-message {
    text-align: center;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    animation: bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.loading-text {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--green-accent);
    margin-top: 10px;
}