/* =========================================================
   Guia de Ferramenta — estilos globais
   Direção: SaaS técnico. Base clara + hero navy profundo,
   1 cor de marca (azul elétrico) + neutros.
   ========================================================= */

:root {
    --navy-900: #0b1020;
    --navy-800: #111834;
    --navy-700: #1b2547;
    --brand:    #4f6dff;
    --brand-600:#3b56e6;
    --brand-300:#8ea2ff;

    --ink:      #10131c;
    --muted:    #5b6478;
    --muted-2:  #8a92a6;
    --line:     #e6e8ef;
    --bg:       #ffffff;
    --bg-soft:  #f5f6fb;

    --ok:       #12b76a;
    --warn:     #f59e0b;
    --danger:   #e5484d;

    --radius:   16px;
    --radius-sm:10px;
    --shadow:   0 1px 2px rgba(16,19,28,.04), 0 12px 32px rgba(16,19,28,.06);
    --shadow-lg:0 24px 60px rgba(11,16,32,.18);

    --font-sans: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Sora', var(--font-sans);
}

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

html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 100;
    background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-sans); font-weight: 700; font-size: 15px;
    padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(79,109,255,.28); }
.btn-primary:hover { background: var(--brand-600); }

.btn-outline { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }

.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand-600); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(11,16,32,.82);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 10px; color: #fff;
    background: linear-gradient(135deg, var(--brand), #7a5cff);
}
.logo-text { font-size: 18px; letter-spacing: -.01em; }
.logo-text strong { font-weight: 800; }

.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav > a:not(.btn) { color: rgba(255,255,255,.8); font-weight: 600; font-size: 15px; }
.header-nav > a:not(.btn):hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background:
        radial-gradient(1200px 500px at 80% -10%, rgba(79,109,255,.28), transparent 60%),
        radial-gradient(800px 400px at 0% 10%, rgba(122,92,255,.18), transparent 55%),
        var(--navy-900);
    color: #fff;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px; mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
    padding: 92px 0 100px;
}
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand-300); background: rgba(79,109,255,.12); border: 1px solid rgba(79,109,255,.3);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.eyebrow--light { color: var(--brand-600); background: rgba(79,109,255,.1); border-color: rgba(79,109,255,.22); }
.hero-title { font-size: clamp(34px, 5vw, 56px); font-weight: 800; text-wrap: balance; }
.hero-subtitle { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.78); max-width: 40ch; text-wrap: pretty; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.72); }
.hero-badges .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18,183,106,.18); }

/* Painel do hero */
.hero-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
    backdrop-filter: blur(6px);
}
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.panel-dots { display: inline-flex; gap: 6px; }
.panel-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.28); }
.panel-title { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 600; }
.panel-body { padding: 20px; display: grid; gap: 18px; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 16px; display: grid; gap: 4px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.stat-trend { font-size: 13px; font-weight: 700; }
.stat-trend.up { color: #4ade80; }
.stat-trend.down { color: #4ade80; }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 8px 4px 0; }
.chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--brand-300), var(--brand)); border-radius: 6px 6px 0 0; opacity: .9; }
.panel-list { display: grid; gap: 8px; }
.list-item { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 10px 12px; border-radius: 10px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; font-style: normal; }
.tag.ok { background: rgba(18,183,106,.16); color: #4ade80; }
.tag.load { background: rgba(245,158,11,.16); color: #fbbf24; }

/* ---------- Strip ---------- */
.strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.strip-inner { padding: 22px 0; text-align: center; }
.strip-label { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Seções ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; text-wrap: balance; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 17px; text-wrap: pretty; }

/* Funcionalidades */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--brand-300); box-shadow: var(--shadow-lg); }
.feature-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 14px; color: var(--brand-600);
    background: rgba(79,109,255,.1); border: 1px solid rgba(79,109,255,.2); margin-bottom: 18px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); }

/* CTA + formulário */
.section--cta { background: var(--bg-soft); border-top: 1px solid var(--line); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cta-copy { padding-top: 8px; }
.cta-copy .section-title { text-align: left; }
.cta-copy .section-lead { margin-inline: 0; }
.cta-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.cta-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.cta-list li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 4px rgba(79,109,255,.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
    font-family: inherit; font-size: 15px; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease; width: 100%;
}
.field input:focus, .field textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,109,255,.16);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-check { grid-template-columns: 20px 1fr; align-items: start; gap: 12px; }
.field-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.field-check label { font-weight: 400; color: var(--muted); font-size: 14px; }
.field-check a { color: var(--brand-600); text-decoration: underline; }
.form-note { font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 2px; }

/* Honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alertas */
.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; font-size: 15px; }
.alert-success { background: rgba(18,183,106,.1); border: 1px solid rgba(18,183,106,.35); color: #087443; }
.alert-error { background: rgba(229,72,77,.08); border: 1px solid rgba(229,72,77,.35); color: #b42318; }

/* ---------- Demonstração: provisionamento em massa ---------- */
.section--demo { background: var(--bg-soft); border-top: 1px solid var(--line); }
.demo-wrap {
    display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch;
    max-width: 1000px; margin: 0 auto;
}
.demo-controls {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px;
}
.demo-controls-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink); }
.demo-field { display: grid; gap: 8px; }
.demo-field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.demo-field input, .demo-field select {
    font-family: inherit; font-size: 15px; font-weight: 500; color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff; width: 100%;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none; -webkit-appearance: none;
}
.demo-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6478' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.demo-field input:focus, .demo-field select:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,109,255,.16);
}
.demo-controls .btn { margin-top: 4px; }
.btn .btn-ico { flex-shrink: 0; }
.btn.is-loading { opacity: .9; cursor: progress; }
.btn.is-loading .btn-ico { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.demo-console {
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    border: 1px solid var(--navy-700); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; min-height: 340px;
}
.console-head {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.15);
}
.console-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: rgba(255,255,255,.72); }
.console-status {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.66);
}
.console-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.console-status.status-run { background: rgba(245,158,11,.16); color: #fbbf24; }
.console-status.status-run::before { animation: pulse 1s ease-in-out infinite; }
.console-status.status-done { background: rgba(18,183,106,.16); color: #4ade80; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

.console-progress { display: flex; align-items: center; gap: 14px; padding: 16px 18px 8px; }
.progress-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-300), var(--brand)); border-radius: 999px; transition: width .35s ease; }
.progress-count { font-family: ui-monospace, monospace; font-size: 12px; color: rgba(255,255,255,.66); min-width: 56px; text-align: right; }
.console-log {
    list-style: none; margin: 0; padding: 10px 18px 20px; display: grid; gap: 7px; align-content: start;
    flex: 1; overflow-y: auto; max-height: 320px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.5;
}
.log-hint { color: rgba(255,255,255,.4); }
.log-line { display: flex; gap: 12px; color: rgba(255,255,255,.82); animation: logIn .2s ease; }
@keyframes logIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.log-time { color: rgba(255,255,255,.35); flex-shrink: 0; }
.log-msg { word-break: break-word; }
.log-info .log-msg { color: rgba(255,255,255,.82); }
.log-ok .log-msg { color: #4ade80; }
.log-ok .log-msg::before { content: "✓ "; color: #4ade80; }
.log-done .log-msg { color: #8ea2ff; font-weight: 700; }
.demo-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted-2); }

@media (max-width: 780px) {
    .demo-wrap { grid-template-columns: 1fr; }
}

/* ---------- Aviso 403 / genérico ---------- */
.notice { padding: 120px 0; }
.notice-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.notice-code { display: block; font-family: var(--font-display); font-size: 72px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; margin-bottom: 8px; }
.notice .section-lead { margin-top: 16px; }
.notice-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Páginas legais ---------- */
.legal { padding: 72px 0; }
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-head { margin-bottom: 36px; }
.legal-head .section-title { text-align: left; }
.legal-updated { margin-top: 12px; color: var(--muted-2); font-size: 14px; }
.legal-body h2 { font-size: 21px; margin: 34px 0 10px; }
.legal-body p { color: var(--muted); margin-bottom: 12px; }
.legal-body ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; display: grid; gap: 6px; }
.legal-body a { color: var(--brand-600); text-decoration: underline; }
.legal .btn-ghost { margin-top: 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.72); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.logo--footer { color: #fff; margin-bottom: 16px; }
.footer-desc { max-width: 38ch; font-size: 15px; color: rgba(255,255,255,.6); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,.66); font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 14px; color: rgba(255,255,255,.55); gap: 12px; flex-wrap: wrap; }
.footer-legal-links { display: inline-flex; gap: 10px; align-items: center; }
.footer-legal-links a:hover { color: #fff; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 72px; }
    .hero-panel { order: 2; }
    .features-grid { grid-template-columns: 1fr; }
    .cta-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .header-nav { gap: 14px; }
    .header-nav > a:not(.btn) { display: none; }
    .field-row { grid-template-columns: 1fr; }
    .stat-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
