/* MVPCode — estilos (conversão do Tailwind/Lovable para CSS3 puro) */

:root {
  --radius: 1rem;
  --background: oklch(0.13 0.04 275);
  --foreground: oklch(0.97 0.01 250);
  --card: oklch(0.17 0.05 278);
  --primary: oklch(0.88 0.16 195);
  --primary-foreground: oklch(0.13 0.04 275);
  --secondary: oklch(0.58 0.26 295);
  --muted: oklch(0.2 0.05 278);
  --muted-foreground: oklch(0.7 0.04 265);
  --accent: oklch(0.78 0.17 320);
  --border: oklch(1 0 0 / 9%);
  --gradient-brand: linear-gradient(100deg, var(--primary), var(--secondary) 60%, var(--accent));
  --font-display: "Unbounded", sans-serif;
  --font-sans: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--border); }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-family: var(--font-sans); }
body {
  background: var(--background); color: var(--foreground);
  font-family: var(--font-sans); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
button, input { font: inherit; color: inherit; background: transparent; }
button { cursor: pointer; text-align: left; }
code { font-family: var(--font-mono); }
::selection { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Utilitários de marca ---------- */
.text-brand { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bg-brand { background: var(--gradient-brand); }
.outline-text { color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--foreground) 35%, transparent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.font-display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

.grain { position: relative; }
.grain::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glass {
  background: color-mix(in oklab, var(--card) 60%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
}
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in oklab, var(--primary) 18%, transparent), transparent 60%);
}
.spot:hover::after { opacity: 1; }
.reveal {
  opacity: 0; transform: translateY(40px); filter: blur(8px);
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s;
}
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Layout base ---------- */
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: 8rem; }
.eyebrow { font-family: var(--font-mono); font-size: .75rem; line-height: 1.333; text-transform: uppercase; letter-spacing: .3em; color: var(--primary); }
.h2 { margin-top: 1rem; font-family: var(--font-display); font-size: 2.25rem; line-height: 1.111; font-weight: 700; }
.h2--narrow { max-width: 48rem; }

/* ---------- Barra de progresso ---------- */
.progress { position: fixed; left: 0; top: 0; z-index: 50; height: 2px; width: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; left: 0; right: 0; top: 1rem; z-index: 40; margin-inline: auto;
  width: min(1100px, 92%); display: flex; align-items: center; justify-content: space-between;
  border-radius: 9999px; padding: .75rem 1.25rem;
}
.logo { display: inline-flex; align-items: center; gap: .625rem; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.556; font-weight: 700; }
.logo img { display: block; height: 1.75rem; width: auto; transition: transform .3s var(--ease); }
.logo:hover img { transform: scale(1.08); }
.nav { display: none; gap: 2rem; font-size: .875rem; line-height: 1.43; color: var(--muted-foreground); }
.nav a:hover { color: var(--foreground); }
.btn-sm { border-radius: 9999px; padding: .5rem 1rem; font-size: .875rem; line-height: 1.43; font-weight: 600; color: var(--primary-foreground); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; min-height: 100vh; align-items: center; overflow: hidden; }
#neural { position: absolute; inset: 0; width: 100%; height: 100%; }
.blob { position: absolute; pointer-events: none; border-radius: 9999px; }
.blob--a { left: -10rem; top: 5rem; width: 500px; height: 500px; background: color-mix(in oklab, var(--primary) 20%, transparent); filter: blur(140px); }
.blob--b { right: -10rem; bottom: 0; width: 600px; height: 600px; background: color-mix(in oklab, var(--secondary) 30%, transparent); filter: blur(160px); }
.hero__grid {
  position: relative; display: grid; align-items: center; gap: 3.5rem; width: 100%;
  max-width: 72rem; margin-inline: auto; padding: 8rem 1.5rem 5rem;
}
.badge {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border); border-radius: 9999px; padding: .25rem .75rem;
  font-family: var(--font-mono); font-size: .75rem; line-height: 1.333; color: var(--muted-foreground);
}
.badge i { width: .5rem; height: .5rem; border-radius: 9999px; background: var(--primary); animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
.hero h1 { font-family: var(--font-display); font-size: 3rem; line-height: .95; font-weight: 900; letter-spacing: -.025em; }
.hero__lead { margin-top: 2rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.556; color: var(--muted-foreground); }
.hero__cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; font-weight: 600; color: var(--primary-foreground);
  transition: transform .15s var(--ease), background-color .15s var(--ease);
}
.btn:hover { transform: scale(1.05); }
.btn--lg { padding: 1rem 1.75rem; box-shadow: 0 0 40px -5px var(--primary); }
.btn--ghost { padding: 1rem 1.75rem; border: 1px solid var(--border); color: var(--foreground); }
.btn--ghost:hover { transform: none; background: var(--muted); }

