/* ArautoFlow — site público.
   CSS puro de propósito: o deploy (cPanel) não tem etapa de build com Node. */

:root {
    --canvas: #0B0E11;
    --surface: #1A1F25;
    --surface-2: #12161B;
    --primary: #00DD80;
    --primary-2: #00B86B;
    --primary-hover: #00C270;
    --muted: #94A3B8;
    --muted-2: #64748B;
    --text: #FFFFFF;
    --line: rgba(255, 255, 255, .06);
    --line-2: rgba(255, 255, 255, .1);
    --glow: 0 4px 15px rgba(0, 221, 128, .2);
    --glow-hover: 0 4px 30px rgba(0, 221, 128, .4);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, .4);
    --shadow-card-hover: 0 30px 60px rgba(0, 0, 0, .6);
    --radius: 20px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, 'Cascadia Code', Menlo, Consolas, monospace;
    --nav-h: 80px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--canvas); color: var(--text); font-family: var(--font);
    font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--primary); color: #000; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 880px; }
.container-xs { max-width: 760px; }
.relative { position: relative; }
.center { text-align: center; }
.muted { color: var(--muted); }
.accent { color: var(--primary); }
.icon { width: 1em; height: 1em; flex: none; }

/* ---------- fundo ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .14; will-change: transform; }
.blob-1 { background: var(--primary); width: 600px; height: 600px; top: -10%; left: -10%; animation: float 15s ease-in-out infinite; }
.blob-2 { background: #3b82f6; width: 500px; height: 500px; top: 40%; right: -5%; opacity: .08; animation: float 20s ease-in-out infinite reverse; }
.blob-3 { background: var(--primary); width: 400px; height: 400px; bottom: -10%; left: 20%; animation: float 25s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-30px) scale(1.05); } }

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; min-height: 640px; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-bg img, .section-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; mix-blend-mode: screen; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 14, 17, .6), rgba(11, 14, 17, .9) 60%, var(--canvas)), linear-gradient(90deg, var(--canvas), transparent); }
.section-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--canvas), rgba(11, 14, 17, .88) 35%, rgba(11, 14, 17, .88) 65%, var(--canvas)); }
.page { position: relative; z-index: 1; }

/* ---------- navegação ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
    background: rgba(11, 14, 17, .7); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s;
}
.nav.is-scrolled { background: rgba(11, 14, 17, .88); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; transition: opacity .2s; }
.brand:hover { opacity: .85; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--glow); }
.brand__dot { color: var(--primary); }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(26, 31, 37, .6); color: var(--text); align-items: center; justify-content: center; cursor: pointer; font-size: 22px; }
.nav__menu { display: none; }

@media (max-width: 860px) {
    :root { --nav-h: 68px; }
    .brand { font-size: 1.2rem; }
    .brand img { width: 38px; height: 38px; }
    .nav__links { display: none; }
    .nav__toggle { display: inline-flex; }
    .nav__menu {
        position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49; padding: 12px 24px 24px;
        background: rgba(11, 14, 17, .97); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
    }
    .nav__menu.is-open { display: block; }
    .nav__menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--muted); }
    .nav__menu a:hover, .nav__menu a[aria-current="page"] { color: var(--text); }
    .nav__menu a:last-child { border-bottom: 0; }
}

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; position: relative; overflow: hidden;
    padding: 16px 32px; border-radius: 12px; font: 800 1rem/1.2 var(--font); cursor: pointer; border: 0;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s, background-color .3s;
}
.btn-primary { background: var(--primary); color: #000; }
.btn-primary::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); transition: left .5s ease; }
.btn-primary:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--glow-hover); }
.btn-primary:hover::after { left: 100%; }
.btn-secondary { background: rgba(26, 31, 37, .6); backdrop-filter: blur(12px); color: var(--text); font-weight: 600; border: 1px solid var(--line-2); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1); }
.btn-secondary:hover { background: rgba(255, 255, 255, .06); transform: translateY(-2px); }
.btn-sm { padding: 10px 22px; font-size: .875rem; font-weight: 700; gap: 8px; }
.btn .icon { font-size: 1.15em; transition: transform .3s; }
.btn:hover .icon-move { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.btn-row.center { justify-content: center; }
@media (max-width: 520px) { .btn-row .btn { width: 100%; } }

/* ---------- selos e títulos ---------- */
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
    background: rgba(26, 31, 37, .4); border: 1px solid rgba(0, 221, 128, .3); color: var(--primary);
    font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; box-shadow: var(--glow);
}
.pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.pill__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--primary); animation: ping 1.5s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.tag {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 6px;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--primary);
    font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.text-gradient { background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.text-gradient-primary { background: linear-gradient(135deg, #00DD80 0%, #00B86B 60%, #008850 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.section { position: relative; z-index: 1; padding: 120px 0; }
.section-tight { padding: 72px 0; }
.section-bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .tag { margin-bottom: 20px; }
.h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 760px) { .section { padding: 80px 0; } .section-head { margin-bottom: 44px; } }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 72px) 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 4.5rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.05; margin: 24px 0; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 580px; margin-bottom: 40px; line-height: 1.7; font-weight: 500; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 40px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero__checks span { display: inline-flex; align-items: center; gap: 8px; }
.hero__checks .icon { color: var(--primary); font-size: 1.15rem; }
.hero-in > * { animation: rise-in 1s cubic-bezier(.16, 1, .3, 1) both; }
.hero-in > *:nth-child(2) { animation-delay: .1s; }
.hero-in > *:nth-child(3) { animation-delay: .2s; }
.hero-in > *:nth-child(4) { animation-delay: .3s; }
.hero-in > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.page-hero { position: relative; z-index: 1; padding: calc(var(--nav-h) + 96px) 0 64px; text-align: center; }
.page-hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; max-width: 100%; height: 600px; background: rgba(0, 221, 128, .1); border-radius: 50%; filter: blur(120px); pointer-events: none; z-index: -1; }
.page-hero .tag { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.75rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.08; margin-bottom: 24px; }
.page-hero p { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 680px; margin: 0 auto; }

