/* ==========================================================================
   EverThink Intelligence — design system
   Tema escuro editorial: hairlines, tipografia display, acentos em mono.
   Toda a folha é local (CSP: style-src 'self'; sem estilos inline).
   ========================================================================== */

/* Inter (fonte variável) hospedada localmente — sem chamadas a servidores do Google */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --bg: #05090f;
  --bg-soft: #0a1119;
  --bg-footer: #04070c;

  --text: #e8eef7;
  --text-2: #a6b4c6;
  --text-3: #6f7f95;

  --line: rgba(148, 184, 220, 0.16);
  --line-soft: rgba(148, 184, 220, 0.09);

  --accent: #3fb6ff;
  --accent-2: #7de8ff;
  --grad: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%);

  --radius: 16px;
  --nav-h: 76px;
  --container: 1140px;

  --sans: 'Inter', 'Segoe UI', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'SF Mono', Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(63, 182, 255, 0.3);
  color: var(--text);
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* Âncoras respeitam a altura da barra fixa */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* Acessibilidade ------------------------------------------------------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--accent);
  color: #041018;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Barra de navegação ---------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(5, 9, 15, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Marca em destaque na barra do topo */
.site-nav .brand-name {
  font-size: clamp(1.05rem, 0.7rem + 1.3vw, 1.4rem);
  letter-spacing: -0.02em;
}

.site-nav .brand-mark {
  filter: drop-shadow(0 2px 12px rgba(63, 182, 255, 0.5));
}

.brand-thin {
  font-weight: 350;
  color: var(--text-2);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.site-nav .btn-small {
  margin-left: 8px;
}

.nav-links + .btn-small {
  margin-left: 0;
}

/* Botões ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, filter 0.25s ease;
}

.btn-primary {
  background: var(--grad);
  color: #041018;
  box-shadow: 0 8px 28px rgba(63, 182, 255, 0.26);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 12px 34px rgba(63, 182, 255, 0.36);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: rgba(125, 232, 255, 0.45);
  background: rgba(125, 232, 255, 0.06);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.88rem;
  border-radius: 10px;
}

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 96px) 0 110px;
}

/* Grade de pontos, esvaindo para baixo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 197, 255, 0.08) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 82%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}

.glow-a {
  width: 520px;
  height: 520px;
  background: rgba(0, 119, 190, 0.4);
  top: -180px;
  left: -140px;
}

.glow-b {
  width: 460px;
  height: 460px;
  background: rgba(34, 211, 238, 0.16);
  top: 140px;
  right: -60px;
}

.constellation {
  position: absolute;
  top: 40px;
  right: -70px;
  width: min(46vw, 520px);
  height: auto;
  opacity: 0.55;
  pointer-events: none;
  animation: drift 9s ease-in-out infinite alternate;
}

@keyframes drift {
  to {
    transform: translateY(-12px);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 30px;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(125, 232, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(125, 232, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(125, 232, 255, 0);
  }
}

h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0 0 24px;
  max-width: 15ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 38px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-lbl {
  font-size: 0.84rem;
  color: var(--text-3);
}

/* Estrutura das seções --------------------------------------------------- */
.section {
  padding: 100px 0;
}

.band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sec-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--grad);
}

.sec-title {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 16px 0 12px;
}

.sec-lede {
  color: var(--text-2);
  font-size: 1.05rem;
  margin: 0;
}

p {
  color: var(--text-2);
}

/* Serviços --------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px 28px 34px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

/* Hairline superior que acende no hover */
.service-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 182, 255, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 50px rgba(0, 90, 160, 0.22);
}

.service-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(125, 232, 255, 0.05);
  color: var(--accent-2);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover .card-icon {
  border-color: rgba(125, 232, 255, 0.5);
  box-shadow: 0 0 24px rgba(125, 232, 255, 0.16);
}

.card-num {
  font-family: var(--mono);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(166, 180, 198, 0.16);
  letter-spacing: 0.04em;
}

.service-card h3 {
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}

.service-card p {
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0;
}

/* Vídeo ------------------------------------------------------------------ */
#apresentacao {
  position: relative;
  overflow: hidden;
}

#apresentacao::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 55%;
  width: 720px;
  height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(0, 119, 190, 0.22), transparent);
  pointer-events: none;
}

.video-frame {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(63, 182, 255, 0.5), rgba(148, 184, 220, 0.12) 38%, rgba(148, 184, 220, 0.1) 62%, rgba(125, 232, 255, 0.4));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 60px rgba(63, 182, 255, 0.08);
}

.video-wrapper {
  aspect-ratio: 16 / 9;
  border-radius: 17px;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Parceiros -------------------------------------------------------------- */
.partner-inner {
  text-align: center;
}

.partner-inner .sec-head {
  margin-bottom: 40px;
}

.partner-logo-box {
  display: inline-block;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.5), 0 0 40px rgba(63, 182, 255, 0.12);
}

.partner-logo-box img {
  max-width: 220px;
  height: auto;
}

.partner-cap {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Sobre ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 40px 72px;
  align-items: start;
}

.about-side {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.about-side .sec-title {
  margin-bottom: 0;
}

.about-body p {
  font-size: 1.03rem;
  line-height: 1.75;
  margin: 0 0 1.25em;
}

.about-body p:last-child {
  margin-bottom: 0;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.value-box {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.value-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--grad);
}

.value-box strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.value-box span {
  font-size: 0.96rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Política de Privacidade ------------------------------------------------ */
#main-politica {
  padding: calc(var(--nav-h) + 80px) 0 100px;
}

.prose {
  max-width: 780px;
}

.back-link {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 34px;
  transition: color 0.25s ease;
}

.back-link:hover {
  color: var(--accent-2);
}

.prose .eyebrow {
  display: flex;
}

.prose h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 16px 0 26px;
}

.prose h3 {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 34px 0 10px;
}

.prose p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.1em;
}

.prose a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(125, 232, 255, 0.4);
  transition: text-decoration-color 0.25s ease;
}

.prose a:hover {
  text-decoration-color: var(--accent-2);
}

/* Rodapé ----------------------------------------------------------------- */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--line-soft);
  padding: 76px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
}

.footer-tag {
  font-size: 0.95rem;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 300px;
  margin: 16px 0 0;
}

.footer-col h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 4px 0 18px;
}

.footer-nav a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: var(--accent-2);
}

.footer-mail {
  display: inline-block;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(125, 232, 255, 0.4);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-mail:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

.footer-legal {
  font-size: 0.85rem;
  color: var(--text-3);
  line-height: 1.7;
  margin: 18px 0 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--text-3);
}

/* Animações de entrada --------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}

.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.js .d1 { transition-delay: 0.08s; }
.js .d2 { transition-delay: 0.16s; }
.js .d3 { transition-delay: 0.24s; }
.js .d4 { transition-delay: 0.32s; }

.js .services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.js .about-values .reveal:nth-child(2) { transition-delay: 0.1s; }
.js .about-values .reveal:nth-child(3) { transition-delay: 0.2s; }

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

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

  .constellation,
  .chip-dot {
    animation: none;
  }
}

/* Responsivo ------------------------------------------------------------- */
@media (max-width: 960px) {
  .constellation {
    display: none;
  }

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

  .about-side {
    position: static;
  }

  .hero {
    padding: calc(var(--nav-h) + 70px) 0 84px;
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .nav-inner {
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 76px 0;
  }

  .hero-stats {
    gap: 20px 36px;
    margin-top: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 20px;
  }

  .brand-thin {
    display: none;
  }

  .service-card {
    padding: 26px 22px 30px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }
}
