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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #1E293B;
    --accent: #10B981;
    --bg-light: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-dark: #1E293B;
    --text-light: #64748B;
    --border: #E2E8F0;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

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

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

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

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

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

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

/* Footer */
.footer {
    background: var(--secondary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer p {
    margin: 0.5rem 0;
    color: #94A3B8;
}

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

.hero h1 {
    font-size: 3rem;
    color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

/* Features */
.features {
    padding: 4rem 0;
}

.features h2 {
    text-align: center;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

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

/* Models */
.models {
    padding: 4rem 0;
    background: white;
}

.model-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 2rem auto 0;
}

.model-info ul {
    list-style: none;
    margin-top: 1rem;
}

.model-info li {
    margin: 0.5rem 0;
    color: var(--text-light);
}

.model-price {
    text-align: right;
}

.price-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.price-unit {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 4rem 0;
    background: var(--primary);
    color: white;
}

.cta h2 {
    color: white;
}

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

/* Pricing Page */
.pricing-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
}

.pricing-section {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    border: 2px solid transparent;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-tokens {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.plan-price {
    margin: 1.5rem 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

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

.pricing-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-light);
}

.pricing-note a {
    color: var(--primary);
}

/* Pricing FAQ */
.pricing-faq {
    padding: 4rem 0;
    background: white;
}

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

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Docs Page */
.docs-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
}

.docs-content {
    padding: 3rem 0;
}

.docs-content .container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
}

.docs-nav {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin: 0.75rem 0;
}

.docs-nav a {
    color: var(--text-light);
    text-decoration: none;
}

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

.doc-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.code-block {
    background: #1E293B;
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
}

.endpoint {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

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

.error-table th {
    background: var(--bg-light);
    font-weight: 600;
}

/* Contact Page */
.contact-hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #EEF2FF 0%, #F8FAFC 100%);
}

.contact-section {
    padding: 3rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-item {
    margin: 1rem 0;
}

.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Success Page */
.success-section {
    padding: 4rem 0;
}

.success-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.order-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    text-align: left;
}

.order-details h3 {
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.next-steps {
    font-weight: 500;
    margin-top: 1.5rem;
}

.steps-list {
    text-align: left;
    margin: 1rem 0 2rem 2rem;
}

.steps-list li {
    margin: 0.5rem 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .model-card {
        flex-direction: column;
        text-align: center;
    }
    
    .model-price {
        text-align: center;
        margin-top: 1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .docs-content .container {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Nav Buttons */
.nav-links { gap: 1rem; align-items: center; }
.nav-btn { padding: 6px 16px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.nav-btn-primary { background: #4F46E5; color: white; }
.nav-btn-primary:hover { background: #4338CA; }
.nav-btn-outline { border: 1.5px solid #4F46E5; color: #4F46E5; }
.nav-btn-outline:hover { background: #4F46E5; color: white; }
