:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

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

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

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

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.logo {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.github-link {
    background: var(--gradient);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Hero Section */
.hero {
    background: var(--gradient);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.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: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

.btn-link:hover {
    color: var(--secondary-color);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
}

/* Section Styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

.about-text h3 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

.diagram-box {
    background: var(--gradient-light);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.diagram-box h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.diagram-box pre {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

.diagram-box code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Target Audience */
.target-audience {
    background: var(--gradient-light);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.audience-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.audience-card p {
    color: var(--text-light);
}

/* Bundles Section */
.bundles-section {
    background: var(--bg-light);
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.bundle-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.bundle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bundle-card.new-bundle {
    border: 2px dashed var(--primary-color);
    background: var(--gradient-light);
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bundle-header h3 {
    color: var(--text-dark);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-stable {
    background: #c6f6d5;
    color: #22543d;
}

.badge-beta {
    background: #feebc8;
    color: #7c2d12;
}

.badge-new {
    background: #e9d8fd;
    color: #44337a;
}

.bundle-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bundle-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Docs Section */
.docs-section {
    background: var(--bg-white);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: var(--gradient-light);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.doc-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.doc-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.doc-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Contribute Section */
.contribute-section {
    background: var(--bg-light);
}

.contribute-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.steps-list li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 3rem;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: var(--gradient);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.steps-list strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.steps-list p {
    color: var(--text-light);
}

.cta-box {
    background: var(--gradient);
    color: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-box .btn-primary {
    background: white;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-content,
    .contribute-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .bundles-grid,
    .docs-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Bundle Detail Pages */
.bundle-detail {
    padding: 3rem 0 5rem;
    background: var(--bg-light);
}

.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.bundle-header-detail {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.bundle-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bundle-title-section h1 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--text-dark);
}

.bundle-badges {
    display: flex;
    gap: 0.5rem;
}

.badge-version {
    background: #e9d8fd;
    color: #44337a;
}

.bundle-tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0;
}

.bundle-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.bundle-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.content-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.config-table {
    overflow-x: auto;
}

.config-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

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

.config-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

.config-table td {
    color: var(--text-light);
}

.config-table code {
    background: var(--gradient-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.code-block {
    background: var(--gradient-light);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.code-block code {
    font-family: 'Monaco', 'Courier New', monospace;
    color: var(--primary-color);
    font-size: 1rem;
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

.warning-box p {
    color: #92400e;
    margin: 0;
}

.warning-box ul {
    margin: 0.5rem 0 0 1.5rem;
    color: #92400e;
}

.warning-box strong {
    color: #78350f;
}

.bundle-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-box {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.info-box h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.info-box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
}

.info-box dt {
    font-weight: 600;
    color: var(--text-dark);
}

.info-box dd {
    color: var(--text-light);
    margin: 0;
}

.resource-links {
    list-style: none;
    padding: 0;
}

.resource-links li {
    margin-bottom: 0.75rem;
}

.resource-links a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.resource-links a:hover {
    color: var(--secondary-color);
}

.action-box {
    background: var(--gradient-light);
    border: 2px solid var(--border-color);
}

.tip-box {
    background: #dbeafe;
    border-left: 4px solid var(--info-color);
    padding: 1rem;
    border-radius: 8px;
}

.tip-box h4 {
    color: #1e40af;
    margin: 0 0 0.5rem 0;
}

.tip-box p {
    color: #1e3a8a;
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive adjustments for detail pages */
@media (max-width: 768px) {
    .bundle-content {
        grid-template-columns: 1fr;
    }
    
    .bundle-title-section h1 {
        font-size: 2rem;
    }
    
    .bundle-header-detail {
        padding: 2rem 1.5rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
}
