/* ============================================
   DESIGN SYSTEM & VARIABLES
   ============================================ */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f2040;
    --bg-gradient-start: #0b1a35;
    --bg-gradient-mid: #132d5a;
    --bg-gradient-end: #0a1628;
    --gold-primary: #ffd700;
    --gold-secondary: #ffb800;
    --gold-light: #ffe566;
    --red-primary: #e63946;
    --red-secondary: #ff1744;
    --red-gradient-start: #ff4444;
    --red-gradient-end: #cc0000;
    --navy-primary: #1a237e;
    --navy-secondary: #283593;
    --blue-accent: #42a5f5;
    --blue-light: #90caf9;
    --white: #ffffff;
    --text-shadow-gold: 0 2px 4px rgba(0,0,0,0.5), 0 0 20px rgba(255,215,0,0.3);
    --text-shadow-white: 0 2px 4px rgba(0,0,0,0.5);
    --font-main: 'Be Vietnam Pro', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 50px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   LANDING WRAPPER
   ============================================ */
.landing-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(
        180deg,
        var(--bg-gradient-start) 0%,
        var(--bg-gradient-mid) 30%,
        #1a3a6e 50%,
        var(--bg-gradient-mid) 70%,
        var(--bg-gradient-end) 100%
    );
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Background pattern overlay */
.landing-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(66,165,245,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(66,165,245,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255,215,0,0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Light rays */
.landing-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: conic-gradient(
        from 0deg at 50% 100%,
        transparent 0deg,
        rgba(255,215,0,0.03) 10deg,
        transparent 20deg,
        rgba(66,165,245,0.03) 30deg,
        transparent 40deg,
        rgba(255,215,0,0.03) 50deg,
        transparent 60deg,
        rgba(66,165,245,0.03) 70deg,
        transparent 80deg,
        rgba(255,215,0,0.03) 90deg,
        transparent 100deg,
        transparent 360deg
    );
    pointer-events: none;
    z-index: 0;
    animation: rotateRays 30s linear infinite;
}

@keyframes rotateRays {
    100% { transform: translateX(-50%) rotate(360deg); }
}

/* ============================================
   CURTAIN TOP
   ============================================ */
.curtain-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(
        180deg,
        rgba(66,165,245,0.25) 0%,
        rgba(66,165,245,0.08) 60%,
        transparent 100%
    );
    z-index: 1;
}

.curtain-top::before,
.curtain-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 80px;
    border-radius: 0 0 30px 30px;
}

.curtain-top::before {
    left: 20px;
    background: linear-gradient(180deg, rgba(66,165,245,0.3), transparent);
}

.curtain-top::after {
    right: 20px;
    background: linear-gradient(180deg, rgba(66,165,245,0.3), transparent);
}

/* ============================================
   DECORATIONS
   ============================================ */
.deco {
    position: absolute;
    z-index: 2;
    font-size: 48px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: floatDeco 3s ease-in-out infinite;
}

.deco-gift-left {
    top: 8%;
    left: 5%;
    animation-delay: 0s;
    font-size: 56px;
}

.deco-gift-right {
    top: 12%;
    right: 8%;
    animation-delay: 1.5s;
    font-size: 44px;
}

.deco-balloon-left {
    top: 25%;
    left: 3%;
    animation-delay: 0.8s;
}

.deco-balloon-right {
    top: 20%;
    right: 4%;
    animation-delay: 2s;
}

@keyframes floatDeco {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
    width: 100%;
    max-width: 700px;
}

/* ============================================
   MAIN TITLE
   ============================================ */
.main-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
}

.title-line-1 {
    font-size: clamp(32px, 7vw, 60px);
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow:
        0 0 10px rgba(255,215,0,0.5),
        0 0 30px rgba(255,215,0,0.3),
        0 3px 0 #b8860b,
        0 4px 0 #a07000,
        0 5px 10px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    -webkit-text-stroke: 1px rgba(184,134,11,0.5);
    animation: titlePulse 2s ease-in-out infinite;
}

.title-line-2 {
    font-size: clamp(40px, 9vw, 80px);
    font-weight: 900;
    color: var(--gold-primary);
    text-shadow:
        0 0 10px rgba(255,215,0,0.5),
        0 0 30px rgba(255,215,0,0.3),
        0 3px 0 #b8860b,
        0 5px 0 #a07000,
        0 6px 15px rgba(0,0,0,0.5);
    letter-spacing: 3px;
    -webkit-text-stroke: 1px rgba(184,134,11,0.5);
}

