/* =========================================================================
   Infologic Tecnologia — tema institucional (sóbrio / tecnológico)
   ========================================================================= */
:root {
    --navy-900: #0b1220;
    --navy-800: #0f172a;
    --navy-700: #111827;
    --slate-600: #334155;
    --slate-500: #475569;
    --slate-400: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --surface: #ffffff;
    --surface-alt: #f8fafc;
    /* Identidade de marca (gradiente GLOB.AI): azul -> roxo -> teal -> verde-limão */
    --accent: #205fff;
    --accent-hover: #1a4fd6;
    --accent-2: #14b8a6;
    --accent-3: #aa55ff;
    --accent-4: #88e100;
    --accent-soft: rgba(32, 95, 255, 0.10);
    --brand-gradient: linear-gradient(90deg, #205fff 0%, #aa55ff 33%, #14b8a6 66%, #88e100 100%);
    --text: #1e293b;
    --text-muted: #64748b;
    --text-on-dark: #e2e8f0;
    --border: #e5e9f0;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
    --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* compensa o header fixo ao navegar por âncoras */
:target { scroll-margin-top: 90px; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--navy-800); line-height: 1.2; margin: 0 0 .75rem; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.section { padding: 5rem 0; }
.section--alt { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.section__lead { color: var(--text-muted); font-size: 1.08rem; max-width: 60ch; }
.section__head { margin-bottom: 2.5rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 18, 32, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    border-top: 3px solid transparent;
    border-image: var(--brand-gradient) 1;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--text-on-dark); font-weight: 500; font-size: .95rem; }
.main-nav a:hover { color: #fff; text-decoration: none; }
.main-nav .btn-cliente {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: .5rem 1rem; border-radius: 999px; font-weight: 600;
}
.main-nav .btn-cliente:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.4); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-on-dark); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: radial-gradient(900px 500px at 80% -10%, rgba(32, 95, 255, 0.28), transparent 60%),
                radial-gradient(600px 450px at 95% 20%, rgba(170, 85, 255, 0.18), transparent 60%),
                radial-gradient(700px 500px at 0% 110%, rgba(136, 225, 0, 0.14), transparent 55%),
                var(--navy-900);
    color: var(--text-on-dark);
    padding: 5.5rem 0 6rem;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
    mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
    pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.3rem); margin-bottom: 1rem; }
.hero h1 .accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-on-dark); font-size: 1.2rem; max-width: 56ch; opacity: .92; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--text-on-dark); padding: .4rem .85rem; border-radius: 999px; font-size: .85rem; margin-bottom: 1.5rem; }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(20,184,166,.2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; padding: .8rem 1.5rem; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; transition: .2s; font-size: 1rem; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Cards de serviços ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.card-svc {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-sm); transition: .2s;
}
.card-svc:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d4ddec; }
.card-svc__icon {
    width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.card-svc h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card-svc p { color: var(--text-muted); margin: 0; font-size: .96rem; }
.card-svc--link { display: block; text-decoration: none; color: inherit; }
.card-svc--link:hover { text-decoration: none; border-color: var(--accent); }
.card-svc--link h3 { color: var(--navy-800); }
.card-svc__more { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 1.9rem; color: var(--accent); line-height: 1; }
.stat span { color: var(--text-muted); font-size: .9rem; }

/* ---------- Tecnologias ---------- */
.tech-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.tech-chip {
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    padding: .55rem 1.15rem; font-weight: 600; color: var(--slate-600); box-shadow: var(--shadow-sm);
    display: inline-flex; align-items: center; gap: .5rem;
}
.tech-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); }

/* ---------- Integrações bancárias (seção escura) ---------- */
.section--dark { background: var(--navy-800); color: var(--text-on-dark); }
.section--dark h2 { color: #fff; }
.section--dark .section__eyebrow { color: var(--accent-2); }
.section--dark .section__lead { color: #cbd5e1; }
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.bank-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.5rem; }
.bank-card h3 { color: #fff; font-size: 1.1rem; }
.bank-card p { color: #cbd5e1; margin: 0; font-size: .95rem; }
.bank-banks { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.bank-pill { display: inline-flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: .7rem 1.1rem; color: #fff; font-weight: 600; }

/* ---------- CTA (faixa de chamada para contato) ---------- */
.cta-band { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-band .section__lead { margin: 0 auto 1.75rem; }

/* ---------- Contato ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info p { color: var(--text-muted); }
.contact-info ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-info li { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; color: var(--text); }
.contact-info li .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-md); }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--slate-600); }
.form-control {
    width: 100%; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 9px;
    font-size: 1rem; font-family: inherit; color: var(--text); background: #fff; transition: .15s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.form-control { resize: vertical; min-height: 130px; }
.field-validation-error, .validation-summary-errors { color: #dc2626; font-size: .85rem; }
.field-validation-error { display: block; margin-top: .3rem; }
.input-validation-error { border-color: #dc2626; }
/* honeypot — escondido de humanos */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .9rem 1.1rem; border-radius: 9px; margin-bottom: 1.25rem; font-size: .95rem; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--text-on-dark); }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer__brand p { color: #94a3b8; margin: .75rem 0 0; max-width: 32ch; font-size: .92rem; }
.site-footer__links { display: flex; flex-direction: column; gap: .6rem; }
.site-footer__links a, .site-footer__contact a { color: #cbd5e1; }
.site-footer__links a:hover, .site-footer__contact a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; color: #64748b; font-size: .85rem; }

/* ---------- Página simples (Erro) ---------- */
.simple-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.simple-page .badge-soon { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: .35rem .9rem; border-radius: 999px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.simple-page p { color: var(--text-muted); max-width: 46ch; margin: 0 auto 1.75rem; }

/* ---------- Área do Cliente (login) ---------- */
.login {
    display: grid; grid-template-columns: 1fr 1fr; max-width: 940px; margin: 1rem auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    overflow: hidden; box-shadow: var(--shadow-md);
}
.login__brand {
    background: radial-gradient(600px 400px at 110% -10%, rgba(32,95,255,.28), transparent 60%),
                radial-gradient(500px 400px at -10% 120%, rgba(136,225,0,.12), transparent 55%),
                var(--navy-900);
    color: var(--text-on-dark); padding: 2.75rem 2.5rem;
    display: flex; flex-direction: column; justify-content: center; text-align: center;
}
.login__brand h2 { color: #fff; font-size: 1.4rem; margin: 0 0 .6rem; }
.login__brand > p { color: #cbd5e1; font-size: .95rem; margin: 0 auto; max-width: 30ch; }
.login__lock { width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 1.25rem; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: var(--accent-2); }

.login__form { padding: 2.75rem 2.5rem; }
.login__form h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.login__sub { color: var(--text-muted); margin: 0 0 1.5rem; font-size: .95rem; }
.login__label-row { display: flex; align-items: baseline; justify-content: space-between; }
.login__forgot { font-size: .82rem; }
.login__remember { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: var(--slate-600); margin: 0 0 1.25rem; cursor: pointer; }
.login__remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.login__signup { text-align: center; color: var(--text-muted); font-size: .92rem; margin: 1.5rem 0 0; }

@media (max-width: 768px) {
    .login { grid-template-columns: 1fr; }
    .login__brand { display: none; }
    .login__form { padding: 2rem 1.5rem; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--navy-900); border-bottom: 1px solid rgba(255,255,255,.08);
        padding: .5rem 1.25rem 1rem; display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
    .main-nav .btn-cliente { margin-top: .75rem; text-align: center; border-radius: 10px; }
    .section { padding: 3.5rem 0; }
    .site-footer__inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