/* ---------- mockup de aparelhos (hero) ---------- */
.devices { position: relative; height: 600px; perspective: 2000px; }
.devices__orb { position: absolute; top: 50%; left: 50%; width: 400px; height: 400px; transform: translate(-50%, -50%); background: rgba(0, 221, 128, .2); filter: blur(120px); border-radius: 50%; }
.device-set { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; animation: device-cycle 15s infinite; }
.device-set:nth-child(3) { animation-delay: 5s; }
.device-set:nth-child(4) { animation-delay: 10s; }
.device-set .device-hw { animation: device-rise 15s infinite; animation-delay: inherit; }
.device-set .notif { animation: notif-in 15s infinite; animation-delay: inherit; }
.device-set { visibility: hidden; }
@keyframes device-cycle { 0%, 32% { opacity: 1; visibility: visible; } 33.3%, 100% { opacity: 0; visibility: hidden; } }
@keyframes device-rise { 0% { opacity: 0; transform: translateY(50px) scale(.95); } 5%, 29% { opacity: 1; transform: none; } 33% { opacity: 0; transform: translateY(-20px) scale(.98); } 100% { opacity: 0; } }
@keyframes notif-in { 0%, 4% { opacity: 0; transform: translateX(var(--from, 50px)) scale(.9); } 9%, 29% { opacity: 1; transform: none; } 33% { opacity: 0; transform: translateY(-20px) scale(.98); } 100% { opacity: 0; } }
.screen { position: relative; width: 100%; height: 100%; background: url('banner.webp') center / cover; }
.screen::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.phone { position: relative; width: 280px; height: 560px; border-radius: 40px; border: 8px solid #1a1a1a; background: #000; overflow: hidden; box-shadow: 0 0 50px rgba(0, 0, 0, .5); }
.phone__notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 128px; height: 24px; background: #1a1a1a; border-radius: 0 0 20px 20px; z-index: 2; }
.phone__status { position: absolute; top: 32px; left: 24px; right: 24px; display: flex; justify-content: space-between; font-size: .6rem; font-weight: 700; color: rgba(255, 255, 255, .9); z-index: 2; }
.tablet { position: relative; width: 520px; height: 360px; border-radius: 24px; border: 12px solid #1a1a1a; background: #000; overflow: hidden; box-shadow: 0 0 50px rgba(0, 0, 0, .5); }
.laptop { position: relative; width: 600px; height: 380px; border-radius: 16px 16px 0 0; border: 4px solid #1a1a1a; border-bottom: 0; background: var(--canvas); overflow: hidden; box-shadow: 0 0 50px rgba(0, 0, 0, .5); }
.laptop__bar { height: 40px; background: #1a1a1a; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.laptop__bar i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; }
.laptop__bar i:nth-child(2) { background: #eab308; }
.laptop__bar i:nth-child(3) { background: #22c55e; }
.laptop__bar b { margin-left: 16px; width: 256px; height: 24px; background: rgba(0, 0, 0, .5); border-radius: 6px; border: 1px solid var(--line); }
.laptop__base { width: 640px; height: 16px; background: #222; border-radius: 0 0 8px 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.notif {
    position: absolute; z-index: 3; width: 320px; padding: 16px; border-radius: 22px;
    background: rgba(255, 255, 255, .1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 25px 50px rgba(0, 0, 0, .4);
}
.notif__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.notif__head img { width: 24px; height: 24px; border-radius: 6px; }
.notif__head small { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, .5); font-size: .68rem; }
.notif__title { font-weight: 700; font-size: .95rem; line-height: 1.3; margin-bottom: 4px; }
.notif__body { font-size: .8rem; color: rgba(255, 255, 255, .8); line-height: 1.45; }
.notif--phone { top: 120px; right: 20px; }
.notif--tablet { top: 70px; left: 40px; --from: -50px; border-radius: 16px; }
.notif--laptop { top: 90px; right: 10px; background: rgba(30, 30, 30, .9); border-color: var(--line-2); border-radius: 16px; }
.notif--laptop .notif__head { color: #94a3b8; }
@media (max-width: 1024px) {
    .hero { min-height: 0; }
    .hero__grid { grid-template-columns: 1fr; }
    .devices { display: none; }
}

/* ---------- cartões ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.glass { background: rgba(26, 31, 37, .4); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--line); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08); border-radius: var(--radius); }
.card {
    background: rgba(26, 31, 37, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.175, .885, .32, 1.275), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(0, 221, 128, .3); box-shadow: var(--shadow-card-hover); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.card p { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.card .card__text { flex-grow: 1; margin-bottom: 24px; }
.card-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .2)); border: 1px solid var(--line-2);
    color: var(--primary); font-size: 28px; box-shadow: inset 0 2px 4px rgba(255, 255, 255, .05); transition: background .3s, box-shadow .3s;
}
.card:hover .card-icon { background: rgba(0, 221, 128, .1); box-shadow: 0 0 20px rgba(0, 221, 128, .2); }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: .875rem; }

/* passos */
.steps { position: relative; }
.steps::before { content: ''; position: absolute; top: 72px; left: 15%; width: 70%; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 221, 128, .3), transparent); }
.step { text-align: center; align-items: center; }
.step__num { width: 80px; height: 80px; border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--surface); border: 1px solid var(--line-2); color: var(--primary); font-size: 1.9rem; font-weight: 900; }
.step--hl { border-color: rgba(0, 221, 128, .3); box-shadow: var(--glow); }
.step--hl .step__num { border-color: rgba(0, 221, 128, .3); box-shadow: var(--glow); }
@media (max-width: 1024px) { .steps::before { display: none; } }

/* ---------- blocos de destaque (duas colunas) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .tag { margin-bottom: 24px; }
.split .h2 { margin-bottom: 24px; }
.split .lead { margin-bottom: 32px; }
@media (max-width: 1024px) { .split { grid-template-columns: 1fr; gap: 48px; } }
.points { display: grid; gap: 8px; }
.point { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 16px; transition: background .2s; }
.point:hover { background: rgba(255, 255, 255, .04); }
.point__icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: var(--primary); font-size: 22px; box-shadow: var(--glow); }
.point h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.point p { font-size: .9rem; color: var(--muted); }

/* convite simulado (igual ao do SDK) */
.prompt-demo { position: relative; padding: 40px 28px; overflow: hidden; }
.prompt-demo__page { display: grid; gap: 10px; margin-bottom: 28px; }
.prompt-demo__page i { display: block; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.prompt-demo__page i:nth-child(1) { width: 45%; height: 16px; background: rgba(255, 255, 255, .1); }
.prompt-demo__page i:nth-child(3) { width: 85%; }
.prompt-demo__page i:nth-child(4) { width: 70%; }
.af-prompt { max-width: 380px; margin: 0 auto; background: #fff; color: #111827; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35); padding: 18px; font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.af-prompt__row { display: flex; gap: 12px; align-items: flex-start; }
.af-prompt__row img { width: 40px; height: 40px; border-radius: 10px; }
.af-prompt strong { display: block; font-size: 15px; margin-bottom: 2px; }
.af-prompt__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.af-prompt__actions span { border-radius: 8px; padding: 9px 14px; font-weight: 600; }
.af-prompt__no { color: #6b7280; }
.af-prompt__yes { background: var(--primary-2); color: #fff; }
.prompt-demo__note { margin-top: 20px; display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.prompt-demo__note .icon { color: #fbbf24; font-size: 1.1rem; margin-top: 2px; }

/* funil do relatório */
.funnel { padding: 32px; }
.funnel__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; font-weight: 700; }
.funnel__title small { font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.funnel__row { margin-bottom: 18px; }
.funnel__label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 8px; color: #cbd5e1; font-weight: 600; }
.funnel__label span:last-child { color: var(--muted-2); font-weight: 500; font-size: .78rem; }
.funnel__bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.funnel__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-2), var(--primary)); box-shadow: 0 0 12px rgba(0, 221, 128, .35); }
.funnel__error { margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: rgba(244, 63, 94, .08); border: 1px solid rgba(244, 63, 94, .2); font-size: .82rem; color: #fda4af; line-height: 1.55; }
.funnel__error code { display: block; font-size: .72rem; color: #fb7185; margin-bottom: 4px; }

/* ---------- mini-mockups dos cartões de funcionalidades ---------- */
.mini { margin-top: auto; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .72rem; overflow: hidden; }
.mini--mono { font-family: var(--mono); font-size: .68rem; line-height: 1.9; color: #cbd5e1; }
.mini__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--muted-2); font-family: var(--mono); font-size: .62rem; }
.mini__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.mini__bar i:nth-child(2) { background: #eab308; }
.mini__bar i:nth-child(3) { background: #22c55e; margin-right: 4px; }
.mini .k { color: #93c5fd; }
.mini .s { color: #fde047; }
.mini .c { color: var(--muted-2); }
.mini .ok { color: var(--primary); }
.mini .bad { color: #fb7185; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); color: #cbd5e1; font-size: .7rem; font-weight: 600; }
.chip--on { background: rgba(0, 221, 128, .1); border-color: rgba(0, 221, 128, .3); color: var(--primary); }
.mini-prompt { background: #fff; color: #111827; border-radius: 8px; padding: 10px; font-family: system-ui, sans-serif; }
.mini-prompt b { display: block; font-size: .72rem; }
.mini-prompt span { font-size: .66rem; color: #4b5563; }
.mini-prompt div { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; font-size: .64rem; font-weight: 700; }
.mini-prompt div em { font-style: normal; color: #6b7280; padding: 3px 6px; }
.mini-prompt div strong { background: var(--primary-2); color: #fff; padding: 3px 8px; border-radius: 5px; }
.mini-bars { display: grid; gap: 6px; }
.mini-bars div { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 8px; color: var(--muted); font-size: .64rem; }
.mini-bars b { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--primary-2), var(--primary)); }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mini-cal i { aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.mini-cal i.on { background: var(--primary); box-shadow: 0 0 10px rgba(0, 221, 128, .5); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: #cbd5e1; }
.mini-row + .mini-row { margin-top: 6px; }
.mini-row--on { background: rgba(0, 221, 128, .1); border-color: rgba(0, 221, 128, .25); color: #fff; }

/* ---------- casos de uso ---------- */
.use { padding: 32px; transition: border-color .3s; }
.use:hover { border-color: rgba(0, 221, 128, .3); }
.use h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.use p { font-size: .9rem; color: var(--muted); line-height: 1.7; }
.use .point__icon { margin-bottom: 24px; box-shadow: none; }

/* ---------- chamada final ---------- */
.cta { position: relative; z-index: 1; padding: 96px 0; text-align: center; border-top: 1px solid var(--line); }
.cta .h2 { font-size: clamp(1.75rem, 3.6vw, 2.25rem); }
.cta p { color: var(--muted); margin: 0 auto 32px; max-width: 560px; }

/* ---------- documentação ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs__toc { position: sticky; top: calc(var(--nav-h) + 24px); font-size: .875rem; }
.docs__toc p { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.docs__toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line-2); color: var(--muted); transition: color .2s, border-color .2s; }
.docs__toc a:hover { color: var(--text); border-color: var(--primary); }
.docs__body { display: grid; gap: 40px; min-width: 0; }
@media (max-width: 960px) { .docs { grid-template-columns: 1fr; } .docs__toc { display: none; } }

.doc {
    position: relative; overflow: hidden; padding: 40px; border-radius: var(--radius);
    background: rgba(26, 31, 37, .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.doc::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--doc-accent, var(--primary)); opacity: .55; transition: opacity .3s; }
.doc:hover::before { opacity: 1; }
.doc--blue { --doc-accent: #3b82f6; --doc-accent-soft: rgba(59, 130, 246, .3); }
.doc--amber { --doc-accent: #f59e0b; --doc-accent-soft: rgba(245, 158, 11, .3); }
.doc--emerald { --doc-accent: #10b981; --doc-accent-soft: rgba(16, 185, 129, .3); }
.doc--violet { --doc-accent: #a78bfa; --doc-accent-soft: rgba(167, 139, 250, .3); }
.doc__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.doc__head .point__icon { color: var(--doc-accent, var(--primary)); box-shadow: 0 0 15px var(--doc-accent-soft, rgba(0, 221, 128, .3)); }
.doc h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.doc h3 { font-size: 1.05rem; font-weight: 700; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--muted); line-height: 1.75; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc strong { color: #e2e8f0; }
.doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.doc :not(pre) > code, .legal code { font-size: .85em; color: var(--primary); background: rgba(0, 221, 128, .1); padding: 2px 6px; border-radius: 4px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .doc { padding: 28px 20px; } .doc h2 { font-size: 1.25rem; } }

.ide { margin-top: 24px; background: var(--canvas); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 25px 50px rgba(0, 0, 0, .4); }
.ide__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ide__bar i { width: 12px; height: 12px; border-radius: 50%; background: #f43f5e; }
.ide__bar i:nth-child(2) { background: #f59e0b; }
.ide__bar i:nth-child(3) { background: #10b981; }
.ide__bar span { margin-left: 12px; font-family: var(--mono); font-size: .75rem; color: var(--muted); }
.ide__copy { margin-left: auto; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: var(--muted); font: 600 .72rem var(--font); cursor: pointer; transition: color .2s, border-color .2s; }
.ide__copy:hover { color: var(--text); border-color: rgba(0, 221, 128, .4); }
.ide pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-size: .82rem; line-height: 1.85; color: #cbd5e1; tab-size: 2; }
.ide .t-c { color: #64748b; font-style: italic; }
.ide .t-s { color: #fde047; }
.ide .t-k { color: #f472b6; }
.ide .t-n { color: #93c5fd; }
@media (max-width: 640px) { .ide pre { padding: 18px 16px; font-size: .75rem; } }

.callout { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: rgba(0, 221, 128, .06); border: 1px solid rgba(0, 221, 128, .2); }
.callout h4 { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.callout p, .callout li { font-size: .88rem; }
.callout--warn { background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .22); }
.callout--warn h4 { color: #fb7185; }
.callout--warn p, .callout--warn li { color: rgba(253, 164, 175, .85); }

.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th, .table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table th { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); background: rgba(255, 255, 255, .02); }
.table td { color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { white-space: nowrap; }
.table td:first-child code { color: var(--primary); background: none; padding: 0; }

/* ---------- páginas legais ---------- */
.legal-main { position: relative; z-index: 1; padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal-main h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.legal-main .updated { color: var(--muted-2); font-size: .875rem; margin-bottom: 32px; }
.legal { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 40px; color: var(--muted); line-height: 1.8; }
.legal h2 { color: var(--text); font-size: 1.35rem; font-weight: 700; margin: 36px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: #e2e8f0; }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .legal { padding: 28px 20px; } }

/* ---------- 404 ---------- */
.err { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 40px) 24px 80px; text-align: center; }
.err__inner { max-width: 560px; }
.smoke { position: relative; width: 100px; height: 200px; margin: 0 auto 24px; }
.smoke i { position: absolute; bottom: 0; left: 50%; width: 40px; height: 20px; border-radius: 50px; background: rgba(255, 255, 255, .2); filter: blur(8px); opacity: 0; transform: translateX(-50%); animation: smoke 4s ease-in infinite; }
.smoke i:nth-child(2) { animation-delay: 1.2s; }
.smoke i:nth-child(3) { animation-delay: 2.4s; }
.smoke .icon { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); color: var(--primary); font-size: 48px; }
@keyframes smoke { 0% { bottom: 0; transform: translateX(-50%) scale(1); opacity: .8; } 50% { opacity: .4; } 100% { bottom: 150px; transform: translateX(-50%) scale(3); opacity: 0; } }
.err h1 { font-size: clamp(4rem, 14vw, 6rem); font-weight: 900; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; }
.err__kicker { color: var(--primary); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .875rem; margin-bottom: 24px; }
.err p { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; font-weight: 500; }

/* ---------- rodapé ---------- */
.footer { position: relative; z-index: 1; overflow: hidden; padding: 80px 0 40px; border-top: 1px solid var(--line); }
.footer .section-bg img { opacity: .1; }
.footer .section-bg::after { background: linear-gradient(180deg, var(--canvas), rgba(11, 14, 17, .75)); }
.footer__grid { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer__about { color: var(--muted); max-width: 400px; margin-top: 24px; line-height: 1.7; }
.footer h4 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.footer ul a:hover { color: var(--primary); }
.footer__bottom { position: relative; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
    .device-set { animation: none; }
    .device-set:nth-child(2) { opacity: 1; visibility: visible; }
    .device-set .device-hw, .device-set .notif { animation: none; opacity: 1; }
}
