/* ===== Home Page ===== */
.home-hero {
    text-align: center;
    padding: 72px 40px 56px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}
.home-hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.home-badge {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.home-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--text);
}
.home-title-accent { color: var(--primary); }
.home-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.home-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
    background: var(--bg-hover);
    border-radius: 12px;
    padding: 20px 0;
}
.home-stat-item { text-align: center; flex: 1; }
.home-stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
}
.home-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.home-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}
.home-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.home-btn-primary {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: #fff;
    transition: all 0.2s;
}
.home-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,.2); }
.home-btn-secondary {
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    transition: all 0.2s;
}
.home-btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Sections */
.home-section { margin-bottom: 40px; }
.home-section-header { margin-bottom: 16px; }
.home-section-header h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.home-section-header p { font-size: 0.85rem; color: var(--text-muted); }

/* Quick Start */
.home-quickstart { margin-bottom: 40px; }
.home-quickstart-header { margin-bottom: 16px; }
.home-quickstart-header h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.home-quickstart-header p { font-size: 0.85rem; color: var(--text-muted); }
.home-steps { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.home-step {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.15s;
}
.home-step:hover { border-color: var(--primary); }
.home-step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}
.home-step-body h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.home-step-body p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.home-step-arrow { display: none; }
.home-code-block {
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    background: #1e1e2e;
}
.home-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #181825;
    border-bottom: 1px solid #313244;
    font-size: 0.8rem;
    color: #a6adc8;
}
.home-code-copy {
    font-size: 0.75rem;
    padding: 4px 12px;
    border: 1px solid #45475a;
    border-radius: 4px;
    background: transparent;
    color: #cdd6f4;
    cursor: pointer;
    transition: background 0.15s;
}
.home-code-copy:hover { background: #313244; }
.home-code {
    padding: 16px;
    font-size: 0.82rem;
    line-height: 1.7;
    overflow-x: auto;
    margin: 0;
}
.home-code code { font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace; color: #cdd6f4; }

/* Hot APIs */
.home-hot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}
.home-hot-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.home-hot-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(59,130,246,.08); }
.home-hot-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.home-hot-info { flex: 1; min-width: 0; }
.home-hot-name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.home-hot-path { font-size: 0.75rem; color: var(--text-muted); font-family: 'SF Mono', 'Fira Code', monospace; margin-top: 2px; }
.home-hot-calls { font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; font-weight: 500; }

/* Categories */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.home-cat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.home-cat-card:hover { border-color: var(--primary); background: var(--primary-bg); }
.home-cat-icon { font-size: 1.15rem; flex-shrink: 0; }
.home-cat-name { font-size: 0.85rem; font-weight: 600; color: var(--text); flex: 1; }
.home-cat-count { font-size: 0.72rem; color: var(--text-muted); flex-shrink: 0; background: var(--bg-hover); padding: 2px 6px; border-radius: 4px; }

/* CTA */
.home-cta {
    text-align: center;
    padding: 56px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.home-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}
.home-cta h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.home-cta p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 28px; }
.home-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Dark mode */
:root.dark .home-code-block { background: #1e1e2e; border-color: #313244; }
:root.dark .home-code-header { background: #181825; border-color: #313244; }
:root.dark .home-code-copy { border-color: #45475a; color: #cdd6f4; }
:root.dark .home-code-copy:hover { background: #313244; }
:root.dark .home-code code { color: #cdd6f4; }
:root.dark .home-btn-primary { background: #89b4fa; color: #1e1e2e; }
:root.dark .home-btn-primary:hover { opacity: 0.9; box-shadow: 0 4px 12px rgba(137,180,250,.15); }

/* Responsive */
@media (max-width: 640px) {
    .home-hero { padding: 48px 20px 36px; }
    .home-title { font-size: 1.7rem; }
    .home-stats { gap: 0; padding: 16px 0; }
    .home-stat-num { font-size: 1.4rem; }
    .home-steps { flex-direction: column; }
    .home-hot-grid { grid-template-columns: 1fr; }
    .home-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .home-btns { flex-direction: column; }
    .home-btn-primary, .home-btn-secondary { text-align: center; }
    .home-cta-btns { flex-direction: column; align-items: center; }
}
