/* ==========================================================================
   Velk — site institucional
   BEM · tokens da marca · Hanken Grotesk (títulos) + Inter (texto)
   ========================================================================== */

:root {
    --c-violet: #5a4efb;
    --c-violet-deep: #4a3ee8;
    --c-peri: #8b83fe;
    --c-peri-soft: #c9c5ff;
    --c-navy: #1b1652;
    --c-navy-deep: #120e3d;
    --c-navy-black: #0e0b30;
    --c-ink: #1b1652;
    --c-body: #4a4670;
    --c-muted: #6d6a8f;
    --c-lav: #f3f1ff;
    --c-lav-chip: #eeecfe;
    --c-line: #e6e3f7;
    --c-line-strong: #d6d1f5;
    --c-ok: #7ee2a8;
    --c-white: #fff;

    --font-display: 'Hanken Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --shadow-card: 0 24px 60px rgba(27, 22, 82, .10);
    --shadow-deep: 0 40px 90px rgba(14, 11, 48, .45);

    --ease-out: cubic-bezier(.22, .61, .36, 1);
    --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

/* O painel mobile do menu fica fora da tela via transform; sem isso ele cria scroll lateral. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
    html, body { overflow-x: clip; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--c-body);
    background: var(--c-white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--c-ink);
    line-height: 1.15;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
pre { margin: 0; }

::selection { background: var(--c-violet); color: var(--c-white); }

:focus-visible {
    outline: 3px solid var(--c-peri);
    outline-offset: 2px;
    border-radius: 4px;
}

code {
    font-family: var(--font-mono);
    font-size: .88em;
    background: var(--c-lav-chip);
    color: var(--c-violet-deep);
    padding: .12em .42em;
    border-radius: 6px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 32px);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed;
    top: -160px; /* longe o bastante pra sombra não vazar no viewport */
    left: 12px;
    z-index: 300;
    background: var(--c-white);
    color: var(--c-ink);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-card);
    transition: top .2s var(--ease-out);
}

.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    cursor: pointer;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
                background-color .25s var(--ease-out), border-color .25s var(--ease-out);
}

.btn__icon { transition: transform .25s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }

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

.btn--primary:hover {
    background: var(--c-violet-deep);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(90, 78, 251, .38);
}

.btn--ghost {
    background: transparent;
    color: var(--c-white);
    border: 1.5px solid rgba(255, 255, 255, .28);
}

.btn--ghost:hover {
    border-color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-2px);
}

/* Pill da marca: cápsula com seta (padrão dos KVs) */
.btn--kv {
    background: var(--c-white);
    color: var(--c-ink);
    padding: 8px 8px 8px 26px;
    gap: 14px;
}

.btn--kv .btn__label {
    font-weight: 700;
    letter-spacing: .01em;
}

.btn--kv .btn__cap {
    display: grid;
    place-items: center;
    width: 48px;
    height: 36px;
    border-radius: var(--radius-pill);
    background: var(--c-lav-chip);
    color: var(--c-violet);
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out),
                transform .25s var(--ease-out);
}

.btn--kv:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(14, 11, 48, .35);
}

.btn--kv:hover .btn__cap {
    background: var(--c-violet);
    color: var(--c-white);
    transform: translateX(2px);
}

.btn--sm { height: 38px; padding: 0 18px; font-size: 13.5px; }
.btn--lg { font-size: 16px; padding: 16px 32px; }
.btn--lg.btn--kv { padding: 9px 9px 9px 30px; }
.btn--lg.btn--kv .btn__cap { width: 52px; height: 40px; }
.btn--block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--c-violet);
}

.link-arrow svg { transition: transform .25s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--strong { font-weight: 700; white-space: nowrap; }

/* ---------- Header ---------- */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

/* Estado claro: ao rolar, ou fixo nas páginas internas (.header--light).
   Fundo sólido de propósito — backdrop-filter aqui viraria containing block
   do painel fixo do menu mobile e quebraria a composição. */
.header.is-scrolled,
.header--light {
    background: var(--c-white);
    box-shadow: inset 0 -1px 0 var(--c-line);
}

.header.is-scrolled {
    box-shadow: inset 0 -1px 0 var(--c-line), 0 12px 32px rgba(27, 22, 82, .07);
}

.header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header__logo img { height: 34px; width: auto; }

.header__logo-img--color { display: none; }

.header.is-scrolled .header__logo-img--negative,
.header--light .header__logo-img--negative { display: none; }

.header.is-scrolled .header__logo-img--color,
.header--light .header__logo-img--color { display: block; }

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

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__link {
    position: relative;
    font-size: 14.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, .78);
    transition: color .2s var(--ease-out);
    padding: 6px 0;
}

.nav__link:hover { color: var(--c-white); }

.nav__link--active {
    color: var(--c-white);
    font-weight: 600;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-peri);
    transform: translateX(-50%);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ---------- Seletor de idiomas ---------- */

