:root {
    --color-blue: #00AEEF;
    --color-pink: #EC008C;
    --color-yellow: #FFD200;
    --color-green: #8CC63F;
    --color-purple: #662D91;
    --color-red: #ED1C24;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at center, #ffffff 0%, #f0f8ff 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #333;
}

.background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.6;
}

.circle {
    width: 50px;
    height: 50px;
    background: var(--color-yellow);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    filter: blur(2px);
}

.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 50px solid var(--color-pink);
    top: 20%;
    right: 15%;
    transform: rotate(15deg);
}

.star {
    width: 40px;
    height: 40px;
    background: var(--color-blue);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    bottom: 15%;
    left: 20%;
}

.cloud {
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.c1 {
    width: 120px;
    height: 60px;
    top: 15%;
    left: 60%;
}

.c2 {
    width: 180px;
    height: 80px;
    top: 60%;
    right: 10%;
}

.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 5px solid white;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.logo-container {
    margin-bottom: 2rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.logo {
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.1));
}

.title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-purple);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px var(--color-yellow);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Gear Animation */
.construction-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    height: 60px;
}

.gear-system {
    position: relative;
    width: 100px;
    height: 60px;
}

.gear {
    position: absolute;
    border: 4px solid;
    border-radius: 50%;
    background: transparent;
}

.gear::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gear.one {
    width: 40px;
    height: 40px;
    border-color: var(--color-red);
    color: var(--color-red);
    border-style: dashed;
    top: 10px;
    left: 10px;
    animation: spin 4s linear infinite;
}

.gear.two {
    width: 30px;
    height: 30px;
    border-color: var(--color-blue);
    color: var(--color-blue);
    border-style: dashed;
    top: 25px;
    left: 45px;
    animation: spin 3s linear infinite reverse;
}

.gear.three {
    width: 20px;
    height: 20px;
    border-color: var(--color-green);
    color: var(--color-green);
    border-style: dashed;
    top: 0px;
    left: 65px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Newsletter styles removed */


@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .content {
        padding: 2.5rem 1.5rem;
    }

    .title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .logo {
        max-width: 200px;
    }

    /* Adjust background shapes to not be too overwhelming on smaller screens */
    .c1 {
        left: 70%;
        width: 100px;
        height: 50px;
    }

    .c2 {
        right: 5%;
        width: 140px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .content {
        padding: 2rem 1rem;
        border-radius: 20px;
        border-width: 3px;
    }

    .logo {
        max-width: 160px;
        margin-bottom: 1.5rem;
    }

    .construction-animation {
        margin-bottom: 1.5rem;
        transform: scale(0.9);
    }

    /* Hide some background elements on very small screens to keep focus */
    .shape.star {
        display: none;
    }

    .shape.triangle {
        opacity: 0.4;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    body {
        min-height: auto;
        padding: 20px 0;
        overflow-y: auto;
    }

    .container {
        padding: 10px;
    }

    .logo-container {
        /* Reduce vertical space in landscape */
        margin-bottom: 1rem;
    }

    .logo {
        max-width: 120px;
    }
}