:root {
  --espaco: #070709;
  --superficie: #111114;
  --superficie-2: #19191D;
  --texto-cor: #F2F2F4;
  --texto-suave: #9C9CA6;
  --linha: rgba(255, 255, 255, .1);
  --vermelho: #FF2E3A;
  --carmim: #B5001C;
  --grad: linear-gradient(100deg, var(--vermelho), var(--carmim));

  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --corpo: "Sora", "Segoe UI", system-ui, sans-serif;

  --raio-sm: 8px;
  --raio: 18px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--espaco);
  color: var(--texto-cor);
  font-family: var(--corpo);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }

::selection { background: var(--vermelho); color: var(--espaco); }

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

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--vermelho);
  color: var(--espaco);
  padding: 10px 14px;
  border-radius: var(--raio-sm);
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Marca */
.marca {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.marca__digital {
  font-weight: 400;
  color: var(--vermelho);
}
.marca__ponto {
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: var(--vermelho);
  margin-left: 0.1em;
  box-shadow: 0 0 10px var(--vermelho);
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 .9375rem/1 var(--corpo);
  padding: 17px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--grad);
  color: #FFFFFF;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 46, 58, 0);
  transition: box-shadow .2s ease, transform .2s ease;
}
.btn:hover { box-shadow: 0 0 28px rgba(255, 46, 58, .45); transform: translateY(-1px); }
.btn--linha {
  background: rgba(255, 255, 255, .03);
  color: var(--texto-cor);
  border-color: rgba(232, 236, 255, .3);
}
.btn--linha:hover { border-color: var(--vermelho); box-shadow: 0 0 20px rgba(255, 46, 58, .2); }
.btn--pequeno { padding: 12px 18px; font-size: .875rem; gap: 0; }
.btn--largo { width: 100%; }

