:root {
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-secondary: #0ea5e9;
    --color-accent: #a855f7;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;

    --color-bg-start: #eef2ff;
    --color-bg-mid: #f0f9ff;
    --color-bg-end: #e0f2fe;

    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --transition-fast: 150ms;
    --transition-normal: 300ms;
    --transition-slow: 500ms;
    --transition-smooth: 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

html, body {
    background: linear-gradient(165deg, #eef2ff 0%, #f8fafc 42%, #e0f2fe 100%);
    color: #0f172a;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.page-bg-mesh {
    background:
        radial-gradient(ellipse 130% 90% at 0% -15%, rgba(99, 102, 241, 0.32), transparent 58%),
        radial-gradient(ellipse 100% 80% at 100% 0%, rgba(14, 165, 233, 0.26), transparent 52%),
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(167, 139, 250, 0.22), transparent 50%),
        linear-gradient(168deg, #e8ecff 0%, #f0f9ff 38%, #fdf4ff 72%, #e0f2fe 100%);
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

#footer-stars {
    background-image: radial-gradient(#94a3b8 1px, transparent 1px), radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    animation: float 15s ease-in-out infinite;
}

.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 10px 40px -12px rgba(15, 23, 42, 0.08), 0 4px 16px -4px rgba(15, 23, 42, 0.04);
}

.text-glow {
    text-shadow: 0 2px 24px rgba(14, 165, 233, 0.15);
}

.mc-btn {
    background: linear-gradient(45deg, #4f46e5, #9333ea);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(147, 51, 234, 0.6);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-slide-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.reveal-slide-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-slide-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}

.reveal-slide-right.active {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 1024px) {
    .glass-card {
        padding: 1.5rem !important;
    }

    .glass-card h3 {
        font-size: 1.2rem;
    }

    .glass-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    #staff {
        padding: 4rem 0;
    }

    .glass-card {
        padding: 1.25rem !important;
    }

    .glass-card .relative.w-32.h-32 {
        width: 80px !important;
        height: 80px !important;
    }

    .glass-card .relative.w-32.h-32 img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 50% !important;
        display: block !important;
    }

    .glass-card .absolute.bottom-3 {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.8rem !important;
    }
}

@media (max-width: 640px) {
    #staff .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    #staff h2 {
        font-size: 2rem !important;
    }

    #staff p {
        font-size: 1rem !important;
    }

    .toggle-info,
    .mc-btn,
    a,
    button {
        min-height: 48px;
        min-width: 48px;
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .grid {
        gap: 1rem !important;
    }

    .glass-card {
        padding: 1rem !important;
        margin: 0.5rem 0;
    }

    .toggle-info,
    .mc-btn {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    max-height: 100%;
}

@media (max-width: 640px) {
    .video-container {
        padding-bottom: 75%;
        min-height: 280px;
        border-radius: 0.75rem;
        width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }

    .video-container iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 100% !important;
        height: 100% !important;
        transform: translate(-50%, -50%);
        transform-origin: center;
        border: none;
    }

    #video-section .max-w-5xl {
        max-width: 100vw !important;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    #video-section .container {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        max-width: 100%;
    }

    #video-section .max-w-5xl {
        padding-right: 0;
    }

    #staff .flex.flex-row {
        flex-direction: column;
        align-items: center;
    }
}

#staff .group .glass-card {
    transition: all 0.3s ease;
}

#staff .relative.w-32.h-32 {
    width: 64px;
    height: 64px;
    margin-bottom: 6px;
    margin-left: auto;
    margin-right: auto;
}

#staff .glass-card h3 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

#staff .glass-card p {
    font-size: 0.75rem;
}

#staff .toggle-info {
    font-size: 0.7rem;
    padding: 0.25rem;
}

.text-shadow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
}

.text-shadow-sm {
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.glow-text-green {
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-gradient-slide {
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.animate-shimmer {
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.8), 0 0 60px rgba(168, 85, 247, 0.4);
    }
}

@keyframes glowText {
    0%, 100% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(99, 102, 241, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 50px rgba(168, 85, 247, 0.5), 0 0 80px rgba(99, 102, 241, 0.3);
    }
}

@keyframes starTwinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

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

@keyframes borderGlow {
    0%, 100% {
        border-color: rgba(99, 102, 241, 0.3);
    }
    50% {
        border-color: rgba(168, 85, 247, 0.6);
    }
}

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

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes floatGently {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(5px) rotate(-1deg);
    }
}

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

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInScale {
    animation: fadeInScale 0.7s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease-out forwards;
}

.animate-bounceIn {
    animation: bounceIn 0.8s ease-out forwards;
}

.animate-float {
    animation: floatGently 4s ease-in-out infinite;
}

.animate-glow {
    animation: glow 3s ease-in-out infinite;
}

