:root {
  --fundo: #0b0c0e;
  --fundo-2: #121418;
  --texto: #f3f1ec;
  --suave: #9a9ca3;
  --acento: #c8f031;
  --acento-2: #7c5cff;
  --linha: rgb(243 241 236 / .1);
  --largura: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 400 17px/1.6 "Space Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; font-weight: 700; line-height: 1.02; letter-spacing: -.03em; }
h2 { font-size: clamp(40px, 6vw, 84px); }
h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -.02em; }
p { margin: 0 0 1em; color: var(--suave); }
em { font-style: normal; color: var(--acento); }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.rotulo { font-size: 13px; letter-spacing: .06em; color: var(--suave); margin-bottom: 22px; }

/* Grão e luz do mouse */
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: linear-gradient(var(--linha) 1px, transparent 1px), linear-gradient(90deg, var(--linha) 1px, transparent 1px); background-size: 80px 80px; mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); opacity: .5; }
.luz-mouse { position: fixed; top: 0; left: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(closest-side, rgb(124 92 255 / .16), transparent); transition: transform .25s linear; }
main, .topo, .rodape { position: relative; z-index: 1; }

/* Topo */
.topo { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); transition: background .3s, backdrop-filter .3s; }
.topo.rolou { background: rgb(11 12 14 / .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.marca { font: 500 19px "JetBrains Mono", monospace; text-decoration: none; letter-spacing: -.02em; }
.cursor { color: var(--acento); animation: pisca 1.1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: .2; } }
.menu { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.menu a { text-decoration: none; color: var(--suave); transition: color .2s; }
.menu a:hover { color: var(--texto); }
.menu-cta { color: var(--fundo) !important; background: var(--acento); padding: 9px 16px; border-radius: 999px; font-weight: 500; }
@media (max-width: 860px) { .menu a:not(.menu-cta) { display: none; } }

/* Hero */
.hero { min-height: 100svh; max-width: var(--largura); margin: 0 auto; padding: 140px var(--gutter) 60px; display: grid; align-content: center; }
.ponto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--acento); margin-right: 6px; box-shadow: 0 0 0 0 rgb(200 240 49 / .6); animation: pulso 2s infinite; vertical-align: 1px; }
@keyframes pulso { 70% { box-shadow: 0 0 0 10px rgb(200 240 49 / 0); } 100% { box-shadow: 0 0 0 0 rgb(200 240 49 / 0); } }
.hero-titulo { font-size: clamp(52px, 10.5vw, 156px); margin-bottom: .25em; }
.linha { display: block; overflow: hidden; }
.linha > span { display: inline-block; animation: sobe 1.1s var(--ease) both; }
.linha:nth-child(2) > span { animation-delay: .12s; }
@keyframes sobe { from { transform: translateY(105%); } }
.hero-sub { font-size: clamp(18px, 1.6vw, 22px); max-width: 620px; animation: aparece 1s .4s var(--ease) both; }
@keyframes aparece { from { opacity: 0; transform: translateY(20px); } }
.acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.botao { display: inline-flex; align-items: center; justify-content: center; padding: 16px 26px; border-radius: 999px; background: var(--acento); color: var(--fundo); font-weight: 700; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.botao:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgb(200 240 49 / .5); }
.botao--linha { background: transparent; color: var(--texto); box-shadow: inset 0 0 0 1.5px var(--linha); }
.botao--linha:hover { box-shadow: inset 0 0 0 1.5px var(--texto); }
.botao--grande { padding: 20px 34px; font-size: 18px; }
.botao[hidden] { display: none; }

