* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100%;
    height: 100vh;
    background: #030712;
    overflow: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    font-family: 'Arial', 'Helvetica', sans-serif;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.grid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(30, 41, 59, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, 0.2) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: gridMoveReverse 25s linear infinite;
    will-change: transform;
}

@keyframes gridMoveReverse {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100px, -100px);
    }
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
    will-change: transform, opacity;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(30, 58, 138, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(30, 58, 138, 0.8);
    animation: float 15s infinite ease-in-out;
    will-change: transform, opacity;
}

.particle-interactive {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(30, 58, 138, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(30, 58, 138, 1);
    pointer-events: none;
    will-change: transform;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    50% {
        transform: translate(100px, -200px) scale(1.5);
    }
}

.particle:nth-child(1) {
    left: 20%;
    top: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 60%;
    top: 40%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.particle:nth-child(3) {
    left: 80%;
    top: 60%;
    animation-delay: 4s;
    animation-duration: 15s;
}

.particle:nth-child(4) {
    left: 30%;
    top: 80%;
    animation-delay: 1s;
    animation-duration: 20s;
}

.particle:nth-child(5) {
    left: 70%;
    top: 10%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.particle:nth-child(6) {
    left: 10%;
    top: 50%;
    animation-delay: 5s;
    animation-duration: 16s;
}

.glow-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: drift 20s infinite ease-in-out;
    will-change: transform;
}

.glow-orb:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb:nth-child(2) {
    bottom: 20%;
    right: 15%;
    animation-delay: 7s;
    width: 400px;
    height: 400px;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(100px, 150px);
    }
    66% {
        transform: translate(-80px, -100px);
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.5), transparent);
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.8);
    animation: scan 8s linear infinite;
    will-change: transform, opacity;
}

@keyframes scan {
    0% {
        top: 0;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Content Section */
.content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.main-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(30, 58, 138, 0.8), 0 0 60px rgba(30, 58, 138, 0.4);
    letter-spacing: 3px;
    animation: fadeInUp 1s ease-out;
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(30, 58, 138, 0.6);
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Countdown Timer */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 20px rgba(30, 58, 138, 0.8);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Discord Button */
.discord-button {
    position: relative;
    z-index: 100;
    padding: 18px 40px;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4),
                0 0 30px rgba(88, 101, 242, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: buttonGlow 3s ease-in-out infinite, fadeInUp 1s ease-out 0.6s both;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    overflow: hidden;
}

.discord-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.discord-button:hover::before {
    width: 300px;
    height: 300px;
}

.discord-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6),
                0 0 40px rgba(88, 101, 242, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #6770F5 0%, #5865F2 100%);
}

.discord-button:active {
    transform: translateY(0) scale(0.98);
}

.discord-button span {
    position: relative;
    z-index: 1;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4),
                    0 0 30px rgba(88, 101, 242, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 4px 15px rgba(88, 101, 242, 0.6),
                    0 0 40px rgba(88, 101, 242, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 138, 0.2);
    border: 2px solid rgba(30, 58, 138, 0.4);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(30, 58, 138, 0.4);
    border-color: rgba(30, 58, 138, 0.8);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(30, 58, 138, 0.6);
}

.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 2px solid rgba(30, 58, 138, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    will-change: transform;
}

.rotating-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(30, 58, 138, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(30, 58, 138, 1);
}

.rotating-ring.ring-2 {
    width: 500px;
    height: 500px;
    animation-duration: 25s;
    animation-direction: reverse;
    border-color: rgba(30, 58, 138, 0.2);
}

.rotating-ring.ring-3 {
    width: 300px;
    height: 300px;
    animation-duration: 15s;
    border-color: rgba(30, 58, 138, 0.25);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.light-beam {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(to bottom, transparent, rgba(30, 58, 138, 0.6), transparent);
    box-shadow: 0 0 20px rgba(30, 58, 138, 0.8);
    animation: beamMove 10s linear infinite;
    will-change: transform, opacity;
}

.light-beam.beam-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    transform: rotate(45deg);
}

.light-beam.beam-2 {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
    transform: rotate(-30deg);
}

.light-beam.beam-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
    transform: rotate(60deg);
}

.light-beam.beam-4 {
    top: 60%;
    right: 30%;
    animation-delay: 1s;
    transform: rotate(-45deg);
}

@keyframes beamMove {
    0%, 100% {
        opacity: 0;
        transform: rotate(var(--rotation, 45deg)) translateY(0);
    }
    50% {
        opacity: 1;
        transform: rotate(var(--rotation, 45deg)) translateY(50px);
    }
}

.corner-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(30, 58, 138, 0.4);
    will-change: opacity, box-shadow;
}

.corner-accent.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    animation: cornerPulse 3s ease-in-out infinite;
}

.corner-accent.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    animation: cornerPulse 3s ease-in-out infinite 0.5s;
}

.corner-accent.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    animation: cornerPulse 3s ease-in-out infinite 1s;
}

.corner-accent.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    animation: cornerPulse 3s ease-in-out infinite 1.5s;
}

@keyframes cornerPulse {
    0%, 100% {
        opacity: 0.3;
        box-shadow: 0 0 0 rgba(30, 58, 138, 0);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(30, 58, 138, 0.6);
    }
}

