/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #6b7280;
    background: #fff;
    transition:
        background-color 0.3s,
        color 0.3s;
}
html.dark body {
    background: #111827;
    color: #9ca3af;
}
h1,
h2,
h3 {
    color: #1f2937;
    line-height: 1.2;
}
html.dark h1,
html.dark h2,
html.dark h3 {
    color: #f9fafb;
}
a {
    color: #1a56db;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}
html.dark header {
    background: rgba(17, 24, 39, 0.9);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a56db;
}
html.dark .logo {
    color: #fff;
}
.logo:hover {
    text-decoration: none;
}
.nav-desktop {
    display: none;
    gap: 2rem;
}
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}
.nav-desktop a {
    color: #6b7280;
    font-weight: 500;
}
.nav-desktop a:hover {
    color: #1a56db;
    text-decoration: none;
}
html.dark .nav-desktop a {
    color: #9ca3af;
}
html.dark .nav-desktop a:hover {
    color: #60a5fa;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.theme-toggle,
.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6b7280;
    border-radius: 0.5rem;
}
.theme-toggle:hover,
.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
html.dark .theme-toggle,
html.dark .mobile-menu-btn {
    color: #9ca3af;
}
html.dark .theme-toggle:hover,
html.dark .mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}
.mobile-menu-btn {
    display: block;
}
@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}
.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
}
html.dark .nav-mobile {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: #111827;
}
.nav-mobile a {
    padding: 0.75rem 0;
    color: #6b7280;
    font-weight: 500;
}
html.dark .nav-mobile a {
    color: #9ca3af;
}

/* Hero */
.hero {
    padding: 8rem 0 5rem;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(26, 86, 219, 0.05),
        rgba(249, 115, 22, 0.05)
    );
}
html.dark .hero {
    background: linear-gradient(
        135deg,
        rgba(26, 86, 219, 0.1),
        rgba(249, 115, 22, 0.1)
    );
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}
.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}
.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-primary {
    background: #1a56db;
    color: #fff;
}
.btn-primary:hover {
    background: #1e40af;
}
.btn-secondary {
    background: #fff;
    color: #1a56db;
    border: 2px solid #1a56db;
}
html.dark .btn-secondary {
    background: transparent;
    color: #60a5fa;
    border-color: #60a5fa;
}
.hero-endpoint {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
html.dark .hero-endpoint {
    background: rgba(31, 41, 55, 0.8);
}
.hero-endpoint code {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 1rem;
    color: #1a56db;
}
html.dark .hero-endpoint code {
    color: #60a5fa;
}

/* Sections */
section {
    padding: 5rem 0;
}
section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Benefits */
.benefits {
    background: #fff;
}
html.dark .benefits {
    background: #111827;
}
.benefits-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.benefit-card {
    padding: 2rem;
    border-radius: 1rem;
    background: #f9fafb;
}
html.dark .benefit-card {
    background: rgba(31, 41, 55, 0.5);
}
.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}
.benefit-icon {
    display: inline-flex;
    padding: 0.75rem;
    background: rgba(26, 86, 219, 0.1);
    color: #1a56db;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
}
.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Usage */
.usage {
    background: #f9fafb;
}
html.dark .usage {
    background: rgba(17, 24, 39, 0.5);
}
.usage-content {
    max-width: 700px;
    margin: 0 auto;
}
.usage-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.step-number {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a56db;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}
.step-content {
    min-width: 0;
    overflow: hidden;
}
.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.endpoint-code {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 0.375rem;
    font-family: "SF Mono", Monaco, monospace;
    margin-top: 0.5rem;
}
html.dark .endpoint-code {
    background: #1f2937;
}
.response-preview {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    font-family: "SF Mono", Monaco, monospace;
    margin-top: 0.5rem;
    max-width: 100%;
}
@media (max-width: 480px) {
    .response-preview {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}

/* Code Examples */
.examples {
    background: #fff;
}
html.dark .examples {
    background: #111827;
}
.examples-container {
    max-width: 800px;
    margin: 0 auto;
}
.example-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.example-tab {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    color: #6b7280;
}
html.dark .example-tab {
    background: #374151;
    color: #9ca3af;
}
.example-tab.active {
    background: #1a56db;
    color: #fff;
}
html.dark .example-tab.active {
    background: #2563eb;
}
.example-code {
    background: #1f2937;
    border-radius: 0.75rem;
    overflow: hidden;
}
.example-code pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 0;
}
.example-code code {
    font-family: "SF Mono", Monaco, monospace;
    font-size: 0.875rem;
    color: #e5e7eb;
    line-height: 1.6;
}

