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

:root {
    /* Brand Colors - Modern Green */
    --primary: #00b366;
    --primary-dark: #008c4d;
    --primary-light: #33cc99;
    --secondary: #1e88e5;
    --accent: #ff6b35;
    --accent-light: #ff8c61;

    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #808080;
    --bg: #ffffff;
    --surface: #f8f8f8;
    --surface-dark: #efefef;
    --border: rgba(0, 0, 0, 0.08);

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #00d981;
        --primary-dark: #00b366;
        --primary-light: #33ff99;
        --text-primary: #f5f5f5;
        --text-secondary: #d0d0d0;
        --text-muted: #999999;
        --bg: #0f0f0f;
        --surface: #1a1a1a;
        --surface-dark: #242424;
        --border: rgba(255, 255, 255, 0.1);
    }
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
    nav {
        background-color: rgba(15, 15, 15, 0.9);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo-emoji {
    font-size: 24px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all 0.2s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 179, 102, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 179, 102, 0.3);
}

.btn-secondary {
    color: var(--primary);
    background: var(--surface);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--surface-dark);
    border-color: var(--primary);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px 60px;
    text-align: center;
}

.hero h1 {
    font-size: 54px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 64px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 64px;
}

.stat {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.stat:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 179, 102, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Section Styling */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

section h2 {
    margin-bottom: 16px;
    text-align: center;
}

section .section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.8;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature List */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature {
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.3s;
}

.feature:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Faults Grid */
.faults-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.fault-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

.fault-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 179, 102, 0.15);
}

.fault-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.fault-emoji {
    font-size: 24px;
}

.fault-name {
    font-size: 16px;
    font-weight: 600;
}

.fault-badge {
    display: inline-block;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-llm {
    background: rgba(30, 136, 229, 0.15);
    color: var(--secondary);
}

.badge-agent {
    background: rgba(255, 107, 53, 0.15);
    color: var(--accent);
}

.fault-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.fault-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}

/* Code Example */
.code-example {
    background: var(--surface-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin: 32px 0;
    overflow-x: auto;
}

.code-example pre {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

.code-tab {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 12px;
    padding: 64px 48px;
    text-align: center;
    margin: 80px auto;
    max-width: 800px;
    box-shadow: 0 20px 40px rgba(0, 179, 102, 0.2);
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* Footer */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 48px 24px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    margin-bottom: 48px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

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

.footer-section a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* Utility */
.divider {
    height: 1px;
    background: var(--border);
    margin: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        gap: 16px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero .subtitle {
        font-size: 16px;
    }

    section {
        padding: 48px 16px;
    }

    section h2 {
        font-size: 28px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 8px;
    }

    .cta-section {
        padding: 40px 24px;
    }

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

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

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

.feature, .fault-card, .stat {
    animation: fadeInUp 0.6s ease-out;
}
