/* Documentação API — estilo hub (inspirado em docs modernos) */

.np-docs-hero {
    position: relative;
    text-align: center;
    padding: 5rem 1.25rem 4.5rem;
    background: linear-gradient(145deg, #0c1220 0%, #134e4a 42%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.np-docs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45, 212, 191, 0.12), transparent 70%);
    pointer-events: none;
}

.np-docs-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 52rem;
    margin: 0 auto;
}

.np-docs-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.np-docs-hero p {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.np-docs-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2rem;
}

.np-docs-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, background 0.2s;
}

.np-docs-btn--primary {
    background: #2dd4bf;
    color: #042f2e;
}

.np-docs-btn--primary:hover {
    background: #5eead4;
}

.np-docs-btn--ghost {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.np-docs-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.np-docs-hub {
    background: #0a0a0a;
    color: #e4e4e7;
}

.np-docs-section {
    max-width: 68rem;
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.np-docs-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.np-docs-section > p.np-docs-lead {
    opacity: 0.72;
    line-height: 1.75;
    margin-bottom: 1.75rem;
    max-width: 48rem;
}

.np-docs-code {
    display: block;
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #a7f3d0;
    overflow-x: auto;
}

.np-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.np-docs-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.35rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.np-docs-card:hover {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.06);
    transform: translateY(-2px);
}

.np-docs-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(45, 212, 191, 0.15);
    color: #5eead4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.np-docs-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

.np-docs-card p {
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.65;
}

.np-docs-principle {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.np-docs-principle h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.np-docs-principle p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.7;
}

.np-docs-more-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #042f2e;
    background: #5eead4;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.np-docs-more-btn:hover {
    background: #2dd4bf;
}

.np-docs-more-grid {
    display: none;
    margin-top: 2rem;
}

.np-docs-more-grid.is-open {
    display: grid;
}

.np-docs-site .np-docs-content {
    background: #0a0a0a !important;
    color: #e4e4e7 !important;
}

.np-docs-site .np-docs-demo-bar p {
    color: #fcd34d;
}

.np-docs-demo-bar {
    background: rgba(245, 158, 11, 0.12);
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
    padding: 0.75rem 1.25rem;
}

.np-docs-demo-bar p {
    max-width: 68rem;
    margin: 0 auto;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fcd34d;
    text-align: center;
}

.np-docs-demo-bar a {
    color: inherit;
    font-weight: 700;
}

@media (min-width: 768px) {
    .np-docs-hero {
        padding: 6.5rem 2rem 5.5rem;
    }

    .np-docs-section {
        padding: 4rem 2rem;
    }
}
