/* ============ CISNEIROS · tokens ============ */
:root {
  --bg:        #070b16;   /* navy near-black */
  --surface:   #0c1222;
  --surface-2: #111a30;
  --line:      rgba(148,178,255,.10);
  --line-2:    rgba(148,178,255,.18);

  --text:      #f4f7fc;
  --muted:     #9fb0cc;   /* cinza claro azulado */
  --faint:     #6b7a97;

  --accent:    #2563EB;    /* azul tecnológico */
  --accent-2:  #1E3A8A;    /* azul profundo */
  --accent-ink:#ffffff;
  --accent-glow: rgba(37,99,235,.34);
  --logo-light:#D1D5DB;    /* cinza claro da marca */

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --max: 1200px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ============ reset ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: "Sora", system-ui, sans-serif; font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
canvas { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* ambient background glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 40% at 78% 0%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(50% 40% at 0% 12%, rgba(37,99,235,.06), transparent 55%);
}
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ eyebrow / headings ============ */
.eyebrow {
  font-family: "Montserrat", sans-serif;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 18px;
}
.grad {
  background: linear-gradient(100deg, var(--accent), #7aa9ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 30px -8px var(--accent-glow);
}
.btn--primary:hover { background: #3b82f6; box-shadow: 0 12px 40px -8px var(--accent-glow); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 30px; font-size: 16px; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav__inner {
  max-width: var(--max); margin-inline: auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: inline-flex; align-items: center; }
.brand__mark img { height: 32px; width: auto; display: block; }
.brand__text { font-family: "Sora", sans-serif; font-weight: 700; letter-spacing: -.01em; font-size: 20px; }
.brand__accent { color: var(--accent); }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 4px; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============ hero ============ */
.hero { padding: 76px 0 90px; }
.hero__grid {
  max-width: var(--max); margin-inline: auto; padding-inline: 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; }
.hero__sub { margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 46ch; }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero__panel {
  position: relative; aspect-ratio: 4/3.4; border-radius: var(--r-lg);
  border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.05);
}
.hero__panel canvas { width: 100%; height: 100%; }
.hero__panelglow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 70% 25%, var(--accent-glow), transparent 60%);
  mix-blend-mode: screen; opacity: .6;
}

/* ============ credibilidade ============ */
.cred { border-block: 1px solid var(--line); background: rgba(255,255,255,.012); }
.cred__inner {
  max-width: var(--max); margin-inline: auto; padding: 26px 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.cred__item { display: flex; flex-direction: column; gap: 4px; }
.cred__item + .cred__item { border-left: 1px solid var(--line); padding-left: 20px; }
.cred__k { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.cred__v { font-family: "Sora", sans-serif; font-weight: 500; font-size: 15px; color: var(--text); }

/* ============ section shell ============ */
.section { padding: 96px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section__head { max-width: 640px; margin-bottom: 52px; }
.section__title { font-size: clamp(2rem, 4vw, 3rem); }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.section__lead--center { margin-inline: auto; text-align: center; }
.section__head:has(.section__lead--center) { text-align: center; margin-inline: auto; }

/* ============ bento serviços ============ */
.bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  grid-auto-rows: 1fr;
}
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tile__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--accent); background: rgba(37,99,235,.10); border: 1px solid rgba(37,99,235,.2);
  margin-bottom: 6px;
}
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); font-size: .98rem; }
.tile--lg { grid-column: span 2; grid-row: span 1; }
.tile--wide { grid-column: span 2; }
.tile--accent {
  background: linear-gradient(160deg, rgba(37,99,235,.14), rgba(37,99,235,.03));
  border-color: rgba(37,99,235,.28);
}
.tile--accent .tile__icon { background: rgba(37,99,235,.18); }