/* Topo */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 9, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
}
.topo__inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--texto-suave);
  font-size: .9375rem;
  transition: color .15s ease;
}
.nav a:hover { color: var(--vermelho); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(80px, 11vw, 150px);
  isolation: isolate;
}
.hero__fundo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 35%, rgba(200, 0, 30, .28), transparent 70%),
    radial-gradient(45% 40% at 20% 10%, rgba(255, 46, 58, .14), transparent 70%);
}
/* Piso em perspectiva: a grade que some no horizonte */
.hero__piso {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: 0;
  height: 75%;
  background-image:
    linear-gradient(rgba(255, 46, 58, .42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 46, 58, .42) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(58deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 70%);
  animation: piso 6s linear infinite;
}
@keyframes piso { to { background-position: 0 64px, 0 0; } }

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 30%, #B9B9C2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: 26px;
  font-size: 1.125rem;
  color: var(--texto-suave);
  max-width: 34em;
}
.hero__acoes { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Fluxo: o painel do hero */
.fluxo {
  position: relative;
  margin: 0;
  padding: 30px 30px 26px;
  border-radius: 24px;
  background:
    linear-gradient(var(--superficie), var(--superficie)) padding-box,
    linear-gradient(140deg, rgba(255, 46, 58, .7), rgba(200, 0, 30, .25) 45%, rgba(200, 0, 30, .7)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 80px -20px rgba(200, 0, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.fluxo__titulo {
  font-size: .8125rem;
  color: var(--texto-suave);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fluxo__titulo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF2E3A;
  box-shadow: 0 0 10px #FF2E3A;
}
.fluxo__lista { list-style: none; position: relative; }
.fluxo__lista::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 46, 58, .5), rgba(200, 0, 30, .5));
  opacity: .45;
}
.estacao {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  align-items: start;
  padding: 14px 16px 14px 0;
  border-radius: 12px;
}
.estacao__marco,
.servico__marco {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  position: relative;
}
.estacao__marco { background: var(--superficie); }
.estacao__marco::before,
.servico__marco::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
}
.estacao__marco { color: #3A3A42; transition: color .3s ease, filter .3s ease; }
.estacao__nome {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #B6B6BF;
  transition: color .3s ease;
}
.estacao__evento {
  font-size: .875rem;
  color: #6F6F79;
  margin-top: 3px;
  transition: color .3s ease;
}
.estacao.ativa .estacao__marco { color: var(--vermelho); filter: drop-shadow(0 0 6px var(--vermelho)); }
.estacao.ativa .estacao__nome { color: #fff; }
.estacao.ativa .estacao__evento { color: #D4D4DB; }

/* Formas de cada etapa: o mesmo símbolo aparece no painel e nas soluções */
[data-etapa="trafego"] .estacao__marco::before,
[data-etapa="trafego"] .servico__marco::before { border-radius: 50%; }
[data-etapa="site"] .estacao__marco::before,
[data-etapa="site"] .servico__marco::before { border-radius: 2px; }
[data-etapa="automacao"] .estacao__marco::before,
[data-etapa="automacao"] .servico__marco::before { transform: rotate(45deg) scale(.88); border-radius: 2px; }
[data-etapa="sistema"] .estacao__marco::before,
[data-etapa="sistema"] .servico__marco::before { background: transparent; border: 3px solid currentColor; border-radius: 50%; }

.fluxo__lead {
  position: absolute;
  left: 43px;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 46, 58, .35), 0 0 22px 6px rgba(255, 46, 58, .75);
  opacity: 0;
  transition: top .9s cubic-bezier(.65, 0, .35, 1), opacity .3s ease;
  pointer-events: none;
}
.fluxo__lead.visivel { opacity: 1; }
.fluxo__rodape {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--linha);
  font-size: .875rem;
  color: var(--texto-suave);
}

/* Seções */
.secao { padding: clamp(72px, 10vw, 130px) 0; scroll-margin-top: 72px; position: relative; }
.secao--clara { background: linear-gradient(180deg, transparent, rgba(26, 18, 20, .55) 30%, transparent); }
.secao__cabeca { max-width: 42rem; margin-bottom: clamp(40px, 5vw, 60px); }
.secao__cabeca h2,
.contato h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.secao__cabeca p { margin-top: 18px; color: var(--texto-suave); font-size: 1.0625rem; }

/* Serviços */
.servicos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  overflow: hidden;
}
.servico {
  position: relative;
  padding: 38px 40px 40px;
  background: var(--espaco);
  transition: background-color .25s ease;
}
.servico::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity .25s ease;
}
.servico:hover { background: var(--superficie); }
.servico:hover::before { opacity: 1; }
.servico__topo { display: flex; align-items: center; gap: 14px; }
.servico__marco { color: var(--vermelho); filter: drop-shadow(0 0 6px rgba(255, 46, 58, .8)); }
.servico h3 { font-size: clamp(1.3rem, 2.1vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.servico__resumo { margin-top: 16px; font-size: 1.0625rem; color: #D2D2D9; max-width: 30em; }
.servico ul { list-style: none; margin-top: 22px; }
.servico li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-top: 1px solid var(--linha);
  color: var(--texto-suave);
  font-size: .9375rem;
}
.servico li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.25em;
  width: 8px;
  height: 1px;
  background: var(--vermelho);
}

/* Comparação */
.comparar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.comparar__col {
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 34px;
  background: rgba(17, 17, 20, .5);
}
.comparar__col h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 18px; color: var(--texto-suave); }
.comparar__col ul { list-style: none; }
.comparar__col li { padding: 13px 0; border-top: 1px solid var(--linha); color: #86868F; }
.comparar__col--giblabs {
  background:
    linear-gradient(160deg, rgba(255, 46, 58, .12), rgba(200, 0, 30, .22)) padding-box,
    linear-gradient(var(--superficie), var(--superficie)) padding-box,
    var(--grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 0 60px -15px rgba(200, 0, 30, .6);
}
.comparar__col--giblabs h3 { color: #fff; }
.comparar__col--giblabs li { color: #F2F2F4; border-color: rgba(255, 255, 255, .14); }

/* Passos */
.passos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.passos li { position: relative; padding-top: 26px; border-top: 1px solid var(--linha); }
.passos li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--vermelho);
  box-shadow: 0 0 10px var(--vermelho);
}
.passos__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--vermelho);
  display: block;
  margin-bottom: 18px;
}
.passos h3 { font-size: 1.1rem; font-weight: 600; }
.passos p { margin-top: 10px; color: var(--texto-suave); font-size: .9375rem; }

