:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-green: #22c55e;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --code-bg: #090d16;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Rich multi-stop gradient background */
    background: linear-gradient(135deg, #090d16 0%, #0f172a 40%, #1e1b4b 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 2.5rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out forwards;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.badge-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.badge {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge.green { color: var(--accent-green); border-color: rgba(34, 197, 94, 0.3); }
.badge.cyan { color: var(--accent-cyan); border-color: rgba(6, 182, 212, 0.3); }

/* ==========================================
   RELIABLE FADE-IN & HOVER ANIMATIONS
   ========================================== */

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    
    /* Smooth entrance animation on page load */
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Subtle interactive hover effect for sections */
section:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
}

/* Staggered entrance timing for each section */
section:nth-child(1) { animation-delay: 0.2s; }
section:nth-child(2) { animation-delay: 0.35s; }
section:nth-child(3) { animation-delay: 0.5s; }
section:nth-child(4) { animation-delay: 0.65s; }

/* Typography & Tables */
h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

li strong {
    color: var(--text-primary);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

th {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.02);
}

td {
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

code {
    background-color: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--accent-cyan);
}