.highlight-percent {
    color: var(--gold-light);
    position: relative;
    display: inline-block;
}

.highlight-percent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    border-radius: 2px;
}

@keyframes titlePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

/* ============================================
   PROMO BADGES
   ============================================ */
.promo-badges {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    border-radius: var(--border-radius-lg);
    font-size: clamp(16px, 3.5vw, 24px);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    animation: badgeEntrance 0.6s ease-out both;
}

.badge:nth-child(1) { animation-delay: 0.3s; }
.badge:nth-child(2) { animation-delay: 0.5s; }

@keyframes badgeEntrance {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.badge:hover {
    transform: scale(1.05);
}

.badge-red {
    background: linear-gradient(135deg, var(--red-gradient-start), var(--red-gradient-end));
    box-shadow:
        0 4px 15px rgba(230,57,70,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.badge-navy {
    background: linear-gradient(135deg, var(--navy-secondary), var(--navy-primary));
    box-shadow:
        0 4px 15px rgba(26,35,126,0.4),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Badge shine sweep */
.badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: badgeSweep 3s ease-in-out infinite;
}

.badge:nth-child(2)::after {
    animation-delay: 1.5s;
}

@keyframes badgeSweep {
    0%, 100% { left: -100%; }
    50% { left: 120%; }
}

.badge-icon {
    font-size: 1.3em;
}

.badge strong {
    color: var(--gold-light);
    font-weight: 900;
    font-size: 1.15em;
}

/* ============================================
   SUB HEADING
   ============================================ */
.sub-heading {
    position: relative;
    padding: 8px 0;
}

.sub-heading-text {
    font-size: clamp(22px, 5vw, 38px);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 4px;
    text-shadow:
        0 0 10px rgba(255,255,255,0.3),
        0 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

.sub-heading-text::before,
.sub-heading-text::after {
    content: '⭐';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.5em;
    animation: starSpin 4s linear infinite;
}

.sub-heading-text::before {
    left: -35px;
}

.sub-heading-text::after {
    right: -35px;
}

@keyframes starSpin {
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ============================================
   CHARACTERS
   ============================================ */
.characters {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.char {
    font-size: 60px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
    transition: transform var(--transition-normal);
}

.char:hover {
    transform: scale(1.2);
}

.char-fish {
    animation: swimLeft 3s ease-in-out infinite;
}

.char-goldfish {
    animation: bounce 2s ease-in-out infinite;
    font-size: 52px;
}

.char-god {
    animation: swimRight 3s ease-in-out infinite;
}

@keyframes swimLeft {
    0%, 100% { transform: translateX(0) rotate(-5deg); }
    50% { transform: translateX(10px) rotate(5deg); }
}

@keyframes swimRight {
    0%, 100% { transform: translateX(0) rotate(5deg); }
    50% { transform: translateX(-10px) rotate(-5deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   CTA BUTTON - BLINKING EFFECT
   ============================================ */
.cta-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 60px;
    border: none;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    background: linear-gradient(135deg, #ff4444, #cc0000, #ff2222);
    background-size: 200% 200%;
    color: var(--gold-light);
    font-family: var(--font-main);
    font-size: clamp(22px, 5vw, 34px);
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow:
        0 2px 4px rgba(0,0,0,0.4),
        0 0 15px rgba(255,215,0,0.4);
    overflow: hidden;
    z-index: 1;
    transition: transform var(--transition-fast);
    animation:
        ctaBlink 1.5s ease-in-out infinite,
        bgShift 3s ease infinite;
    box-shadow:
        0 0 20px rgba(255,68,68,0.6),
        0 0 40px rgba(255,68,68,0.3),
        0 4px 15px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -2px 0 rgba(0,0,0,0.2);
}

/* Ribbon edges */
.cta-button::before,
.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    transform: translateY(-50%);
}

.cta-button::before {
    left: -14px;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-right: 15px solid #cc0000;
}

.cta-button::after {
    right: -14px;
    border-top: 32px solid transparent;
    border-bottom: 32px solid transparent;
    border-left: 15px solid #cc0000;
}

/* Blinking animation */
@keyframes ctaBlink {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255,68,68,0.6),
            0 0 40px rgba(255,68,68,0.3),
            0 4px 15px rgba(0,0,0,0.3),
            inset 0 1px 0 rgba(255,255,255,0.2);
        filter: brightness(1);
    }
    25% {
        box-shadow:
            0 0 30px rgba(255,215,0,0.8),
            0 0 60px rgba(255,215,0,0.4),
            0 0 80px rgba(255,68,68,0.3),
            0 4px 15px rgba(0,0,0,0.3),
            inset 0 1px 0 rgba(255,255,255,0.3);
        filter: brightness(1.25);
    }
    50% {
        box-shadow:
            0 0 25px rgba(255,68,68,0.7),
            0 0 50px rgba(255,68,68,0.35),
            0 4px 15px rgba(0,0,0,0.3),
            inset 0 1px 0 rgba(255,255,255,0.2);
        filter: brightness(1.1);
    }
    75% {
        box-shadow:
            0 0 35px rgba(255,215,0,0.9),
            0 0 70px rgba(255,215,0,0.5),
            0 0 100px rgba(255,68,68,0.3),
            0 4px 15px rgba(0,0,0,0.3),
            inset 0 1px 0 rgba(255,255,255,0.35);
        filter: brightness(1.3);
    }
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.cta-button:hover {
    transform: scale(1.08);
    animation-play-state: paused;
    box-shadow:
        0 0 40px rgba(255,215,0,1),
        0 0 80px rgba(255,215,0,0.6),
        0 0 120px rgba(255,68,68,0.4),
        0 6px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.3);
    filter: brightness(1.3);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Shine sweep across button */
.cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.3),
        transparent
    );
    animation: shineSweep 2.5s ease-in-out infinite;
}

@keyframes shineSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Sparkles around button */
.cta-sparkles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    color: var(--gold-primary);
    font-size: 14px;
    animation: sparkleAnim 2s ease-in-out infinite;
    text-shadow: 0 0 6px rgba(255,215,0,0.8);
}

.sparkle-1 { top: -8px; left: 20%; animation-delay: 0s; }
.sparkle-2 { top: -5px; right: 25%; animation-delay: 0.3s; }
.sparkle-3 { bottom: -8px; left: 30%; animation-delay: 0.6s; }
.sparkle-4 { bottom: -5px; right: 20%; animation-delay: 0.9s; }
.sparkle-5 { top: 50%; left: -15px; animation-delay: 1.2s; }
.sparkle-6 { top: 50%; right: -15px; animation-delay: 1.5s; }

@keyframes sparkleAnim {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(180deg);
    }
}

/* Outer glow pulse */
.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 150%;
    border-radius: var(--border-radius-lg);
    background: radial-gradient(ellipse, rgba(255,68,68,0.2), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* ============================================
   COINS RAIN
   ============================================ */
.coins-rain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.coin {
    position: absolute;
    font-size: 24px;
    animation: coinFall linear infinite;
    opacity: 0;
}

@keyframes coinFall {
    0% {
        transform: translateY(-10%) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   BOTTOM WAVE
   ============================================ */
.bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    line-height: 0;
}

.bottom-wave svg {
    width: 100%;
    height: 60px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .landing-wrapper {
        padding: 30px 15px;
    }

    .deco {
        font-size: 32px;
    }

    .deco-gift-left { font-size: 38px; }
    .deco-gift-right { font-size: 30px; }

    .badge {
        padding: 10px 24px;
        font-size: 14px;
    }

    .cta-button {
        padding: 14px 40px;
        font-size: 20px;
        letter-spacing: 2px;
    }

    .cta-button::before {
        border-top-width: 26px;
        border-bottom-width: 26px;
        border-right-width: 12px;
        left: -11px;
    }

    .cta-button::after {
        border-top-width: 26px;
        border-bottom-width: 26px;
        border-left-width: 12px;
        right: -11px;
    }

    .char {
        font-size: 42px;
    }

    .char-goldfish {
        font-size: 36px;
    }

    .sub-heading-text::before { left: -25px; }
    .sub-heading-text::after { right: -25px; }
}

@media (max-width: 400px) {
    .cta-button {
        padding: 12px 30px;
        font-size: 18px;
    }

    .badge {
        padding: 8px 18px;
        font-size: 13px;
    }
}
