:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-dark: #08080d;
    --text: #e4e4e7;
    --text-muted: #8b8b9e;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --border: #1e1e2e;
    --green: #22c55e;
    --blue: #3b82f6;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
    color: var(--text-muted);
    background: transparent;
}

.btn-ghost:hover { color: var(--text); }

/* Hero */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.08);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-code {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 28px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-method {
    color: var(--green);
    font-weight: 600;
    margin-right: 10px;
}

.code-url { color: var(--text-muted); }

/* Sections */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-dark);
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.01em;
}

/* Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s;
}

.card:hover { border-color: rgba(99, 102, 241, 0.4); }

.card-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Source cards */
.source-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.source-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.source-provider {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.source-card p:last-child {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* API table */
.api-table {
    max-width: 720px;
    margin: 0 auto 32px;
}

.api-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.method {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 52px;
    text-align: center;
}

.method.get { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.method.post { background: rgba(59, 130, 246, 0.15); color: var(--blue); }

.api-row code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text);
    flex: 1;
}

.api-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.api-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.api-note a { color: var(--accent); }

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 24px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-sub br { display: none; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .nav-links a:not(.btn) { display: none; }
    .api-desc { display: none; }
    .footer-inner { flex-direction: column; gap: 12px; }
}
