/* ===== Connect Solutions IT — Design System ===== */
:root {
    --bg: #030712;
    --surface: rgba(255, 255, 255, 0.025);
    --border: rgba(255, 255, 255, 0.08);
    --blue: #3b82f6;
    --emerald: #10b981;
    --radius: 1.5rem;
    --ease: cubic-bezier(.2, .8, .2, 1);
}
html { scroll-padding-top: 6rem; }
body { background: var(--bg); overflow-x: hidden; }

/* Acessibilidade */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--blue); color: #fff; padding: .75rem 1rem; border-radius: .75rem; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; border-radius: 6px; }

#scrollProgress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); z-index: 60; background: linear-gradient(90deg, var(--blue), var(--emerald)); }

/* Navbar */
#navbar.is-scrolled { background: rgba(3, 7, 18, .75); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--border); }
.nav-link.is-active { color: #fff; background: rgba(255,255,255,.08); }

/* Fundos */
.bg-grid { background-size: 56px 56px; background-image: linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px); }
.mask-fade { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
.aurora { position: absolute; border-radius: 9999px; filter: blur(100px); opacity: .35; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.aurora-1 { width: 40rem; height: 40rem; background: #1d4ed8; top: -12rem; right: -10rem; }
.aurora-2 { width: 32rem; height: 32rem; background: #047857; bottom: -14rem; left: -8rem; animation-delay: -9s; }
@keyframes drift { to { transform: translate(-4rem, 3rem) scale(1.1); } }

.text-gradient { background: linear-gradient(100deg, #60a5fa 0%, #34d399 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Tipografia de seção */
.section { max-width: 80rem; margin: 0 auto; padding: 7rem 1rem; }
@media (min-width: 640px) { .section { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .section { padding-left: 2rem; padding-right: 2rem; } }
.section-head { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.eyebrow { display: inline-block; font-family: "JetBrains Mono", monospace; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: #60a5fa; }
.h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-top: .75rem; }
.lead { color: #94a3b8; font-size: 1.125rem; line-height: 1.7; margin: 1.25rem auto 0; max-width: 40rem; }

/* Botões */
.btn-primary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem 1.75rem; border-radius: 9999px; font-weight: 700; transition: all .25s var(--ease); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 10px 30px -10px rgba(37,99,235,.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 16px 40px -10px rgba(37,99,235,.9); }
.btn-ghost { color: #e2e8f0; border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); }
.icon-btn { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 9999px; border: 1px solid var(--border); background: rgba(255,255,255,.05); backdrop-filter: blur(8px); color: #cbd5e1; transition: .2s; }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

.pill { display: inline-flex; align-items: center; gap: .6rem; padding: .4rem 1rem; border-radius: 9999px; border: 1px solid rgba(16,185,129,.25); background: rgba(16,185,129,.08); color: #6ee7b7; font-size: .8rem; font-weight: 600; backdrop-filter: blur(8px); }

/* Console do hero */
.console { border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(17,24,39,.85), rgba(3,7,18,.85)); backdrop-filter: blur(20px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(59,130,246,.1); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.dot { width: .65rem; height: .65rem; border-radius: 9999px; }
.score-ring { --v: 0; width: 5.5rem; height: 5.5rem; border-radius: 9999px; display: grid; place-items: center; flex-shrink: 0; background: radial-gradient(closest-side, #0a0f1e 78%, transparent 80% 100%), conic-gradient(var(--emerald) calc(var(--v) * 1%), rgba(255,255,255,.08) 0); }
.score-ring span { font-size: 1.6rem; font-weight: 800; color: #fff; }
#consoleLog li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .4s var(--ease); }
#consoleLog .ok { color: #34d399; } #consoleLog .warn { color: #fbbf24; } #consoleLog .info { color: #60a5fa; }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } }
.mini-stat { border-radius: .9rem; border: 1px solid var(--border); background: var(--surface); padding: .7rem .4rem; }
.mini-stat b { display: block; color: #fff; font-size: .95rem; }
.mini-stat span { font-size: .65rem; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-weight: 700; font-size: 1.15rem; color: #475569; white-space: nowrap; transition: color .2s; }
.marquee-item:hover { color: #e2e8f0; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.75rem)); } }

/* Cards (bento) com spotlight que segue o mouse */
.card { --accent: 59,130,246; position: relative; overflow: hidden; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.card[data-accent="emerald"] { --accent: 16,185,129; } .card[data-accent="violet"] { --accent: 139,92,246; }
.card[data-accent="sky"] { --accent: 14,165,233; } .card[data-accent="amber"] { --accent: 245,158,11; } .card[data-accent="pink"] { --accent: 236,72,153; }
.card:hover { transform: translateY(-4px); border-color: rgba(var(--accent), .4); }
.card-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent), .12), transparent 60%); }
.card:hover .card-glow { opacity: 1; }
.icon-tile { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 1rem; color: rgb(var(--accent, 96,165,250)); background: rgba(var(--accent, 59,130,246), .1); border: 1px solid rgba(var(--accent, 59,130,246), .2); flex-shrink: 0; }
.tag { font-family: "JetBrains Mono", monospace; font-size: .7rem; color: #94a3b8; padding: .25rem .6rem; border-radius: .5rem; background: rgba(255,255,255,.04); border: 1px solid var(--border); }

/* Camadas de segurança */
.layers { display: flex; flex-direction: column; gap: .75rem; }
.layer { --accent: 16,185,129; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1.1rem; border: 1px solid var(--border); background: var(--surface); margin-left: calc(var(--i) * 1rem); transition: .3s var(--ease); }
.layer:hover { border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.05); transform: translateX(4px); }
.layer-num { font-family: "JetBrains Mono", monospace; font-size: .7rem; color: #475569; width: 1.5rem; }
.layer-status { margin-left: auto; font-size: .7rem; font-weight: 700; color: #34d399; padding: .2rem .6rem; border-radius: 9999px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25); white-space: nowrap; }
@media (max-width: 640px) { .layer { margin-left: 0; } .layer-status { display: none; } }

/* Metodologia */
.step-badge { width: 3.5rem; height: 3.5rem; margin: 0 auto; border-radius: 1rem; display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; color: #fff; background: #0a0f1e; border: 1px solid rgba(59,130,246,.4); box-shadow: 0 0 30px -5px rgba(59,130,246,.4); position: relative; z-index: 1; }
@media (min-width: 768px) { .step-badge { margin: 0; } }
.step-badge.is-final { border-color: rgba(16,185,129,.5); box-shadow: 0 0 30px -5px rgba(16,185,129,.5); color: #34d399; }

/* Planos */
.plan { position: relative; display: flex; flex-direction: column; padding: 2.25rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.plan.is-featured { background: linear-gradient(180deg, rgba(37,99,235,.12), rgba(3,7,18,.4)); border-color: rgba(59,130,246,.45); box-shadow: 0 30px 80px -30px rgba(37,99,235,.5); }
@media (min-width: 1024px) { .plan.is-featured { transform: scale(1.03); } }
.plan-badge { position: absolute; top: -.8rem; left: 2.25rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; padding: .3rem .8rem; border-radius: 9999px; background: linear-gradient(90deg, var(--blue), var(--emerald)); }

/* FAQ */
.faq { border-radius: 1.1rem; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s; }
.faq[open] { border-color: rgba(59,130,246,.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 600; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq > p, .faq > div { padding: 0 1.5rem 1.4rem; color: #94a3b8; line-height: 1.7; }
.faq-icon { position: relative; width: 1rem; height: 1rem; flex-shrink: 0; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; inset: 50% 0 auto; height: 2px; margin-top: -1px; background: #64748b; border-radius: 2px; transition: transform .25s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }

/* Contato */
.contact-wrap { position: relative; overflow: hidden; padding: clamp(1.5rem, 5vw, 4rem); border-radius: 2rem; border: 1px solid var(--border); background: radial-gradient(60rem 30rem at 0% 0%, rgba(37,99,235,.15), transparent 60%), radial-gradient(40rem 30rem at 100% 100%, rgba(16,185,129,.1), transparent 60%), rgba(255,255,255,.02); }
.contact-line { display: flex; align-items: center; gap: .75rem; color: #cbd5e1; transition: color .2s; cursor: pointer; }
.contact-line:hover { color: #fff; }
.contact-line svg { color: #60a5fa; flex-shrink: 0; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .8rem; font-weight: 600; color: #94a3b8; }
.field input, .field select, .field textarea { width: 100%; font-size: .95rem; font-weight: 400; color: #f1f5f9; background: rgba(3,7,18,.6); border: 1px solid var(--border); border-radius: .85rem; padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s; }
.field select option { background: #0a0f1e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.field input.is-invalid { border-color: #f87171; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Rodapé */
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.footer-list { display: flex; flex-direction: column; gap: .65rem; color: #64748b; }
.footer-list a { transition: color .2s; } .footer-list a:hover { color: #60a5fa; }

/* Cookie + WhatsApp */
.cookie-bar { position: fixed; z-index: 55; left: 1rem; right: 1rem; bottom: 1rem; max-width: 36rem; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1.1rem; border: 1px solid var(--border); background: rgba(10,15,30,.92); backdrop-filter: blur(16px); font-size: .8rem; color: #94a3b8; box-shadow: 0 20px 50px -10px rgba(0,0,0,.7); }
.cookie-bar.hidden { display: none; }
.wa-fab { position: fixed; z-index: 50; right: 1.5rem; bottom: 1.5rem; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 9999px; color: #fff; background: #10b981; box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulseRing 2.5s infinite; transition: transform .2s; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); }
@keyframes pulseRing { 70% { box-shadow: 0 0 0 16px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

/* Reveal ao rolar */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ===== Multiplataforma / Mobile ===== */
html, body { max-width: 100%; overflow-x: clip; }          /* corta vazamentos laterais (iOS inclusive) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; }
img, video, svg { max-width: 100%; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.aurora { max-width: 100vw; }

/* Inputs com 16px evitam o zoom automático do iOS ao focar */
.field input, .field select, .field textarea { font-size: 16px; -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem; padding-right: 2.5rem; }

/* Áreas seguras (notch / barra de gestos) */
#navbar { padding-top: env(safe-area-inset-top); }
.wa-fab { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
.cookie-bar { bottom: max(1rem, env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
    .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
    .section-head { margin-bottom: 2.5rem; }
    .lead { font-size: 1rem; }
    .card, .plan { padding: 1.5rem; }
    .console { animation: none; }
    .score-ring { width: 4.5rem; height: 4.5rem; }
    .score-ring span { font-size: 1.3rem; }
    .mini-stat b { font-size: .8rem; }
    .mini-stat span { font-size: .58rem; }
    .marquee-track { gap: 2rem; animation-duration: 28s; }
    .marquee-item { font-size: 1rem; }
    .layer { padding: .85rem 1rem; gap: .75rem; }
    .layer-num { display: none; }
    .btn-primary, .btn-ghost { width: 100%; padding: .95rem 1.25rem; }
    .contact-wrap { border-radius: 1.5rem; }
    .wa-fab { width: 3.25rem; height: 3.25rem; }
    .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; right: 5rem; margin: 0; }
    .aurora-1 { width: 24rem; height: 24rem; }
    .aurora-2 { width: 20rem; height: 20rem; }
}
/* Telas muito estreitas (≤360px: Galaxy A, iPhone SE 1ª) */
@media (max-width: 360px) {
    h1 { font-size: 2rem !important; }
    .h2 { font-size: 1.75rem; }
}
/* Celular deitado: hero não força 100% da altura */
@media (max-height: 500px) and (orientation: landscape) {
    #home { min-height: auto; }
}
/* Dispositivos de toque: sem efeitos de hover "presos" */
@media (hover: none) {
    .card:hover, .layer:hover, .btn-primary:hover, .plan:hover { transform: none; }
    .card-glow { display: none; }
}
/* Impressão */
@media print {
    #navbar, .wa-fab, .cookie-bar, #soundToggle, video, .aurora, #scrollProgress { display: none !important; }
    body { background: #fff; color: #000; }
    .js .reveal { opacity: 1; transform: none; }
}