.langswitch { position: relative; }

.langswitch__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 11px;
    border: 1.5px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out),
                color .2s var(--ease-out);
}

.langswitch__toggle:hover {
    border-color: rgba(255, 255, 255, .5);
    color: var(--c-white);
}

.langswitch__current { letter-spacing: .02em; }

.langswitch__chevron { transition: transform .25s var(--ease-out); }
.langswitch.is-open .langswitch__chevron { transform: rotate(180deg); }

.langswitch__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: 14px;
    box-shadow: 0 20px 44px rgba(27, 22, 82, .18);
    padding: 6px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .22s var(--ease-out), transform .22s var(--ease-out),
                visibility .22s var(--ease-out);
    z-index: 130;
}

.langswitch.is-open .langswitch__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.langswitch__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-body);
    transition: background-color .18s var(--ease-out), color .18s var(--ease-out);
}

.langswitch__item:hover { background: var(--c-lav); color: var(--c-ink); }

.langswitch__label { flex: 1; }

.langswitch__item--active { color: var(--c-ink); font-weight: 600; }
.langswitch__check { color: var(--c-violet); flex: none; }

/* Header claro (rolado ou páginas internas): botão do seletor em tinta escura */
.header.is-scrolled .langswitch__toggle,
.header--light .langswitch__toggle {
    border-color: var(--c-line-strong);
    background: transparent;
    color: var(--c-body);
}

.header.is-scrolled .langswitch__toggle:hover,
.header--light .langswitch__toggle:hover {
    border-color: var(--c-violet);
    color: var(--c-ink);
}

.header__toggle {
    display: none;
    position: relative;
    z-index: 120;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header__toggle-bar {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-white);
    transition: transform .3s var(--ease-out);
}

.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.header__toggle[aria-expanded="true"] .header__toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Cores dos links/controles no header claro (só desktop — o painel mobile segue escuro) */
@media (min-width: 861px) {
    .header.is-scrolled .nav__link,
    .header--light .nav__link { color: rgba(27, 22, 82, .72); }

    .header.is-scrolled .nav__link:hover,
    .header--light .nav__link:hover,
    .header.is-scrolled .nav__link--active,
    .header--light .nav__link--active { color: var(--c-ink); }

    .header.is-scrolled .nav__link--active::after,
    .header--light .nav__link--active::after { background: var(--c-violet); }
}

.header.is-scrolled .header__toggle,
.header--light .header__toggle { background: rgba(27, 22, 82, .07); }

.header.is-scrolled .header__toggle-bar,
.header--light .header__toggle-bar { background: var(--c-ink); }

/* Menu aberto: o ✕ flutua sobre o painel escuro, volta a ser branco */
.header .header__toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.header .header__toggle[aria-expanded="true"] .header__toggle-bar { background: var(--c-white); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--header-h) + 88px) 0 88px;
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(90, 78, 251, .38), transparent 62%),
        radial-gradient(760px 460px at 88% -4%, rgba(139, 131, 254, .20), transparent 58%),
        linear-gradient(180deg, #171243 0%, var(--c-navy-deep) 55%, #100c36 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 131, 254, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 131, 254, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 85% 72% at 50% 18%, #000 30%, transparent 74%);
    mask-image: radial-gradient(ellipse 85% 72% at 50% 18%, #000 30%, transparent 74%);
    pointer-events: none;
}

.hero__mark {
    position: absolute;
    top: -60px;
    right: -170px;
    width: 620px;
    height: 940px;
    background: url('images/icone-negativo.svg') top right / contain no-repeat;
    opacity: .05;
    pointer-events: none;
}

.hero .container { position: relative; }

.hero__intro {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-peri-soft);
    border: 1px solid rgba(139, 131, 254, .35);
    background: rgba(139, 131, 254, .08);
    border-radius: var(--radius-pill);
    padding: 9px 18px;
}

.hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-ok);
    box-shadow: 0 0 0 4px rgba(126, 226, 168, .18);
}

.hero__title {
    margin-top: 26px;
    font-size: clamp(3rem, 7.2vw, 5.1rem);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.02;
    color: var(--c-white);
}