.hexagon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 138, 0.1);
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
    border: 1px solid rgba(30, 58, 138, 0.3);
    animation: hexFloat 12s ease-in-out infinite;
    will-change: transform, opacity;
}

.hexagon.hex-1 {
    top: 15%;
    left: 25%;
    animation-delay: 0s;
}

.hexagon.hex-2 {
    top: 45%;
    right: 20%;
    animation-delay: 2s;
    width: 80px;
    height: 80px;
}

.hexagon.hex-3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 4s;
    width: 50px;
    height: 50px;
}

.hexagon.hex-4 {
    top: 70%;
    right: 25%;
    animation-delay: 1s;
}

@keyframes hexFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translate(30px, -40px) rotate(180deg);
        opacity: 0.7;
    }
}

.energy-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 58, 138, 0.6), transparent);
    box-shadow: 0 0 15px rgba(30, 58, 138, 0.8);
    animation: waveRise 6s ease-in-out infinite;
    will-change: transform, opacity;
}

.energy-wave.wave-2 {
    animation-delay: 2s;
    height: 1px;
}

.energy-wave.wave-3 {
    animation-delay: 4s;
    height: 3px;
}

@keyframes waveRise {
    0% {
        bottom: 0;
        opacity: 0;
    }
    50% {
        bottom: 50%;
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(30, 58, 138, 0.8);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle 3s ease-in-out infinite;
    will-change: transform, opacity;
}

.star.star-1 { top: 10%; left: 10%; animation-delay: 0s; }
.star.star-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.star.star-3 { bottom: 15%; left: 20%; animation-delay: 1s; }
.star.star-4 { bottom: 25%; right: 10%; animation-delay: 1.5s; }
.star.star-5 { top: 50%; left: 5%; animation-delay: 2s; }
.star.star-6 { top: 60%; right: 5%; animation-delay: 2.5s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 15px;
        max-width: 100%;
    }

    .main-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }

    .tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 10px;
    }

    .countdown-number {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .countdown-container {
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
    }

    .countdown-item {
        min-width: 60px;
    }

    .discord-button {
        margin: 0 auto;
        display: block;
        width: fit-content;
    }

    .social-links {
        margin-top: 1.5rem;
        gap: 1rem;
    }

    .glow-effect {
        width: 300px;
        height: 300px;
    }

    .rotating-ring {
        width: 350px;
        height: 350px;
    }

    .rotating-ring.ring-2 {
        width: 400px;
        height: 400px;
    }

    .rotating-ring.ring-3 {
        width: 280px;
        height: 280px;
    }

    .glow-orb {
        width: 150px;
        height: 150px;
    }

    .glow-orb:nth-child(2) {
        width: 200px;
        height: 200px;
    }

    .corner-accent {
        width: 50px;
        height: 50px;
    }

    .hexagon {
        width: 40px;
        height: 40px;
    }

    .hexagon.hex-2 {
        width: 50px;
        height: 50px;
    }

    .hexagon.hex-3 {
        width: 30px;
        height: 30px;
    }

    .light-beam {
        height: 100px;
    }

    .discord-button {
        padding: 18px 36px;
        font-size: 16px;
        letter-spacing: 1.5px;
        max-width: 90%;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .grid-container {
        background-size: 30px 30px;
    }

    .grid-overlay {
        background-size: 60px 60px;
    }

    .particle {
        width: 1.5px;
        height: 1.5px;
    }

    .star {
        width: 2px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 10px;
        top: 45%;
    }

    .main-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .tagline {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        padding: 0 15px;
        line-height: 1.4;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-container {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .countdown-item {
        min-width: 50px;
    }

    .discord-button {
        padding: 14px 28px;
        font-size: 14px;
        width: auto;
        max-width: 85%;
    }

    .social-links {
        margin-top: 1.25rem;
        gap: 0.75rem;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 18px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Reduce particle system on mobile for better performance */
    .particle-interactive {
        display: none;
    }

    .glow-effect {
        width: 250px;
        height: 250px;
    }

    .rotating-ring {
        width: 280px;
        height: 280px;
    }

    .rotating-ring.ring-2 {
        width: 320px;
        height: 320px;
    }

    .rotating-ring.ring-3 {
        width: 220px;
        height: 220px;
    }

    .discord-button {
        padding: 16px 32px;
        font-size: 15px;
        letter-spacing: 1px;
    }

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .corner-accent {
        width: 40px;
        height: 40px;
    }

    .hexagon {
        width: 30px;
        height: 30px;
    }

    .hexagon.hex-2 {
        width: 40px;
        height: 40px;
    }

    .hexagon.hex-3 {
        width: 25px;
        height: 25px;
    }

    .light-beam {
        height: 80px;
    }

    .grid-container {
        background-size: 25px 25px;
    }

    .grid-overlay {
        background-size: 50px 50px;
    }

    .particle {
        width: 1px;
        height: 1px;
    }

    .star {
        width: 2px;
        height: 2px;
    }

    .glow-orb {
        width: 120px;
        height: 120px;
    }

    .glow-orb:nth-child(2) {
        width: 150px;
        height: 150px;
    }
}

