:root {
  --bg: #000000;
  --surface: #070b14;
  --surface-2: #0c1424;
  --line: #15233f;
  --blue: #2f7bff;
  --blue-bright: #6aa5ff;
  --blue-deep: #0a3fd8;
  --text: #eaf1ff;
  --muted: #94a5c6;
  --wa: #25d366;
  --font-display: "Unbounded", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

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

:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 84px);
}

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

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
}
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #4a8dff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--blue); background: var(--surface-2); }
.btn-small { padding: 10px 18px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 123, 255, .22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(2.15rem, 5.2vw, 3.7rem); }
.hero p.lead { margin: 26px 0 36px; max-width: 46ch; color: var(--muted); font-size: 1.12rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 44px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .94rem; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

.board { width: 100%; max-width: 500px; margin-inline: auto; filter: drop-shadow(0 0 22px rgba(47, 123, 255, .35)); }
.trace { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s cubic-bezier(.6, .05, .2, 1) forwards; }
.node { fill: var(--bg); stroke: var(--blue-bright); stroke-width: 2.2; opacity: 0; animation: pop .4s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

.hero .wrap { z-index: 1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 50%, transparent 100%),
    linear-gradient(0deg, #000 0%, transparent 18%);
}
.board { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.pulse { fill: none; stroke: #d6e4ff; stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: .07 1; stroke-dashoffset: .07; animation: flow 3.2s linear infinite backwards; }
@keyframes flow { from { stroke-dashoffset: .07; } to { stroke-dashoffset: -1; } }
.ring { fill: none; stroke: rgba(106, 165, 255, .4); stroke-width: 1.4; transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.ring-a { stroke-dasharray: 3 9; }
.ring-b { stroke: rgba(47, 123, 255, .55); stroke-dasharray: 70 24 8 24; animation-duration: 26s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.chip-glow { fill: none; stroke: #6aa5ff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: chipPulse 2.6s ease-out 1.2s infinite; }
@keyframes chipPulse { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(1.8); } }
.core { animation: corePulse 2.2s ease-in-out infinite alternate; }
@keyframes corePulse { from { opacity: .78; } to { opacity: 1; } }

/* ---------- Section base ---------- */
section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.section-head p { color: var(--muted); margin: 18px 0 0; }

/* ---------- Services ---------- */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.service {
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .25s ease;
}
.service:hover { border-color: var(--blue); }
.service .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--blue-bright); }
.service .ico svg { width: 26px; height: 26px; }
.service h3 { font-size: 1.28rem; letter-spacing: -.02em; }
.service p { margin: 0; color: var(--muted); max-width: 52ch; }
.service ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .96rem; }
.service li { display: flex; gap: 10px; align-items: baseline; }
.service li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transform: translateY(-2px); }

.s-montagem { grid-column: span 7; background: linear-gradient(150deg, #0a3fd8 0%, #06174f 55%, #000 100%); border-color: #1a4fe0; }
.s-montagem .ico { background: rgba(255, 255, 255, .12); color: #fff; }
.s-montagem p { color: #cfdcff; }
.s-montagem h3 { font-size: 1.6rem; }
.s-montagem li::before { background: #fff; }
.s-limpeza { grid-column: span 5; }
.s-formatacao { grid-column: span 5; }
.s-reparos { grid-column: span 7; }

/* ---------- Visita a domicílio ---------- */
.visit { padding: 72px 0; }
.visit-card { display: grid; grid-template-columns: .9fr 1.1fr; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--surface); }
.visit-art { display: grid; place-items: center; padding: 28px; min-height: 300px; background: radial-gradient(circle at 30% 20%, #0a3fd8 0%, #06174f 45%, #000 100%); }
.visit-art svg { width: 100%; max-width: 420px; height: auto; }
.visit-art:has(> img) { padding: 0; position: relative; min-height: 380px; }
.visit-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.visit-body { padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px; }
.visit-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.visit-body p { margin: 0; color: var(--muted); max-width: 48ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 8px; padding: 0; list-style: none; }
.tags li { border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.ripple { fill: none; stroke: #6aa5ff; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ripple 2.4s ease-out infinite; }
@keyframes ripple { 0% { opacity: .8; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { position: relative; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; border: 1px solid var(--line); background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Placeholders: troque cada .ph por <img src="sua-foto.jpg" alt="..."> */
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph svg { width: 56px; height: 56px; color: var(--blue-bright); opacity: .9; }
.ph.a { background: radial-gradient(circle at 25% 20%, #1a4fe0 0%, #06174f 45%, #000 100%); }
.ph.b { background: radial-gradient(circle at 80% 15%, #1c3f8f 0%, #08123a 50%, #000 100%); }
.ph.c { background: radial-gradient(circle at 50% 90%, #1a4fe0 0%, #07194d 45%, #000 100%); }
.ph.d { background: radial-gradient(circle at 15% 85%, #2f7bff 0%, #0a1f5c 40%, #000 100%); }
.ph.e { background: radial-gradient(circle at 70% 30%, #0a3fd8 0%, #061548 50%, #000 100%); }
.ph.f { background: radial-gradient(circle at 30% 60%, #2559c9 0%, #081a4a 50%, #000 100%); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.cta-panel {
  position: relative; overflow: hidden;
  border: 1px solid #1a4fe0; border-radius: 28px; padding: clamp(32px, 6vw, 72px);
  background: linear-gradient(135deg, #0a3fd8 0%, #06174f 50%, #000 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.cta-panel h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
.cta-panel p { color: #cfdcff; margin: 18px 0 30px; max-width: 44ch; }
.btn-white { background: #fff; color: #031042; }
.btn-white:hover { background: #e4ecff; transform: translateY(-2px); }
.info { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.info li { background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; padding: 16px 20px; }
.info strong { display: block; font-size: .85rem; color: #9ebcff; font-weight: 500; margin-bottom: 2px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 50;
  display: flex; align-items: center; gap: 10px;
  width: 62px; height: 62px; padding: 0; justify-content: center; border-radius: 50%;
  background: var(--wa); color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .3);
  animation: waHop 3s ease-in-out infinite;
  transition: transform .2s ease;
}
.wa-float:hover { animation: none; transform: translateY(-3px) scale(1.03); }
@keyframes waHop {
  0%, 36%, 100% { transform: translateY(0) rotate(0); }
  8%  { transform: translateY(-12px) rotate(-6deg); }
  16% { transform: translateY(0) rotate(0); }
  23% { transform: translateY(-6px) rotate(5deg); }
  30% { transform: translateY(0) rotate(0); }
}
.wa-float svg { width: 34px; height: 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .cta-panel, .visit-card { grid-template-columns: 1fr; }
  .visit-art { min-height: 0; }
  .visit-art:has(> img) { min-height: 0; aspect-ratio: 1 / 1; }
  .board { max-width: 380px; order: -1; }
  .hero { padding-top: 40px; }
  .s-montagem, .s-limpeza, .s-formatacao, .s-reparos { grid-column: span 12; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav a { display: none; }
  section { padding: 72px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .service { padding: 26px; }
  .header .btn-small { padding: 9px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace { animation: none; stroke-dashoffset: 0; }
  .pulse, .ring, .chip-glow, .core, .ripple { animation: none; }
  .pulse { display: none; }
  .board { transition: none; }
  .node { animation: none; opacity: 1; }
  .btn, .wa-float { transition: none; }
  .wa-float { animation: none; }
}
