* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #dc2626;
    --dark-red: #b91c1c;
    --light-red: #ef4444;
    --red-gradient: linear-gradient(135deg, #dc2626, #ef4444);
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(220, 38, 38, 0.2);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.logo {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.logo h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--red-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 8px var(--shadow);
    letter-spacing: -0.02em;
    position: relative;
}

.logo-accent {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--red-gradient);
    border-radius: 2px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 400;
}

.main-content {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.link-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px -1px var(--shadow), 0 2px 4px -1px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--red-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px var(--shadow), 0 10px 10px -5px var(--shadow);
}

.link-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--red-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
    transition: var(--transition);
}

.link-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 16px var(--shadow-hover);
}

.link-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.link-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--red-gradient);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 2px 4px var(--shadow);
}

.btn-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-hover);
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.btn-link:active {
    transform: translateY(0);
}

.main-bot {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box, 
                var(--red-gradient) border-box;
}

.footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.card-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.card-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-status-dot.online {
    background: #10b981;
}

.card-status-dot.offline {
    background: #ef4444;
}

.footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: var(--red-gradient);
    border-radius: 50%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: var(--red-gradient);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 20%;
    width: 60px;
    height: 60px;
    background: var(--red-gradient);
    border-radius: 4px;
    transform: rotate(45deg);
    animation-delay: 4s;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-in {
    animation: fadeInUp 0.6s ease-out both;
}

.keyboard-navigation .btn-link:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.logo-accent {
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.8s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .link-card {
        padding: 1.5rem;
    }
    
    .floating-element {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .link-card h3 {
        font-size: 1.25rem;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
    }
    
    .card-icon svg {
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.btn-link:focus {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}

@media print {
    .background-decoration,
    .floating-element {
        display: none;
    }
    
    .link-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 