/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: #ffffff;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.25rem;
    color: #2d3748;
}

.nav-icon {
    color: #22c55e;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #22c55e;
}

.nav-cta {
    background: #22c55e;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: #16a34a;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 8rem 0 6rem;
    text-align: center;
}

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

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

.highlight {
    color: #22c55e;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #22c55e;
    color: white;
}

.btn-primary:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #22c55e;
    border-color: #22c55e;
}

.btn-secondary:hover {
    background: #22c55e;
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #22c55e;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: #ffffff;
}

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

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.feature-endpoint {
    background: #f1f5f9;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid #22c55e;
}

.feature-endpoint code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #1e40af;
}

/* API Documentation Section */
.api-docs {
    padding: 6rem 0;
    background: #f8fafc;
}

.api-showcase {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

.api-example {
    background: #1a202c;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.api-endpoint {
    background: #2d3748;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
}

.method.get {
    background: #22c55e;
    color: white;
}

.url {
    color: #e2e8f0;
    font-family: monospace;
    font-size: 0.9rem;
}

.api-response {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.api-response pre {
    margin: 0;
}

.api-response code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #4a5568;
}

.api-feature i {
    color: #22c55e;
    font-size: 1.2rem;
}

/* Test Scenarios Section */
.scenarios {
    padding: 6rem 0;
    background: #ffffff;
}

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

.scenario-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
}

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

.scenario-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: white;
}

.scenario-icon.success { background: #22c55e; }
.scenario-icon.error { background: #ef4444; }
.scenario-icon.partial { background: #f59e0b; }
.scenario-icon.large { background: #3b82f6; }
.scenario-icon.privacy { background: #8b5cf6; }
.scenario-icon.rate { background: #06b6d4; }

.scenario-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.scenario-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.scenario-card code {
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #1e40af;
    display: block;
}

/* Integration Section */
.integration {
    padding: 6rem 0;
    background: #f8fafc;
}

.integration-examples {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.example-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-button.active {
    color: #22c55e;
    border-bottom-color: #22c55e;
    background: #ffffff;
}

.tab-content {
    display: none;
    padding: 2rem;
}

.tab-content.active {
    display: block;
}

.tab-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Quick Start Section */
.quick-start {
    padding: 6rem 0;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.quick-start-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.quick-start .section-title {
    color: white;
}

.quick-start .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.quick-start-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.qs-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.qs-feature i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.quick-start-code {
    background: #1a202c;
    border-radius: 1rem;
    overflow: hidden;
}

.code-header {
    background: #2d3748;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.code-title {
    color: #e2e8f0;
    font-weight: 500;
}

.code-lang {
    color: #22c55e;
    font-family: monospace;
}

.quick-start-code pre {
    padding: 1.5rem;
    margin: 0;
    background: none;
}

.code-result {
    padding: 1rem 1.5rem;
    background: #2d3748;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.result-status {
    color: #22c55e;
}

.result-uptime {
    color: #06b6d4;
}

/* Footer */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #2d3748;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-brand i {
    color: #22c55e;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #22c55e;
}

.footer-bottom {
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .api-showcase {
        grid-template-columns: 1fr;
    }
    
    .quick-start-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}