.hero__title-accent {
    background: linear-gradient(98deg, #d6d3ff 0%, var(--c-peri) 52%, var(--c-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    max-width: 640px;
    margin: 26px auto 0;
    font-size: 17.5px;
    line-height: 1.68;
    color: rgba(255, 255, 255, .74);
}

.hero__lead code {
    background: rgba(139, 131, 254, .16);
    color: var(--c-peri-soft);
    border: 1px solid rgba(139, 131, 254, .28);
}

/* Cápsula de instalação via skill (o "npm install" do Velk) */
.hero__install {
    max-width: 660px;
    margin: 36px auto 0;
}

.hero__install-hint {
    font-size: 13px;
    letter-spacing: .01em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 10px;
}

.hero__install-cmd {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: rgba(139, 131, 254, .1);
    border: 1px solid rgba(139, 131, 254, .32);
    border-radius: 14px;
    padding: 12px 14px;
}

.hero__install-cmd code {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #d9d6ff;
}

.hero__actions {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Palco (prompt → schema → painel) ---------- */

.stage {
    position: relative;
    margin-top: 84px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.stage__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.stage__col--right { margin-top: 34px; }

.stage__link {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: var(--c-white);
    background: var(--c-violet);
    box-shadow: 0 0 0 8px rgba(90, 78, 251, .18), 0 14px 30px rgba(0, 0, 0, .35);
}

/* Janela de navegador (motivo da marca) */
.browser {
    border-radius: 18px;
    overflow: hidden;
    background: var(--c-white);
    border: 1px solid var(--c-line);
}

.browser__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--c-line);
}

.browser__dots {
    display: inline-flex;
    gap: 5px;
}

.browser__dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-line-strong);
}

.browser__title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .02em;
    color: var(--c-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser--dark {
    background: var(--c-navy-black);
    border-color: rgba(139, 131, 254, .26);
    box-shadow: var(--shadow-deep);
}

.browser--dark .browser__bar { border-color: rgba(139, 131, 254, .18); }
.browser--dark .browser__dots i { background: rgba(139, 131, 254, .4); }
.browser--dark .browser__title { color: rgba(255, 255, 255, .48); }

.browser--panel { box-shadow: var(--shadow-deep); }

/* Código */
.code {
    padding: 18px 20px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .88);
}

.code code { all: unset; font: inherit; }

.tk-k { color: #a49cff; }
.tk-s { color: var(--c-ok); }
.tk-p { color: rgba(255, 255, 255, .42); }
.tk-t { color: var(--c-peri); }
.tk-f { color: #d9d6ff; }
.tk-v { color: var(--c-white); }
.tk-c { color: rgba(255, 255, 255, .34); font-style: italic; }
.tk-h { color: rgba(255, 255, 255, .6); }

.code__line {
    display: inline-block;
    width: calc(100% + 40px);
    margin-inline: -20px;
    padding-inline: 20px;
}

.code__line--add {
    background: rgba(90, 78, 251, .22);
    box-shadow: inset 3px 0 0 var(--c-peri);
}

/* Chat (vibe session) */
.chat {
    border-radius: 18px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(139, 131, 254, .28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 16px 18px 18px;
}

.chat__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 14px;
}

.chat__status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-ok);
    box-shadow: 0 0 0 3px rgba(126, 226, 168, .16);
}

.chat__msg {
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 92%;
}

.chat__msg--user {
    background: var(--c-violet);
    color: var(--c-white);
    border-radius: 14px 14px 4px 14px;
    padding: 10px 14px;
    margin-left: auto;
    width: fit-content;
}

.chat__msg--ai {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 12px;
    color: var(--c-peri-soft);
}

.chat__msg--ai strong { color: var(--c-white); font-weight: 600; }

.chat__spark { flex: none; transform: translateY(1px); color: var(--c-peri); }

.chat__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chat__chip {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--c-ok);
    border: 1px solid rgba(126, 226, 168, .32);
    background: rgba(126, 226, 168, .08);
    border-radius: var(--radius-pill);
    padding: 3px 10px;
}

/* Mini painel admin */
.admin {
    display: flex;
    min-height: 296px;
    background: var(--c-white);
}

.admin__side {
    flex: none;
    width: 122px;
    background: #f7f6fe;
    border-right: 1px solid var(--c-line);
    padding: 14px 10px;
}

.admin__brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    color: var(--c-ink);
    padding: 0 6px 12px;
}

.admin__brand img { height: 15px; width: auto; }

.admin__nav-item {
    font-size: 11px;
    font-weight: 500;
    color: var(--c-muted);
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.admin__nav-item--active {
    background: var(--c-white);
    color: var(--c-violet);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(27, 22, 82, .08);
}

.admin__new {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-white);
    background: var(--c-violet);
    border-radius: var(--radius-pill);
    padding: 2px 6px;
}

.admin__main {
    flex: 1;
    min-width: 0;
    padding: 14px 16px 16px;
}

.admin__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.admin__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--c-ink);
}

.admin__publish {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-white);
    background: var(--c-violet);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
}

.admin__field { min-width: 0; margin-bottom: 10px; }

.admin__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin__label {
    display: block;
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--c-muted);
    margin-bottom: 4px;
}

.admin__input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background: var(--c-white);
    font-size: 12px;
    color: var(--c-ink);
    padding: 7px 10px;
    white-space: nowrap;
    overflow: hidden;
}

