/* home.css */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --bg-start: #1A1A1A;
    --bg-end: #26333F;
    --text-light: #fff;
    --text-dark: #333;
    --star-color: rgba(255, 255, 255, 0.8);
    --shooting-star: #fff;
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--bg-start), var(--bg-end));
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    animation: fadeInDown 1s ease;
}

.title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary) 0%, #74b9ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(52, 152, 219, 0.3);
}

.subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    animation: fadeIn 1s ease 0.5s both;
}

.enter-system {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--text-light);
    font-size: 20px;
    font-weight: 500;
    padding: 18px 48px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    animation: fadeInUp 1s ease 0.8s both;
    position: relative;
    overflow: hidden;
}

.enter-system:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
}

.enter-system::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.features {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 40px;
    animation: fadeIn 1s ease 1s both;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.feature-title {
    font-size: 22px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-weight: 500;
}

.feature-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

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

@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);
    }
}

@media (max-width: 768px) {
    .container {
        gap: 40px;
    }

    .title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .feature {
        padding: 30px 20px;
    }

    .enter-system {
        padding: 16px 36px;
        font-size: 18px;
    }
}

.theme-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--star-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}