/* =========================================================
   INFRAVIX TECNOLOGIA — Estilos
   ========================================================= */
:root {
  --bg: #070b14;
  --bg-2: #0b1120;
  --surface: #101828;
  --surface-2: #151f33;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .24);
  --text: #e6ebf5;
  --muted: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --accent-soft: rgba(59, 130, 246, .12);
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(59, 130, 246, .85); }
.btn--ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn--light { background: #fff; color: #0b1120; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.btn--outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(7, 11, 20, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); }
.logo__mark { width: 36px; height: 36px; }
.logo__text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; letter-spacing: .08em; color: var(--text); line-height: 1; display: flex; flex-direction: column; }
.logo__text strong { font-weight: 700; color: var(--accent); display: contents; }
.logo__text small { font-family: var(--font-body); font-size: .6rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; gap: 4px; }
.nav__link { padding: 8px 12px; border-radius: 8px; font-size: .92rem; color: var(--muted); transition: color .2s, background .2s; }
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link.active { background: rgba(255, 255, 255, .05); }
.nav__cta { padding: 10px 18px; font-size: .88rem; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 72px) 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 10%, transparent 70%);
  opacity: .5;
}
.hero__glow { position: absolute; width: 720px; height: 720px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(59, 130, 246, .28), transparent 60%); filter: blur(20px); pointer-events: none; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; margin-bottom: 24px; letter-spacing: -.035em; }
.hero__text { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.hero__stats { display: flex; gap: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero__stats span { display: block; max-width: 150px; }
.hero__stats strong { font-family: var(--font-head); font-size: 2rem; font-weight: 700; display: block; line-height: 1.1; }
.hero__stats span { color: var(--muted); font-size: .88rem; }

/* Monitor */
.monitor { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-strong); border-radius: 20px; padding: 14px; box-shadow: var(--shadow), 0 0 0 1px rgba(59, 130, 246, .08), 0 30px 120px -40px rgba(59, 130, 246, .45); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.monitor__bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; font-size: .78rem; color: var(--muted); }
.monitor__dots { display: flex; gap: 6px; }
.monitor__dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.monitor__dots i:first-child { background: #ef4444; }
.monitor__dots i:nth-child(2) { background: #f59e0b; }
.monitor__dots i:nth-child(3) { background: #22c55e; }
.monitor__title { flex: 1; letter-spacing: .04em; }
.monitor__clock { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--accent-2); }
.monitor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.monitor__footer { display: flex; justify-content: space-between; gap: 10px; padding: 14px 6px 4px; font-size: .75rem; color: var(--muted); flex-wrap: wrap; }
.status-ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--success); margin-right: 6px; }

.cam { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #0a0f1a; }
.cam::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 3px); pointer-events: none; }
.cam::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .55)); z-index: 1; pointer-events: none; }
.cam__scene { position: absolute; inset: 0; filter: grayscale(.6) contrast(1.05); }
.cam__label { position: absolute; left: 8px; bottom: 7px; z-index: 2; font-family: ui-monospace, Consolas, monospace; font-size: .62rem; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .45); padding: 2px 6px; border-radius: 4px; }
.cam__rec { position: absolute; right: 8px; top: 7px; z-index: 2; font-family: ui-monospace, Consolas, monospace; font-size: .6rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 4px; }
.cam__rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.cam__alert { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 46%; aspect-ratio: 1.3; border: 1.5px solid var(--danger); border-radius: 4px; animation: scan 3s ease-in-out infinite; font-size: 0; }
.cam__alert::after { content: "MOVIMENTO"; position: absolute; top: -16px; left: -1px; font: 700 .52rem/1 ui-monospace, Consolas, monospace; background: var(--danger); color: #fff; padding: 3px 5px; letter-spacing: .05em; }
@keyframes scan { 0%, 100% { transform: translate(-60%, -50%); } 50% { transform: translate(-35%, -45%); } }

/* Imagens das câmeras (Unsplash) */
.cam__scene { background: #1a2234 center / cover no-repeat; filter: grayscale(.85) contrast(1.1) brightness(.8); }
.cam--1 .cam__scene { background-image: url("https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?auto=format&fit=crop&w=600&q=60"); }
.cam--2 .cam__scene { background-image: url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=600&q=60"); }
.cam--3 .cam__scene { background-image: url("https://images.unsplash.com/photo-1758448093806-88b2089068ab?auto=format&fit=crop&w=600&q=60"); }
.cam--4 .cam__scene { background-image: url("https://images.unsplash.com/photo-1587293852726-70cdb56c2866?auto=format&fit=crop&w=600&q=60"); }

/* ---------- Marcas ---------- */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.brands__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.brands__inner p { color: var(--muted); font-size: .88rem; max-width: 260px; }
.brands__list { display: flex; flex-wrap: wrap; gap: 14px 44px; }
.brands__list li { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: #64748b; letter-spacing: .02em; transition: color .2s; }
.brands__list li:hover { color: var(--text); }

/* ---------- Seções ---------- */
.section { padding: 112px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.section__head--left { text-align: left; margin: 0; }
.section__title { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: 18px; }
.section__text { color: var(--muted); font-size: 1.05rem; }

/* Serviços */
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.service { flex: 0 1 calc((100% - 40px) / 3); position: relative; padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s, background .3s; overflow: hidden; }
.service::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 246, .14), transparent 45%); opacity: 0; transition: opacity .3s; }
.service:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, .4); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(59, 130, 246, .25); margin-bottom: 22px; }
.service__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .92rem; }

