/* Index page variables (hsl-component format for index page) */
:root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 98%;
    --secondary: 0 0% 96.1%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --accent: 0 0% 96.1%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 0 0% 3.9%;
    --radius: 0.5rem;
    --success: 142.1 76.2% 36.3%;
    --gradient-primary: linear-gradient(180deg, hsl(0, 0%, 9%) 0%, hsl(0, 0%, 25%) 100%);
    --shadow-glow: 0 0 60px -12px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
}

a {
    color: inherit;
    font-weight: 500;
}

.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
    outline: none;
    height: 2.25rem;
}

.btn:focus-visible {
    box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: hsl(var(--primary) / 0.9);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: hsl(var(--secondary) / 0.8);
}

.btn-lg {
    padding: 0.5rem 1.5rem;
    height: 2.5rem;
    font-size: 0.875rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border));
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary-foreground));
}

.logo-text {
    font-size: 1rem;
    font-weight: 600;
}

.nav {
    display: none;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav a {
    font-size: 0.8125rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.nav a:hover {
    color: hsl(var(--foreground));
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 3rem;
    position: relative;
    overflow: hidden;
    background: hsl(var(--background));
}

.hero::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: hsl(var(--primary) / 0.05);
    border-radius: 50%;
    filter: blur(120px);
}

.hero-content {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
    padding: 4rem 1rem;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out;
}

.badge-primary {
    background: hsl(var(--primary) / 0.1);
    border: 1px solid hsl(var(--primary) / 0.2);
    color: hsl(var(--primary));
}

.badge-success {
    background: hsl(var(--success) / 0.1);
    border: 1px solid hsl(var(--success) / 0.2);
    color: hsl(var(--success));
}

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out 0.1s both;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

.gradient-text {
    background: linear-gradient(135deg, hsl(var(--foreground)) 0%, hsl(var(--muted-foreground)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    max-width: 36rem;
    margin: 0 auto 2rem;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

@media (min-width: 768px) {
    .hero-stats {
        gap: 4rem;
    }
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .stat-value {
        font-size: 2.25rem;
    }
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.25rem;
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-alt {
    background: hsl(var(--muted) / 0.5);
}

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

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-header p {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .feature-row {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }

    .feature-row-reverse {
        grid-template-columns: 1.5fr 1fr;
    }

    .feature-row-reverse .feature-image {
        order: 2;
    }
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-large img {
    border-radius: 15px;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-row {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.feature-row.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.icon-xl {
    width: 4rem;
    height: 4rem;
}

.feature-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.feature-content p {
    font-size: 1rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-endpoint {
    display: inline-block;
    background: hsl(var(--muted) / 0.5);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-family: 'JetBrains Mono', monospace;
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
}

/* Legacy feature card styles (kept for compatibility) */
.feature-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s;
    box-shadow: none;
}

.feature-card:hover {
    border-color: hsl(var(--border));
    box-shadow: var(--shadow-sm);
    background: hsl(var(--accent) / 0.5);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary)/0.1);
    color: hsl(var(--primary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.feature-endpoint {
    display: inline-block;
    background: hsl(var(--secondary));
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: hsl(var(--primary));
}

/* Result Comparison */
.comparison-grid {
    max-width: 72rem;
    margin: 0 auto;
}

.comparison-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 60px;
    background: hsl(var(--background));
    z-index: 40;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 768px) {
    .comparison-header {
        gap: 1.5rem;
    }
}

.comparison-header-item {
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.comparison-header-item.highlight {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-weight: 600;
}

.comparison-header-item:not(.highlight) {
    background: hsl(var(--secondary));
    color: hsl(var(--muted-foreground));
}

.comparison-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .comparison-row {
        gap: 1.5rem;
    }
}

.comparison-item {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    background: repeating-conic-gradient(hsl(var(--muted)/0.3) 0% 25%, transparent 0% 50%) 0 0/16px 16px;
}

.comparison-item.highlight {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 1px hsl(var(--primary));
}

.comparison-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.comparison-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: hsl(var(--success));
    color: white;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

/* Video Demo */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 64rem;
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.video-item {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
    transition: all 0.3s;
    background: hsl(var(--card));
}

.video-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: hsl(var(--foreground));
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, hsl(var(--foreground) / 0.8), transparent);
    padding: 0.75rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.video-cta {
    text-align: center;
}

.video-cta-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .video-cta-box {
        flex-direction: row;
    }
}

.video-cta-text h3 {
    font-weight: 600;
}

.video-cta-text p {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* Pricing */
.pricing-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 5rem;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.pricing-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 0.3s;
    position: relative;
}

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

.pricing-card.popular {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-sm);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-desc {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-period {
    color: hsl(var(--muted-foreground));
}

.pricing-divider {
    border-top: 1px solid hsl(var(--border));
    padding-top: 1.5rem;
}

.pricing-limits {
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-requests {
    font-weight: 600;
    font-size: 0.875rem;
}

.pricing-rate {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.pricing-features li.highlight {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.check-icon {
    color: hsl(var(--success));
    flex-shrink: 0;
}

/* Price Comparison Table */
.price-table {
    max-width: 56rem;
    margin: 0 auto;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.price-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 12px;
    background: hsl(var(--muted));
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.875rem;
    font-weight: 600;
}

.price-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 12px;
    border-bottom: 1px solid hsl(var(--border));
    align-items: center;
    font-size: 0.875rem;
}

.price-table-row:last-child {
    border-bottom: none;
}

.price-table-row.highlight {
    background: hsl(var(--primary) / 0.05);
}

.provider-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provider-name.muted {
    color: hsl(var(--muted-foreground));
}

.strikethrough {
    text-decoration: line-through;
    color: hsl(var(--muted-foreground));
}

.price-highlight {
    color: hsl(var(--primary));
    font-weight: 700;
    font-size: 1.125rem;
}

.comparison-tag {
    font-size: 0.75rem;
    font-weight: 500;
}

.comparison-tag.negative {
    color: hsl(var(--destructive));
}

.comparison-tag.positive {
    background: hsl(var(--primary));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* Code Example */
.code-container {
    max-width: 48rem;
    margin: 0 auto;
}

.code-block {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.code-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.5);
    padding: 0 1rem;
}

.code-tab-list {
    display: flex;
    gap: 0.25rem;
}

.code-tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.code-tab:hover {
    color: hsl(var(--foreground));
}

.code-tab.active {
    color: hsl(var(--primary));
    border-bottom-color: hsl(var(--primary));
}

.code-content {
    padding: 1.5rem;
    background: hsl(222 47% 11% / 0.95);
    overflow-x: auto;
    color: white;
}

.code-content pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre;
}

.code-panel {
    display: none;
}

.code-panel.active {
    display: block;
}

.response-block {
    margin-top: 1.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
}

.response-header {
    padding: 0.75rem 1rem;
    background: hsl(var(--muted) / 0.5);
    border-bottom: 1px solid hsl(var(--border));
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}

.response-content {
    padding: 1.5rem;
}

.response-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-badge {
    background: hsl(var(--success) / 0.15);
    color: hsl(var(--success));
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--success) / 0.2);
}

/* FAQ */
.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.2s;
}

.faq-item.open {
    border-color: hsl(var(--border));
    background: hsl(var(--muted) / 0.5);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.0rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: hsl(var(--foreground));
}

.faq-icon {
    transition: transform 0.2s;
    color: hsl(var(--muted-foreground));
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-content {
    padding: 0 1.5rem 1.25rem;
    color: hsl(var(--muted-foreground));
}

/* Footer */
.footer {
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--muted) / 0.3);
    padding: 0.8rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: hsl(var(--foreground));
}

.footer-copyright {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
}

/* Icons */
.icon {
    width: 1.25rem;
    height: 1.25rem;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility */
.text-center {
    text-align: center;
}

.mb-6 {
    margin-bottom: 1.5rem;
}