@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@view-transition { navigation: auto; }

:root {
  --bg: #05070d;
  --panel: #0b101b;
  --panel-2: #0f1626;
  --line: rgba(148, 178, 255, .14);
  --text: #e8edf7;
  --muted: #98a4bb;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #34d399;
  --grad: linear-gradient(100deg, #22d3ee, #6d8bff 50%, #a78bfa);
  --ring: conic-gradient(from var(--angle), #22d3ee, #6d8bff, #a78bfa, #6d8bff, #22d3ee);
  --radius: 18px;
  --display: "Space Grotesk", system-ui, sans-serif;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(109, 139, 255, .45); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 800px; }

/* Barra de progresso de leitura (só CSS, onde o navegador suporta) */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* Fundo */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 85%);
}
.orb { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(110px); opacity: .3; animation: float 18s ease-in-out infinite alternate; }
.orb-a { background: var(--cyan); top: -220px; left: -120px; }
.orb-b { background: var(--violet); top: -160px; right: -160px; animation-delay: -9s; }
@keyframes float { to { transform: translate(60px, 70px) scale(1.15); } }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: rgba(5, 7, 13, .7); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font: 700 1.25rem var(--display); display: inline-flex; align-items: center; gap: 10px; letter-spacing: -.02em; }
.logo b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { flex: none; overflow: visible; filter: drop-shadow(0 0 10px rgba(79, 141, 255, .45)); }
.nav nav { display: flex; align-items: center; gap: 30px; font-size: .94rem; color: var(--muted); }
.nav nav a:not(.btn) { position: relative; transition: color .2s; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s; }
.nav nav a:not(.btn):hover { color: var(--text); }
.nav nav a:not(.btn):hover::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--text); margin: 6px 0; border-radius: 2px; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Logo que se constrói em pixels (peças geradas em main.js) */
.logo-anim { overflow: visible; }
.logo-anim .px { transform-box: fill-box; transform-origin: center; animation: px-build 8s cubic-bezier(.3, .7, .2, 1) infinite backwards; }
@keyframes px-build {
  0% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); }
  4% { opacity: 1; }
  11%, 62% { opacity: 1; transform: none; }
  70% { opacity: 1; }
  76%, 100% { opacity: 0; transform: translate(var(--ox), var(--oy)) scale(.3); }
}

/* Botões */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1rem Inter, sans-serif; color: #04121a; background: var(--grad);
  box-shadow: 0 8px 30px -8px rgba(34, 211, 238, .55); transition: transform .2s, box-shadow .2s, background .2s; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px rgba(109, 139, 255, .7); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); box-shadow: none; }