/* Abas */
.tabs__list { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tabs__btn { padding: 11px 22px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; color: var(--muted); font-weight: 500; transition: all .25s; }
.tabs__btn:hover { color: var(--text); border-color: var(--accent); }
.tabs__btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.tabs__panel[hidden] { display: none; }
.tabs__panel.active { animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tabs__media { position: relative; min-height: 380px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; padding: 22px; }
.tabs__media span { position: relative; z-index: 1; font-family: var(--font-head); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); }
.tabs__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); }
.tabs__media { background: #1a2234 center / cover no-repeat; }
.tabs__media--home { background-image: url("https://images.unsplash.com/photo-1580587771525-78b9dba3b914?auto=format&fit=crop&w=1000&q=70"); }
.tabs__media--condo { background-image: url("https://images.unsplash.com/photo-1545324418-cc1a3fa10c00?auto=format&fit=crop&w=1000&q=70"); }
.tabs__media--shop { background-image: url("https://images.unsplash.com/photo-1771033834141-023d630b3965?auto=format&fit=crop&w=1000&q=70"); }
.tabs__media--industry { background-image: url("https://images.unsplash.com/photo-1553413077-190dd305871c?auto=format&fit=crop&w=1000&q=70"); }
.tabs__body { padding: 16px 24px 16px 0; }
.tabs__body h3 { font-size: 1.7rem; margin-bottom: 14px; }
.tabs__body > p { color: var(--muted); margin-bottom: 24px; }
.checklist { display: grid; gap: 12px; margin-bottom: 32px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; border: 1px solid rgba(59, 130, 246, .35); }

/* Etapas */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), var(--accent), var(--line-strong), transparent); }
.step { position: relative; text-align: center; padding: 0 10px; }
.step__num { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); font-family: var(--font-head); font-weight: 600; color: var(--accent-2); margin-bottom: 22px; transition: all .3s; }
.step:hover .step__num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 8px var(--accent-soft); }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .92rem; }

