/* ==========================================================================
   Mutaito IT — site institucional
   Identidade: azul #0066FF · azul escuro #0B1220 · cinza #94A3B8 · branco #F5F7FA
   Tipografia: Montserrat (títulos) + Inter (texto), hospedadas localmente.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1220;
  --bg-2: #111a2e;
  --bg-3: #16213a;
  --accent: #0066ff;
  --accent-l: #4d94ff;
  --slate: #94a3b8;
  --text: #f5f7fa;
  --white: #ffffff;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px -24px rgba(0, 102, 255, 0.45);
  --font-title: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-l);
  text-decoration: none;
}

a:hover {
  color: var(--white);
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--white);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--accent-l);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
  color: var(--white);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(0, 102, 255, 0.7);
}

.btn-primary:hover {
  background: var(--accent-l);
  color: var(--bg);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent-l);
  color: var(--white);
  background: rgba(77, 148, 255, 0.08);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 18, 32, 0.92);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 40px;
  height: 34px;
  flex: none;
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.brand-name span {
  color: var(--accent-l);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a:not(.btn) {
  color: var(--slate);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-l);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:not(.btn):hover {
  color: var(--white);
}

.nav a:not(.btn):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 520px at 85% 20%, rgba(0, 102, 255, 0.28), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(77, 148, 255, 0.12), transparent 70%),
    var(--bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: -10%;
  height: 130%;
  width: 90px;
  transform: skewX(-21deg);
  background: linear-gradient(180deg, rgba(77, 148, 255, 0.1), rgba(0, 102, 255, 0));
  pointer-events: none;
}

.hero::before {
  right: 38%;
}

.hero::after {
  right: 31%;
  width: 36px;
  opacity: 0.7;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-l);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--accent-l);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-l), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--slate);
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  width: 100%;
  margin-inline: auto;
}

.hero-visual .halo {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.45), rgba(0, 102, 255, 0) 68%);
  filter: blur(18px);
}

.hero-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hero-visual .ring-1 {
  inset: 4%;
}

.hero-visual .ring-2 {
  inset: 18%;
  border-color: var(--line-strong);
}

.hero-visual .mark {
  position: relative;
  width: 62%;
  filter: drop-shadow(0 18px 40px rgba(0, 102, 255, 0.55));
}

/* ---------- Seções ---------- */

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 16px;
  color: var(--slate);
  font-size: 1.08rem;
}

/* ---------- Serviços ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px 28px 28px;
  background: linear-gradient(180deg, var(--bg-2), rgba(17, 26, 46, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:nth-child(n + 4) {
  grid-column: span 3;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 148, 255, 0.55);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 102, 255, 0.14);
  border: 1px solid rgba(77, 148, 255, 0.32);
  color: var(--accent-l);
}

.card-icon .icon {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.card p {
  color: var(--slate);
  font-size: 0.98rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.chips li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid var(--line);
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Como trabalhamos ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 24px 26px;
  border-top: 2px solid var(--line-strong);
}

.step::before {
  content: "0" counter(step);
  counter-increment: step;
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(120deg, var(--accent-l), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--accent-l);
}

.step h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--slate);
  font-size: 0.96rem;
}

/* ---------- Produtos ---------- */

.product {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(0, 102, 255, 0.22), transparent 70%),
    var(--bg-2);
  overflow: hidden;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-l);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(77, 148, 255, 0.4);
  background: rgba(0, 102, 255, 0.12);
  margin-bottom: 20px;
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-l);
}

.product h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

.product p {
  margin-top: 14px;
  color: var(--slate);
  max-width: 540px;
}

.product .btn {
  margin-top: 28px;
}

.checklist {
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid var(--line);
  font-size: 0.96rem;
}

.checklist .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--accent-l);
}

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.product-cards .card {
  grid-column: auto;
}

.product-cards .badge {
  align-self: flex-start;
  margin-bottom: 4px;
}

.product-cards .btn {
  margin-top: auto;
  align-self: flex-start;
}

.product-cards .chips {
  margin-bottom: 10px;
}

/* ---------- Contato ---------- */

.contact {
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid rgba(77, 148, 255, 0.35);
  background:
    radial-gradient(640px 320px at 50% 0%, rgba(0, 102, 255, 0.38), transparent 70%),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  overflow: hidden;
}

.contact h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 760px;
  margin-inline: auto;
}

.contact > p {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--slate);
  font-size: 1.08rem;
}

.contact-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-info {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  color: var(--slate);
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--text);
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--accent-l);
}

/* ---------- Rodapé ---------- */

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--slate);
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--slate);
  font-size: 0.85rem;
}

/* ---------- Páginas de texto (privacidade, 404) ---------- */

.doc {
  padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px);
}

.doc .container {
  max-width: 800px;
}

.doc h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.doc .updated {
  color: var(--slate);
  font-size: 0.92rem;
  margin-bottom: 40px;
}

.doc h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 40px 0 12px;
}

.doc p,
.doc li {
  color: #cbd5e1;
}

.doc p + p {
  margin-top: 14px;
}

.doc ul {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  padding-left: 22px;
  list-style: disc;
}

.doc ul li::marker {
  color: var(--accent-l);
}

.doc a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notfound {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.notfound .code {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--accent-l), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-top: 12px;
}

.notfound p {
  margin: 14px auto 28px;
  color: var(--slate);
  max-width: 440px;
}

/* ---------- Animação de entrada (só aplicada via JS) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .product-cards {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 280px;
    order: -1;
    margin-inline: 0;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .card,
  .card:nth-child(n + 4) {
    grid-column: span 1;
  }

  .card:last-child {
    grid-column: span 2;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 22px;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav a:not(.btn)::after {
    display: none;
  }

  .nav .btn {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .services,
  .steps {
    grid-template-columns: 1fr;
  }

  .card:last-child {
    grid-column: span 1;
  }

  .hero-cta .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .brand-name {
    font-size: 1.02rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
