* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: hsl(240, 15%, 9%);
    color: hsl(0, 0%, 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 88% 40%, hsla(240, 15%, 9%, 1) 0px, transparent 85%),
        radial-gradient(at 49% 30%, hsla(240, 15%, 9%, 1) 0px, transparent 85%),
        radial-gradient(at 14% 26%, hsla(240, 15%, 9%, 1) 0px, transparent 85%),
        radial-gradient(at 0% 64%, hsla(263, 93%, 56%, 1) 0px, transparent 85%),
        radial-gradient(at 41% 94%, hsla(284, 100%, 84%, 1) 0px, transparent 85%),
        radial-gradient(at 100% 99%, hsla(306, 100%, 57%, 1) 0px, transparent 85%);
    z-index: 0;
    opacity: 0;
    animation: fadeInBackground 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInBackground {
    to {
        opacity: 1;
    }
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, rgba(94, 58, 238, 1) 0%, rgba(197, 107, 240, 1) 50%, rgba(94, 58, 238, 1) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite, fadeInTitle 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s backwards;
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.3));
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
        filter: drop-shadow(0 0 5px rgba(147, 51, 234, 0.1));
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.3));
    }
}

.description {
    font-size: 1.2rem;
    color: hsl(0, 0%, 83%);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInText 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.buttons-wrapper {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.button-container {
    position: relative;
    display: inline-block;
    opacity: 0;
}

.button-container:nth-child(1) {
    animation: fadeInButton 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s forwards;
}

.button-container:nth-child(2) {
    animation: fadeInButton 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.1s forwards;
}

@keyframes fadeInButton {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.button {
    cursor: pointer;
    padding: 1rem 3rem;
    background-image: linear-gradient(0deg, rgba(94, 58, 238, 1) 0%, rgba(197, 107, 240, 1) 100%);
    font-size: 1.2rem;
    color: hsl(0, 0%, 100%);
    border: 0;
    border-radius: 9999px;
    box-shadow: inset 0 -2px 25px -4px hsl(0, 0%, 100%), 0 8px 32px -8px rgba(147, 51, 234, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: buttonPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: inset 0 -2px 25px -4px hsl(0, 0%, 100%), 0 8px 32px -8px rgba(147, 51, 234, 0.4);
    }
    50% {
        box-shadow: inset 0 -2px 25px -4px hsl(0, 0%, 100%), 0 8px 40px -6px rgba(147, 51, 234, 0.5);
    }
}

.button:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: inset 0 -2px 25px -4px hsl(0, 0%, 100%), 0 12px 48px -8px rgba(147, 51, 234, 0.6);
}

.button:active {
    transform: scale(0.98);
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    animation: buttonShine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes buttonShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.button-border {
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background-image: linear-gradient(0deg, hsl(0, 0%, 100%) -50%, hsl(0, 0%, 40%) 100%);
    border-radius: 9999px;
}

.button-border::before {
    content: "";
    pointer-events: none;
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
    width: 200%;
    height: 200%;
    background-image: linear-gradient(
        0deg,
        hsla(0, 0%, 100%, 0) 0%,
        hsl(277, 95%, 60%) 40%,
        hsl(277, 95%, 60%) 60%,
        hsla(0, 0%, 40%, 0) 100%
    );
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    .description {
        font-size: 1rem;
    }
    .buttons-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
    .button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}