/* ---------- Terminal ---------- */
.float { animation: float 6s ease-in-out infinite; }
.terminal { position: relative; overflow: hidden; border-radius: 1rem; font-family: var(--font-mono); font-size: 13px; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.scanline { position: absolute; left: 0; right: 0; height: 30%; pointer-events: none; animation: scan 4s linear infinite;
  background: linear-gradient(transparent, color-mix(in oklab, var(--primary) 10%, transparent), transparent); }
.terminal__bar { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--border); padding: .75rem 1rem; }
.terminal__bar i { width: .75rem; height: .75rem; border-radius: 9999px; }
.terminal__bar i:nth-child(1) { background: var(--accent); }
.terminal__bar i:nth-child(2) { background: var(--secondary); }
.terminal__bar i:nth-child(3) { background: var(--primary); }
.terminal__bar span { margin-left: .75rem; color: var(--muted-foreground); }
.terminal__body { min-height: 230px; padding: 1.25rem; }
.terminal__body > div { color: var(--muted-foreground); line-height: 1.5; }
.terminal__body > div + div { margin-top: .25rem; }
.terminal__body .cmd { color: var(--primary); }
.terminal__body .ok { color: var(--accent); }
.cursor { display: inline-block; width: .5rem; height: 1rem; margin-left: .125rem; transform: translateY(.125rem); background: var(--primary); animation: blink 1s steps(1) infinite; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding-block: 1.5rem; }
.marquee__track { display: flex; width: max-content; gap: 3rem; font-family: var(--font-display); font-size: 1.875rem; line-height: 1.2; font-weight: 700; animation: marquee 40s linear infinite; }
.marquee__track span { color: var(--muted-foreground); }
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px color-mix(in oklab, var(--foreground) 35%, transparent); }

/* ---------- Dores ---------- */
.pains { margin-top: 3.5rem; display: grid; gap: 1rem; }
.pain {
  display: block; width: 100%; border-radius: 1rem; padding: 1.5rem;
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s, border-color .5s var(--ease), background-color .5s var(--ease);
}
.pain.in:not(.active):hover { transform: translateY(-.25rem); transition-duration: .5s; }
.pain.active { border: 1px solid var(--primary); background: var(--muted); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pain__row { display: flex; align-items: flex-start; gap: 1rem; }
.pain__box {
  margin-top: .25rem; display: grid; place-items: center; flex-shrink: 0; width: 1.5rem; height: 1.5rem;
  border: 1px solid var(--border); border-radius: .375rem; font-family: var(--font-mono); font-size: .75rem; line-height: 1.333;
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.pain.active .pain__box { background: var(--gradient-brand); border-color: transparent; color: var(--primary-foreground); }
.pain__q { font-size: 1.125rem; line-height: 1.556; font-weight: 600; }
.pain__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: all .5s var(--ease); }
.pain__a span { overflow: hidden; color: var(--primary); }
.pain.active .pain__a { margin-top: .75rem; grid-template-rows: 1fr; opacity: 1; }
.pains__count { margin-top: 2.5rem; text-align: center; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; opacity: 0; transform: translateY(1rem); transition: all .7s var(--ease); }
.pains__count.on { opacity: 1; transform: none; }

/* ---------- Serviços ---------- */
.services { margin-top: 3.5rem; display: grid; gap: 1.25rem; }
.card {
  border-radius: 1.5rem; padding: 2rem;
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1), filter 1s, transform .2s var(--ease); will-change: transform;
}
.card__top { display: flex; align-items: center; justify-content: space-between; }
.card__num { font-family: var(--font-display); font-size: 3rem; line-height: 1; font-weight: 900; }
.card__orb { width: 2.5rem; height: 2.5rem; border-radius: 9999px; opacity: .8; filter: blur(1px); }
.card h3 { margin-top: 2rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.333; font-weight: 700; }
.card p { margin-top: .75rem; color: var(--muted-foreground); }
.card code { display: block; margin-top: 1.5rem; border-radius: .5rem; background: color-mix(in oklab, var(--background) 60%, transparent); padding: .5rem .75rem; font-size: .75rem; line-height: 1.333; color: var(--primary); }