/* Schema */
.schema {
    background: #fff;
}
html.dark .schema {
    background: #111827;
}
.schema-container {
    max-width: 800px;
    margin: 0 auto;
}
.schema-block {
    background: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
html.dark .schema-block {
    background: rgba(31, 41, 55, 0.5);
}
.schema-block h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.schema-block h3 code {
    background: #1a56db;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}
.schema-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.schema-table th,
.schema-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
html.dark .schema-table th,
html.dark .schema-table td {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.schema-table th {
    font-weight: 600;
    color: #1f2937;
}
html.dark .schema-table th {
    color: #f9fafb;
}
.schema-table code {
    background: #e5e7eb;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}
html.dark .schema-table code {
    background: #374151;
}
@media (max-width: 480px) {
    .schema-block {
        overflow-x: auto;
    }
    .schema-table {
        font-size: 0.8rem;
    }
    .schema-table th,
    .schema-table td {
        padding: 0.5rem;
    }
}
.schema-example {
    background: #1f2937;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}
.schema-example code {
    color: #e5e7eb;
    font-family: "SF Mono", Monaco, monospace;
    font-size: 0.8rem;
    white-space: pre;
}

/* Accuracy */
.accuracy {
    background: linear-gradient(135deg, #1a56db, #1e40af);
    color: #fff;
}
.accuracy-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .accuracy-content {
        flex-direction: row;
        text-align: left;
    }
}
.accuracy-icon {
    flex-shrink: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}
.accuracy-text h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .accuracy-text h2 {
        text-align: left;
    }
}
.accuracy-text p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}
.accuracy-disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* FAQ */
.faq {
    background: #f9fafb;
}
html.dark .faq {
    background: rgba(17, 24, 39, 0.5);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}
html.dark .faq-item {
    background: #1f2937;
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
}
html.dark .faq-question {
    color: #f9fafb;
}
.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}
html.dark .faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}
.faq-chevron {
    transition: transform 0.2s;
    color: #6b7280;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: #6b7280;
}
html.dark .faq-answer {
    color: #9ca3af;
}
.faq-item.open .faq-answer {
    display: block;
}

/* Facts */
.facts {
    background: #fff;
}
html.dark .facts {
    background: #111827;
}
.facts-content {
    max-width: 800px;
    margin: 0 auto;
}
.facts-intro {
    text-align: center;
    margin-bottom: 3rem;
}
.facts-intro p {
    font-size: 1.125rem;
}
.fact-card {
    background: #f9fafb;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}
html.dark .fact-card {
    background: rgba(31, 41, 55, 0.5);
}
.fact-card h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.fact-icon {
    display: inline-flex;
    padding: 0.5rem;
    background: rgba(26, 86, 219, 0.1);
    color: #1a56db;
    border-radius: 0.5rem;
}
.fact-card p {
    margin-bottom: 1rem;
}
.fact-card p:last-child {
    margin-bottom: 0;
}
.fact-card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.fact-card li {
    margin-bottom: 0.5rem;
}
.fact-highlight {
    background: rgba(26, 86, 219, 0.1);
    border-left: 4px solid #1a56db;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin: 1.5rem 0;
}
html.dark .fact-highlight {
    background: rgba(26, 86, 219, 0.2);
}

/* Security Badges */
.security-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
}
.security-label {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
html.dark .security-label {
    color: #9ca3af;
}
.badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.security-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-decoration: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.security-badge:hover {
    border-color: #1a56db;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.15);
    text-decoration: none;
}
html.dark .security-badge {
    background: #1f2937;
    border-color: #374151;
}
html.dark .security-badge:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}
.badge-grade {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}
html.dark .badge-grade {
    color: #34d399;
}
.badge-source {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}
html.dark .badge-source {
    color: #d1d5db;
}

/* Footer */
footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 3rem 0;
}
.footer-content {
    text-align: center;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-copyright {
    margin-top: 1rem;
    font-size: 0.875rem;
}
