* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vibrant-purple: #A855F7;
    --vibrant-pink: #FF66C4;
    --vibrant-orange: #FFAA44;
    --vibrant-yellow: #FFE66D;
    --vibrant-teal: #22D3EE;
    --vibrant-blue: #60A5FA;
    --vibrant-green: #4ADE80;
    --light-bg: #FFF5FF;
    --text-dark: #2D1B4E;
    --text-medium: #6B4E9B;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #FFF5FF 0%, #F0F9FF 50%, #FFFBEB 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Playful color splash decorations */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--vibrant-purple) 0%, transparent 70%);
    opacity: 0.25;
    border-radius: 50%;
    animation: floatBounce 20s ease-in-out infinite, colorPulse 8s ease-in-out infinite;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--vibrant-teal) 0%, transparent 70%);
    opacity: 0.25;
    border-radius: 50%;
    animation: floatBounce 15s ease-in-out infinite reverse, colorPulse 6s ease-in-out infinite 1s;
    z-index: 0;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Additional color splash elements */
.container::before {
    content: '';
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--vibrant-pink) 0%, var(--vibrant-orange) 40%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    animation: bounceGlow 8s ease-in-out infinite;
    z-index: -1;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 0;
    position: relative;
}

.logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    position: relative;
}

/* Colorful glow behind logo */
.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130%;
    height: 130%;
    background: linear-gradient(135deg, var(--vibrant-purple), var(--vibrant-teal), var(--vibrant-pink), var(--vibrant-yellow));
    opacity: 0.3;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: rotateRainbow 10s linear infinite;
}

.logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 8px 25px rgba(168, 85, 247, 0.4));
}

.main-headline {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--vibrant-purple) 0%, var(--vibrant-pink) 40%, var(--vibrant-teal) 80%, var(--vibrant-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInBounce 1s ease-out 0.3s both, rainbowShift 6s ease infinite;
    background-size: 300% 300%;
    text-align: center;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 800px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-medium);
    text-align: center;
    max-width: 550px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    animation: fadeInBounce 1s ease-out 0.5s both;
    font-weight: 400;
}

.notify-section {
    width: 100%;
    max-width: 550px;
    margin-bottom: 4rem;
    animation: fadeInBounce 1s ease-out 0.7s both;
    position: relative;
}

.notify-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 60px;
    border: 3px solid transparent;
    background-image:
        linear-gradient(white, white),
        linear-gradient(135deg, var(--vibrant-purple), var(--vibrant-pink), var(--vibrant-teal));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 40px rgba(168, 85, 247, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: white;
    border: 2px solid rgba(168, 85, 247, 0.2);
    border-radius: 50px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
}

.email-input::placeholder {
    color: rgba(107, 78, 155, 0.5);
}

.email-input:focus {
    border-color: var(--vibrant-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.2), 0 4px 20px rgba(34, 211, 238, 0.3);
    transform: scale(1.02);
}

.notify-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--vibrant-purple) 0%, var(--vibrant-pink) 50%, var(--vibrant-orange) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 25px rgba(255, 102, 196, 0.5);
    position: relative;
    overflow: hidden;
}

.notify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.notify-btn:hover::before {
    left: 100%;
}

.notify-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(255, 102, 196, 0.7);
    background-position: right center;
}

.notify-btn:active {
    transform: translateY(0) scale(1);
}

.notify-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.95rem;
    min-height: 1.5rem;
    font-weight: 600;
}

.form-message.success {
    color: var(--vibrant-teal);
    animation: bounceIn 0.5s ease-out;
}

.form-message.error {
    color: var(--vibrant-orange);
    animation: shake 0.5s ease-out;
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-medium);
    font-size: 0.9rem;
    border-top: 1px solid rgba(168, 85, 247, 0.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }
    80% {
        transform: translateY(2px) scale(0.98);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes floatBounce {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -20px) scale(1.05);
    }
    50% {
        transform: translate(-15px, -10px) scale(0.95);
    }
    75% {
        transform: translate(-20px, 15px) scale(1.08);
    }
}

@keyframes bounceGlow {
    0%, 100% {
        opacity: 0.2;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translateX(-50%) scale(1.15);
    }
}

@keyframes rotateRainbow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rainbowShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 50% 100%;
    }
    66% {
        background-position: 100% 50%;
    }
}

@keyframes colorPulse {
    0%, 100% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.35;
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: scale(1.08) rotate(3deg);
    }
    25% {
        transform: scale(1.08) rotate(-3deg);
    }
    50% {
        transform: scale(1.08) rotate(3deg);
    }
    75% {
        transform: scale(1.08) rotate(-3deg);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body::before,
    body::after {
        width: 400px;
        height: 400px;
    }

    .logo {
        width: 220px;
    }

    .main-headline {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .notify-form {
        flex-direction: column;
        padding: 1.25rem;
    }

    .email-input,
    .notify-btn {
        width: 100%;
        min-width: unset;
    }

    .learn-more-btn {
        margin-top: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    body::before,
    body::after {
        width: 300px;
        height: 300px;
    }

    .container {
        padding: 1rem;
    }

    .container::before {
        width: 300px;
        height: 300px;
    }

    .logo {
        width: 180px;
    }

    .main-headline {
        font-size: 2rem;
        padding: 0 0.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .notify-form {
        padding: 1rem;
    }

    .email-input,
    .notify-btn {
        padding: 0.9rem 1.25rem;
        font-size: 0.95rem;
    }

    .learn-more-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.75rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    .feature p {
        font-size: 0.9rem;
    }
}

/* 404 Page Styles */
.error-section {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    animation: fadeInBounce 1s ease-out 0.5s both;
}

.home-link {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--vibrant-purple) 0%, var(--vibrant-pink) 50%, var(--vibrant-orange) 100%);
    background-size: 200% 200%;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 25px rgba(255, 102, 196, 0.5);
    position: relative;
    overflow: hidden;
}

.home-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.home-link:hover::before {
    left: 100%;
}

.home-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(255, 102, 196, 0.7);
    background-position: right center;
}

.home-link:active {
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .home-link {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .home-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}