/* ---------- Calculadora ---------- */
.calc-sec { padding-block: 4rem; }
.calc { display: grid; gap: 2.5rem; border-radius: 1.5rem; padding: 2rem; }
.calc__left > * + * { margin-top: 2rem; }
.calc__left h3 { font-family: var(--font-display); font-size: 1.875rem; line-height: 1.2; font-weight: 700; }
.slider { display: block; }
.slider__head { display: flex; justify-content: space-between; margin-bottom: .75rem; font-size: .875rem; line-height: 1.43; }
.slider__head span:first-child { color: var(--muted-foreground); }
.slider__head output { font-family: var(--font-mono); color: var(--primary); }
.slider input { width: 100%; accent-color: var(--primary); }
.calc__right { display: flex; flex-direction: column; justify-content: center; gap: 1.5rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.calc__big { font-family: var(--font-display); font-size: 3.75rem; line-height: 1; font-weight: 900; }
.calc__mid { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.111; font-weight: 700; }
.calc__right p { color: var(--muted-foreground); }
.calc__btn { margin-top: .5rem; width: fit-content; padding: .75rem 1.5rem; }

/* ---------- Áreas ---------- */
.areas { margin-top: 3.5rem; border-block: 1px solid var(--border); }
.area { display: grid; align-items: center; gap: 1rem; padding-block: 2.5rem; transition: translate .15s var(--ease), opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s; }
.area:not(:last-child) { border-bottom: 1px solid var(--border); }
.area:hover { translate: 1rem 0; }
.area__n { font-family: var(--font-mono); font-size: .875rem; line-height: 1.43; color: var(--muted-foreground); }
.area h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.333; font-weight: 700; transition: color .15s var(--ease); }
.area:hover h3 { color: var(--primary); }
.area p { color: var(--muted-foreground); }

/* ---------- Processo ---------- */
.process { position: relative; overflow: hidden; }
.ring { position: absolute; right: -15rem; top: 2.5rem; width: 520px; height: 520px; pointer-events: none; border: 1px dashed color-mix(in oklab, var(--primary) 30%, transparent); border-radius: 9999px; animation: spin-slow 30s linear infinite; }
.steps { position: relative; margin-top: 4rem; display: grid; gap: 2.5rem; }
.steps__line { position: absolute; left: 0; right: 0; top: 1.75rem; display: none; height: 1px; opacity: .5; }
.step { position: relative; }
.step__n { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 9999px; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; font-weight: 900; color: var(--primary-foreground); box-shadow: 0 0 30px -5px var(--primary); }
.step h3 { margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.333; font-weight: 700; }
.step p { margin-top: .5rem; color: var(--muted-foreground); }

/* ---------- CTA ---------- */
.cta-sec { padding: 0 1.5rem 4rem; }
.cta { position: relative; max-width: 72rem; margin-inline: auto; overflow: hidden; border: 1px solid var(--border); border-radius: 2.5rem; padding: 2.5rem; text-align: center; }
.cta__bg { position: absolute; inset: 0; opacity: .15; }
.cta__in { position: relative; }
.cta h2 { font-family: var(--font-display); font-size: 2.25rem; line-height: 1.111; font-weight: 900; }
.cta__lead { margin: 1.5rem auto 0; max-width: 32rem; font-size: 1.125rem; line-height: 1.556; color: var(--muted-foreground); }
.cta__btn { display: inline-block; margin-top: 2.5rem; padding: 1.25rem 2.5rem; font-size: 1.125rem; line-height: 1.556; font-weight: 700; }
.copy { margin-top: 2.5rem; text-align: center; font-family: var(--font-mono); font-size: .75rem; line-height: 1.333; color: var(--muted-foreground); }

