/* vylcor.com · direção "faixas e sistema"
   Entrada: faixas de luz vermelha no ângulo do símbolo (25,6° da vertical),
   em movimento lento, com grão. Depois: o sistema na tela, à Linear. */

@font-face {
  font-family: 'Geist';
  src: url('/fontes/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fontes/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --fundo: #07080b;
  --fundo-2: #0d0e12;
  --painel: #111216;
  --linha: rgba(255, 255, 255, .08);
  --linha-forte: rgba(255, 255, 255, .14);
  --texto: #f2f3f5;
  --texto-2: #9a9ea8;
  --texto-3: #6b6f79;
  --vermelho: #ff4545;
  --vermelho-fundo: #d81b36;
  --fria: #2a3d78;
  --angulo: 25.6deg;
  --margem: clamp(1.25rem, 4vw, 3rem);
  --largura: 76rem;
  --suave: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
  scrollbar-color: #2a2c33 var(--fundo);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--fundo);
  color: var(--texto);
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body { margin: 0; }
::selection { background: var(--vermelho); color: #fff; }
:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }

/* ---------- botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform .25s var(--suave), background-color .25s, box-shadow .25s;
}
.botao--pequeno { height: 2.25rem; padding: 0 1rem; font-size: .875rem; }
.botao--claro {
  background: #f4f4f5;
  color: #0b0c0f;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.6) inset, 0 6px 20px -6px rgba(0,0,0,.6);
}
.botao--claro:hover { background: #fff; transform: translateY(-1px); }
.botao--claro:active { transform: translateY(0); background: #e4e4e7; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 1rem 0 auto;
  z-index: 10;
  padding: 0 var(--margem);
}
.nav__barra {
  max-width: var(--largura);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .55rem .6rem .55rem 1.25rem;
  border: 1px solid var(--linha);
  border-radius: 16px;
  background: color-mix(in srgb, var(--fundo) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.logo { display: inline-flex; color: var(--texto); }
.logo__marca { height: 1.35rem; width: auto; display: block; }
.nav__links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav__links a { font-size: .9rem; color: var(--texto-2); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--texto); }
.idioma {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--texto-2);
  text-decoration: none;
  padding: .35rem .55rem;
  border: 1px solid var(--linha-forte);
  border-radius: 8px;
  transition: color .2s, border-color .2s;
}
.idioma:hover { color: var(--texto); border-color: rgba(255,255,255,.3); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 7rem var(--margem) 5rem;
}

.faixas {
  position: absolute;
  inset: 0;
  z-index: -2;
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 52%, #000 35%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 75% at 50% 52%, #000 35%, transparent 78%);
}
.faixas__palco {
  position: absolute;
  inset: -30% -20%;
  transform: rotate(var(--angulo)) translate3d(var(--px, 0), var(--py, 0), 0);
  transition: transform 1.2s var(--suave);
}
.faixa {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: var(--w);
  background:
    linear-gradient(90deg, rgba(7,8,11,.55), transparent 18%, transparent 82%, rgba(7,8,11,.35)),
    linear-gradient(180deg,
      transparent 0%,
      var(--vermelho-fundo) 20%,
      var(--vermelho) 46%,
      #c3142f 70%,
      transparent 100%);
  filter: blur(var(--b));
  opacity: var(--o);
  animation: deslizar var(--t) ease-in-out infinite alternate, acender 2.4s var(--suave) both;
  will-change: transform;
}
.faixa--fio {
  background: linear-gradient(180deg, transparent, #ff7a7a 40%, var(--vermelho) 60%, transparent);
}
.faixa--fria {
  background: linear-gradient(180deg, transparent, var(--fria) 40%, #1b2650 70%, transparent);
}
@keyframes deslizar {
  from { transform: translate3d(0, calc(var(--dy) * -1), 0); }
  to   { transform: translate3d(0, var(--dy), 0); }
}
@keyframes acender {
  from { opacity: 0; }
  to   { opacity: var(--o); }
}

.grao {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.6 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}

.hero__texto {
  text-align: center;
  max-width: 52rem;
  animation: subir 1.4s .2s var(--suave) both;
}
.hero__titulo {
  margin: 0;
  font-size: clamp(2.75rem, 7.4vw, 6.25rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.045em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .35);
}
.hero__sub {
  margin: 1.5rem auto 0;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .86);
  text-shadow: 0 1px 20px rgba(0, 0, 0, .5);
}
.hero__acoes {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
}
.hero__email {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
}
@keyframes subir {
  from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- produto ---------- */

.produto {
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) var(--margem) clamp(3rem, 6vw, 5rem);
}
.produto__cabeca {
  display: grid;
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 960px) { .produto__cabeca { grid-template-columns: 1.1fr 1fr; } }
.produto__titulo {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.produto__sub {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.55;
  color: var(--texto-2);
}

/* a janela do sistema */
.app {
  margin: 0;
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(180deg, var(--linha-forte), rgba(255,255,255,.03) 60%);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0,0,0,.6);
}
.app::before {
  content: "";
  position: absolute;
  inset: -12% 8% auto;
  height: 40%;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(216, 27, 54, .22), transparent 70%);
  filter: blur(40px);
}
.app__janela {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) 17.5rem;
  border-radius: 15px;
  overflow: hidden;
  background: var(--painel);
  font-size: .875rem;
}