.admin__input--select::after {
    content: '▾';
    color: var(--c-peri);
    font-size: 10px;
    margin-left: 8px;
}

.admin__editor {
    border: 1px solid var(--c-line);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 10px;
}

.admin__toolbar {
    display: flex;
    gap: 10px;
    font-size: 10px;
    color: var(--c-muted);
    background: #fafafe;
    border-bottom: 1px solid var(--c-line);
    padding: 6px 10px;
    margin-bottom: 10px;
}

.admin__toolbar b { font-weight: 800; }

.admin__line {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: var(--c-lav-chip);
    margin: 7px 10px 0;
}

/* Terminal */
.term {
    border-radius: 16px;
    overflow: hidden;
    background: #0b0926;
    border: 1px solid rgba(139, 131, 254, .26);
    box-shadow: var(--shadow-deep);
}

.term__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(139, 131, 254, .16);
}

.term__bar .browser__dots i { background: rgba(139, 131, 254, .4); }
.term__bar .browser__title { color: rgba(255, 255, 255, .48); }

.term__body {
    padding: 14px 18px 16px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.85;
    color: rgba(255, 255, 255, .88);
}

.term__prompt { color: var(--c-peri); }

.term__line--dim { color: rgba(255, 255, 255, .55); }
.term__line--ai { color: var(--c-peri-soft); }
.term__line--ok { color: var(--c-ok); }
.term__ok { color: var(--c-ok); }

.term__cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    margin-left: 3px;
    vertical-align: -2px;
    background: var(--c-peri);
    animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.js-type-result {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}

.js-type-result.is-done {
    opacity: 1;
    transform: none;
}

/* Sequência do terminal da seção "como usar" */
.term__body--seq .term__line {
    opacity: 0;
    transform: translateY(6px);
}

.is-visible .term__body--seq .term__line {
    animation: term-in .5s var(--ease-out) forwards;
}

.is-visible .term__body--seq .term__line:nth-child(1) { animation-delay: .15s; }
.is-visible .term__body--seq .term__line:nth-child(2) { animation-delay: .5s; }
.is-visible .term__body--seq .term__line:nth-child(3) { animation-delay: 1s; }
.is-visible .term__body--seq .term__line:nth-child(4) { animation-delay: 1.35s; }
.is-visible .term__body--seq .term__line:nth-child(5) { animation-delay: 1.7s; }
.is-visible .term__body--seq .term__line:nth-child(6) { animation-delay: 2.05s; }
.is-visible .term__body--seq .term__line:nth-child(7) { animation-delay: 2.2s; }
.is-visible .term__body--seq .term__line:nth-child(8) { animation-delay: 2.5s; }
.is-visible .term__body--seq .term__line:nth-child(9) { animation-delay: 2.9s; }

@keyframes term-in {
    to { opacity: 1; transform: none; }
}

/* Badges do hero */
.badges {
    margin-top: 72px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.badges__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
}

.badges__item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--c-peri);
}

/* ---------- Seções ---------- */

.section { padding: 108px 0; }

.section--light { background: var(--c-white); }
.section--tint { background: var(--c-lav); }

.section--navy {
    background:
        radial-gradient(820px 480px at 85% 0%, rgba(90, 78, 251, .28), transparent 60%),
        radial-gradient(640px 420px at 8% 100%, rgba(139, 131, 254, .14), transparent 55%),
        var(--c-navy-deep);
}

.section--violet {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(160deg, #6459fb 0%, var(--c-violet) 45%, #4d41f0 100%);
    background-size: 44px 44px, 44px 44px, auto;
}

.section-head {
    max-width: 660px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-head--left {
    margin-inline: 0;
    text-align: left;
}

.section-head__eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-violet);
    margin-bottom: 14px;
}

.section-head__title {
    font-size: clamp(1.9rem, 3.6vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.section-head__title code {
    font-size: .92em;
    padding: .04em .3em;
    border-radius: 10px;
}

.section-head__lead {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.65;
    color: var(--c-muted);
}

.section-head__lead a {
    color: var(--c-violet);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(90, 78, 251, .35);
}

.section-head--onDark .section-head__eyebrow { color: var(--c-peri); }
.section-head--onDark .section-head__title { color: var(--c-white); }
.section-head--onDark .section-head__lead { color: rgba(255, 255, 255, .68); }

.section-head--onViolet .section-head__eyebrow { color: rgba(255, 255, 255, .72); }
.section-head--onViolet .section-head__title { color: var(--c-white); }
.section-head--onViolet .section-head__lead { color: rgba(255, 255, 255, .85); }

.section-head--onViolet .section-head__lead a {
    color: var(--c-white);
    text-decoration-color: rgba(255, 255, 255, .55);
}

/* ---------- Pilares ---------- */

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pillars__card {
    position: relative;
    overflow: hidden;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 36px 32px 34px;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
                border-color .35s var(--ease-out);
}

.pillars__card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--c-violet), var(--c-peri));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--ease-out);
}

