:root {
    --primary: #19f7cf;
    --primary-light: #59ffdf;
    --primary-extra-light: #a0ffed;
    --primary-dark: #061023;
    --white: #fff;
    --black: #000000;
    --gray: #ccc;
    --heading: #ffffff;
    --text: rgb(255, 255, 255);
    --light: #f0f0f0;
    --dark: #1b0029;
    --extra-dark: #0f0018;
    --box-shadow: 0 0 16px rgba(24, 63, 139, 0.15);
}

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

html {
    font-size: 16px;
    line-height: 1.5;
}

@media (min-width: 1025px) {
    html {
        font-size: 18px;
    }
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, rgba(15, 0, 24, 0.2) 0%, rgba(27, 0, 41, 0.15) 100%), url("../images/homepage-bg.jpg") center center / cover no-repeat fixed;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 90, 78, 0.06) 0%, rgba(26, 90, 78, 0.02) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

body::before {
    width: 400px;
    height: 400px;
    top: -200px;
    left: -200px;
    animation: lavaFloat1 25s ease-in-out infinite;
}

body::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -150px;
    animation: lavaFloat2 30s ease-in-out infinite reverse;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(2px 2px at 20px 30px, rgba(25, 247, 207, 0.3), transparent), radial-gradient(2px 2px at 40px 70px, rgba(25, 247, 207, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(25, 247, 207, 0.4), transparent), radial-gradient(1px 1px at 130px 80px, rgba(25, 247, 207, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(25, 247, 207, 0.3), transparent), radial-gradient(1px 1px at 200px 60px, rgba(25, 247, 207, 0.25), transparent),
        radial-gradient(1px 1px at 240px 90px, rgba(25, 247, 207, 0.35), transparent), radial-gradient(2px 2px at 280px 10px, rgba(25, 247, 207, 0.2), transparent),
        radial-gradient(1px 1px at 320px 50px, rgba(25, 247, 207, 0.3), transparent), radial-gradient(2px 2px at 360px 80px, rgba(25, 247, 207, 0.25), transparent);
    background-repeat: repeat;
    background-size: 400px 400px;
    animation: particleFloat 60s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(25, 247, 207, 0.08) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(25, 247, 207, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(25, 247, 207, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: subtleBackgroundPulse 10s ease-in-out infinite;
}

@keyframes subtleBackgroundPulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.header {
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

.logo {
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .logo {
        max-width: 320px;
    }
}

.main-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
}

.main-content::before {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    background: linear-gradient(45deg, rgba(25, 247, 207, 0.05) 0%, rgba(25, 247, 207, 0.1) 50%, rgba(25, 247, 207, 0.05) 100%);
    background-size: 300% 300%;
    border-radius: 21px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: subtleBorder 8s ease-in-out infinite;
    opacity: 0.85;
}

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

.content-wrapper {
    padding: 2rem;
    background: transparent;
    border-radius: 20px;
    border: none;
    backdrop-filter: none;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 4rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    height: 3.8rem;
    display: block;
    text-align: center;
    padding-top: 0.5rem;
}

.typing-text {
    display: inline;
}

.cursor {
    display: inline;
    color: var(--primary);
    animation: blink 1s infinite;
    font-weight: 400;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 2rem;
        height: 3.2rem;
    }

    .container {
        padding: 1rem;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .subtitle-cta {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.subtitle-cta {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    min-width: 150px;
    justify-content: center;
    will-change: transform;
    position: relative;
    z-index: 2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    transform: translateZ(0) perspective(1000px);
    transform-style: preserve-3d;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% 200%;
    color: var(--black);
    box-shadow: 0 4px 15px rgba(25, 247, 207, 0.3), 0 0 0 0 rgba(25, 247, 207, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-primary 2s infinite;
}

.btn-primary::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.6s ease;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 12px 35px rgba(25, 247, 207, 0.6), 0 0 20px rgba(25, 247, 207, 0.4);
    background-position: 100% 0;
    animation: none;
}

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

.btn-discord {
    background: linear-gradient(135deg, #5865f2, #7289da);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3), 0 0 0 0 rgba(88, 101, 242, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse-discord 2.5s infinite;
}

.btn-discord::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.btn-discord:hover {
    background: linear-gradient(135deg, #4752c4, #6b7dd6);
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 12px 35px rgba(88, 101, 242, 0.6), 0 0 20px rgba(88, 101, 242, 0.4);
    animation: none;
}

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

@media (max-width: 480px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

.social-links {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.social-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.social-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(25, 247, 207, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    background: rgba(25, 247, 207, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.1) rotateY(15deg) rotateX(10deg);
    box-shadow: 0 8px 20px rgba(25, 247, 207, 0.3);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.social-link:hover img {
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(160deg);
}

.footer {
    margin-top: auto;
    padding-top: 2rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.footer p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.btn:active {
    transform: scale(0.95) translateY(1px);
}

.btn-primary:active {
    box-shadow: 0 2px 10px rgba(25, 247, 207, 0.4);
}

.btn-discord:active {
    box-shadow: 0 2px 10px rgba(88, 101, 242, 0.4);
}

.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes pulse-primary {
    0% {
        box-shadow: 0 4px 15px rgba(25, 247, 207, 0.3), 0 0 0 0 rgba(25, 247, 207, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(25, 247, 207, 0.4), 0 0 0 8px rgba(25, 247, 207, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(25, 247, 207, 0.3), 0 0 0 0 rgba(25, 247, 207, 0);
    }
}

@keyframes pulse-discord {
    0% {
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3), 0 0 0 0 rgba(88, 101, 242, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4), 0 0 0 8px rgba(88, 101, 242, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3), 0 0 0 0 rgba(88, 101, 242, 0);
    }
}

.btn:focus,
.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    .content-wrapper {
        border-color: var(--primary);
        background: rgba(0, 0, 0, 0.8);
    }

    .social-link {
        border-color: var(--primary);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(25, 247, 207, 0.3);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(25, 247, 207, 0.015) 0%, rgba(25, 247, 207, 0.008) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.1s ease;
    opacity: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(25, 247, 207, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite linear;
    box-shadow: 0 0 6px rgba(25, 247, 207, 0.4);
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.particle:nth-child(2) {
    width: 2px;
    height: 2px;
    left: 18%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    width: 6px;
    height: 6px;
    left: 35%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    width: 3px;
    height: 3px;
    left: 48%;
    animation-delay: 6s;
    animation-duration: 16s;
}

.particle:nth-child(5) {
    width: 5px;
    height: 5px;
    left: 62%;
    animation-delay: 8s;
    animation-duration: 19s;
}

.particle:nth-child(6) {
    width: 2px;
    height: 2px;
    left: 75%;
    animation-delay: 10s;
    animation-duration: 21s;
}

.particle:nth-child(7) {
    width: 4px;
    height: 4px;
    left: 87%;
    animation-delay: 12s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    width: 3px;
    height: 3px;
    left: 95%;
    animation-delay: 14s;
    animation-duration: 23s;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) translateX(20px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes lavaFloat1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30vw, 20vh) scale(1.1);
    }
    50% {
        transform: translate(60vw, -10vh) scale(0.9);
    }
    75% {
        transform: translate(20vw, 30vh) scale(1.05);
    }
}

@keyframes lavaFloat2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-40vw, -20vh) scale(1.2);
    }
    66% {
        transform: translate(-20vw, -40vh) scale(0.8);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(-10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .logo {
        animation: none;
    }

    .container::before {
        animation: none;
    }

    body::before,
    body::after {
        animation: none;
        opacity: 0;
    }
}
