:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --accent: #ffffff;
    --accent-rgb: 255, 255, 255;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --blur-intensity: 16px;
    --glass-opacity: 0.08;
    --cyan: #38bdf8;
    --purple: #c084fc;
    --orange: #fb923c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.logo-svg {
    width: 6rem;
    height: 6rem;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.6)) 
            brightness(1.2);
}

.inline-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    filter: brightness(1.2);
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.12), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(192, 132, 252, 0.10), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(251, 146, 60, 0.08), transparent 70%);
    z-index: 0;
    animation: aurora 20s ease infinite;
    will-change: transform;
}

@keyframes aurora {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
    33% { 
        transform: scale(1.08) rotate(3deg); 
        opacity: 0.85; 
    }
    66% { 
        transform: scale(0.95) rotate(-2deg); 
        opacity: 0.92; 
    }
}

/* Particles Canvas */
#particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

/* Logo Container */
.logo-container {
    position: relative;
    margin-bottom: 2rem;
    animation: floatIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.3), transparent 70%);
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.logo-icon {
    font-size: 6rem;
    line-height: 1;
    filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.6));
    animation: rotate3d 8s ease-in-out infinite;
}

@keyframes rotate3d {
    0%, 100% { transform: rotateY(0deg) rotateZ(0deg); }
    25% { transform: rotateY(180deg) rotateZ(5deg); }
    50% { transform: rotateY(360deg) rotateZ(0deg); }
    75% { transform: rotateY(180deg) rotateZ(-5deg); }
}

/* Main Title */
.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.title-word {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    margin: 0 0.3rem;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 40rem;
    margin: 0 auto 4rem;
    line-height: 1.6;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s backwards;
}

/* Navigation Cards */
.nav-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 60rem;
    margin-bottom: 4rem;
}

/* Nav Card */
.nav-card {
    position: relative;
    border-radius: 2rem;
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.nav-cards .nav-card:nth-child(1) { animation-delay: 0.5s; }
.nav-cards .nav-card:nth-child(2) { animation-delay: 0.6s; }

.nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(56, 189, 248, 0.4), 
        rgba(192, 132, 252, 0.3),
        rgba(251, 146, 60, 0.2)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s;
}

.liquid-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card-glow {
    position: absolute;
    inset: -100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(56, 189, 248, 0.15), 
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.nav-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(56, 189, 248, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card:hover .card-glow {
    opacity: 1;
}

.nav-card:hover .arrow-icon {
    transform: translateX(8px);
}

.nav-card:hover .card-icon {
    transform: scale(1.1) rotateZ(5deg);
}

.card-content {
    position: relative;
    z-index: 1;
}

/* Card Icon */
.card-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Title */
.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

/* Card Description */
.card-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Card Features */
.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-pill {
    padding: 0.5rem 1rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cyan);
}

/* Card Action */
.card-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.arrow-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats Container */
.stats-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s backwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 3rem;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
}

/* Footer */
.footer {
    margin-top: auto;
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--cyan);
}

.footer-divider {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 48rem) {
    .container {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .main-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 3rem;
    }
    
    .nav-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-card {
        padding: 2rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .stat-divider {
        width: 3rem;
        height: 1px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
