/* ===== Landing Page - API Gateway ===== */

/* Hero Section */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-dollar {
    display: inline;
}

.stat-suffix {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Code Demo */
.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.code-demo {
    width: 100%;
    max-width: 520px;
    background: #0d1117;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-tabs {
    display: flex;
    gap: 2px;
}

.code-tab {
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.code-tab:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}
.code-tab.active {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.15);
}

.code-body {
    padding: 20px;
    overflow-x: auto;
}

.code-block {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e6edf3;
    margin: 0;
    white-space: pre;
}

.code-block .kw { color: #ff7b72; }
.code-block .lib { color: #ffa657; }
.code-block .cls { color: #79c0ff; }
.code-block .var { color: #e6edf3; }
.code-block .param { color: #ffa657; }
.code-block .str { color: #a5d6ff; }
.code-block .fn { color: #d2a8ff; }
.code-block .num { color: #79c0ff; }
.code-block .comment { color: #8b949e; }
.code-block .highlight { color: #7ee787; font-weight: 600; }

.code-footer {
    padding: 10px 16px;
    background: rgba(99, 102, 241, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.code-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Models Section */
.models {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.models-filter {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    flex: 1;
    max-width: 300px;
}

.filter-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}
.filter-search input::placeholder {
    color: var(--text-muted);
}

.filter-search svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}
.filter-tag:hover {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
}
.filter-tag.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Models Table */
.models-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.models-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.models-table thead {
    background: rgba(255, 255, 255, 0.03);
    position: sticky;
    top: 0;
    z-index: 5;
}

.models-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.models-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}
.models-table th.sortable:hover {
    color: var(--text-primary);
}
.models-table th.sortable .sort-icon {
    opacity: 0.3;
    font-size: 10px;
    margin-left: 4px;
}
.models-table th.sortable.sorted-asc .sort-icon,
.models-table th.sortable.sorted-desc .sort-icon {
    opacity: 1;
    color: var(--accent-primary);
}

.models-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.models-table tbody tr {
    transition: var(--transition);
}
.models-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.04);
}

.models-table .model-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    white-space: nowrap;
}

.models-table .model-provider {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.models-table .price-low {
    color: var(--accent-green);
    font-weight: 600;
}

.model-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.model-tag-new {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}
.model-tag-hot {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}
.model-tag-partner {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-orange);
}

.models-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0 4px;
}

.models-footer span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Features */
.features {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

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

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

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

.feature-preview {
    background: #0d1117;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-code-snippet {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #8b949e;
    white-space: pre;
}
.feature-code-snippet .comment { color: #8b949e; }
.feature-code-snippet .highlight { color: #7ee787; font-weight: 600; }

/* Pricing */
.pricing {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.2);
}

.pricing-card-featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
    transform: scale(1.05);
}
.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
}

.pricing-tier {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-price {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 24px;
}
.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 32px;
}
.pricing-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.pricing-features li.disabled {
    color: var(--text-muted);
}

/* CTA */
.cta {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
}

.cta h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 24px 60px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual {
        width: 100%;
    }
    .code-demo {
        max-width: 100%;
    }
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    .feature-card-large {
        grid-column: span 2;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-card-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .pricing-card-featured {
        transform: none;
    }
    .models-filter {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-search {
        max-width: 100%;
    }
    .code-body {
        padding: 12px;
    }
    .code-block {
        font-size: 11px;
    }
    .models-table th,
    .models-table td {
        padding: 10px 12px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
