@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

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

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a12 0%, #12121f 25%, #1a1a2e 50%, #12121f 75%, #0a0a12 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(139, 69, 69, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(69, 69, 139, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(100, 80, 120, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: pulse 10s ease-in-out infinite;
}

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

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(100, 100, 120, 0.02) 2px,
            rgba(100, 100, 120, 0.02) 4px
        );
    pointer-events: none;
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.title {
    font-family: 'Cinzel', 'Georgia', serif;
    text-align: center;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: #c8c8e0;
    text-shadow:
        0 0 10px rgba(200, 200, 224, 0.3),
        0 0 30px rgba(150, 150, 200, 0.2),
        0 0 60px rgba(100, 100, 150, 0.1),
        3px 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.2em;
    font-weight: 600;
}

.subtitle {
    font-family: 'Crimson Text', 'Georgia', serif;
    font-size: 1.2rem;
    color: #8888a0;
    margin-bottom: 3.5rem;
    font-style: italic;
    letter-spacing: 0.15em;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    justify-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.system-card {
    position: relative;
    width: 300px;
    height: 300px;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 1px rgba(200, 200, 224, 0.2);
    transition: all 0.4s ease;
    background: #1a1a2e;
    border: 1px solid rgba(200, 200, 224, 0.1);
}

.system-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.system-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: saturate(0.9) brightness(0.95);
}

.system-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(150, 150, 200, 0.15),
        0 0 1px rgba(200, 200, 224, 0.4);
    border-color: rgba(200, 200, 224, 0.3);
}

.system-card:hover::before {
    opacity: 0.5;
}

.system-card:hover img {
    transform: scale(1.1);
    filter: saturate(1.1) brightness(1.05);
}

.system-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    color: #e0e0f0;
    font-family: 'Cinzel', 'Georgia', serif;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    z-index: 3;
    transition: all 0.4s ease;
}

.system-card:hover .system-name {
    padding-bottom: 2rem;
    text-shadow: 0 0 10px rgba(200, 200, 224, 0.5);
}

.footer {
    margin-top: 4rem;
    color: #5a5a70;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }

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

    .systems-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .system-card {
        width: 280px;
        height: 280px;
    }
}

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

    .system-card {
        width: 240px;
        height: 240px;
    }
}
