:root {
    --primary: #0969da;
    --primary-dark: #0860ca;
    --primary-light: #4493f8;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --bg: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border: #d1d9e0;
    --border-light: #e5e7eb;
    --code-bg: #f6f8fa;
    --success: #1a7f37;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --max-width: 1200px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 3rem;
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

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

header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-in 0.8s ease;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    animation: fade-in 1s ease;
}

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

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav .container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Main Content */
main {
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.feature:hover::before {
    transform: translateX(0);
}

.feature h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Code Blocks */
.code-block {
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
    box-shadow: var(--shadow-md);
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.code-block::before {
    content: '●●●';
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    letter-spacing: 0.25rem;
}

.code-block pre {
    margin: 0;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e6e6e6;
}

.code-block code {
    color: #e6e6e6;
    background: transparent;
    padding: 0;
}

code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Lists */
ul {
    margin: 1rem 0 1rem 2rem;
}

ul li {
    margin-bottom: 0.5rem;
}

.requirements {
    list-style: none;
    margin-left: 0;
}

.requirements li {
    padding-left: 1.5rem;
    position: relative;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Table */
.options-table {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border);
}

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

th {
    background: var(--bg-secondary);
    font-weight: 600;
}

td code {
    background: none;
    padding: 0;
}

/* Benchmark Section */
.benchmark {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.benchmark::before {
    content: '⚡';
    position: absolute;
    left: -2rem;
    top: 2rem;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.benchmark strong {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
    margin-top: 6rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
}

footer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

footer a {
    margin: 0 1rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

footer a:hover {
    color: var(--primary);
    text-decoration: none;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Download Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.download-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(102, 126, 234, 0.02) 100%);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-button:hover {
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.2);
    text-decoration: none;
}

.download-button:hover::before {
    opacity: 1;
}

.download-button:hover .package-icon {
    transform: scale(1.1) rotate(5deg);
}

.package-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.package-type {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    z-index: 1;
}

.filename {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    z-index: 1;
}

.filesize {
    color: var(--text-secondary);
    font-size: 0.85rem;
    z-index: 1;
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Install Methods */
.install-method {
    margin: 2rem 0;
}

.install-method h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    nav .container {
        flex-wrap: wrap;
        gap: 1rem;
    }

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

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

    table {
        font-size: 0.9rem;
    }
}