/* =========================================================
   Maxx Soluções Empresariais — folha de obra (site em atualização)
   Conceito: a página é a própria planta baixa do site em construção.
   Paleta e tipografia extraídas do Manual de Identidade Maxx.
   ========================================================= */

:root {
  /* Cor — paleta oficial da marca (Manual de Identidade Maxx) */
  --navy: #002554;        /* Azul Marinho Corporativo — cor principal, confiança */
  --blue: #003da5;        /* Azul Tecnológico — cor principal, inovação */
  --blue-dynamic: #0072ce; /* Azul Dinâmico — cor secundária, movimento */
  --mint: #a8d3c4;        /* Verde Menta — cor secundária, crescimento */
  --white: #f8f8f8;       /* branco de marca */

  --bg: var(--navy);
  --bg-panel: var(--blue);
  --line: rgba(248, 248, 248, 0.10);
  --line-strong: rgba(248, 248, 248, 0.24);
  --ink: var(--white);
  --muted: #8fabd6;
  --accent: var(--blue-dynamic);
  --accent-text: #5ca8eb; /* variante clara do Azul Dinâmico, para texto legível sobre o navy */
  --accent-dim: rgba(0, 114, 206, 0.35);
  --glow:
    0 0 4px rgba(0, 114, 206, 0.95),
    0 0 14px rgba(0, 114, 206, 0.6),
    0 0 32px rgba(0, 114, 206, 0.35);

  /* Tipografia — Poppins é a família oficial voltada a clareza e funcionalidade */
  --font-brand: 'Poppins', 'Segoe UI', sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --sheet-margin: clamp(1rem, 2.5vw, 2rem);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-brand);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- fundo de grade, papel milimetrado da planta --- */

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, black 40%, transparent 90%);
}

/* --- marcas de corte nos cantos, como uma folha de prancha --- */

.crop {
  position: fixed;
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
}

.crop::before,
.crop::after {
  content: '';
  position: absolute;
  background: var(--line-strong);
}

.crop::before { width: 100%; height: 1px; top: 50%; }
.crop::after { width: 1px; height: 100%; left: 50%; }

.crop--tl { top: var(--sheet-margin); left: var(--sheet-margin); }
.crop--tr { top: var(--sheet-margin); right: var(--sheet-margin); }
.crop--bl { bottom: var(--sheet-margin); left: var(--sheet-margin); }
.crop--br { bottom: var(--sheet-margin); right: var(--sheet-margin); }

/* --- folha principal --- */

.sheet {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--sheet-margin) + 40px) var(--gutter) var(--sheet-margin);
}

/* --- marca, canto superior esquerdo --- */

.brandmark {
  position: absolute;
  top: var(--sheet-margin);
  left: var(--gutter);
  display: inline-flex;
  line-height: 0;
}

.brandmark img {
  height: clamp(34px, 5vw, 52px);
  width: auto;
}

/* --- selo de projeto, canto superior direito, estilo carimbo técnico --- */

.titleblock {
  align-self: flex-end;
  border: 1px solid var(--line-strong);
  background: rgba(0, 61, 165, 0.28);
  backdrop-filter: blur(2px);
  padding: 0.75rem 1rem;
}

.titleblock dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.15rem 1rem;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.7rem;
}

.titleblock dt {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.titleblock dd {
  margin: 0;
  text-align: left;
  color: var(--ink);
}

.titleblock__status {
  color: var(--accent-text);
  text-shadow: 0 0 3px rgba(0, 114, 206, 0.8), 0 0 10px rgba(0, 114, 206, 0.4);
}

/* --- hero --- */

.hero {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding-block: clamp(1rem, 6vw, 1rem);
}

.hero__schematic {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.55;
}

.schematic {
  width: min(46vw, 620px);
  height: auto;
}

.draw-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.draw-path--structure {
  stroke: var(--muted);
  stroke-width: 1.5;
}

.draw-path--network {
  stroke: var(--accent);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 3px rgba(0, 114, 206, 0.85)) drop-shadow(0 0 10px rgba(0, 114, 206, 0.5));
}

.draw-path--dim {
  stroke: var(--line-strong);
  stroke-width: 1;
}

.nodes circle {
  fill: var(--bg);
  stroke: var(--accent);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 4px rgba(0, 114, 206, 0.9));
  animation: node-pulse 2.6s ease-in-out infinite;
}

.nodes circle.node--core {
  stroke: var(--mint);
  filter: drop-shadow(0 0 5px rgba(168, 211, 196, 0.95));
  animation: node-pulse-mint 2.6s ease-in-out infinite;
}

.nodes circle:nth-child(2) { animation-delay: 0.4s; }
.nodes circle:nth-child(3) { animation-delay: 0.8s; }
.nodes circle:nth-child(4) { animation-delay: 1.2s; }
.nodes circle:nth-child(5) { animation-delay: 1.6s; }

@keyframes node-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(0, 114, 206, 0.9));
  }
  50% {
    filter: drop-shadow(0 0 9px rgba(0, 114, 206, 1)) drop-shadow(0 0 18px rgba(0, 114, 206, 0.6));
  }
}

@keyframes node-pulse-mint {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(168, 211, 196, 0.95));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(168, 211, 196, 1)) drop-shadow(0 0 20px rgba(168, 211, 196, 0.65));
  }
}

.dim-label {
  fill: var(--muted);
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-anchor: middle;
}

.hero__content {
  grid-column: 1 / -1;
  max-width: 640px;
}

.eyebrow {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.6em;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: var(--glow);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% {
    box-shadow: var(--glow);
  }
  50% {
    box-shadow:
      0 0 6px rgba(0, 114, 206, 1),
      0 0 20px rgba(0, 114, 206, 0.8),
      0 0 44px rgba(0, 114, 206, 0.45);
  }
}

.headline {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.headline .accent {
  color: var(--mint);
}

.lede {
  font-weight: 300;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.75rem;
}

.contact {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.contact__label {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
}

.contact__list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.contact__tag {
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--muted);
}

.contact__list a {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__list a:hover {
  color: var(--accent-text);
  border-color: var(--accent);
  text-shadow: var(--glow);
}

/* --- rodapé --- */

.footer {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* --- responsivo --- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__schematic {
    justify-content: center;
    opacity: 0.28;
  }

  .schematic {
    width: min(90vw, 520px);
  }

  .titleblock dl {
    grid-template-columns: auto auto;
  }
}

@media (max-width: 620px) {
  .brandmark {
    position: static;
    margin-bottom: 1.5rem;
  }

  .sheet {
    padding-top: var(--sheet-margin);
  }
}

@media (max-width: 480px) {
  .titleblock {
    display: none;
  }

  .contact__list {
    flex-direction: column;
    gap: 0.9rem;
  }
}

/* --- movimento reduzido --- */

@media (prefers-reduced-motion: reduce) {
  .draw-path {
    transition: none !important;
  }

  .eyebrow::before,
  .nodes circle {
    animation: none !important;
  }
}
