:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --dark: #1a202c;
    --dark-light: #2d3748;
    --gray: #4a5568;
    --light-gray: #cbd5e0;
    --bg: #f7fafc;
    --white: #ffffff;
    --success: #48bb78;
    --code-bg: #2d3748;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

* {
    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(--dark);
    background: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: var(--white);
    padding: 80px 20px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-block;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.badges img {
    height: 28px;
    transition: transform 0.2s;
}

.badges a:hover img {
    transform: translateY(-2px);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 30px;
    background: var(--bg);
    border-radius: 12px;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Installation Section */
.installation {
    padding: 80px 20px;
    background: var(--dark);
    color: var(--white);
}

.installation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.install-note {
    text-align: center;
    margin: 20px 0;
    opacity: 0.8;
}

.code-block {
    position: relative;
    background: var(--code-bg);
    border-radius: 12px;
    padding: 25px;
    margin: 0 auto 20px;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.code-block pre {
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Example Section */
.example {
    padding: 80px 20px;
    background: var(--white);
}

.example h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.example-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.example .code-block {
    max-width: none;
    background: var(--dark);
}

.example-description h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.example-description ul {
    list-style: none;
    margin-bottom: 30px;
}

.example-description li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--gray);
}

/* Syntax Highlighting */
.keyword {
    color: #c792ea;
}

.string {
    color: #c3e88d;
}

.comment {
    color: #676e95;
    font-style: italic;
}

/* Features Detail */
.features-detail {
    padding: 80px 20px;
    background: var(--bg);
}

.features-detail h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.detail-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 8px 0;
    color: var(--gray);
    padding-left: 25px;
    position: relative;
}

.detail-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.detail-card code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

/* Release Section */
.release {
    padding: 80px 20px;
    background: var(--white);
}

.release h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--dark);
}

.release-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: var(--bg);
    border-radius: 12px;
    border: 2px solid var(--light-gray);
}

.release-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.release-header h3 {
    font-size: 1.8rem;
    color: var(--dark);
}

.release-tag {
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.release-card p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.8;
}

.release-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Documentation Section */
.documentation {
    padding: 80px 20px;
    background: var(--dark);
    color: var(--white);
}

.documentation h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.doc-card {
    padding: 30px;
    background: var(--dark-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.doc-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.doc-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.doc-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Comparison Section */
.comparison {
    padding: 80px 20px;
    background: var(--bg);
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.comparison-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 60px;
}

.comparison-intro a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-col h3 {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.code-block.small {
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-license {
    font-size: 0.9rem;
    margin-top: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-light);
    opacity: 0.7;
}

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

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

    .tagline {
        font-size: 1.2rem;
    }

    .stats {
        gap: 30px;
    }

    .stat-value {
        font-size: 2rem;
    }

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

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

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}
