/* Interfala Docs — identidade visual alinhada ao site e ao app */
:root {
    --purple: #7130f0;
    --purple-light: #ae62ff;
    --purple-deep: #4d387d;
    --ink: #100a3c;
    --ink-soft: #1a1340;
    --ink-darker: #0a0728;
    --lavender: #f7f5fc;
    --lavender-deep: #efeaf8;
    --cyan: #00ffd2;
    --pink: #dd8cf5;
    --font-display: 'Sora', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter Tight', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: #fff;
}

/* ---------- Header ---------- */
.docs-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0 1.5rem;
    height: 64px;
    background: var(--ink);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.docs-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple) 0%, var(--pink) 55%, var(--cyan) 100%);
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.docs-brand img { width: 32px; height: 32px; display: block; }

.docs-brand .name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}

.docs-brand .name b { font-weight: 800; }

.docs-brand .tag {
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 500;
    padding: .2rem .55rem;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(0, 255, 210, .1);
    border: 1px solid rgba(0, 255, 210, .25);
}

.docs-switch {
    display: inline-flex;
    padding: 3px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .07);
}

.docs-switch a {
    padding: .4rem .9rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    transition: all .2s;
}

.docs-switch a:hover { color: #fff; }

.docs-switch a.active {
    background: var(--purple);
    color: #fff;
}

.docs-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.docs-nav a {
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    transition: color .2s;
}

.docs-nav a:hover { color: #fff; }

.docs-nav .btn {
    padding: .5rem 1rem;
    border-radius: 10px;
    background: var(--purple);
    color: #fff;
    font-weight: 600;
    transition: all .2s;
}

.docs-nav .btn:hover {
    background: var(--purple-light);
    transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.docs-hero {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 1.5rem 2.25rem;
    background:
        radial-gradient(60% 120% at 85% 0%, rgba(113, 48, 240, .45) 0%, transparent 60%),
        radial-gradient(40% 90% at 100% 100%, rgba(0, 255, 210, .12) 0%, transparent 60%),
        var(--ink-darker);
    color: #fff;
}

.docs-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.docs-hero h1 {
    margin: 0 0 .5rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.docs-hero p {
    margin: 0;
    max-width: 560px;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.55;
}

.docs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.docs-pill {
    padding: .55rem .85rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    font-size: .8rem;
    color: rgba(255, 255, 255, .7);
}

.docs-pill b {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    color: #fff;
}

/* ---------- Footer ---------- */
.docs-footer {
    padding: 1.25rem 1.5rem;
    background: var(--ink);
    color: rgba(255, 255, 255, .6);
    font-size: .8rem;
    text-align: center;
}

.docs-footer a { color: var(--purple-light); text-decoration: none; }
.docs-footer a:hover { text-decoration: underline; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .docs-nav a:not(.btn) { display: none; }
}

@media (max-width: 640px) {
    .docs-header { padding: 0 1rem; gap: .75rem; }
    .docs-brand .tag { display: none; }
    .docs-nav .btn { padding: .45rem .7rem; font-size: .8rem; }
    .docs-switch a { padding: .35rem .65rem; font-size: .8rem; }
}