.pillars__card:hover {
    transform: translateY(-6px);
    border-color: var(--c-line-strong);
    box-shadow: var(--shadow-card);
}

.pillars__card:hover::before { transform: scaleX(1); }

.pillars__num {
    display: block;
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(90, 78, 251, .38);
    margin-bottom: 22px;
}

@supports not (-webkit-text-stroke: 1px black) {
    .pillars__num { color: var(--c-lav-chip); }
}

.pillars__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 12px;
}

.pillars__text {
    font-size: 15px;
    line-height: 1.68;
    color: var(--c-muted);
}

/* ---------- Passos (vibe coding) ---------- */

.steps__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 84px);
    align-items: center;
}

.steps .section-head { margin-bottom: 40px; }

.steps__item {
    position: relative;
    display: flex;
    gap: 20px;
    padding-bottom: 30px;
}

.steps__item:last-child { padding-bottom: 0; }

.steps__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 48px;
    bottom: 6px;
    width: 2px;
    background: rgba(255, 255, 255, .32);
}

.steps__num {
    flex: none;
    display: grid;
    place-items: center;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    background: var(--c-white);
    box-shadow: 0 8px 20px rgba(14, 11, 48, .22);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 800;
    color: var(--c-violet);
}

.steps__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--c-white);
}

.steps__text {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
}

.steps__text code {
    background: rgba(255, 255, 255, .16);
    color: var(--c-white);
}

.steps .link-arrow { color: var(--c-white); }

.steps__list { margin-bottom: 34px; }

.steps__demo { min-width: 0; }

/* Box da skill oficial (instalar via Claude Code) */
.skillbox {
    margin-top: 18px;
    background: var(--c-white);
    border-radius: 18px;
    padding: 20px 22px 22px;
    box-shadow: 0 28px 64px rgba(14, 11, 48, .28);
}

.skillbox__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.skillbox__spark { color: var(--c-violet); }

.skillbox__label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-violet);
}

.skillbox__repo {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-muted);
    transition: color .2s var(--ease-out);
}

.skillbox__repo:hover {
    color: var(--c-violet);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.skillbox__hint {
    font-size: 13.5px;
    color: var(--c-muted);
    margin-bottom: 10px;
}

.skillbox__cmd {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-lav);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 12px 14px;
}

.skillbox__cmd code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--c-ink);
    flex: 1;
}

/* Botão de copiar genérico (skillbox, prompts do guia) */
.copybtn {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--c-white);
    color: var(--c-violet);
    cursor: pointer;
    transition: background-color .2s var(--ease-out), color .2s var(--ease-out),
                transform .2s var(--ease-out);
}

.copybtn:hover {
    background: var(--c-violet);
    color: var(--c-white);
    transform: translateY(-1px);
}

.copybtn__icon--check { display: none; }
.copybtn.is-copied { background: var(--c-violet); color: var(--c-white); }
.copybtn.is-copied .copybtn__icon--copy { display: none; }
.copybtn.is-copied .copybtn__icon--check { display: block; }

/* ---------- Bento de recursos ---------- */

.bento__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.bento__card {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
                border-color .35s var(--ease-out);
}

.bento__card:hover {
    transform: translateY(-5px);
    border-color: var(--c-line-strong);
    box-shadow: var(--shadow-card);
}

.bento__card--wide { grid-column: span 2; }

.bento__title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 10px;
}

.bento__text {
    font-size: 14.5px;
    line-height: 1.62;
    color: var(--c-muted);
    max-width: 52ch;
}

.bento__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.bento__chips li {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-violet-deep);
    background: #f1effe;
    border: 1px solid #ddd9fb;
    border-radius: 8px;
    padding: 5px 10px;
}

.bento__snippet {
    margin-top: 20px;
    background: var(--c-navy-black);
    border-radius: 12px;
    padding: 14px 18px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: #d9d6ff;
}

.bento__snippet code { all: unset; font: inherit; }

.bento__more {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(120deg, var(--c-lav), #ecebff);
    border: 1px solid #ddd9fb;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    transition: transform .35s var(--ease-out), border-color .35s var(--ease-out),
                box-shadow .35s var(--ease-out);
}

.bento__more > span:first-child {
    font-size: 15px;
    color: var(--c-body);
    max-width: 64ch;
}

.bento__more:hover {
    transform: translateY(-3px);
    border-color: var(--c-peri);
    box-shadow: var(--shadow-card);
}

/* ---------- Código (navy) ---------- */

.codeshow__grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.codeshow .section-head { margin-bottom: 30px; }

.codeshow__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.codeshow__chips li {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-peri-soft);
    background: rgba(139, 131, 254, .09);
    border: 1px solid rgba(139, 131, 254, .32);
    border-radius: 9px;
    padding: 7px 13px;
}