/* Dúvidas */
.duvidas { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.duvidas__lista { border-top: 1px solid var(--linha); }
.duvidas details { border-bottom: 1px solid var(--linha); }
.duvidas summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  position: relative;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: color .15s ease;
}
.duvidas summary:hover { color: var(--vermelho); }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::before,
.duvidas summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--vermelho);
  transition: transform .2s ease;
}
.duvidas summary::after { transform: rotate(90deg); }
.duvidas details[open] summary::after { transform: rotate(0deg); }
.duvidas details p { padding: 0 48px 26px 0; color: var(--texto-suave); max-width: 40em; }

/* Contato */
.contato::before {
  content: "";
  position: absolute;
  inset: 10% 0 0 40%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(200, 0, 30, .18), transparent 70%);
  pointer-events: none;
}
.contato__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contato__grid > div > p { margin-top: 18px; color: var(--texto-suave); font-size: 1.0625rem; max-width: 26em; }
.canais { list-style: none; margin-top: 32px; display: grid; gap: 4px; max-width: 24rem; }
.canais li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--linha);
}
.canais li:last-child { border-bottom: 1px solid var(--linha); }
.canais__rotulo { color: var(--texto-suave); font-size: .875rem; }
.canais a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color .15s ease;
}
.canais a:hover { color: var(--vermelho); }

.form {
  background: rgba(17, 17, 20, .75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--linha);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 22px;
}
.campo { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo > label, .campo > legend { font-weight: 500; font-size: .875rem; color: #D2D2D9; padding: 0; margin-bottom: 8px; }
.campo > label { margin-bottom: 0; }
.campo input[type="text"], .campo textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: rgba(7, 7, 9, .7);
  border: 1px solid var(--linha);
  border-radius: var(--raio-sm);
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: #5C5C66; }
.campo input[type="text"]:focus, .campo textarea:focus {
  outline: none;
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(255, 46, 58, .15);
}
.campo textarea { resize: vertical; }
.campo input[aria-invalid="true"] { border-color: #FF5C7A; }
.opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.opcao {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--linha);
  border-radius: 999px;
  cursor: pointer;
  font-size: .875rem;
  user-select: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.opcao input { accent-color: var(--vermelho); margin: 0; }
.opcao:has(input:checked) { border-color: var(--vermelho); background: rgba(255, 46, 58, .1); color: #fff; }
.form__erro { color: #FF7A92; font-weight: 500; font-size: .9375rem; }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding: 36px 0; }
.rodape__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.rodape p { color: var(--texto-suave); font-size: .875rem; }
.rodape__social { display: flex; gap: 8px; margin-left: auto; }
.rodape__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  color: var(--texto-suave);
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rodape__social a:hover { color: var(--vermelho); border-color: var(--vermelho); box-shadow: 0 0 16px rgba(255, 46, 58, .35); }
.rodape__copy { width: 100%; }

/* Responsivo */
@media (max-width: 960px) {
  .hero__grid, .contato__grid, .duvidas { grid-template-columns: 1fr; }
  .passos { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .nav { display: none; }
  .topo__inner { justify-content: space-between; }
}

@media (max-width: 680px) {
  .servicos { grid-template-columns: 1fr; }
  .servico { padding: 30px 22px; }
  .comparar { grid-template-columns: 1fr; }
  .comparar__col { padding: 26px 22px; }
  .passos { grid-template-columns: 1fr; }
  .fluxo { padding: 24px 18px 20px; }
  .hero__acoes .btn { width: 100%; }
  .btn--pequeno { padding: 10px 14px; font-size: .8125rem; gap: 0; }
  .so-largo { display: none; }
  .rodape__copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__piso { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
