:root {
    --bg: #030305;
    --surface: #0a0a0d;
    --surface-hover: #111115;
    --text-main: #f8f9fa;
    --text-muted: #94a3b8;
    --accent: #5e6ad2; /* Keeping purple/blue as base, but refined */
    --accent-glow: rgba(94, 106, 210, 0.3);
    --cyan: #00d2ff;
    --silver: #e2e8f0;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(10, 10, 13, 0.7);
}

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

@keyframes mesh-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(94, 106, 210, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 210, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(94, 106, 210, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(0, 210, 255, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header with Glassmorphism */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

header h1 a {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--text-main), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    animation: fade-up 0.8s ease-out forwards;
}

.hero h2 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-bottom: 100px;
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    animation: fade-up 0.8s ease-out both;
}

/* Float delay per card (simulated) */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

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

.card:hover {
    transform: translateY(-8px) scale(1.02);
    background-color: var(--surface-hover);
    border-color: var(--cyan);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 210, 255, 0.1);
}

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

/* Grid Spans */
.featured { grid-column: span 8; grid-row: span 2; }
.card-regular { grid-column: span 4; }
.card-wide { grid-column: span 8; }
.card-small { grid-column: span 4; }

@media (max-width: 900px) {
    .featured, .card-regular, .card-wide, .card-small { grid-column: span 12; }
}

.card .tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cyan);
    background-color: rgba(0, 210, 255, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.card h3 {
    font-size: 1.85rem;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.featured h3 { font-size: 2.75rem; }

.card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: auto;
}

.card .arrow {
    background: var(--surface-hover);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover .arrow {
    transform: translateX(4px);
    background: var(--cyan);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 60px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

footer p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 10px; }
footer a { color: var(--text-main); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--cyan); }