.codeshow__window { min-width: 0; }

.codeshow__caption {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

/* ---------- Hospedagem (violeta) ---------- */

.host { position: relative; }

.host__mark {
    position: absolute;
    top: -12%;
    right: -10%;
    width: 56%;
    height: 130%;
    background: url('images/icone-negativo.svg') center right / contain no-repeat;
    opacity: .09;
    pointer-events: none;
}

.host .container { position: relative; }

.host__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(40px, 6vw, 84px);
    align-items: center;
}

.host .section-head { margin-bottom: 34px; }

.host__checks {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 14px 34px;
}

.host__checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, .94);
}

.host__checks li::before {
    content: '✓';
    flex: none;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--c-white);
}

.host__intro .btn { margin-top: 30px; }

/* Serviços da Elleven — mais destaque que os checks simples */
.host__services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.host__service {
    display: flex;
    align-items: center;
    gap: 13px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    padding: 16px 18px;
    transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out),
                transform .3s var(--ease-out);
}

.host__service:hover {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .4);
    transform: translateY(-2px);
}

.host__service-icon {
    flex: none;
    color: var(--c-white);
}

.host__service-name {
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--c-white);
}

.host__card {
    background: var(--c-white);
    border-radius: 26px;
    padding: 40px 38px 34px;
    box-shadow: 0 44px 90px rgba(14, 11, 48, .38);
}

.host__flag {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--c-violet);
    margin-bottom: 8px;
}

.host__name {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 20px;
}

.host__list { margin-bottom: 28px; }

.host__list li {
    position: relative;
    padding-left: 28px;
    font-size: 14.5px;
    line-height: 1.58;
    color: var(--c-body);
    margin-bottom: 12px;
}

.host__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--c-violet);
}

.host__reco {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--c-body);
    border-top: 1px solid var(--c-line);
    padding-top: 18px;
    margin-bottom: 22px;
}

.host__reco strong { color: var(--c-ink); }

/* ---------- Footer ---------- */

.footer {
    position: relative;
    overflow: hidden;
    background: var(--c-navy-black);
    padding: 84px 0 34px;
    color: rgba(255, 255, 255, .75);
}

.footer__glow {
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 420px;
    background: radial-gradient(closest-side, rgba(90, 78, 251, .3), transparent);
    pointer-events: none;
}

.footer .container { position: relative; }

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: clamp(32px, 5vw, 56px);
}

.footer__logo { height: 40px; width: auto; }

.footer__tagline {
    margin: 20px 0 12px;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .62);
    max-width: 300px;
}

.footer__tagline code {
    background: rgba(139, 131, 254, .14);
    color: var(--c-peri-soft);
}

.footer__stack {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .38);
}

.footer__title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .46);
    margin-bottom: 18px;
}

.footer__list li { margin-bottom: 11px; }

.footer__link {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .76);
    transition: color .2s var(--ease-out);
}

.footer__link:hover {
    color: var(--c-white);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--c-peri);
}

.footer__link--inline { text-decoration: underline; text-underline-offset: 3px; }

.footer__text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 18px;
}

