:root {
    /* Modern Color Palette */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #6B8DD6 0%, #8E37D7 100%);
    --surface-color: #ffffff;
    --background-color: #f4f7f6;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --accent-color: #667eea;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1000px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Header & Navigation */
header {
    background: var(--surface-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

nav a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 6rem 1rem;
    margin-bottom: var(--spacing-lg);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

#hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -1px;
}

#hero p {
    font-size: 1.25rem;
    color: #ffffff;
    opacity: 1;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#hero strong {
    color: #fff;
    font-weight: 600;
}

/* Main Content */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

article section {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

article section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    margin-top: 0.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

strong {
    color: var(--accent-color);
}

/* Comparison Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: var(--spacing-sm);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background-color: #f7fafc;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

th:first-child { border-top-left-radius: var(--radius-md); }
th:last-child { border-top-right-radius: var(--radius-md); }
tr:last-child td:first-child { border-bottom-left-radius: var(--radius-md); }
tr:last-child td:last-child { border-bottom-right-radius: var(--radius-md); }

tr:hover td {
    background-color: #f7fafc;
}

/* Footer */
footer {
    text-align: center;
    padding: var(--spacing-lg) 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: var(--spacing-lg);
    background: #fff;
    border-top: 1px solid #edf2f7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #hero {
        padding: 4rem 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }

    #hero h1 {
        font-size: 2rem;
    }

    article section {
        padding: 1.5rem;
    }
}

/* Desktop Enhancements */
@media (min-width: 1024px) {
    #hero h1 {
        font-size: 3.5rem;
    }

    article section {
        padding: 3rem;
    }
}