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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero .tagline {
    font-size: 24px;
    color: #666;
    margin-bottom: 30px;
}

.hero .subtitle {
    font-size: 18px;
    color: #999;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.feature-card p {
    color: #666;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: 15px;
}

.feature-list li {
    padding: 8px 0;
    color: #555;
}

.feature-list li::before {
    content: '✓ ';
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

/* Documentation Section */
.documentation {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.documentation h2 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.documentation h3 {
    color: #764ba2;
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.documentation h4 {
    color: #555;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.documentation p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.8;
}

.documentation code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e74c3c;
    font-size: 14px;
}

.documentation pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    line-height: 1.5;
}

.documentation pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* API Example */
.api-example {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
}

.api-example h4 {
    color: #667eea;
    margin-top: 0;
}

/* Pricing Section */
.pricing {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.pricing h2 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

.pricing-promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.pricing-promo h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: white;
}

.pricing-promo p {
    font-size: 18px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.95);
}

.pricing-promo .promo-payg {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.pricing-promo .promo-payg strong {
    color: #ffd700;
    font-size: 22px;
}

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

.pricing-card {
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea11, #764ba211);
}

.pricing-card h3 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 15px;
}

.pricing-card .price {
    font-size: 48px;
    color: #333;
    font-weight: 700;
    margin: 20px 0;
}

.pricing-card .price.strikethrough {
    text-decoration: line-through;
    opacity: 0.5;
    position: relative;
}

.pricing-card .price-unit {
    font-size: 18px;
    color: #999;
}

.pricing-card ul {
    list-style: none;
    margin: 20px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 10px 0;
    color: #666;
}

.pricing-card ul li::before {
    content: '✓ ';
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

/* Examples Section */
.examples {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
}

.examples h2 {
    color: #667eea;
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
}

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

.example-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.example-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.example-header h4 {
    color: #667eea;
    margin: 0;
}

.example-body {
    padding: 20px;
}

.example-label {
    font-weight: 600;
    color: #764ba2;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
}

.footer a {
    color: white;
    text-decoration: underline;
    margin: 0 10px;
}

.footer a:hover {
    color: #ffd700;
}

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

    .hero .tagline {
        font-size: 18px;
    }

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

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

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

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

    .documentation {
        padding: 20px;
    }
}

/* API Options Table */
.api-options-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.api-options-table thead tr {
    background: #f8f9fa;
}

.api-options-table th {
    padding: 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.api-options-table td {
    padding: 12px;
    border: 1px solid #e0e0e0;
}

/* Syntax Highlighting */
.keyword { color: #c678dd; }
.string { color: #98c379; }
.comment { color: #5c6370; }
.function { color: #61afef; }
.number { color: #d19a66; }
