:root {
    --bg-color: #f5f5f7;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-blue: #0071e3;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 80px;
    text-align: center;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 12vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Navigation Cards --- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding-bottom: 100px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 3rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 113, 227, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-tag {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
}

.card-footer {
    display: flex;
    align-items: center;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.card-footer svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card:hover .card-footer svg {
    transform: translateX(4px);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.card {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-1 {
    animation-delay: 0.2s;
}

.card-2 {
    animation-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 40px;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 2.5rem;
    }
}

/* Mobile tweaks similar to simulator pages */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .hero {
        padding: 40px 0 24px;
    }

    .card {
        padding: 1rem;
        border-radius: 16px;
    }

    .card h2 {
        font-size: 1.1rem;
    }

    .card-footer {
        font-size: 0.95rem;
    }
}