:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f7ff;
  --muted: #a9b1c4;
  --blue: #1d5bff;
  --cyan: #38c6ff;
  --ice: #cfe3ff;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
/* rolagem suave (Lenis) no PC */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.hero { overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 110% 40%, rgba(29, 91, 255, .16), transparent 60%),
    radial-gradient(700px 500px at -20% 80%, rgba(56, 198, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: Montserrat, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* barra de progresso da rolagem */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 20;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  box-shadow: 0 0 12px var(--blue);
}

/* granulação de filme */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 15; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.grad {
  background: linear-gradient(180deg, #fff 0%, var(--ice) 35%, var(--blue) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- topo ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 32px 16px 72px;
  position: relative;
  isolation: isolate;
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 50% 28%, rgba(29, 91, 255, .35), transparent 70%),
    radial-gradient(40% 30% at 80% 90%, rgba(56, 198, 255, .18), transparent 70%);
}
.hero-3d {
  width: min(74vw, 340px);
  aspect-ratio: 1;
  margin-bottom: -14px;
  transform: translate3d(0, var(--hy, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--hs, 1));
  opacity: var(--ho, 1);
  transition: transform .2s linear;
  perspective: 800px;
}
.hero-3d img {
  width: 100%; height: 100%; display: block;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.5deg); }
}

.logo {
  font-weight: 800; letter-spacing: -0.01em; font-size: clamp(40px, 11vw, 64px); margin: 0; line-height: 1;
  background: linear-gradient(180deg, #fff 40%, var(--ice) 75%, #7fb0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo.small { font-size: 22px; }
.eyebrow { margin: 14px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .3em; color: var(--muted); }
.tagline { margin: 20px 0 28px; font-size: clamp(18px, 4.6vw, 22px); font-weight: 300; }

/* entrada do topo */
.hero > * { animation: rise .9s var(--ease) both; }
.hero > .hero-3d { animation-delay: .05s; }
.hero > .logo { animation-delay: .15s; }
.hero > .eyebrow { animation-delay: .22s; }
.hero > .tagline { animation-delay: .3s; }
.hero > .links { animation-delay: .4s; }
.hero > .hero-glow { animation: glowIn 1.6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
@keyframes glowIn { from { opacity: 0; } }

.links { width: 100%; max-width: 440px; display: grid; gap: 12px; }

.btn {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: 16px 20px; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text); text-decoration: none; font: 700 16px Montserrat, sans-serif; cursor: pointer;
  transition: transform .25s var(--ease), translate .3s var(--ease), border-color .25s, box-shadow .25s;
}
.btn small { font-weight: 400; font-size: 12px; color: var(--muted); }
.btn:hover { border-color: rgba(127, 176, 255, .6); transform: translateY(-2px); }
.btn-primary {
  border-color: transparent;
  background: linear-gradient(100deg, var(--blue), #2f7bff 50%, var(--cyan));
  box-shadow: 0 10px 40px -10px rgba(29, 91, 255, .8);
}
.btn-primary small { color: rgba(255, 255, 255, .8); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 4s ease-in-out 1.5s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

.scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: var(--muted); text-decoration: none; font-size: 20px;
  animation: bob 2s ease-in-out infinite !important;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- faixa rolando ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0;
  background: linear-gradient(90deg, rgba(29, 91, 255, .08), transparent 40%, rgba(56, 198, 255, .08));
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 28s linear infinite;
  transform: translateX(var(--mx, 0));
}
.marquee span { font-weight: 800; font-size: clamp(20px, 5vw, 32px); letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.marquee span:nth-of-type(3n+1) { color: #fff; -webkit-text-stroke: 0; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(var(--blue), var(--cyan)); box-shadow: 0 0 12px var(--blue); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- seções ---------- */
main { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .3em; color: var(--cyan); }
h2 { margin: 0 0 32px; font-size: clamp(28px, 6.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; max-width: 640px; position: relative; }
.lead { color: #d3d9e6; margin: -16px 0 28px; font-weight: 400; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); max-width: 520px; }

.deco {
  position: absolute; pointer-events: none; z-index: -1;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  will-change: transform;
}
.deco-ring { width: min(70vw, 420px); right: -18%; top: -40px; opacity: .9; }
.deco-glass { width: min(68vw, 380px); right: -14%; top: 40px; opacity: .85; }
main { position: relative; isolation: isolate; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: border-color .3s, transform .45s var(--ease);
}
.card > * { position: relative; z-index: 1; }
/* luz que segue o mouse dentro do card */
.card::after, .steps li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(56, 198, 255, .2), transparent 60%);
  transition: opacity .3s;
}
.card:hover::after, .steps li:hover::after { opacity: 1; }
.card::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 255, .35), transparent 70%);
  opacity: .6; transition: opacity .3s, transform .5s var(--ease);
}
.card:hover { border-color: rgba(127, 176, 255, .45); }
.card:hover::before { opacity: 1; transform: scale(1.2); }
.card .num { font-size: 12px; color: var(--cyan); letter-spacing: .2em; position: relative; }
.card h3 { margin: 12px 0 8px; font-size: 20px; font-weight: 700; position: relative; }
.card p { margin: 0; color: var(--muted); font-weight: 300; font-size: 15px; position: relative; }

.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid rgba(127, 176, 255, .3); background: rgba(29, 91, 255, .08); border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 500; }

/* horizonte iluminado */
.horizon-section { overflow: visible; }
.horizon {
  position: absolute; left: 50%; top: 24px; width: 260vw; max-width: 3200px; aspect-ratio: 1;
  transform: translate(-50%, var(--hz, 0px));
  border-radius: 50%; z-index: -1; pointer-events: none;
  border-top: 1.5px solid rgba(200, 228, 255, .8);
  background: linear-gradient(180deg, rgba(29, 91, 255, .14), transparent 18%);
  box-shadow: 0 -10px 60px -6px rgba(29, 91, 255, .75), 0 -30px 160px 10px rgba(29, 91, 255, .25);
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 20px 20px 20px 74px; color: var(--muted); font-weight: 300;
  overflow: hidden;
}
.steps li:hover { border-color: rgba(127, 176, 255, .45); }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff;
  box-shadow: 0 0 20px rgba(29, 91, 255, .6);
  display: grid; place-items: center; font-weight: 800;
}
.steps strong { color: var(--text); font-weight: 700; }

