/* CSS Variables for Theme Support */
:root {
    /* Light theme colors - white backgrounds with green accents */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    --text-primary: #212529;
    --text-secondary: #495057;
    --text-tertiary: #6c757d;
    --border-color: #dee2e6;
    --accent-primary: #22c55e;
    --accent-secondary: #16a34a;
    --accent-tertiary: #14532d;
    --gradient-start: #86efac;
    --gradient-mid: #22c55e;
    --gradient-end: #14532d;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.2);
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
}

[data-theme="dark"] {
    /* Dark theme colors - dark backgrounds with green accents */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --accent-primary: #22c55e;
    --accent-secondary: #4ade80;
    --accent-tertiary: #86efac;
    --gradient-start: #4ade80;
    --gradient-mid: #22c55e;
    --gradient-end: #14532d;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.5);
    --code-bg: #0f172a;
    --code-text: #e2e8f0;
}

/* Global Styles - Modern Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    letter-spacing: -0.011em;
    font-feature-settings: 'ss01', 'ss02', 'cv01', 'cv03';
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.theme-toggle .sun-icon {
    display: block;
    color: var(--accent-primary);
}

.theme-toggle .moon-icon {
    display: none;
    color: var(--accent-primary);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .navbar {
    background-color: rgba(10, 22, 40, 0.9);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.github-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.github-link:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 140px 20px 80px;
    min-height: auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-top: 3.5rem;
    margin-bottom: 4rem;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 6px 16px;
    background-color: var(--bg-tertiary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

/* Section Styles */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Key Features Section */
.features {
    padding: 80px 20px 100px;
    background-color: var(--bg-secondary);
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

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

/* Benefits Section */
.benefits {
    padding: 100px 20px;
    background-color: var(--bg-primary);
}

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

@media (min-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    padding: 2rem;
    text-align: center;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.benefit-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

@media (min-width: 1200px) {
    .comparison-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.comparison-card {
    background-color: var(--bg-primary);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid #6b7280;
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.1);
}

.comparison-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.comparison-problem {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.multi-tool-problem {
    background-color: var(--bg-primary);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.multi-tool-problem h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.multi-tool-problem p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Use Cases Section */
.use-cases {
    padding: 100px 20px;
    background-color: var(--bg-primary);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 1200px) {
    .use-case-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.use-case-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.use-case-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.use-case-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Getting Started Section */
.getting-started {
    padding: 100px 20px;
    background-color: var(--bg-secondary);
}

.code-examples {
    max-width: 1000px;
    margin: 0 auto;
}

.code-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: -1px;
}

.code-tab {
    padding: 12px 24px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.code-tab.active {
    background-color: var(--code-bg);
    color: var(--code-text);
    border-color: var(--code-bg);
}

.code-content {
    background-color: var(--code-bg);
    border-radius: 0 8px 8px 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-block {
    display: none;
    padding: 2rem;
    overflow-x: auto;
}

.code-block.active {
    display: block;
}

.code-block code {
    color: var(--code-text);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.7;
    white-space: pre;
}

/* SDKs Section */
.sdks {
    padding: 100px 20px;
    background-color: var(--bg-primary);
}

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

@media (min-width: 1200px) {
    .sdk-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.sdk-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.sdk-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

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

.sdk-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.sdk-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    background-color: var(--bg-tertiary);
    border-radius: 4px;
    color: var(--text-secondary);
    font-weight: 500;
}

.sdk-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.sdk-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sdk-stats img {
    height: 20px;
}

.sdk-code {
    background-color: var(--code-bg);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.sdk-code code {
    color: var(--code-text);
    font-size: 0.875rem;
}

.sdk-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.sdk-link:hover {
    gap: 8px;
}

.sdk-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sdk-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sdk-links a:hover {
    transform: translateX(4px);
}

/* Docker Deployment Section */
.docker-deployment {
    padding: 100px 20px;
    background-color: var(--bg-secondary);
}

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

.docker-example {
    margin-bottom: 3rem;
}

.docker-example h3,
.docker-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.docker-code {
    background-color: var(--code-bg);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: var(--shadow-md);
}

.docker-code code {
    color: var(--code-text);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre;
}

.docker-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.docker-features ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

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

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

/* Footer */
.footer {
    background-color: var(--bg-tertiary);
    padding: 60px 20px 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-license {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .nav-links a:not(.github-link) {
        display: none;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-grid,
    .benefits-grid,
    .comparison-grid,
    .use-case-grid,
    .sdk-grid {
        grid-template-columns: 1fr;
    }
    
    .code-tabs {
        overflow-x: auto;
        gap: 0.5rem;
    }
    
    .code-tab {
        padding: 8px 16px;
        font-size: 0.875rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .theme-toggle {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
}