.animate-glow-text {
    animation: glowText 3s ease-in-out infinite;
}

.animate-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    text-align: center;
}

.loader-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: 2.5rem;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #0ea5e9 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
    margin-bottom: 1rem;
}

.loader-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.loader-bar-container {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #6366f1, #0ea5e9);
    background-size: 200% 100%;
    animation: gradientSlide 1.5s linear infinite;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.loader-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: starTwinkle 2s ease-in-out infinite;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    box-shadow:
        0 4px 15px rgba(99, 102, 241, 0.1),
        0 0 30px rgba(99, 102, 241, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.hero-badge-text {
    font-size: 0.875rem;
    color: #4f46e5;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.hero-title {
    font-family: 'ZCOOL KuaiLe', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 25%, #6366f1 50%, #8b5cf6 75%, #a855f7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite, fadeInUp 0.8s ease-out 0.4s both;
    position: relative;
    display: inline-block;
}

.hero-title::before {
    content: '星辰守望';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #0ea5e9 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease infinite reverse;
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
}

.hero-title-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: -2;
}

.hero-description {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-description-highlight {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    position: relative;
}

.hero-description-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
    opacity: 0.5;
}

.server-status-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow:
        0 25px 50px -12px rgba(99, 102, 241, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    position: relative;
    overflow: hidden;
}

.server-status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7, #0ea5e9);
    background-size: 300% 100%;
    animation: gradientFlow 3s ease infinite;
}

.server-status-card::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.server-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.server-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.server-status-dot.offline {
    background: #ef4444;
}

.server-status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.3;
    animation: ripple 2s ease-out infinite;
}

.server-status-dot.online::after {
    border-color: #10b981;
}

.status-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.status-metric:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.status-metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.status-metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.uptime-display-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.uptime-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3rem;
}

.uptime-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e1b4b;
    font-family: 'Courier New', monospace;
    line-height: 1;
    background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.uptime-unit-label {
    font-size: 0.625rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.uptime-separator {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin: 0 0.25rem;
    animation: pulse 1s ease-in-out infinite;
}

.connection-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.connection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.connection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.connection-card:hover::before {
    opacity: 1;
}

.connection-card:active {
    transform: translateY(0);
}

.connection-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.connection-details {
    flex: 1;
}

.connection-ip {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #1e1b4b;
}

.connection-port {
    font-size: 0.75rem;
    color: #64748b;
}

.connection-copy-hint {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: #6366f1;
}

.connection-card:hover .connection-copy-hint {
    opacity: 1;
    transform: translateX(0);
}

.connection-card.copied {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.connection-card.copied .connection-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.join-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 10px 30px rgba(99, 102, 241, 0.4),
        0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: fadeInUp 0.8s ease-out 1s both;
}

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

.join-button:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 40px rgba(99, 102, 241, 0.5),
        0 0 60px rgba(168, 85, 247, 0.3);
    background-position: 100% 0;
}

.join-button:hover::before {
    left: 100%;
}

.join-button:active {
    transform: translateY(-1px);
}

.join-button-icon {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.join-button:hover .join-button-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.join-button-icon i {
    transition: transform 0.3s ease;
}

.join-button:hover .join-button-icon i {
    transform: translateX(2px);
}

.scroll-indicator {
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.scroll-indicator-icon {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.hero-decoration {
    position: absolute;
    pointer-events: none;
    opacity: 0.5;
}

.hero-decoration-star {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #a855f7;
    border-radius: 50%;
    box-shadow: 0 0 20px #a855f7;
    animation: starTwinkle 3s ease-in-out infinite;
}

.hero-decoration-star:nth-child(1) {
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.hero-decoration-star:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.hero-decoration-star:nth-child(3) {
    bottom: 30%;
    left: 10%;
    animation-delay: 1s;
}

.hero-decoration-star:nth-child(4) {
    top: 40%;
    right: 10%;
    animation-delay: 1.5s;
}

.hero-decoration-star:nth-child(5) {
    bottom: 20%;
    right: 25%;
    animation-delay: 2s;
}

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 0.5rem 0.75rem;
    background: #1e1b4b;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.morphing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.morph-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: morphBlob 20s ease-in-out infinite;
}

.morph-blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(168, 85, 247, 0.2));
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.morph-blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(99, 102, 241, 0.2));
    top: 50%;
    right: -150px;
    animation-delay: -5s;
}

.morph-blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.2));
    bottom: -100px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes morphBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        border-radius: 50%;
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
        border-radius: 60% 40% 40% 60%;
    }
    50% {
        transform: translate(0, 50px) scale(0.95);
        border-radius: 40% 60% 60% 40%;
    }
    75% {
        transform: translate(-50px, -25px) scale(1.05);
        border-radius: 50% 50% 50% 50%;
    }
}