.footer__bottom {
    margin-top: 68px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__copy, .footer__note {
    font-size: 13px;
    color: rgba(255, 255, 255, .45);
}

.footer__elleven {
    display: inline-flex;
    align-items: center;
    opacity: .7;
    transition: opacity .2s ease;
}

.footer__elleven:hover {
    opacity: 1;
}

.footer__elleven img {
    height: 12px;
    width: auto;
    display: block;
}

/* ---------- Reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--d, 0s);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsivo ---------- */

@media (max-width: 1024px) {
    .stage { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
    .pillars__grid { gap: 18px; }
    .pillars__card { padding: 30px 26px; }
}

@media (max-width: 920px) {
    .section { padding: 84px 0; }

    .pillars__grid { grid-template-columns: 1fr; }
    .steps__grid { grid-template-columns: 1fr; }
    .steps__demo { max-width: 620px; }
    .codeshow__grid { grid-template-columns: 1fr; }
    .host__grid { grid-template-columns: 1fr; }
    .host__mark { opacity: .06; }
    .bento__grid { grid-template-columns: 1fr 1fr; }
    .bento__more { flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .header__toggle { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 110;
        width: min(340px, 86vw);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 10px;
        background: var(--c-navy-deep);
        border-left: 1px solid rgba(139, 131, 254, .2);
        box-shadow: -30px 0 80px rgba(0, 0, 0, .45);
        padding: 110px 34px 34px;
        transform: translateX(105%);
        transition: transform .4s var(--ease-out);
    }

    .nav.is-open { transform: none; }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }

    .nav__link {
        font-family: var(--font-display);
        font-size: 21px;
        font-weight: 600;
        padding: 8px 0;
    }

    .nav__link--active::after {
        left: auto;
        right: -16px;
        bottom: 50%;
        transform: translateY(50%);
    }

    .nav__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 22px;
        width: 100%;
    }

    .nav__actions .btn { width: 100%; height: 46px; padding: 0 22px; font-size: 15px; }

    /* Seletor dentro do drawer escuro: botão claro, menu ancorado à esquerda */
    .langswitch { width: 100%; }

    .nav.is-open .langswitch__toggle {
        width: 100%;
        height: 46px;
        justify-content: space-between;
        border-color: rgba(255, 255, 255, .2);
        background: rgba(255, 255, 255, .06);
        color: rgba(255, 255, 255, .82);
    }

    .langswitch__menu { left: 0; right: auto; width: 100%; }

    .hero { padding-top: calc(var(--header-h) + 56px); }

    .stage { grid-template-columns: 1fr; }
    .stage__col--right { margin-top: 0; }
    .stage__link {
        margin: -4px auto;
        transform: rotate(90deg);
        width: 46px;
        height: 46px;
    }

    .badges { margin-top: 52px; }
}

@media (max-width: 560px) {
    .section { padding: 68px 0; }

    .hero__eyebrow {
        font-size: 11px;
        letter-spacing: .06em;
        padding: 8px 14px;
    }

    .hero__lead { font-size: 16px; }
    .hero__install-cmd { align-items: flex-start; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .hero__mark { display: none; }

    .admin__side { width: 104px; }
    .admin__row { grid-template-columns: 1fr; }

    .bento__grid { grid-template-columns: 1fr; }
    .bento__card--wide { grid-column: auto; }

    .host__checks { grid-template-columns: 1fr; }
    .host__services { grid-template-columns: 1fr; }
    .host__card { padding: 30px 24px 26px; }

    .footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Movimento reduzido ---------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    [data-reveal] { opacity: 1; transform: none; }
    .term__body--seq .term__line { opacity: 1; transform: none; }
    .js-type-result { opacity: 1; transform: none; }
}

/* ==========================================================================
   Páginas internas
   ========================================================================== */

/* Hero claro de página interna */
.page-hero {
    padding: calc(var(--header-h) + 72px) 0 0;
    background: var(--c-white);
}

.page-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.page-hero--left .page-hero__inner {
    margin-inline: 0;
    max-width: 780px;
    text-align: left;
}

.page-hero__eyebrow {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-violet);
    margin-bottom: 14px;
}

.page-hero__title {
    font-size: clamp(2.3rem, 4.6vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.page-hero__lead {
    margin-top: 18px;
    font-size: 17.5px;
    line-height: 1.68;
    color: var(--c-muted);
}

.page-hero--left .page-hero__lead { max-width: 62ch; }

/* Primeira section após o page-hero respira menos */
.section--tight { padding-top: 64px; }

/* Grade dos 17 tipos de campo (fundo navy) */
.fields__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.fields__card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(139, 131, 254, .22);
    border-radius: 16px;
    padding: 20px 20px 18px;
    transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out),
                transform .3s var(--ease-out);
}

.fields__card:hover {
    background: rgba(139, 131, 254, .09);
    border-color: rgba(139, 131, 254, .45);
    transform: translateY(-3px);
}

.fields__name {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--c-peri-soft);
    margin-bottom: 8px;
}

.fields__name::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-violet);
}

.fields__text {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .64);
}

/* Guia passo a passo (como usar) */
.guide {
    max-width: 860px;
    margin: 0 auto;
}

.guide__step {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 64px;
}

.guide__step:last-child { padding-bottom: 0; }

.guide__step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 66px;
    bottom: 10px;
    width: 2px;
    background: var(--c-line-strong);
}

.guide__num {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--c-violet);
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(90, 78, 251, .35);
}

.guide__title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 14px 0 10px;
}

.guide__step > div { min-width: 0; }

.guide__text {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--c-muted);
    max-width: 62ch;
}

.guide__text + .guide__text { margin-top: 10px; }

.guide__text a {
    color: var(--c-violet);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(90, 78, 251, .35);
}

.guide__media { margin-top: 22px; }

.guide__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.guide__chips li {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--c-violet-deep);
    background: var(--c-lav-chip);
    border: 1px solid #ddd9fb;
    border-radius: var(--radius-pill);
    padding: 6px 14px;
}

/* Guia dentro de seção violeta (etapa "Construção" do como-usar) */
.section--violet .guide__step:not(:last-child)::before { background: rgba(255, 255, 255, .32); }

.section--violet .guide__num {
    background: var(--c-white);
    color: var(--c-violet);
    box-shadow: 0 10px 24px rgba(14, 11, 48, .24);
}

.section--violet .guide__title { color: var(--c-white); }
.section--violet .guide__text { color: rgba(255, 255, 255, .85); }