/* Vitrine com 3 telas */
.vitrine { --rx: 0deg; --ry: 0deg; position: relative; height: clamp(220px, 34vw, 440px); margin-top: 64px; perspective: 1400px; animation: aparece 1.2s .6s var(--ease) both; }
.tela { position: absolute; top: 0; width: 46%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--linha); box-shadow: 0 40px 80px -30px #000; background: var(--fundo-2); transition: transform .6s var(--ease); }
.tela img, .tela video { width: 100%; height: 100%; object-fit: cover; }
.tela--1 { left: 0; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + 14deg)) translateZ(-120px) translateY(30px); opacity: .75; }
.tela--3 { right: 0; transform: rotateX(var(--rx)) rotateY(calc(var(--ry) - 14deg)) translateZ(-120px) translateY(30px); opacity: .75; }
.tela--2 { left: 27%; z-index: 2; transform: rotateX(var(--rx)) rotateY(var(--ry)); border-color: rgb(200 240 49 / .35); }
@media (max-width: 700px) { .tela { width: 70%; } .tela--2 { left: 15%; } .tela--1 { left: -10%; } .tela--3 { right: -10%; } }

/* Faixa */
.faixa { border-block: 1px solid var(--linha); overflow: hidden; padding: 22px 0; background: var(--fundo-2); }
.faixa-trilho { display: flex; gap: 32px; width: max-content; animation: corre 32s linear infinite; font-size: clamp(22px, 3vw, 38px); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; }
.faixa i { color: var(--acento); font-style: normal; }
@keyframes corre { to { transform: translateX(-50%); } }

/* Seções */
.secao { max-width: var(--largura); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.cabeca { margin-bottom: clamp(40px, 6vw, 80px); }
.intro { font-size: 20px; max-width: 560px; }

/* Cases */
.case { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(80px, 10vw, 140px); }
.case--inverso { grid-template-columns: 1fr 1.4fr; }
.case--inverso .case-tela { order: 2; }
.case-tela { border-radius: 16px; overflow: hidden; border: 1px solid var(--linha); background: var(--fundo-2); box-shadow: 0 50px 100px -40px #000; transition: transform .6s var(--ease), border-color .4s; }
.case:hover .case-tela { transform: translateY(-6px); border-color: rgb(200 240 49 / .4); }
.barra { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--linha); background: #17191e; }
.barra i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.barra i:nth-child(2) { background: #febc2e; }
.barra i:nth-child(3) { background: #28c840; }
.barra span { margin: 0 auto; font: 12px "JetBrains Mono", monospace; color: var(--suave); background: var(--fundo); padding: 4px 14px; border-radius: 6px; }
.case-tela video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fundo-2); }
.tag { font-size: 13px; color: var(--acento); margin-bottom: 10px; }
.feitos { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.feitos li { border: 1px solid var(--linha); border-radius: 999px; padding: 5px 11px; color: var(--suave); }
.links { display: flex; flex-wrap: wrap; gap: 20px; }
.links a { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--acento); padding-bottom: 2px; transition: color .2s; }
.links a:hover { color: var(--acento); }
@media (max-width: 900px) { .case, .case--inverso { grid-template-columns: 1fr; } .case--inverso .case-tela { order: 0; } }

/* Serviços */
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; }
.bloco { background: var(--fundo); padding: clamp(26px, 3vw, 40px); transition: background .4s; }
.bloco:hover { background: var(--fundo-2); }
.bloco .num { display: block; color: var(--acento); margin-bottom: 40px; }
.bloco p { margin: 0; }

/* Processo */
.passos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; counter-reset: p; }
.passos li { border-top: 1.5px solid var(--linha); padding-top: 24px; transition: border-color .4s; }
.passos li:hover { border-color: var(--acento); }
.passos li > span { color: var(--acento); display: block; margin-bottom: 18px; }

/* Sobre */
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.sobre-foto { max-width: 380px; }
.sobre-foto img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.2) contrast(1.05); border: 1px solid var(--linha); }
.sobre p { font-size: 19px; }
@media (max-width: 860px) { .sobre { grid-template-columns: 1fr; } .sobre-foto { max-width: 360px; } }

/* Contato */
.contato { text-align: center; padding-bottom: 100px; }
.contato .acoes { justify-content: center; margin-top: 40px; }
.contato-titulo { font-size: clamp(44px, 8vw, 120px); }

.rodape { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 28px var(--gutter); border-top: 1px solid var(--linha); font-size: 13px; color: var(--suave); }

/* Revelar */
.revelar { opacity: 0; transform: translateY(50px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.revelar.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revelar { opacity: 1; transform: none; }
}