.btn-ghost::after { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .12) 50%, transparent 65%); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-full { width: 100%; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; padding-block: 88px 120px; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: var(--panel); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; }
.grad { background: linear-gradient(100deg, #22d3ee, #6d8bff, #a78bfa, #6d8bff, #22d3ee); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; }
@keyframes shimmer { to { background-position: -300% 0; } }
.lead { color: var(--muted); font-size: 1.13rem; margin-top: 22px; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 32px; color: var(--muted); font-size: .92rem; }
.hero-points li::before, .checks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 9px; }

/* Ilustração do hero: um site recebendo contatos */
.hero-visual { position: relative; }
.emblem { position: absolute; z-index: 3; top: -84px; right: -26px; width: 112px; height: 112px; filter: drop-shadow(0 0 26px rgba(79, 141, 255, .55)); }
.mock { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(34, 211, 238, .35), 0 0 0 1px rgba(255, 255, 255, .03) inset; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); animation: hover 7s ease-in-out infinite alternate; }
@keyframes hover { to { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg) translateY(-8px); } }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock-bar span { flex: 1; margin-left: 10px; font-size: .74rem; color: var(--muted); background: rgba(255, 255, 255, .05); border-radius: 7px; padding: 4px 12px; }
.mock-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px 28px 150px; }
.sk { display: block; height: 10px; width: 100%; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.sk-tag { width: 26%; height: 8px; background: rgba(34, 211, 238, .35); }
.sk-h { height: 20px; width: 92%; background: rgba(255, 255, 255, .2); }
.sk-p { margin-top: 2px; }
.w70 { width: 62%; }
.w80 { width: 78%; }
.sk-btn { margin-top: 10px; font-size: .76rem; font-weight: 600; color: #04121a; background: var(--grad); padding: 9px 16px; border-radius: 9px; box-shadow: 0 0 0 0 rgba(34, 211, 238, .5); animation: ping 3s ease-out infinite; }
.sk-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.sk-btn { transition: filter .2s, transform .2s; }
@keyframes ping { 60%, 100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); } }
.sk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-top: 14px; }
.sk-cards span { height: 46px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

.toasts { position: absolute; z-index: 2; left: -34px; bottom: -64px; display: grid; gap: 10px; }
.toasts li { display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; border-radius: 14px; font-size: .84rem;
  background: rgba(15, 22, 38, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(148, 178, 255, .22);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); animation: toast 10s cubic-bezier(.2, .8, .2, 1) infinite backwards; }
.toasts li:nth-child(1) { animation-delay: .8s; }
.toasts li:nth-child(2) { animation-delay: 2.3s; margin-left: 22px; }
.toasts li:nth-child(3) { animation-delay: 3.8s; margin-left: 44px; }
.toasts b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; color: #052e1f; background: var(--green); font-size: .8rem; }
.toasts strong { display: block; font-weight: 600; line-height: 1.3; }
.toasts small { color: var(--muted); font-size: .74rem; }
@keyframes toast {
  0% { opacity: 0; transform: translateY(16px) scale(.96); }
  6%, 72% { opacity: 1; transform: none; }
  80%, 100% { opacity: 0; transform: translateY(-10px) scale(.98); }
}

/* Faixa "para quem" */
.marquee { border-block: 1px solid var(--line); padding-block: 20px; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track ul { display: flex; flex: none; }
.track li { display: flex; align-items: center; white-space: nowrap; color: #c6d2ea; font: 500 .95rem var(--display); }
.track li::after { content: ""; width: 5px; height: 5px; margin-inline: 26px; border-radius: 50%; background: var(--grad); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Seções */
.section { padding-block: 104px 0; }
.head { max-width: 720px; margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; color: var(--cyan); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
.head p:last-child { color: var(--muted); margin-top: 16px; font-size: 1.06rem; }

/* Cartões com brilho que segue o cursor */
.card, .plan, .feat { position: relative; overflow: hidden; isolation: isolate; }
.card::before, .plan::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 139, 255, .16), transparent 65%); }
.card:hover::before, .plan:hover::before { opacity: 1; }

/* Planos */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 38px 34px; display: flex; flex-direction: column; }
.plan-hot { border: 1.5px solid transparent; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--ring) border-box; box-shadow: 0 30px 80px -40px rgba(34, 211, 238, .55); animation: spin 7s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }
.badge { align-self: flex-start; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #04121a; background: var(--grad); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px; }
.badge-alt { background: rgba(139, 92, 246, .16); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, .4); }
.plan h3 { font-size: 1.55rem; }
.plan-desc { color: var(--muted); margin-top: 10px; }
.price { font: 700 3.6rem/1 var(--display); margin-top: 28px; letter-spacing: -.03em; }
.price small { font-size: 1.2rem; font-weight: 500; color: var(--muted); margin-right: 6px; vertical-align: 1.3em; }
.price sup { font-size: 1.4rem; vertical-align: 1.05em; }
.price-text { font-size: 2.5rem; padding-block: .55rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.checks { margin: 28px 0 34px; display: grid; gap: 12px; flex: 1; align-content: start; }
.checks li { color: #cdd6e8; }

/* Grades */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s; }
.card:hover { transform: translateY(-5px); border-color: rgba(109, 139, 255, .55); }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.25rem; color: var(--cyan); background: rgba(34, 211, 238, .09); border: 1px solid rgba(34, 211, 238, .25); margin-bottom: 20px; transition: transform .3s; }
.card:hover .ico { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }
.grid-foot { text-align: center; color: var(--muted); margin-top: 36px; }
.grid-foot a { color: var(--cyan); border-bottom: 1px solid currentColor; }
.sub { font-size: 1.3rem; margin: 64px 0 24px; }
.svc { display: flex; flex-direction: column; padding: 24px; }
.svc p { flex: 1; }
.svc span { color: var(--cyan); font-size: .88rem; font-weight: 600; margin-top: 16px; transition: letter-spacing .3s; }
.svc:hover span { letter-spacing: .03em; }

