/* ── Typography ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
}

h1, h2, h3, h4 {
    letter-spacing: -0.3px;
}

/* ── Navbar ── */
.navbar-home {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    transition: box-shadow 0.3s ease;
}

.navbar-home.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-home .nav-link {
    font-weight: 500;
    color: #4b5563;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease;
}

.navbar-home .nav-link:hover,
.navbar-home .nav-link.active {
    color: #4f46e5;
}

.navbar-home .navbar-brand {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.25rem;
}

.navbar-home .navbar-brand i {
    color: #4f46e5;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.85);
}

.hero-code {
    background: #1e1b4b;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-code .code-header {
    background: #312e81;
    border-radius: 12px 12px 0 0;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-code .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.hero-code .dot-red { background: #ef4444; }
.hero-code .dot-yellow { background: #eab308; }
.hero-code .dot-green { background: #22c55e; }

.hero-code pre {
    margin: 0;
    padding: 1.25rem;
    color: #e0e7ff;
    background: transparent;
    border: none;
    font-size: 0.82rem;
    line-height: 1.7;
}

.hero-code .text-indigo { color: #a5b4fc; }
.hero-code .text-green { color: #86efac; }
.hero-code .text-yellow { color: #fde68a; }
.hero-code .text-gray { color: #6b7280; }

/* ── Stats bar ── */
.stats-bar {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
    padding: 1rem 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #4f46e5;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* ── Features ── */
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-card {
    padding: 1.75rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
    border-color: #c7d2fe;
}

/* ── Demo ── */
.demo-section {
    background: #f8fafc;
}

.demo-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.demo-card .card-header {
    background: #1e1b4b;
    color: #e0e7ff;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
    border: none;
}

.demo-response {
    background: #0f172a;
    color: #e0e7ff;
    font-size: 0.82rem;
    line-height: 1.7;
    min-height: 240px;
    max-height: 360px;
    overflow-y: auto;
    margin: 0;
    padding: 1.25rem;
    border-radius: 0;
}

/* ── Code Examples ── */
.code-tabs .nav-link {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px 8px 0 0;
}

.code-tabs .nav-link.active {
    color: #4f46e5;
    background: #1e1b4b;
    color: #e0e7ff;
}

.code-block {
    background: #1e1b4b;
    color: #e0e7ff;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.7;
    margin: 0;
    overflow-x: auto;
}

/* ── Endpoints ── */
.endpoint-method {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    min-width: 42px;
    text-align: center;
    display: inline-block;
}

.endpoint-path {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.88rem;
    color: #4b5563;
}

/* ── FAQ ── */
.faq-section .accordion-button {
    font-weight: 600;
    color: #1f2937;
    font-size: 1rem;
}

.faq-section .accordion-button:not(.collapsed) {
    color: #4f46e5;
    background: #f5f3ff;
}

.faq-section .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* ── CTA ── */
.cta-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

/* ── Footer ── */
.footer {
    background: #0f172a;
    color: #94a3b8;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #e2e8f0;
}

/* ── Buttons ── */
.btn-primary-custom {
    background: #4f46e5;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: #4338ca;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-kofi {
    background: #ff5e5b;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.45rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-kofi:hover {
    background: #e04542;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 94, 91, 0.4);
}

.btn-outline-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* ── Utility ── */
.section-padding {
    padding: 5rem 0;
}

.text-indigo {
    color: #4f46e5;
}

.bg-indigo-soft {
    background: #eef2ff;
}

.bg-emerald-soft {
    background: #ecfdf5;
}

.bg-amber-soft {
    background: #fffbeb;
}

.bg-rose-soft {
    background: #fff1f2;
}

.text-emerald {
    color: #059669;
}

.text-amber {
    color: #d97706;
}

.text-rose {
    color: #e11d48;
}