/* ============ split diferenciais ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.split__left .section__title { margin-bottom: 6px; }
.split__left .section__lead { margin-bottom: 30px; }
.diff { list-style: none; display: flex; flex-direction: column; }
.diff li { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.diff li:first-child { border-top: 0; padding-top: 0; }
.diff__n { font-family: "Sora", sans-serif; color: var(--accent); font-size: .95rem; font-weight: 600; padding-top: 3px; }
.diff h3 { font-size: 1.15rem; margin-bottom: 6px; }
.diff p { color: var(--muted); font-size: .98rem; }

/* ============ case cenariosAI ============ */
.case {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface);
}
.case__media { position: relative; min-height: 380px; background: linear-gradient(150deg, var(--surface-2), #0a0c11); }
.case__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.case__tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  background: rgba(8,9,12,.7); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.case__body { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.case__body h3 { font-size: 1.6rem; margin-bottom: 16px; }
.case__body p { color: var(--muted); }
.case__meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; }
.case__meta div { display: flex; flex-direction: column; gap: 3px; }
.case__meta span { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.case__meta strong { font-family: "Sora", sans-serif; font-weight: 500; font-size: .98rem; }

/* ============ work grid (projetos + clientes) ============ */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.workcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.workcard:hover { transform: translateY(-4px); border-color: var(--line-2); }
.workcard__tag {
  align-self: flex-start;
  font-family: "Montserrat", sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.28); border-radius: 999px; padding: 5px 12px;
}
.workcard__tag--own { color: var(--muted); background: rgba(148,178,255,.06); border-color: var(--line-2); }
.workcard h3 { font-size: 1.35rem; }
.workcard p { color: var(--muted); font-size: .98rem; }
.workcard p strong { color: var(--text); font-weight: 600; }
.workcard__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.workcard__meta span {
  font-size: 12px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}

/* external link (projetos) */
.linkout {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: "Montserrat", sans-serif; font-weight: 600; font-size: .92rem;
  color: var(--accent); transition: gap .25s var(--ease), color .2s;
}
.linkout svg { transition: transform .25s var(--ease); }
.linkout:hover { color: #6ea0ff; gap: 9px; }
.linkout:hover svg { transform: translate(2px,-2px); }
.case__body .linkout { margin-top: 26px; }
.workcard .linkout { margin-top: 4px; }

/* ============ processo ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 34px 30px; position: relative; transition: border-color .3s, transform .3s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step__ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: var(--accent); background: rgba(37,99,235,.1); border: 1px solid rgba(37,99,235,.2);
  margin-bottom: 20px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; }

/* ============ CTA ============ */
.cta { padding: 110px 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(37,99,235,.12), transparent 60%);
}
.cta__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.cta__sub { margin-top: 18px; color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
.cta__actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.cta__contacts { margin-top: 30px; display: flex; gap: 26px; color: var(--faint); font-size: .95rem; flex-wrap: wrap; justify-content: center; }
.cta__contacts span { display: inline-flex; align-items: center; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 56px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand p { color: var(--muted); margin-top: 10px; max-width: 34ch; }
.footer__contact { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.footer__contact a { color: var(--muted); font-size: .92rem; transition: color .2s; }
.footer__contact a:hover { color: var(--accent); }
.footer__legal p { color: var(--faint); font-size: .9rem; line-height: 1.8; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-block: 22px; margin-top: 8px;
  color: var(--faint); font-size: .88rem;
}
.footer__bottom a:hover { color: var(--accent); }

/* ============ reveal motion ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }
  .hero__panel { aspect-ratio: 16/10; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .case { grid-template-columns: 1fr; }
  .case__media { min-height: 260px; }
  .cred__inner { grid-template-columns: 1fr 1fr; gap: 22px; }
  .cred__item:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__links.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 20px 24px; gap: 18px;
  }
  .nav__toggle { display: flex; }
  .bento { grid-template-columns: 1fr; }
  .tile--lg, .tile--wide { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .cta__title br, .hero__title br { display: none; }
}
@media (max-width: 460px) {
  .cred__inner { grid-template-columns: 1fr; }
  .cred__item + .cred__item { border-left: 0; padding-left: 0; padding-top: 16px; border-top: 1px solid var(--line); }
  .case__body { padding: 32px 26px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .step { transition: none; }
  * { animation: none !important; }
}
