/* Modern White Theme Variables */
:root {
    --bg-surface: #ffffff;
    --bg-surface-end: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    --border-color: #e2e8f0;
    
    /* Shadows - Soft & Elevated */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    background-color: var(--bg-surface);
}

/* ... background layers ... */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-surface-end));
}

.background-layer::after {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    
    /* Ambient Gradients - Large, Soft, Blurred */
    background: 
        /* Top Center - Blue/Indigo Glow */
        radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.08), transparent 40%),
        /* Top Left - Lavender */
        radial-gradient(circle at 20% 10%, rgba(168, 85, 247, 0.06), transparent 40%),
        /* Bottom Right - Mint/Teal */
        radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.06), transparent 40%);
        
    filter: blur(80px); /* Heavy blur for no blob edges */
    animation: floatLight 80s ease-in-out infinite alternate;
}

/* Layer 3: Micro-Texture (Noise) */
.texture-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Floating Animation */
@keyframes floatLight {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-2%, -2%) rotate(1deg); }
}

/* Typography */
h1 {
    font-size: 2.25rem; /* Slightly reduced */
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    /* Hero Focus Glow */
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.2);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 auto;
    font-weight: 400;
}

/* Layout */
.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem; /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 2.5rem; /* Reduced margin */
    position: relative;
}

/* Header Glow Spot */
header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12), transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem; /* Tighter gap */
    width: 100%;
    max-width: 900px;
}

/* Card Styles */
.card {
    display: flex;
    flex-direction: column;
    padding: 2rem; /* Reduced padding */
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    height: 100%;
    position: relative;
    /* Soft Elevation */
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79, 70, 229, 0.3); /* Subtle accent border */
}

.logo-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem; /* Reduced margin */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align left for cleaner look in card */
}

.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.card:hover .logo-wrapper img {
    transform: scale(1.03); /* Subtle breath */
}

.card-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Reduced margin */
    line-height: 1.5;
}

.action-link {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: auto;
    transition: var(--transition);
}

.action-link svg {
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    transition: transform 0.3s var(--transition);
}

.card:hover .action-link {
    color: var(--accent-hover);
}

.card:hover .action-link svg {
    transform: translateX(4px);
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem; /* Reduced padding */
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: auto;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        height: auto;
        overflow-y: auto; /* Allow scroll on mobile */
    }
    
    .container {
        padding: 3rem 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem;
    }
}