.app__lado {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1rem .75rem;
  background: var(--fundo-2);
  border-right: 1px solid var(--linha);
}
.app__conta { display: flex; align-items: center; gap: .6rem; font-weight: 500; padding: .25rem .5rem; }
.app__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app__menu li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .6rem;
  border-radius: 8px;
  color: var(--texto-2);
}
.app__menu li svg { width: 1rem; height: 1rem; flex: none; }
.app__menu li.ativo { background: rgba(255,255,255,.06); color: var(--texto); }
.app__rotulo { margin: 1.5rem .5rem 0; font-size: .72rem; color: var(--texto-3); }

.app__avatar {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 600;
}
.app__avatar--org { background: #1f6f4a; color: #e6f4ec; }
.app__avatar--cliente { border-radius: 999px; background: #3b4a6b; color: #e8edf8; }
.app__avatar--vylcor { border-radius: 999px; background: #1a0d10; color: var(--vermelho); border: 1px solid rgba(255,69,69,.35); }
.app__avatar--vylcor svg { width: .85rem; height: auto; }

.app__centro { padding: 1.25rem 1.5rem; min-width: 0; }
.app__topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.app__titulo { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.app__fluxo { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.etapa {
  font-size: .75rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--linha-forte);
  color: var(--texto-2);
  white-space: nowrap;
}
.etapa__seta { color: var(--texto-3); font-size: .75rem; }
.etapa--nova { border-color: rgba(255,69,69,.55); color: #ffb3b3; background: rgba(255,69,69,.08); }

.tabela { width: 100%; border-collapse: collapse; }
.tabela th {
  text-align: left;
  font-weight: 500;
  font-size: .75rem;
  color: var(--texto-3);
  padding: 0 .6rem .6rem;
  border-bottom: 1px solid var(--linha);
}
.tabela td { padding: .7rem .6rem; border-bottom: 1px solid var(--linha); color: #d9dbe0; white-space: nowrap; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .num { text-align: right; font-variant-numeric: tabular-nums; }
.tabela .mono { color: var(--texto-3); font-size: .8rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  padding: .15rem .55rem;
  border-radius: 999px;
}
.status::before { content: ""; width: .4rem; height: .4rem; border-radius: 999px; background: currentColor; }
.status--ok  { color: #6fd39a; background: rgba(111, 211, 154, .1); }
.status--sol { color: #9aa4b8; background: rgba(154, 164, 184, .1); }
.status--fin { color: #e7c068; background: rgba(231, 192, 104, .1); }
.status--tec { color: #ff8a8a; background: rgba(255, 69, 69, .12); }

.app__conversa {
  padding: 1.25rem 1.1rem;
  border-left: 1px solid var(--linha);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}
.app__conversa-titulo { margin: 0 0 1rem; font-size: .75rem; color: var(--texto-3); }
.conversa { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.msg { display: flex; gap: .65rem; align-items: flex-start; }
.msg__quem { margin: 0 0 .2rem; font-weight: 500; font-size: .8rem; }
.msg__quem span { color: var(--texto-3); font-weight: 400; }
.msg__texto { margin: 0; color: #c9ccd3; line-height: 1.5; font-size: .82rem; }
.msg--evento { align-items: center; padding: .6rem .7rem; border-radius: 10px; background: rgba(255,69,69,.07); border: 1px solid rgba(255,69,69,.18); }
.msg--evento .msg__texto { color: #ffc2c2; font-size: .78rem; }
.msg--evento strong { color: #fff; font-weight: 500; }
.msg__ponto { width: .45rem; height: .45rem; border-radius: 999px; background: var(--vermelho); box-shadow: 0 0 0 4px rgba(255,69,69,.18); flex: none; }

/* A cena da construção: estado inicial só quando o JS assume.
   Sem JS ou com movimento reduzido, vê-se o estado final. */
.app.cena [data-msg] { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--suave), transform .6s var(--suave); }
.app.cena [data-msg].vista { opacity: 1; transform: none; }
.app.cena [data-etapa-nova] { opacity: 0; max-width: 0; padding-inline: 0; border-width: 0; margin: 0; overflow: hidden; transition: all .7s var(--suave); }
.app.cena.mudou [data-etapa-nova] { opacity: 1; max-width: 12rem; padding-inline: .55rem; border-width: 1px; }
.app.cena.mudou .etapa__seta--nova { padding-inline: 0; border-width: 0; }
.app [data-status-velho] { display: none; }
.app.cena [data-status-velho] { display: inline-flex; }
.app.cena [data-status-tec] { display: none; }
.app.cena.mudou [data-status-velho] { display: none; }
.app.cena.mudou [data-status-tec] { display: inline-flex; animation: piscar-linha 1.2s var(--suave); }
@keyframes piscar-linha { 0% { box-shadow: 0 0 0 0 rgba(255,69,69,.5); } 100% { box-shadow: 0 0 0 10px rgba(255,69,69,0); } }

.entrega {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.25rem;
  border-top: 1px solid var(--linha);
}
.entrega li {
  padding: 1.25rem 1.25rem 0 0;
  font-size: .95rem;
  color: var(--texto-2);
}
.entrega li::before {
  content: "";
  display: block;
  width: .6rem;
  height: .6rem;
  margin-bottom: .9rem;
  background: var(--vermelho);
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%);
}

/* ---------- fecho ---------- */

.fecho {
  max-width: var(--largura);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--margem) clamp(4rem, 8vw, 6.5rem);
  display: grid;
  gap: 2rem;
  justify-items: start;
}
.fecho__titulo {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.04em;
}
.fecho__email {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  text-decoration: none;
  color: var(--texto);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--vermelho);
  transition: gap .3s var(--suave);
}
.fecho__email svg { width: 1.4em; height: 1.4em; color: var(--vermelho); }
.fecho__email:hover { gap: 1.1rem; }

.rodape {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 1.5rem var(--margem) 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--linha);
  font-size: .85rem;
  color: var(--texto-3);
}

/* ---------- menos movimento ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faixa { animation: none; }
  .faixas__palco { transition: none; }
  .hero__texto { animation: none; }
}

/* ---------- telas menores ---------- */

@media (max-width: 1100px) {
  .app__janela { grid-template-columns: 12rem minmax(0, 1fr); }
  .app__conversa { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--linha); }
  .conversa { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__barra { gap: .75rem; justify-content: space-between; }
  .idioma { margin-left: auto; }
  .app__janela { grid-template-columns: minmax(0, 1fr); }
  .app__lado { display: none; }
  .app__centro { padding: 1rem; overflow-x: auto; }
  .tabela th:nth-child(3), .tabela td:nth-child(3), .tabela th:nth-child(4), .tabela td:nth-child(4) { display: none; }
  .conversa { grid-template-columns: minmax(0, 1fr); }
  .entrega { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rodape { flex-direction: column; }
}
