* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #1a1a1a;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundFloat 15s ease-in-out infinite, backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    25% { 
        transform: translateY(-30px) rotate(1deg) scale(1.05);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(-1deg) scale(0.95);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-40px) rotate(0.5deg) scale(1.02);
        opacity: 0.7;
    }
}

@keyframes backgroundPulse {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
    }
    50% { 
        filter: hue-rotate(20deg) brightness(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    font-size: 3rem;
    font-weight: 200;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { 
        filter: brightness(1);
        transform: scale(1);
    }
    100% { 
        filter: brightness(1.1);
        transform: scale(1.02);
    }
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    animation: lineGlow 2s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    0% { 
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
        width: 60px;
    }
    100% { 
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
        width: 80px;
    }
}

header p {
    font-size: 1.1rem;
    color: #888;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 20px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.site-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.site-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.site-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.98);
}

.site-card:hover::before {
    opacity: 1;
}

.site-card:hover::after {
    opacity: 1;
}

.site-card:active {
    transform: translateY(0);
}

.site-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 18px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.logo-placeholder:hover {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25), rgba(118, 75, 162, 0.25));
}

.logo-placeholder:hover::before {
    opacity: 1;
}

.logo-image {
    width: 200%;
    height: 200%;
    object-fit: contain;
    border-radius: 8px;
}

.site-info {
    text-align: center;
    margin-bottom: 24px;
}

.site-info h3 {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.site-actions {
    display: flex;
    justify-content: center;
}

.action-btn {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn span:last-child {
    font-size: 1.1rem;
    transition: transform 0.2s ease;
}

.action-btn:hover span:last-child {
    transform: translateX(2px);
}

/* Loading state */
.site-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.site-card.loading .action-btn {
    background: #666;
}

.site-card.loading .action-btn span:first-child {
    opacity: 0;
}

.site-card.loading .action-btn span:last-child {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 30px 16px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header h1::after {
        width: 50px;
    }
    
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .site-card {
        padding: 32px 28px;
        min-height: 260px;
    }
    
    .logo-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .logo-image {
        border-radius: 10px;
    }
    
    .site-info h3 {
        font-size: 1.125rem;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header h1::after {
        width: 40px;
    }
    
    header p {
        font-size: 0.9rem;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-card {
        padding: 28px 24px;
        min-height: 240px;
    }
    
    .logo-placeholder {
        width: 65px;
        height: 65px;
    }
    
    .logo-image {
        border-radius: 8px;
    }
}

/* Focus states for accessibility */
.site-card:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

.action-btn:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

/* Subtle animations */
.site-card {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.site-card:nth-child(1) { animation-delay: 0.1s; }
.site-card:nth-child(2) { animation-delay: 0.2s; }
.site-card:nth-child(3) { animation-delay: 0.3s; }
.site-card:nth-child(4) { animation-delay: 0.4s; }
.site-card:nth-child(5) { animation-delay: 0.5s; }
.site-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Floating particles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(3px 3px at 20px 30px, rgba(102, 126, 234, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(118, 75, 162, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(102, 126, 234, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(118, 75, 162, 0.3), transparent),
        radial-gradient(2px 2px at 160px 20px, rgba(102, 126, 234, 0.2), transparent),
        radial-gradient(1px 1px at 200px 60px, rgba(118, 75, 162, 0.2), transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: float 15s linear infinite, particlePulse 6s ease-in-out infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes float {
    0% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.8;
    }
    25% { 
        transform: translateY(-50px) translateX(30px) rotate(90deg);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-100px) translateX(-20px) rotate(180deg);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-150px) translateX(40px) rotate(270deg);
        opacity: 0.7;
    }
    100% { 
        transform: translateY(-200px) translateX(0px) rotate(360deg);
        opacity: 0.8;
    }
}

@keyframes particlePulse {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: hue-rotate(30deg) brightness(1.2);
        transform: scale(1.1);
    }
}