/* ---------- formulário ---------- */
.form {
  display: grid; gap: 16px; max-width: 560px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.form em { color: var(--muted); font-style: normal; font-weight: 400; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 0, 0, .55); color: var(--text); border: 1px solid var(--line);
  font: 400 16px Montserrat, sans-serif; color-scheme: dark;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29, 91, 255, .2); }
textarea { resize: vertical; }
.invalid { border-color: #ff5a5a; }
.error { margin: 0; color: #ff7a7a; font-size: 14px; }
.form .btn { margin-top: 4px; }

/* ---------- rodapé ---------- */
footer { text-align: center; padding: 48px 16px 56px; border-top: 1px solid var(--line); color: var(--muted); }
footer p { margin: 6px 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
.copy { font-size: 12px; }

/* ---------- animação de rolagem ---------- */
/* usa translate/scale/rotate separados para não brigar com a inclinação 3D dos cards */
.js .reveal {
  opacity: 0; translate: 0 40px; scale: .98; filter: blur(8px);
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), rotate .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; translate: 0 0; scale: 1; rotate: none; filter: none; }

/* cards entram virando de baixo para cima */
.cards { perspective: 1100px; }
.js .card.reveal { translate: 0 70px; rotate: x 28deg; scale: .94; transform-origin: 50% 100%; }
.js .card.reveal,
.js .steps li.reveal {
  transition:
    opacity .9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s), scale 1s var(--ease) var(--d, 0s),
    rotate 1s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s),
    transform .45s var(--ease), border-color .3s, background-color .3s;
}
/* passos entram deslizando da esquerda */
.js .steps li.reveal { translate: -60px 0; }
.js .card.reveal.in, .js .steps li.reveal.in { translate: 0 0; rotate: none; scale: 1; }

@media (max-width: 640px) {
  /* no celular as peças 3D ficam mais discretas e longe do texto */
  .deco-ring { right: -38%; top: -70px; opacity: .55; }
  .deco-glass { right: -42%; top: -40px; opacity: .45; }
}
@media (max-width: 420px) {
  .row { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .hero-3d { width: 380px; }
  .deco-ring { right: -12%; top: -80px; }
  .deco-glass { right: -6%; top: 0; }
}
/* ---------- extras do PC (mouse) ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: 0;
  background: radial-gradient(circle, rgba(29, 91, 255, .16), rgba(56, 198, 255, .05) 40%, transparent 70%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  transition: opacity .6s;
}
.has-mouse .cursor-glow { opacity: 1; }