.section--violet .guide__text code {
    background: rgba(255, 255, 255, .16);
    color: var(--c-white);
}

.section--violet .guide__text a {
    color: var(--c-white);
    text-decoration-color: rgba(255, 255, 255, .55);
}

.section--violet .guide__chips li {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .25);
    color: var(--c-white);
}

/* Dicas de prompt (seção navy) */
.tips__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
}

.tips__title {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--c-white);
    margin-bottom: 6px;
}

.tips__text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .62);
    margin-bottom: 14px;
}

/* Prompt copiável */
.promptcard {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-lav);
    border: 1px solid var(--c-line);
    border-radius: 14px;
    padding: 14px 16px;
}

.promptcard + .promptcard { margin-top: 12px; }

.promptcard code {
    flex: 1;
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--c-ink);
}

/* Sobre fundo escuro: box translúcido como o comando do hero */
.section--navy .promptcard {
    background: rgba(139, 131, 254, .1);
    border-color: rgba(139, 131, 254, .32);
}

.section--navy .promptcard code { color: #d9d6ff; }

.section--violet .promptcard {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .28);
}

.section--violet .promptcard code { color: var(--c-white); }

/* Faixa final de CTA */
.cta { text-align: center; }

.cta__title {
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--c-white);
}

.cta__lead {
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .7);
}

.cta__actions {
    margin-top: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Documentação */
.docs { padding: 56px 0 108px; }

.docs__grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.docs__nav {
    position: sticky;
    top: calc(var(--header-h) + 28px);
}

.docs__nav-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--c-muted);
    margin-bottom: 14px;
}

.docs__nav-list li { margin-bottom: 2px; }

.docs__nav-link {
    display: block;
    font-size: 14px;
    color: var(--c-muted);
    padding: 7px 14px;
    border-left: 2px solid var(--c-line);
    transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}

.docs__nav-link:hover { color: var(--c-ink); }

.docs__nav-link.is-active {
    color: var(--c-violet);
    border-color: var(--c-violet);
    font-weight: 600;
}

.docs__content { min-width: 0; }

.docs__section {
    scroll-margin-top: calc(var(--header-h) + 28px);
    padding-bottom: 52px;
    border-bottom: 1px solid var(--c-line);
    margin-bottom: 52px;
}

.docs__section:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.docs__section h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 16px;
}

.docs__section h3 {
    font-size: 17.5px;
    font-weight: 700;
    margin: 30px 0 10px;
}

.docs__section p {
    font-size: 15px;
    line-height: 1.72;
    color: var(--c-body);
    margin-bottom: 12px;
    max-width: 72ch;
}

.docs__section ul {
    margin: 0 0 14px;
    padding-left: 20px;
}

.docs__section ul li {
    list-style: disc;
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-body);
    margin-bottom: 6px;
}

.docs__section ol {
    margin: 0 0 14px;
    padding-left: 22px;
}

.docs__section ol li {
    list-style: decimal;
    font-size: 15px;
    line-height: 1.7;
    color: var(--c-body);
    margin-bottom: 6px;
}

.docs__tablewrap {
    overflow-x: auto;
    margin: 16px 0 10px;
}

.docs__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.docs__table th {
    text-align: left;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-muted);
    padding: 9px 12px;
    border-bottom: 2px solid var(--c-line-strong);
    white-space: nowrap;
}

.docs__table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-body);
    vertical-align: top;
    line-height: 1.55;
}

.docs__table td:first-child {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--c-violet-deep);
    white-space: nowrap;
}

.docs__window { margin: 18px 0 10px; }

.docs__note {
    background: var(--c-lav);
    border: 1px solid var(--c-line);
    border-left: 3px solid var(--c-violet);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--c-body);
    margin: 16px 0;
    max-width: 72ch;
}

/* Responsivo das páginas internas */
@media (max-width: 920px) {
    .tips__grid { grid-template-columns: 1fr; }

    .docs__grid { grid-template-columns: 1fr; gap: 32px; }

    .docs__nav { position: static; }

    .docs__nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .docs__nav-list li { margin: 0; }

    .docs__nav-link {
        border: 1px solid var(--c-line);
        border-radius: var(--radius-pill);
        padding: 7px 15px;
        font-size: 13px;
    }

    .docs__nav-link.is-active {
        border-color: var(--c-violet);
        background: var(--c-lav-chip);
    }

    .fields__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .page-hero { padding-top: calc(var(--header-h) + 48px); }

    .fields__grid { grid-template-columns: 1fr; }

    .guide__step { grid-template-columns: 44px minmax(0, 1fr); gap: 18px; }
    .guide__num { width: 44px; height: 44px; font-size: 15px; }
    .guide__step:not(:last-child)::before { left: 21px; top: 54px; }
    .guide__title { font-size: 19px; margin-top: 8px; }

    .promptcard { align-items: flex-start; }
}
