:root {
  --bg: #f3f6fa;
  --bg-elevated: #e8eef5;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --cyan: #0284c7;
  --cyan-2: #0ea5e9;
  --cyan-dim: rgba(2, 132, 199, 0.1);
  --cyan-glow: rgba(2, 132, 199, 0.25);
  --success: #10b981;
  --danger: #ef4444;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
  --header-h: 92px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(14, 165, 233, 0.15), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, rgba(2, 132, 199, 0.1), transparent 50%),
    linear-gradient(180deg, #f3f6fa 0%, #e8eef5 100%);
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 72%);
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(243, 246, 250, 0.85);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 246, 250, 0.96);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  height: 66px;
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.55rem 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.socials {
  display: flex;
  gap: 0.4rem;
}

.socials a,
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.socials a:hover,
.icon-btn:hover,
.socials a:focus-visible,
.icon-btn:focus-visible {
  color: var(--cyan);
  border-color: rgba(2, 132, 199, 0.4);
  background: var(--cyan-dim);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--cyan-2), var(--cyan));
  color: #ffffff;
  box-shadow: 0 8px 24px var(--cyan-glow);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px var(--cyan-glow);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.menu-toggle {
  display: none;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 196, 239, 0.28);
  background: var(--cyan-dim);
  color: var(--cyan-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 0.9rem;
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 650;
}

.hero p.lead {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-visual {
  position: relative;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.panel-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot:nth-child(1) { background: #ff6b81; }
.dot:nth-child(2) { background: #fbbf24; }
.dot:nth-child(3) { background: #34d399; }

.panel-label {
  margin-left: 0.4rem;
  color: var(--muted-2);
  font-size: 0.78rem;
}

.panel-body {
  padding: 1.1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mini-card {
  padding: 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.mini-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.75rem;
}

.mini-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-family: var(--display);
  color: var(--text);
}

.mini-card em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
}

.chart {
  grid-column: 1 / -1;
  height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.14), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(15, 23, 42, 0.03) 18px 19px);
  position: relative;
  overflow: hidden;
}

.chart svg {
  position: absolute;
  inset: 8px 8px 0;
  width: calc(100% - 16px);
  height: calc(100% - 8px);
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section h2 {
  margin: 0.4rem 0 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  padding: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 100%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.feature-thumb {
  width: 100%;
  height: 165px;
  overflow: hidden;
  background: #edf2f7;
  position: relative;
}

.feature-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature:hover .feature-thumb img {
  transform: scale(1.06);
}

.feature-body {
  padding: 1.2rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--cyan-dim);
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-family: var(--display);
  color: var(--text);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-copy h2 {
  margin-top: 0;
}

.split-copy p {
  color: var(--muted);
}

/* ============================================================
   FAIXAS DE CORES HORIZONTAIS & DIVISÃO DOS MÓDULOS E TEMAS
   ============================================================ */

/* 1. Módulos & Sistemas */
.section-sistemas {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.14);
  border-bottom: 1px solid rgba(2, 132, 199, 0.12);
}

.section-sistemas::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #0284c7, #38bdf8, #0ea5e9);
}

/* 2. Equipamentos & Hardware */
.section-equipamentos {
  background: linear-gradient(180deg, #eaf2fa 0%, #dcebf8 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.16);
  border-bottom: 1px solid rgba(2, 132, 199, 0.16);
}

.section-equipamentos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0284c7, #06b6d4);
}

.equipment-media {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.equipment-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.equipment-item:hover {
  transform: translateY(-3px);
  border-color: rgba(2, 132, 199, 0.45);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.equipment-thumb {
  width: 100%;
  height: 125px;
  overflow: hidden;
  background: #edf2f7;
  position: relative;
}

.equipment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.equipment-item:hover .equipment-thumb img {
  transform: scale(1.06);
}

.equipment-meta {
  padding: 0.75rem 0.85rem;
}

.equipment-meta strong {
  display: block;
  font-size: 0.94rem;
  color: var(--text);
  font-family: var(--display);
}

.equipment-meta span {
  display: block;
  font-size: 0.76rem;
  color: var(--cyan);
  margin-top: 0.15rem;
  font-weight: 500;
}

/* 3. Sites & Lojas Virtuais */
.section-internet {
  background: linear-gradient(180deg, #ffffff 0%, #f6fafd 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.14);
  border-bottom: 1px solid rgba(2, 132, 199, 0.14);
}

.section-internet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #06b6d4, #0ea5e9);
}

.media-card {
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(400px 180px at 20% 20%, rgba(14, 165, 233, 0.12), transparent 60%),
    linear-gradient(160deg, #ffffff, #f1f5f9);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.chip {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.chip small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

/* 4. Faixa CTA (Chamada para Ação) */
.cta-band {
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #e1effa 0%, #d4e8f7 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.18);
  border-bottom: 1px solid rgba(2, 132, 199, 0.18);
  position: relative;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #0284c7);
}

.cta-card {
  border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid rgba(2, 132, 199, 0.22);
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(14, 165, 233, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff, #f1f5f9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  margin: 0 0 0.5rem;
  white-space: pre-line;
}

.cta-card p {
  margin: 0;
  color: var(--muted);
}

/* 5. Contato & Consultoria */
.contact-section {
  padding: 5rem 0 5.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #edf4fa 100%);
  border-top: 1px solid rgba(2, 132, 199, 0.14);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #0ea5e9, #38bdf8);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
}

.contact-aside {
  padding: 1.6rem;
  background: #ffffff;
}

.contact-aside h2 {
  margin-top: 0;
}

.contact-aside p {
  color: var(--muted);
}

.form {
  padding: 1.4rem;
  background: #ffffff;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

.form-status {
  min-height: 1.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
  background: #e8eef5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-copy {
  color: var(--muted-2);
  font-size: 0.88rem;
}

.footer-copy strong {
  color: var(--muted);
  font-weight: 650;
  display: block;
  margin-bottom: 0.15rem;
}

.apps-hero {
  padding: 1.8rem 0 1.4rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border-bottom: 1px solid rgba(2, 132, 199, 0.12);
  position: relative;
}

.apps-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0ea5e9, #0284c7, #38bdf8);
}

.apps-hero .section-head {
  margin-bottom: 0;
}

.apps-hero h2 {
  margin: 0.3rem 0 0.4rem;
}

.apps-body-section {
  padding: 2.2rem 0 4.5rem;
  background: linear-gradient(180deg, #eaf2fa 0%, #f1f6fb 100%);
  position: relative;
}

.apps-body-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8, #0284c7, #06b6d4);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.app-card {
  padding: 1.5rem;
  text-align: center;
  background: #ffffff;
}

.app-card h3 {
  margin: 0.3rem 0 0.5rem;
  font-family: var(--display);
}

.app-card p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.2s ease;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .split.reverse,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.5rem;
  }
}

@media (max-width: 820px) {
  .nav,
  .header-actions .socials,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0.75rem;
    left: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    z-index: 60;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 1rem;
  }

  .nav .mobile-cta {
    display: flex;
    margin-top: 0.4rem;
  }
}

@media (min-width: 821px) {
  .nav .mobile-cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .features,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .brand img {
    height: 48px;
  }

  .section {
    padding: 3.2rem 0;
  }

  .feature-thumb {
    height: 185px;
  }
}

@media (max-width: 440px) {
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .equipment-thumb {
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
