/* ==========================================================================
   Controller TI — site institucional
   Tema escuro institucional · azul-marinho + prata + ciano
   ========================================================================== */

:root {
  --bg: #0e1a2b;
  --bg-elev: #13233a;
  --bg-elev-2: #16263d;
  --text: #eef2f6;
  --text-muted: #9fb0c2;
  --text-dim: #8fa1b3;
  --accent: #4fc3f7;
  --accent-strong: #7dd3fb;
  --accent-soft: rgba(79, 195, 247, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1140px;
  --radius: 14px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

::selection { background: var(--accent); color: #0e1a2b; }

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

section[id] { scroll-margin-top: 84px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #0e1a2b;
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Tipografia utilitária ---------- */

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 0.7rem 0 0.9rem;
  color: #f3f6fa;
}

.section-intro {
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
  margin: 0;
}

.accent-text { color: var(--accent); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn .icon { width: 1.2em; height: 1.2em; flex: none; }

.btn-primary {
  background: var(--accent);
  color: #0a1626;
  box-shadow: 0 8px 24px -10px rgba(79, 195, 247, 0.6);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(79, 195, 247, 0.7);
}

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

.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.02rem; }

/* ---------- Header / navegação ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  padding: 0.65rem 0;
  background: rgba(11, 20, 34, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.3px;
  color: var(--text);
}
.brand-ti {
  color: var(--accent);
  font-size: 0.62em;
  font-weight: 600;
  vertical-align: 0.55em;
  letter-spacing: 0.06em;
  margin-left: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.main-nav > a:not(.btn) {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color 0.2s var(--ease);
}
.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.main-nav > a:not(.btn):hover,
.main-nav > a:not(.btn):focus-visible { color: var(--text); }
.main-nav > a:not(.btn):hover::after,
.main-nav > a:not(.btn):focus-visible::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 92vh;
  padding: clamp(8rem, 18vh, 12rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1000px, 130%);
  height: 760px;
  background: radial-gradient(circle at center, rgba(79, 195, 247, 0.20), rgba(79, 195, 247, 0) 62%);
  pointer-events: none;
}
.hero-watermark {
  position: absolute;
  right: -7%;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 56vw);
  opacity: 0.06;
  filter: grayscale(1);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 840px; }
.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6.2vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #f5f8fc;
  margin: 0.7rem 0 1.3rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
  margin: 0;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero-proof {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.hero-proof strong {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  margin-right: 0.15rem;
}

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

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head { max-width: 660px; margin: 0 0 clamp(2.5rem, 5vw, 3.5rem); }

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 195, 247, 0.4);
  background: var(--bg-elev-2);
}
.service-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.service-card p { margin: 0; color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; }

/* ---------- Automação & IA ---------- */

.section-ai {
  overflow: hidden;
  border-top: 1px solid rgba(79, 195, 247, 0.18);
}
.section-ai-glow {
  position: absolute;
  top: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 130%);
  height: 600px;
  background: radial-gradient(circle at center, rgba(79, 195, 247, 0.16), rgba(79, 195, 247, 0) 60%);
  pointer-events: none;
  z-index: 0;
}
.section-ai .container { position: relative; z-index: 1; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.ai-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.25rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
}
.ai-cta-text {
  margin: 0;
  flex: 1 1 280px;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.ai-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}
.ai-note svg { width: 1.05em; height: 1.05em; flex: none; color: var(--accent); }
.ai-note a {
  color: var(--accent);
  border-bottom: 1px solid rgba(79, 195, 247, 0.3);
  transition: border-color 0.2s var(--ease);
}
.ai-note a:hover { border-color: var(--accent); }

/* ---------- Diferenciais ---------- */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
}
.pillar {
  border-left: 2px solid rgba(79, 195, 247, 0.4);
  border-radius: 0;
  padding: 0.75rem 0 0.75rem 1.5rem;
}
.pillar-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(79, 195, 247, 0.55);
  margin-bottom: 0.4rem;
}
.pillar h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.pillar p { margin: 0; color: var(--text-muted); font-size: 0.96rem; line-height: 1.55; }

/* ---------- Sobre + números ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}
.about-text .btn { margin-top: 0.8rem; }
.stats { display: grid; gap: 1rem; }
.stats li {
  list-style: none;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- Processo ---------- */

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
}
.step { position: relative; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--accent);
  color: #0a1626;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.step::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  left: 3.2rem;
  right: -1.75rem;
  height: 1px;
  background: var(--border);
}
.step:last-child::after { display: none; }
.step h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.step p { margin: 0; color: var(--text-muted); font-size: 0.96rem; line-height: 1.55; }

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

.contact { text-align: center; overflow: hidden; }
.contact-glow { top: -40%; }
.contact-inner { max-width: 700px; margin: 0 auto; position: relative; }
.contact .section-title { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 0.6rem; }
.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.2rem 0 1.6rem;
}
.contact-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}
.contact-meta .icon { width: 1.15em; height: 1.15em; color: var(--accent); }

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

.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: 2.5rem;
}
.footer-brand .brand { margin-bottom: 0.4rem; }
.footer-tagline {
  color: var(--text-muted);
  margin: 0.85rem 0 1.25rem;
  max-width: 260px;
  line-height: 1.55;
}
.footer-social a {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer-social a:hover { color: var(--accent); border-color: rgba(79, 195, 247, 0.4); }
.footer-social svg { width: 20px; height: 20px; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav h4, .footer-contact h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.footer-nav a, .footer-contact a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.875rem;
}
.footer-bottom p { margin: 0; }
.footer-legal a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Página legal (política de privacidade) ---------- */

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(7rem, 16vh, 10rem) 0 clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}
.legal-hero .hero-glow { top: -45%; height: 600px; }
.legal-hero-inner { position: relative; max-width: 780px; }
.legal-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #f5f8fc;
  margin: 0.6rem 0 0.7rem;
}
.legal-sub { color: var(--text-muted); font-size: 1.08rem; margin: 0; }
.legal-sub strong { color: var(--text); font-weight: 500; }
.legal-updated { color: var(--text-dim); font-size: 0.9rem; margin: 0.9rem 0 0; }

.legal-content { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.legal-content .container { max-width: 820px; }
.legal-prose { color: var(--text-muted); font-size: 1.02rem; line-height: 1.75; }
.legal-prose h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin: 2.5rem 0 0.8rem;
}
.legal-prose p { margin: 0 0 1rem; }
.legal-prose ul { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.legal-prose li { margin-bottom: 0.5rem; }
.legal-prose strong { color: var(--text); font-weight: 500; }
.legal-prose a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 195, 247, 0.3);
  transition: border-color 0.2s var(--ease);
}
.legal-prose a:hover { border-color: var(--accent); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.75rem;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 0;
}
.legal-back:hover { color: var(--accent-strong); }

/* ---------- Animação de entrada ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 45;
    width: min(82vw, 330px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.4rem;
    padding: 6rem 1.75rem 2rem;
    background: var(--bg-elev);
    border-left: 1px solid var(--border);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .site-header.nav-open .main-nav { transform: translateX(0); }
  .site-header.nav-open .icon-menu { display: none; }
  .site-header.nav-open .icon-close { display: block; }
  .main-nav > a:not(.btn) { font-size: 1.1rem; padding: 0.7rem 0; }
  .main-nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 0.7rem 0 0; width: 100%; }

  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .step::after { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 1.15rem; }
  .hero { min-height: auto; }
  .hero-proof { gap: 1rem 1.5rem; }
  .hero-cta .btn { flex: 1 1 auto; }
  .ai-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.4rem; }
}

/* ---------- Movimento reduzido ---------- */

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