/* Sobre */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
.about__media { position: relative; }
.about__card--main { aspect-ratio: 1 / 1.05; border-radius: 28px; border: 1px solid var(--line-strong); box-shadow: var(--shadow); background: linear-gradient(180deg, rgba(7, 11, 20, 0) 50%, rgba(7, 11, 20, .6)), url("https://images.unsplash.com/photo-1529265895721-65945a176cff?auto=format&fit=crop&w=1000&q=70") center / cover no-repeat, var(--surface); }
.about__badge { position: absolute; right: -24px; bottom: 40px; padding: 20px 24px; border-radius: 18px; background: rgba(16, 24, 40, .85); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; }
.about__badge strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--accent); }
.about__badge span { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.about__content > p { color: var(--muted); margin-bottom: 16px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 32px; }
.feature { display: flex; gap: 14px; }
.feature__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.feature h4 { font-size: 1rem; margin-bottom: 2px; }
.feature p { font-size: .88rem; color: var(--muted); }

/* Projetos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 20px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); cursor: pointer; }
.project--lg { grid-column: span 2; grid-row: span 2; }
.project__img { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.project:hover .project__img { transform: scale(1.06); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(4, 7, 14, .92)); }
.project__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; transform: translateY(6px); transition: transform .35s; }
.project:hover .project__info { transform: none; }
.project__info span { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); font-weight: 600; }
.project__info h3 { font-size: 1.1rem; margin-top: 6px; }
.project--lg .project__info h3 { font-size: 1.5rem; max-width: 460px; }
.project__img { background: #1a2234 center / cover no-repeat; }
.p1 { background-image: url("https://images.unsplash.com/photo-1589935447067-5531094415d1?auto=format&fit=crop&w=1200&q=70"); }
.p2 { background-image: url("https://images.unsplash.com/photo-1777136977034-71cbc026c9b1?auto=format&fit=crop&w=700&q=70"); }
.p3 { background-image: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=700&q=70"); }
.p4 { background-image: url("https://images.unsplash.com/photo-1613490493576-7fde63acd811?auto=format&fit=crop&w=700&q=70"); }
.p5 { background-image: url("https://images.unsplash.com/photo-1758448721149-aa0ce8e1b2c9?auto=format&fit=crop&w=700&q=70"); }

/* Depoimentos */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; transition: border-color .3s, transform .3s; }
.testimonial:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.stars { color: #fbbf24; letter-spacing: 3px; }
.testimonial blockquote { flex: 1; font-size: 1.02rem; color: #cbd5e1; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .85rem; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.testimonial strong { display: block; font-size: .95rem; }
.testimonial small { color: var(--muted); }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-wrap .section__text { margin-bottom: 28px; }
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .25s; }
.faq__item[open] { border-color: rgba(59, 130, 246, .4); }
.faq__item summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* CTA */
.cta { padding: 0 0 112px; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 56px 60px; border-radius: 28px; position: relative; overflow: hidden; background: radial-gradient(circle at 90% 10%, rgba(34, 211, 238, .45), transparent 45%), linear-gradient(135deg, #1d4ed8, #1e3a8a 60%, #172554); box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .7); }
.cta__inner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta__inner p { color: rgba(255, 255, 255, .8); }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contato */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__list { display: grid; gap: 20px; margin-top: 36px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-strong); }
.contact__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; }
.contact__list a:hover { color: var(--accent); }

.form { padding: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.form h3 { font-size: 1.4rem; margin-bottom: 28px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form__field label { font-size: .85rem; font-weight: 500; color: #cbd5e1; }
.form input, .form select, .form textarea { width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line-strong); outline: none; transition: border-color .2s, box-shadow .2s; }
.form select { appearance: none; 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' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.form select option { background: var(--surface); }
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #536079; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form__error { display: none; color: #f87171; font-size: .78rem; }
.form__field.invalid input, .form__field.invalid select { border-color: var(--danger); }
.form__field.invalid .form__error { display: block; }
.form__note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 14px; }
.form__success { margin-top: 18px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); color: #86efac; font-size: .92rem; }

/* Footer */
.footer { background: #04070d; border-top: 1px solid var(--line); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 56px; }
.footer__brand p { color: var(--muted); margin: 20px 0 24px; max-width: 320px; font-size: .92rem; }
.footer h4 { font-size: .95rem; margin-bottom: 18px; }
.footer ul { display: grid; gap: 10px; }
.footer li, .footer li a { color: var(--muted); font-size: .9rem; transition: color .2s; word-break: break-word; }
.footer li a:hover { color: var(--text); }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: all .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid var(--line); color: #64748b; font-size: .85rem; }

/* Flutuantes */
.whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6); transition: transform .25s; }
.whatsapp svg { width: 30px; height: 30px; }
.whatsapp:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 31px; bottom: 96px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(16, 24, 40, .9); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Catálogo de câmeras e kits ---------- */
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.badge-consulta { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--accent-2); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .25); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); font-weight: 500; font-size: .9rem; cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 290px)); justify-content: center; gap: 20px; }
.catalog__empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.item-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.item-card:hover { transform: translateY(-4px); border-color: rgba(59, 130, 246, .4); box-shadow: var(--shadow); }
.item-card__media { position: relative; aspect-ratio: 4 / 3; background: #fff; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.item-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .5s; }
.item-card:hover .item-card__media img { transform: scale(1.05); }
.item-card__ph { color: #94a3b8; font-size: .85rem; }
.item-card__flag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.item-card__body { padding: 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-card__cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-2); }
.item-card h3 { font-size: 1.05rem; }
.item-card__brand { font-size: .85rem; color: var(--muted); }
.item-card__sum { font-size: .9rem; color: #cbd5e1; }
.item-card__foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.item-card__foot .item-card__btns { align-self: stretch; }
.item-card__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kits { margin-top: 72px; }
.kits__head { text-align: center; margin-bottom: 32px; }
.sub-title { font-size: 1.6rem; margin-bottom: 8px; }

/* ---------- Planos mensais ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: stretch; }
.plans[data-count="0"] { display: none; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan--featured { background: radial-gradient(circle at 80% 0%, rgba(59, 130, 246, .25), transparent 55%), var(--surface-2); border-color: rgba(59, 130, 246, .55); box-shadow: 0 30px 80px -40px rgba(59, 130, 246, .7); }
.plan__flag { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.plan__name { font-size: 1.4rem; }
.plan__cams { color: var(--accent-2); font-weight: 600; font-size: .92rem; }
.plan__sub { color: var(--muted); font-size: .92rem; }
.plan__price { display: flex; align-items: baseline; gap: 8px; padding: 16px 0; margin: 4px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan__price strong { font-family: var(--font-head); font-size: 1.5rem; }
.plan__price small { color: var(--muted); }
.plan .checklist { margin-bottom: 20px; font-size: .93rem; flex: 1; }
.plans__note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 32px; }
.plans__note a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Janela de detalhes ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(2, 6, 14, .75); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.modal__dialog { position: relative; width: 100%; max-width: 980px; max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .2s, transform .2s; }
.modal.open .modal__backdrop { opacity: 1; }
.modal.open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(16, 24, 40, .9); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.modal__media { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.modal__main { flex: 1; min-height: 320px; display: grid; place-items: center; }
.modal__main img { max-width: 100%; max-height: 420px; object-fit: contain; }
.modal__thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.modal__thumbs button { width: 64px; height: 64px; border-radius: 10px; border: 2px solid #e2e8f0; background: #fff; padding: 4px; cursor: pointer; }
.modal__thumbs button.active { border-color: var(--accent); }
.modal__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.modal__body { padding: 36px 32px; display: flex; flex-direction: column; gap: 10px; }
.modal__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-2); }
.modal__body h3 { font-size: 1.6rem; padding-right: 40px; }
.modal__brand { color: var(--muted); }
.modal__desc { color: #cbd5e1; white-space: pre-line; }
.modal__body h4 { font-size: .95rem; margin: 14px 0 6px; }
.checklist--sm { gap: 8px; margin-bottom: 4px; font-size: .92rem; }
.specs { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .9rem; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; }
.specs li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.specs span { color: var(--muted); }
.specs strong { font-weight: 500; text-align: right; }
.modal__foot { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.modal__actions { display: flex; gap: 10px; align-self: stretch; }
.modal__actions .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; height: 46px; border: 0; background: transparent; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.qty button:hover { background: rgba(255, 255, 255, .06); }
.qty input { width: 44px; height: 46px; border: 0; background: transparent; color: var(--text); text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 32px; height: 34px; font-size: 1rem; }
.qty--sm span { min-width: 26px; text-align: center; font-weight: 600; font-size: .9rem; }

/* ---------- Lista de orçamento no formulário ---------- */
.quote { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); padding: 16px; margin-bottom: 22px; }
.quote__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .85rem; font-weight: 600; color: #cbd5e1; }
.quote__head a { color: var(--accent-2); font-weight: 500; }
.quote__list { display: grid; gap: 8px; }
.quote__list:not(:empty) { margin-top: 14px; }
.quote__item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.quote__name { flex: 1; font-size: .92rem; }
.quote__tag { font-size: .75rem; color: var(--accent-2); font-weight: 600; }
.quote__remove { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.quote__remove:hover { color: #f87171; background: rgba(239, 68, 68, .1); }
.quote__empty { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.choice-wrap { border: 0; }
.choice-wrap legend { font-size: .85rem; font-weight: 500; color: #cbd5e1; margin-bottom: 8px; }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; }
.choice__opt span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--bg); transition: border-color .2s, background .2s; }
.choice__opt strong { font-size: .9rem; }
.choice__opt small { font-size: .78rem; color: var(--muted); line-height: 1.4; }
.choice__opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice__opt input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.opt { color: var(--muted); font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Botão flutuante da lista e aviso */
.quote-fab { position: fixed; left: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .7); transition: transform .25s; }
.quote-fab[hidden] { display: none; }
.quote-fab:hover { transform: translateY(-2px); }
.quote-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.quote-fab__count { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .78rem; }
.toast { position: fixed; left: 50%; bottom: 96px; z-index: 300; transform: translate(-50%, 12px); padding: 12px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: .9rem; opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .service { flex-basis: calc((100% - 20px) / 2); }
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .monitor { transform: none; max-width: 640px; }
  .about { gap: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px; padding: 28px 24px;
    background: rgba(7, 11, 20, .98); backdrop-filter: blur(14px);
    transform: translateX(100%); transition: transform .35s ease; overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link.active { background: transparent; color: var(--accent); }
  .header.menu-open { background: var(--bg); }

  .tabs__panel, .about, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .tabs__panel { gap: 28px; }
  .tabs__media { min-height: 260px; }
  .tabs__body { padding: 0 8px 12px; }
  .faq-wrap { gap: 40px; }
  .faq-wrap .section__head { position: static; }
  .about__badge { right: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project--lg { grid-column: span 2; grid-row: span 1; }
  .testimonials { grid-template-columns: 1fr; }
  .modal__dialog { grid-template-columns: 1fr; }
  .modal__main { min-height: 260px; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 72px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 20px; justify-content: space-between; }
  .hero__stats strong { font-size: 1.6rem; }
  .hero__stats span { font-size: .78rem; }
  .monitor { padding: 10px; border-radius: 16px; }
  .monitor__title { display: none; }
  .monitor__bar { justify-content: space-between; }
  .service { flex-basis: 100%; }
  .features, .form__row, .projects, .footer__grid { grid-template-columns: 1fr; }
  .project--lg { grid-column: auto; }
  .projects { grid-auto-rows: 220px; }
  .steps { grid-template-columns: 1fr; }
  .brands__inner { justify-content: center; text-align: center; }
  .brands__list { justify-content: center; gap: 12px 28px; }
  .brands__list li { font-size: 1rem; }
  .cta { padding-bottom: 80px; }
  .cta__inner { padding: 40px 24px; }
  .cta__actions, .cta__actions .btn { width: 100%; }
  .form { padding: 28px 20px; }
  .whatsapp { right: 16px; bottom: 16px; }
  .quote-fab { left: 16px; bottom: 20px; padding: 12px 16px; }
  .choice { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__dialog { grid-template-columns: 1fr; max-height: 92vh; border-radius: 22px 22px 0 0; }
  .modal__main { min-height: 220px; }
  .modal__body { padding: 24px 20px 28px; }
  .modal__actions { flex-direction: column; }
  .modal__actions .qty { align-self: flex-start; }
  .to-top { right: 23px; bottom: 88px; }
}

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