/* Etapas */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); opacity: .35; }
.steps li { position: relative; padding-top: 60px; }
.steps span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 700 .9rem var(--display); color: var(--text);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 0 22px -4px rgba(34, 211, 238, .6); }
.steps h3 { font-size: 1.18rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; max-width: 26ch; }

/* Dúvidas */
.faq details { border: 1px solid var(--line); background: var(--panel); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; transition: border-color .3s; }
.faq details[open] { border-color: rgba(109, 139, 255, .45); }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 600 1.04rem var(--display); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--cyan); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 22px; }

/* Contato */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 52px;
  border-radius: 28px; border: 1.5px solid transparent;
  background: linear-gradient(135deg, #0c1322, #0b0f1c) padding-box, var(--ring) border-box;
  box-shadow: 0 40px 120px -50px rgba(139, 92, 246, .6); animation: spin 9s linear infinite; }
.contact > div p:last-child { color: var(--muted); margin-top: 16px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; font-size: .88rem; font-weight: 500; color: #cdd6e8; }
input, select, textarea { width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text); background: rgba(5, 7, 13, .7); border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; resize: vertical; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
input.err { border-color: #f87171; }
::placeholder { color: #5f6b82; }

/* Páginas de serviço */
.page-hero { padding-block: 56px 8px; max-width: 900px; margin-left: max(20px, calc((100% - 1140px) / 2)); }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--cyan); }
.crumbs span { opacity: .5; margin-inline: 4px; }
.price-pill { display: inline-flex; flex-direction: column; font: 700 1.25rem/1.2 var(--display); padding-left: 18px; margin-left: 6px; border-left: 2px solid var(--cyan); }
.price-pill small { font: 600 .68rem Inter, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.split .plan { position: sticky; top: 96px; }
.split .plan h2 { font-size: 1.5rem; }
.prose section + section { margin-top: 44px; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 16px; }
.prose p { color: #b9c3d6; margin-top: 14px; font-size: 1.06rem; }

/* Rodapé */
.footer { margin-top: 104px; border-top: 1px solid var(--line); padding-block: 34px; color: var(--muted); font-size: .88rem; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; }
.footer a:not(.logo):hover { color: var(--cyan); }
.footer .logo { color: var(--text); font-size: 1.1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; flex-basis: 100%; order: 3; padding-top: 18px; border-top: 1px solid var(--line); }

/* Entrada ao rolar */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-block: 56px 100px; gap: 76px; }
  .mock { transform: none; animation: none; }
  .emblem { width: 84px; height: 84px; top: -58px; right: 6px; }
  .toasts { left: 10px; bottom: -60px; }
  .toasts li:nth-child(2) { margin-left: 12px; }
  .toasts li:nth-child(3) { margin-left: 24px; }
  .grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split .plan { position: relative; top: 0; }
  .contact { grid-template-columns: 1fr; padding: 34px 26px; gap: 30px; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav nav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: rgba(5, 7, 13, .97); border-bottom: 1px solid var(--line); display: none; }
  .nav nav.open { display: flex; }
  .nav nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav nav a:not(.btn)::after { display: none; }
  .nav nav .btn { margin-top: 18px; }
  .plans, .grid, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-top: 76px; }
  .plan { padding: 30px 24px; }
  .price { font-size: 3rem; }
  .mock-body { padding: 24px 20px 140px; }
  .cta-row .btn { width: 100%; }
  .price-pill { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .track { flex-wrap: wrap; width: auto; }
  .track ul[aria-hidden] { display: none; }
  .track ul { flex-wrap: wrap; row-gap: 8px; padding-inline: 20px; }
}