/* ---------- Redes sociais ---------- */
.social { list-style: none; margin-top: 3rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.social__a { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--border); border-radius: 9999px; background: color-mix(in oklab, var(--card) 60%, transparent); color: var(--foreground); transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.social__a svg { width: 1.375rem; height: 1.375rem; }
.social__a:hover { transform: translateY(-3px) scale(1.08); background: var(--gradient-brand); color: var(--primary-foreground); box-shadow: 0 0 30px -5px var(--primary); }
.social__a:focus-visible, .wa-float:focus-visible, .cookie button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 1rem; bottom: 1.25rem; z-index: 45; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: #25d366; color: #fff; box-shadow: 0 8px 24px -4px rgb(0 0 0 / .5), 0 0 0 0 rgb(37 211 102 / .55); animation: wa-ring 2.4s ease-out infinite; transition: transform .2s var(--ease), bottom .3s var(--ease); }
.wa-float svg { width: 1.9rem; height: 1.9rem; }
.wa-float:hover { transform: scale(1.1); }
@keyframes wa-ring { 70% { box-shadow: 0 8px 24px -4px rgb(0 0 0 / .5), 0 0 0 16px rgb(37 211 102 / 0); } 100% { box-shadow: 0 8px 24px -4px rgb(0 0 0 / .5), 0 0 0 0 rgb(37 211 102 / 0); } }

/* ---------- Aviso de cookies ---------- */
.cookie { position: fixed; left: 0; right: 0; margin-inline: auto; text-align: center; bottom: 1rem; z-index: 70; width: min(30rem, calc(100% - 2rem)); border-radius: 1.25rem; padding: 1.25rem 1.5rem; box-shadow: 0 20px 50px -10px rgb(0 0 0 / .6); opacity: 0; transform: translateY(1.5rem); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.cookie.show { opacity: 1; transform: none; }
.cookie__title { display: flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.cookie p { margin-top: .5rem; font-size: .8125rem; line-height: 1.55; color: var(--muted-foreground); }
.cookie__btns { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .625rem; }
.cookie button { border-radius: 9999px; padding: .6rem 1.25rem; font-size: .8125rem; font-weight: 600; transition: transform .15s var(--ease), background .15s var(--ease); }
.cookie button:hover { transform: scale(1.04); }
.cookie__ok { color: var(--primary-foreground); background: var(--gradient-brand); }
.cookie__no { border: 1px solid var(--border); color: var(--foreground); }
.cookie__no:hover { background: var(--muted); }
body.cookie-open .wa-float { bottom: 11.5rem; }
@media (min-width: 40rem) { body.cookie-open .wa-float { bottom: 1.25rem; } }

/* ---------- Animações ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes scan { 0% { top: -10%; } 100% { top: 110%; } }
@keyframes pulse { 50% { opacity: .5; } }

/* ---------- md ≥ 768px ---------- */
@media (min-width: 48rem) {
  .nav { display: flex; }
  .h2 { font-size: 3.75rem; line-height: 1; }
  .hero h1 { font-size: 4.5rem; line-height: .95; }
  .pains, .calc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { padding: 3rem; }
  .calc__left h3 { font-size: 2.25rem; line-height: 1.111; }
  .calc__big { font-size: 4.5rem; }
  .calc__right { border-top: 0; border-left: 1px solid var(--border); padding-top: 0; padding-left: 3rem; }
  .area { grid-template-columns: 80px 1fr 1.3fr; }
  .area h3 { font-size: 1.875rem; line-height: 1.2; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps__line { display: block; }
  .cta { padding: 5rem; }
  .cta h2 { font-size: 4.5rem; line-height: 1; }
}

/* ---------- lg ≥ 1024px ---------- */
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 1.2fr 1fr; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
