/*
  Lopergus, site institucional.
  Layout inspirado no template Revio (Lovable), com a paleta original da marca:
  o preto do modelo vira azul-marinho profundo, o violeta vira o azul de destaque
  e os cinzas viram o gelo da marca. Azul claro so como detalhe.
*/
/* Fontes servidas pelo proprio site (subset latin, variaveis): sem conexao com terceiros. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/site/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/site/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Imagens responsivas: o <picture> nao interfere no layout. */
picture { display: contents; }

:root {
  --navy: #0c2a56;
  --navy-deep: #071a38;
  --navy-soft: #1a3c73;
  --azure: #1f6fe0;
  --azure-hover: color-mix(in srgb, var(--azure) 82%, var(--navy));
  --sky: #7cc4ff;
  --sky-soft: #d9ecff;
  --ice: #f4f6f9;
  --muted: #566376;
  --line: #d9e0ea;
  --white: #ffffff;
  --on-dark-muted: rgb(217 236 255 / 0.72);
  --on-dark-line: rgb(255 255 255 / 0.12);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --t-hero: clamp(2.625rem, 1.4rem + 5vw, 5.25rem);
  --t-h2: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);
  --t-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --t-lead: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);

  --radius-lg: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  --radius: 1.25rem;
  --radius-sm: 0.625rem;

  --header-h: 4.5rem;
  --container: 80rem;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.75rem);
  --section-y: clamp(4rem, 2.8rem + 5vw, 8rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--navy-deep);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
pre {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h2 {
  font-size: var(--t-h2);
  line-height: 1.08;
}

h3 {
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

p {
  text-wrap: pretty;
}

::selection {
  background: var(--sky);
  color: var(--navy-deep);
}

:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 3px;
}

.hero :focus-visible,
.dark-band :focus-visible,
.cta-card :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.page-head :focus-visible {
  outline-color: var(--sky);
}

[hidden] {
  display: none !important;
}

/* ---------- Utilitarios ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

.section-tight {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem) 0;
}

.section-ice {
  background: var(--ice);
}

.lead {
  max-width: 36rem;
  font-size: var(--t-lead);
  color: var(--muted);
}

.lead a {
  color: var(--azure);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--azure);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-xs {
  width: 0.9375rem;
  height: 0.9375rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* Quadradinho com icone, usado nos cartoes e nas abas. */
.tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}

.tile-sky {
  background: linear-gradient(160deg, var(--sky-soft), var(--sky));
  color: var(--navy);
}

.tile-navy {
  background: linear-gradient(160deg, var(--navy-soft), var(--navy-deep));
  color: var(--sky);
}

.tile-azure {
  background: linear-gradient(160deg, var(--sky), var(--azure));
  color: var(--white);
}

.tile-soft {
  background: linear-gradient(160deg, var(--white), var(--sky-soft));
  color: var(--azure);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---------- Botoes e links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  padding: 0 1.125rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.9875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn svg {
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--azure);
  color: var(--white);
  box-shadow: 0 8px 24px -10px rgb(31 111 224 / 0.7);
}

.btn-primary:hover {
  background: var(--azure-hover);
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--navy);
}

.hero .btn-ghost,
.dark-band .btn-ghost,
.cta-card .btn-ghost,
.page-head .btn-ghost {
  color: var(--on-dark-muted);
}

.hero .btn-ghost:hover,
.dark-band .btn-ghost:hover,
.cta-card .btn-ghost:hover,
.page-head .btn-ghost:hover {
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--sky-soft);
}

.btn-soft {
  background: var(--ice);
  color: var(--navy);
}

.btn-soft:hover {
  background: var(--sky-soft);
}

.btn-header {
  background: rgb(255 255 255 / 0.08);
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

.btn-header:hover {
  background: var(--white);
  color: var(--navy);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--azure);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--navy);
}

.text-link svg {
  transition: transform 0.2s ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Cabecalho ---------- */

/* Fixo e transparente sobre o heroi; ganha fundo de vidro ao rolar. */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-top: clamp(0.5rem, 0.2rem + 1.5vw, 1.75rem);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s var(--ease),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-top: 0;
  background: rgb(7 26 56 / 0.92);
  border-bottom-color: var(--on-dark-line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
}

.logo svg {
  width: 2rem;
  height: 2rem;
}

.logo span {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nav-desktop,
.header-cta {
  display: none;
}

.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.25rem;
  font-size: 0.9875rem;
  color: rgb(255 255 255 / 0.85);
  transition: color 0.2s ease;
}

.nav-desktop a:hover {
  color: var(--sky);
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.08);
  cursor: pointer;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-mobile {
  position: absolute;
  inset-inline: var(--gutter);
  top: calc(var(--header-h) + 0.5rem);
  padding: 0.5rem 1.25rem 1.25rem;
  border-radius: var(--radius);
  background: var(--navy-deep);
  box-shadow:
    0 0 0 1px var(--on-dark-line),
    0 24px 48px -16px rgb(0 0 0 / 0.5);
}

.nav-mobile li + li {
  border-top: 1px solid var(--on-dark-line);
}

.nav-mobile li a {
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.nav-mobile .btn {
  width: 100%;
  margin-top: 1rem;
}

@media (min-width: 1000px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 2.4vw, 2.5rem);
  }

  .header-cta {
    display: inline-flex;
    justify-self: end;
  }

  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* ---------- Heroi ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
  isolation: isolate;
}

/* Brilho azul atras da composicao, no lugar da moeda do modelo. */
.hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -18%;
  width: min(70rem, 140vw);
  aspect-ratio: 2 / 1;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgb(31 111 224 / 0.55), transparent 70%),
    radial-gradient(closest-side at 50% 70%, rgb(124 196 255 / 0.25), transparent 80%);
  filter: blur(20px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + clamp(4rem, 2rem + 6vw, 8rem));
  padding-bottom: clamp(2rem, 1rem + 2vw, 3rem);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points svg {
  color: var(--sky);
}

.hero-points strong {
  font-weight: 500;
  color: var(--white);
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: var(--t-hero);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero .rotator-word {
  background: linear-gradient(90deg, var(--white), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2.25rem;
}

/* Composicao: codigo a esquerda, marca no centro, proposta a direita. */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 58rem;
  height: clamp(20rem, 14rem + 16vw, 25rem);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  text-align: left;
}

.float-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.55);
}

.code-card {
  left: 0;
  top: 0;
  z-index: 2;
  width: min(27rem, 82%);
  padding: 1.25rem 1.5rem 1.5rem;
  background:
    radial-gradient(120% 80% at 0% 0%, rgb(124 196 255 / 0.16), transparent 60%),
    linear-gradient(150deg, rgb(26 60 115 / 0.92), rgb(7 26 56 / 0.96));
  border: 1px solid rgb(255 255 255 / 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
}

.code-top {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.code-top span {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
}

.code-top em {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--on-dark-muted);
}

.code-card pre {
  overflow: hidden;
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 0.6rem + 0.35vw, 0.8125rem);
  line-height: 1.8;
  color: var(--white);
}

.code-card i {
  font-style: normal;
  color: rgb(217 236 255 / 0.5);
}

.code-card b {
  font-weight: 400;
  color: var(--sky);
}

.code-card s {
  text-decoration: none;
  color: #a9d8ff;
}

.hero-mark {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 18%;
  display: grid;
  place-items: center;
  width: clamp(9rem, 6rem + 10vw, 14rem);
  aspect-ratio: 1;
  border-radius: 28%;
  translate: calc(-50% + var(--px, 0) * 30px) calc(var(--py, 0) * 24px);
  background:
    radial-gradient(80% 80% at 30% 20%, rgb(124 196 255 / 0.55), transparent 60%),
    linear-gradient(145deg, var(--navy-soft), var(--navy) 55%, var(--navy-deep));
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.25),
    inset 0 -12px 30px rgb(0 0 0 / 0.35),
    0 0 0 1px rgb(124 196 255 / 0.35),
    0 0 80px rgb(31 111 224 / 0.55),
    0 40px 80px -20px rgb(0 0 0 / 0.6);
  rotate: -8deg;
  animation: float 8s ease-in-out -2s infinite;
}

.hero-mark svg {
  width: 62%;
  height: 62%;
  filter: drop-shadow(0 0 18px rgb(124 196 255 / 0.6));
}

.proposal-card {
  right: 0;
  top: 8%;
  z-index: 2;
  width: min(19rem, 62%);
  overflow: hidden;
  background: var(--white);
  color: var(--navy-deep);
  animation: float 6.5s ease-in-out -4s infinite;
}

.proposal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--sky-soft);
}

.proposal-head strong {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
}

.proposal-head small {
  font-size: 0.8125rem;
  color: var(--muted);
}

.proposal-rows {
  display: grid;
  gap: 0.625rem;
  padding: 1rem 1.125rem 1.125rem;
}

.proposal-rows li {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.proposal-rows i {
  height: 0.4375rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, var(--line), var(--ice));
}

.proposal-rows b {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--azure);
  font-size: 0.6875rem;
  color: var(--white);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 699px) {
  .hero-visual {
    height: 22rem;
  }

  .hero-mark {
    top: 24%;
    left: 64%;
  }

  .proposal-card {
    top: auto;
    bottom: 0;
  }
}

/* ---------- Fileira de recursos ---------- */

.center-title {
  max-width: 22em;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  text-align: center;
}

.center-title .muted,
.stack-copy h2 .muted {
  color: #8592a6;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 13rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--ice);
  transition:
    background-color 0.25s ease,
    transform 0.25s var(--ease);
}

a.feature-card:hover {
  background: var(--sky-soft);
  transform: translateY(-4px);
}

.feature-card h3 {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 1.1875rem;
}

.feature-card p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.feature-mark {
  display: none;
  place-items: center;
}

.mini-mark {
  display: grid;
  place-items: center;
  width: 6.5rem;
  aspect-ratio: 1;
  border-radius: 28%;
  background:
    radial-gradient(80% 80% at 30% 20%, rgb(124 196 255 / 0.55), transparent 60%),
    linear-gradient(145deg, var(--navy-soft), var(--navy-deep));
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.25),
    0 0 40px rgb(31 111 224 / 0.35),
    0 20px 40px -14px rgb(7 26 56 / 0.6);
  rotate: -8deg;
}

.mini-mark svg {
  width: 60%;
  height: 60%;
}

@media (min-width: 1000px) {
  .feature-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .feature-mark {
    display: grid;
  }
}

/* ---------- Cabecalho de secao ---------- */

.section-head {
  display: grid;
  gap: 1.75rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.section-head h2 {
  max-width: 15em;
  margin-top: 1rem;
}

.section-head .lead {
  margin-top: 1.25rem;
}

.section-head .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- Solucoes ---------- */

.showcase {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: end;
  min-height: clamp(28rem, 20rem + 20vw, 38rem);
  padding: clamp(1.5rem, 1rem + 2.5vw, 4rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  color: var(--white);
  isolation: isolate;
}

.showcase img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.5;
  mix-blend-mode: luminosity;
}

.showcase::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(to top, var(--navy-deep) 5%, rgb(7 26 56 / 0.2) 60%),
    linear-gradient(to right, rgb(12 42 86 / 0.85), rgb(12 42 86 / 0.1));
}

.showcase-copy {
  max-width: 26rem;
}

.showcase-copy h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  letter-spacing: -0.035em;
}

.showcase-copy p {
  margin-top: 0.75rem;
  color: var(--on-dark-muted);
}

.showcase-copy .btn {
  margin-top: 1.75rem;
}

/* Painel de vidro com a linha do tempo de um pedido. */
.glass-panel {
  display: grid;
  gap: 0;
  width: 100%;
  max-width: 24rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.9);
  color: var(--navy-deep);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.glass-panel li {
  position: relative;
  padding: 0.625rem 0 0.625rem 2.25rem;
}

.glass-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--white);
}

.glass-panel li.done::before {
  border-color: var(--azure);
  background: var(--azure)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 70% no-repeat;
  box-shadow: 0 0 0 4px rgb(31 111 224 / 0.15);
}

.glass-panel li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.6563rem;
  top: 2.25rem;
  bottom: -0.625rem;
  width: 2px;
  background: var(--line);
}

.glass-panel li.done:not(:last-child)::after {
  background: var(--azure);
}

.glass-panel strong {
  display: block;
  font-weight: 600;
  line-height: 1.3;
}

.glass-panel span {
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .showcase {
    grid-template-columns: 1fr auto;
  }

  .glass-panel {
    align-self: start;
  }
}

/* ---------- Grade bento ---------- */

.bento {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.bento-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.bento-visual {
  display: grid;
  place-items: center;
  min-height: 17rem;
  padding: 2rem 1.5rem;
}

.bento-copy {
  padding: 0 clamp(1.5rem, 1.2rem + 1vw, 2.25rem) clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
}

.bento-copy > p {
  max-width: 32rem;
  margin-top: 0.625rem;
  color: var(--muted);
}

.checks {
  display: grid;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.checks li {
  position: relative;
  padding-left: 1.625rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6fe0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.bento-copy .text-link {
  margin-top: 0.75rem;
}

/* Alterna as larguras: largo/estreito na primeira linha, estreito/largo na segunda. */
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
  }

  .bento-card {
    grid-column: span 5;
  }

  .bento-card:nth-child(4n + 1),
  .bento-card:nth-child(4n) {
    grid-column: span 7;
  }
}

/* Mockups dos cartoes: so ilustracao, feitos em CSS. */
.mock-browser,
.mock-dash,
.mock-chat,
.mock-form {
  width: 100%;
  max-width: 20rem;
  border-radius: 1rem;
  background: var(--white);
  box-shadow:
    0 0 0 1px rgb(12 42 86 / 0.05),
    0 24px 48px -24px rgb(12 42 86 / 0.35);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--ice);
}

.mock-bar span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--line);
}

.mock-bar em {
  flex: 1;
  margin-left: 0.5rem;
  padding: 0.125rem 0.625rem;
  border-radius: 1rem;
  background: var(--ice);
  font-size: 0.6875rem;
  font-style: normal;
  color: var(--muted);
}

.mock-page {
  display: grid;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem 1.375rem;
}

.mock-page i {
  height: 0.75rem;
  border-radius: 1rem;
  background: var(--navy);
}

.mock-page i.thin {
  height: 0.4375rem;
  background: var(--line);
}

.w50 {
  width: 50%;
}

.w60 {
  width: 60%;
}

.w80 {
  width: 80%;
}

.mock-page b {
  justify-self: start;
  margin-top: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--azure);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
  box-shadow: 0 0 0 4px rgb(31 111 224 / 0.15);
}

.mock-dash {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  overflow: hidden;
}

.mock-side {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  padding: 0.875rem 0.625rem;
  background: var(--navy-deep);
}

.mock-side i {
  height: 1.25rem;
  border-radius: 0.375rem;
  background: rgb(255 255 255 / 0.12);
}

.mock-side i.on {
  background: var(--azure);
}

.mock-main {
  padding: 0.875rem;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
}

.mock-stats span {
  display: grid;
  gap: 0.375rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: var(--ice);
}

.mock-stats small {
  font-size: 0.5625rem;
  line-height: 1.2;
  color: var(--muted);
}

.mock-stats i {
  width: 70%;
  height: 0.5rem;
  border-radius: 1rem;
  background: var(--navy);
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  height: 6.5rem;
  margin-top: 0.875rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--line);
}

.mock-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 0.3rem 0.3rem 0.125rem 0.125rem;
  background: linear-gradient(to top, var(--sky-soft), var(--sky));
}

.mock-bars i:nth-child(6) {
  background: linear-gradient(to top, var(--sky), var(--azure));
}

.mock-flow {
  position: relative;
  width: 100%;
  max-width: 20rem;
  height: 13rem;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-lines path {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  vector-effect: non-scaling-stroke;
  animation: dash 1.6s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -22;
  }
}

.node {
  position: absolute;
  z-index: 1;
  padding: 0.375rem 0.75rem;
  border-radius: 2rem;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: 0 8px 20px -10px rgb(12 42 86 / 0.4);
  translate: -50% -50%;
}

.n1 {
  left: 20%;
  top: 20%;
}

.n2 {
  left: 80%;
  top: 20%;
}

.n3 {
  left: 50%;
  top: 85%;
}

.flow-core {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  translate: -50% -50%;
  background: radial-gradient(circle at 35% 30%, var(--sky), var(--azure) 60%, var(--navy));
  box-shadow:
    0 0 0 8px rgb(124 196 255 / 0.2),
    0 16px 32px -10px rgb(31 111 224 / 0.7);
}

.flow-core svg {
  width: 55%;
  height: 55%;
}

.flow-pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem 0.375rem 0.375rem;
  border-radius: 2rem;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  translate: 1.75rem -50%;
  box-shadow: 0 12px 24px -12px rgb(12 42 86 / 0.5);
}

.flow-pill b {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--azure);
  font-size: 0.625rem;
  color: var(--white);
}

.mock-chat {
  display: grid;
  gap: 0.625rem;
  padding: 1.25rem;
}

.msg {
  max-width: 80%;
  padding: 0.5rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.msg.me {
  justify-self: end;
  border-bottom-right-radius: 0.25rem;
  background: var(--azure);
  color: var(--white);
}

.msg.bot {
  justify-self: start;
  border-bottom-left-radius: 0.25rem;
  background: var(--ice);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chips span {
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  border: 1px solid var(--line);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.chips span.on {
  border-color: var(--azure);
  background: var(--sky-soft);
  color: var(--navy);
}

/* ---------- FiveM (faixa escura) ---------- */

.dark-band {
  overflow: hidden;
  padding-top: var(--section-y);
  background: var(--navy-deep);
  color: var(--white);
}

.dark-band .eyebrow {
  color: var(--sky);
}

.dark-band .lead {
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
}

.dark-band h2 {
  margin-top: 1rem;
}

.fivem-grid {
  display: grid;
  gap: 3rem;
}

.fivem-copy {
  padding-bottom: 1rem;
}

.check-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.check-list li {
  position: relative;
  padding-left: 2.25rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cc4ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.check-list strong {
  font-size: 1.125rem;
  font-weight: 500;
}

.check-list p {
  max-width: 30rem;
  margin-top: 0.375rem;
  font-size: 0.9375rem;
  color: var(--on-dark-muted);
}

.fivem-copy .actions {
  margin-top: 2.25rem;
}

/* Moldura de aparelho com o HUD, cortada pela borda de baixo da secao. */
.device {
  align-self: end;
  padding: 0.75rem 0.75rem 0;
  border-radius: 2rem 2rem 0 0;
  background: linear-gradient(160deg, #2b4c80, var(--navy) 40%, var(--navy-deep));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    0 0 0 1px rgb(124 196 255 / 0.2),
    0 0 120px rgb(31 111 224 / 0.35);
}

.device-screen {
  overflow: hidden;
  border-radius: 1.375rem 1.375rem 0 0;
  background: #000;
}

.device-screen img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (min-width: 1000px) {
  .fivem-grid {
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
    align-items: end;
  }

  .fivem-copy {
    align-self: center;
    padding-bottom: var(--section-y);
  }
}

/* ---------- Processo em abas ---------- */

.tab-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--ice);
}

.tab-list button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-size: 0.9875rem;
  font-weight: 500;
  text-align: left;
  color: var(--muted);
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.tab-list button:hover {
  color: var(--navy);
}

.tab-list button[aria-selected="true"] {
  background: var(--white);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px -10px rgb(12 42 86 / 0.35);
}

.tab-list .tile {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
}

.tab-panel {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 1rem;
}

/* Sem JavaScript, todas as etapas ficam visiveis em sequencia. */
.js .tab-panel:not(.is-active) {
  display: none;
}

.js .tab-panel.is-active {
  animation: panel-in 0.45s var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.tab-copy {
  max-width: 28rem;
  padding-block: 1rem;
}

.tab-copy h3 {
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  letter-spacing: -0.035em;
}

.tab-copy p {
  margin-top: 0.875rem;
  font-size: var(--t-lead);
  color: var(--muted);
}

.tab-copy .btn {
  margin-top: 1.75rem;
}

.tab-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 20rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.mock-form {
  display: grid;
  gap: 0.375rem;
  padding: 1.25rem;
}

.mock-form span {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
}

.mock-form i {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--muted);
}

.mock-form i.tall {
  min-height: 4rem;
}

.mock-form b {
  justify-self: start;
  margin-top: 0.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--azure);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
}

.mock-notice {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  max-width: 22rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 24px 48px -20px rgb(7 26 56 / 0.7);
}

.mock-notice strong {
  display: block;
  font-weight: 500;
  line-height: 1.2;
}

.mock-notice small {
  color: var(--on-dark-muted);
}

.mock-notice em {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: auto;
  border-radius: 0.625rem;
  background: rgb(255 255 255 / 0.12);
  font-style: normal;
}

.mock-stack {
  position: absolute;
  left: 50%;
  top: calc(50% + 1.5rem);
  translate: -50% 0;
  width: min(18rem, 70%);
}

.mock-stack i {
  display: block;
  height: 3.5rem;
  margin-inline: auto;
  border-radius: 1rem;
  background: var(--white);
  box-shadow: 0 10px 24px -14px rgb(12 42 86 / 0.4);
}

.mock-stack i + i {
  width: 82%;
  margin-top: -2.5rem;
  opacity: 0.6;
}

.mock-stack i:first-child {
  position: relative;
  z-index: 1;
}

.mock-progress {
  display: grid;
  gap: 0.5rem;
  width: 100%;
  max-width: 20rem;
}

.mock-progress li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.875rem;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 0 8px 20px -14px rgb(12 42 86 / 0.4);
}

.mock-progress li::before {
  content: "";
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.mock-progress li.done {
  color: var(--navy-deep);
}

.mock-progress li.done::before {
  border-color: var(--azure);
  background: var(--azure)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E")
    center / 75% no-repeat;
}

.mock-progress li.doing {
  color: var(--navy-deep);
  box-shadow:
    0 0 0 1.5px var(--azure),
    0 8px 20px -14px rgb(12 42 86 / 0.4);
}

.mock-progress li.doing::before {
  border-color: var(--azure);
  border-right-color: transparent;
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mock-done {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  text-align: center;
}

.done-check {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--sky), var(--azure) 65%);
  font-size: 1.75rem;
  color: var(--white);
  box-shadow:
    0 0 0 10px rgb(124 196 255 / 0.2),
    0 0 0 20px rgb(124 196 255 / 0.1);
}

.mock-done strong {
  font-size: 1.25rem;
  font-weight: 600;
}

.mock-done small {
  color: var(--muted);
}

@media (min-width: 800px) {
  .tab-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .tab-panel {
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
    margin-top: 2.5rem;
  }

  .tab-visual {
    min-height: 24rem;
  }
}

/* ---------- Ferramentas ---------- */

.stack-band {
  background: var(--ice);
}

.stack-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-block: var(--section-y);
}

.stack-copy {
  text-align: center;
}

.stack-copy h2 {
  max-width: 12em;
  margin-inline: auto;
}

.stack-copy p {
  max-width: 30rem;
  margin: 1.25rem auto 0;
  font-size: var(--t-lead);
  color: var(--muted);
}

.stack-tiles {
  order: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.stack-tiles li {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 1rem;
  background: var(--white);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 10px 30px -18px rgb(12 42 86 / 0.45);
}

.stack-tiles b {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: var(--sky-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy);
}

.stack-tiles li:nth-child(3n + 2) b {
  background: var(--navy);
  color: var(--sky);
}

.stack-tiles li:nth-child(3n) b {
  background: var(--azure);
  color: var(--white);
}

/* Em telas largas, os blocos flutuam espalhados em volta do titulo. */
@media (min-width: 1000px) {
  .stack-inner {
    min-height: 44rem;
    place-items: center;
  }

  .stack-tiles {
    position: absolute;
    inset: var(--section-y) var(--gutter);
    display: block;
  }

  .stack-tiles li {
    position: absolute;
    left: var(--x);
    top: var(--y);
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1.25rem 0.875rem;
    border-radius: 1.25rem;
    font-size: 0.8125rem;
    color: var(--muted);
    animation: float 7s ease-in-out infinite;
  }

  .stack-tiles li:nth-child(2n) {
    animation-delay: -3s;
  }

  .stack-tiles li:nth-child(3n) {
    animation-duration: 9s;
  }

  .stack-tiles b {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    font-size: 1rem;
  }
}

/* ---------- Projetos ---------- */

.project-grid {
  display: grid;
  gap: 1rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 0.3125rem 0.75rem;
  border-radius: 2rem;
  background: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--navy);
}

.project-card h3 {
  margin-top: 1.5rem;
}

.project-card > p,
.photo-caption p {
  max-width: 32rem;
  margin-top: 0.5rem;
  color: var(--muted);
}

.project-card small {
  display: block;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.project-card.photo {
  justify-content: flex-end;
  min-height: 22rem;
  background: var(--navy-deep);
  color: var(--white);
}

.project-card.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.project-card.photo:hover img {
  transform: scale(1.03);
}

.project-card.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy-deep) 0%, rgb(7 26 56 / 0.92) 38%, rgb(7 26 56 / 0.35) 68%, transparent 85%);
}

.photo-caption {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.photo-caption .badge {
  background: rgb(255 255 255 / 0.14);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.photo-caption p,
.photo-caption small {
  color: var(--on-dark-muted);
}

.photo-caption small {
  margin-top: 0;
  padding-top: 1rem;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 1.5rem;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 0 0 0.875rem 2.25rem;
  font-size: 0.9375rem;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--azure);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.6875rem;
  top: 1.625rem;
  bottom: 0.125rem;
  width: 2px;
  background: var(--line);
}

@media (min-width: 900px) {
  .project-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .project-card {
    grid-column: span 5;
  }

  .project-card.wide {
    grid-column: span 7;
  }

  .project-card.photo.wide {
    min-height: 30rem;
  }
}

/* ---------- Duvidas ---------- */

.faq-grid {
  display: grid;
  gap: 2.5rem;
}

.faq-grid h2 {
  max-width: 10em;
  margin-top: 1rem;
}

.faq-grid .lead {
  margin-top: 1.25rem;
}

.faq {
  display: grid;
  gap: 0.625rem;
}

.faq details {
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.25s ease;
}

.faq details[open] {
  box-shadow: 0 16px 40px -24px rgb(12 42 86 / 0.45);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  padding: 1rem 1.25rem 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ice);
  transition:
    background-color 0.25s ease,
    transform 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 1.5px;
  border-radius: 1px;
  background: var(--navy);
  translate: -50% -50%;
}

.faq-icon::after {
  rotate: 90deg;
}

.faq details[open] .faq-icon {
  background: var(--azure);
  transform: rotate(45deg);
}

.faq details[open] .faq-icon::before,
.faq details[open] .faq-icon::after {
  background: var(--white);
}

.faq details p {
  max-width: 40rem;
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
}

@media (min-width: 1000px) {
  .faq-grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
  }
}

/* ---------- Fechamento ---------- */

.closing {
  position: relative;
  z-index: 1;
  padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  margin-bottom: calc(clamp(5rem, 4rem + 4vw, 8rem) * -1);
}

.section-ice + .closing {
  background: linear-gradient(var(--ice) 0 calc(100% - clamp(5rem, 4rem + 4vw, 8rem)), transparent 0);
}

.cta-card {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: clamp(1.75rem, 1rem + 3.5vw, 4.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 90% at 100% 0%, rgb(124 196 255 / 0.35), transparent 60%),
    linear-gradient(135deg, var(--azure), var(--navy) 70%);
  color: var(--white);
  box-shadow: 0 40px 80px -30px rgb(7 26 56 / 0.6);
  isolation: isolate;
}

.cta-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
}

.cta-card .eyebrow {
  color: var(--sky-soft);
}

.cta-card h2 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 1.4rem + 3.5vw, 4.25rem);
  letter-spacing: -0.045em;
}

.closing-next {
  display: grid;
  gap: 0.625rem;
  max-width: 34rem;
  margin-top: 1.75rem;
  counter-reset: next;
}

.closing-next li {
  display: flex;
  gap: 0.75rem;
  color: rgb(255 255 255 / 0.85);
  counter-increment: next;
}

.closing-next li::before {
  content: counter(next);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1em;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  font-size: 0.75rem;
  font-weight: 600;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 900px) {
  .cta-card {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 4rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ---------- Paginas internas ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(4rem, 2.5rem + 5vw, 7rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  isolation: isolate;
}

.page-head::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -60%;
  width: min(60rem, 140vw);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(31 111 224 / 0.5), transparent 70%);
  filter: blur(20px);
}

.page-head::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 20%, transparent 75%);
}

.page-head .eyebrow {
  color: var(--sky);
}

.page-head h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.page-head h1 .grad {
  background: linear-gradient(90deg, var(--white), var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head .lead {
  margin: 1.5rem auto 0;
  color: var(--on-dark-muted);
}

.page-body {
  padding-block: clamp(3rem, 2rem + 4vw, 6rem) var(--section-y);
}

.quote-grid {
  display: grid;
  gap: 1.5rem;
}

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form label span {
  font-weight: 400;
  color: var(--muted);
}

.field {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

select.field {
  appearance: none;
  padding-right: 2.75rem;
  background: var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23566376' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    right 1rem center / 1rem no-repeat;
}

.field::placeholder {
  color: #7b8798;
}

.field:hover {
  border-color: #b5c1d1;
}

.field:focus-visible {
  border-color: var(--azure);
  outline: 0;
  box-shadow: 0 0 0 4px rgb(31 111 224 / 0.18);
}

textarea.field {
  padding-block: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}

.form .btn {
  width: 100%;
  min-height: 3.25rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-note a {
  color: var(--azure);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Telefone ou e-mail: os dois campos formam um grupo, com um erro so para o grupo. */
.contact-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-group legend {
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-group legend span {
  margin-left: 0.375rem;
  font-weight: 400;
  color: var(--muted);
}

.field[aria-invalid="true"] {
  border-color: #c62828;
}

.field-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b71c1c;
}

/* Campo-isca para robos: fora da tela, mas sem display:none (alguns robos ignoram esses). */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fdecea;
  font-size: 0.875rem;
  font-weight: 500;
  color: #8e1b1b;
}

.form .btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

.form-done {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  outline: 0;
}

.form-done svg {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--azure);
}

.form-done h2 {
  font-size: var(--t-h3);
}

.form-done p {
  color: var(--muted);
}

.aside-box {
  align-self: start;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
  color: var(--white);
}

.aside-box h2 {
  font-size: var(--t-h3);
}

.aside-box ol {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  counter-reset: aside;
}

.aside-box li {
  position: relative;
  padding: 0 0 1.5rem 2.5rem;
  color: var(--on-dark-muted);
  counter-increment: aside;
}

.aside-box li::before {
  content: counter(aside);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--azure);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
}

.aside-box li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.8125rem;
  top: 2rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--on-dark-line);
}

.aside-box li:last-child {
  padding-bottom: 0;
}

.aside-box li strong {
  display: block;
  font-weight: 600;
  color: var(--white);
}

.notice {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--ice);
}

.notice h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.notice p {
  margin-top: 1rem;
  font-size: var(--t-lead);
  color: var(--muted);
}

.notice .actions {
  margin-top: 2rem;
}

.notice-visual {
  display: grid;
  place-items: center;
  min-height: 14rem;
  border-radius: var(--radius);
  background:
    radial-gradient(closest-side, rgb(31 111 224 / 0.35), transparent 75%),
    var(--navy-deep);
}

.notice-visual .mini-mark {
  animation: float 7s ease-in-out infinite;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .notice {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 3rem;
  }
}

@media (min-width: 1000px) {
  .quote-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
  }
}

/* ---------- Rodape ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: calc(clamp(5rem, 4rem + 4vw, 8rem) + clamp(3rem, 2rem + 3vw, 5rem));
  background: var(--navy-deep);
  color: var(--white);
  isolation: isolate;
}

/* Paginas sem o cartao de fechamento: o rodape nao precisa da folga. */
.page-body + .site-footer,
main:not(:has(.closing)) + .site-footer {
  padding-top: clamp(3rem, 2rem + 3vw, 5rem);
}

/* Grade de quadradinhos no canto, como no modelo, com um ponto em azul. */
.pixels {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: min(36rem, 90vw);
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect width='12' height='12' fill='white' fill-opacity='0.07'/%3E%3C/svg%3E");
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 0% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 100% 90% at 0% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

.pixels i {
  position: absolute;
  left: 432px;
  top: 120px;
  width: 12px;
  height: 12px;
  background: var(--azure);
  box-shadow: 0 0 16px var(--azure);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.footer-about p {
  max-width: 24rem;
  margin-top: 1.25rem;
  color: var(--on-dark-muted);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  margin-bottom: 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2.5rem;
  color: var(--on-dark-muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--sky);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.5rem;
  font-size: 0.875rem;
  color: var(--on-dark-muted);
}

.footer-bottom::before {
  content: "";
  flex-basis: 100%;
  height: 1px;
  margin-bottom: 1rem;
  background: var(--on-dark-line);
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ---------- Entrada suave ao rolar ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.feature-row [data-reveal]:nth-child(2) {
  transition-delay: 0.06s;
}

.feature-row [data-reveal]:nth-child(3) {
  transition-delay: 0.12s;
}

.feature-row [data-reveal]:nth-child(4) {
  transition-delay: 0.18s;
}

.feature-row [data-reveal]:nth-child(5) {
  transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Em telas muito estreitas, o texto dos botoes pode quebrar em vez de vazar. */
@media (max-width: 420px) {
  .btn {
    padding: 0.75rem 1rem;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
  }
}

.project-cta {
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(124 196 255 / 0.35), transparent 70%),
    var(--sky-soft);
}

.project-cta .btn {
  align-self: flex-start;
  margin-top: auto;
}

.project-cta > p {
  margin-bottom: 1.75rem;
}

.notice .btn-soft {
  background: var(--white);
}

/* ==========================================================================
   Movimento e enfase
   Tudo abaixo e decorativo: sem JavaScript ou com "reduzir movimento" ativo,
   o conteudo aparece completo e parado.
   ========================================================================== */

/* ---------- Barra de progresso da leitura ---------- */

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--azure), var(--sky));
  box-shadow: 0 0 12px rgb(124 196 255 / 0.7);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Heroi: grade que acende em volta do cursor ---------- */

.hero-spot {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background-image:
    linear-gradient(rgb(124 196 255 / 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgb(124 196 255 / 0.22) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 40%), #000, transparent 70%);
  mask-image: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 40%), #000, transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero:hover .hero-spot {
  opacity: 1;
}

/* ---------- Heroi: entrada em sequencia ---------- */

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.hero-title .line > span {
  display: inline-block;
}

.js .hero-title .line > span {
  animation: line-up 1.1s var(--ease) both;
}

.js .hero-title .line:nth-child(1) > span {
  animation-delay: 0.15s;
}

.js .hero-title .line:nth-child(2) > span {
  animation-delay: 0.3s;
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}

.js .hero-points {
  animation: rise 0.9s var(--ease) both;
}

.js .hero-actions {
  animation: rise 0.9s var(--ease) 0.55s both;
}

.js .hero-visual {
  animation: rise 1.2s var(--ease) 0.7s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Palavra que alterna no titulo. */
.rotator,
.rotator-word {
  display: inline-block;
}

.rotator-word {
  transition:
    opacity 0.45s ease,
    transform 0.6s var(--ease),
    filter 0.45s ease;
}

.rotator-word.is-out {
  opacity: 0;
  transform: translateY(-0.35em);
  filter: blur(8px);
}

.rotator-word.is-pre {
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(8px);
  transition: none;
}

/* Cartoes do heroi seguem o mouse em profundidades diferentes. */
.code-card {
  translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -14px);
}

.proposal-card {
  translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 16px);
}

.code-card,
.proposal-card,
.hero-mark {
  transition: translate 0.5s var(--ease);
}

/* Codigo digitado linha a linha, com cursor piscando no fim. */
.js .code-card .ln {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: type calc(var(--c) * 28ms) steps(var(--c)) calc(1.3s + var(--l) * 0.75s) forwards;
}

@keyframes type {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--sky);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Proposta: barras enchem e os checks marcam um por um. */
.js .proposal-rows i {
  transform-origin: left;
  animation: grow-x 0.9s var(--ease) both;
}

.js .proposal-rows b {
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.js .proposal-rows li:nth-child(1) i { animation-delay: 1.6s; }
.js .proposal-rows li:nth-child(2) i { animation-delay: 2s; }
.js .proposal-rows li:nth-child(3) i { animation-delay: 2.4s; }
.js .proposal-rows li:nth-child(1) b { animation-delay: 2.1s; }
.js .proposal-rows li:nth-child(2) b { animation-delay: 2.5s; }
.js .proposal-rows li:nth-child(3) b { animation-delay: 2.9s; }

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* ---------- Faixas cruzadas ---------- */

.marquees {
  position: relative;
  height: clamp(7rem, 5rem + 6vw, 10rem);
  margin-top: clamp(-3.5rem, -2rem - 2vw, -2rem);
  overflow: hidden;
  pointer-events: none;
}

.marquee {
  position: absolute;
  top: 50%;
  left: -5%;
  width: 110%;
  overflow: hidden;
  padding-block: clamp(0.75rem, 0.6rem + 0.5vw, 1.1rem);
  translate: 0 -50%;
  box-shadow: 0 20px 40px -24px rgb(7 26 56 / 0.6);
}

.marquee-front {
  z-index: 2;
  background: var(--azure);
  color: var(--white);
  rotate: -2.5deg;
}

.marquee-back {
  z-index: 1;
  background: var(--navy-deep);
  color: var(--sky);
  rotate: 2deg;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  width: max-content;
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}

.marquee-back .marquee-track {
  animation-direction: reverse;
  animation-duration: 40s;
}

.marquee-track i {
  font-style: normal;
  font-size: 0.7em;
  opacity: 0.7;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Titulos: palavra por palavra ---------- */

[data-split] .w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
  vertical-align: top;
}

[data-split] .w > span {
  display: inline-block;
}

.js [data-split] .w > span {
  transform: translateY(110%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

.js [data-split].is-in .w > span {
  transform: none;
}

/* Marca-texto que se desenha sob a palavra-chave. */
.mark {
  font-style: normal;
  padding-inline: 0.06em;
  background: linear-gradient(transparent 60%, rgb(124 196 255 / 0.55) 60% 90%, transparent 90%) no-repeat 0 0 / 100% 100%;
}

.js .mark {
  background-size: 0% 100%;
  transition: background-size 0.9s var(--ease) 0.6s;
}

.js .is-in .mark {
  background-size: 100% 100%;
}

.dark-band .mark {
  color: var(--sky);
  background-image: linear-gradient(transparent 62%, rgb(31 111 224 / 0.6) 62% 90%, transparent 90%);
}

.cta-card .mark {
  color: var(--white);
  background-image: linear-gradient(transparent 62%, rgb(124 196 255 / 0.45) 62% 90%, transparent 90%);
}

/* Entrada em cascata dentro das grades. */
.bento [data-reveal]:nth-child(2),
.project-grid [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}

.bento [data-reveal]:nth-child(3),
.project-grid [data-reveal]:nth-child(3) {
  transition-delay: 0.04s;
}

.bento [data-reveal]:nth-child(4),
.project-grid [data-reveal]:nth-child(4) {
  transition-delay: 0.12s;
}

/* ---------- Cartoes: brilho que segue o cursor e inclinacao ---------- */

.spot {
  position: relative;
  isolation: isolate;
}

.spot::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(31 111 224 / 0.14), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.spot:hover::before {
  opacity: 1;
}

.cta-card.spot::before {
  z-index: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgb(124 196 255 / 0.28), transparent 45%);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.bento-card,
.project-card:not(.photo) {
  transition:
    box-shadow 0.35s ease,
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.bento-card:hover,
.project-card:not(.photo):hover {
  box-shadow:
    0 0 0 1px rgb(31 111 224 / 0.18),
    0 30px 60px -36px rgb(12 42 86 / 0.45);
}

@media (hover: hover) and (pointer: fine) {
  .js a.feature-card.spot.is-in:hover,
  a.feature-card.spot:hover {
    transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
    transition:
      transform 0.15s ease-out,
      background-color 0.25s ease;
  }

  .feature-card .tile {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .feature-card:hover .tile {
    transform: scale(1.12) rotate(-6deg);
  }
}

/* ---------- Botoes: reflexo e atracao magnetica ---------- */

.btn-primary,
.btn-light {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.25s ease,
    translate 0.35s var(--ease);
}

.btn-primary::after,
.btn-light::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.45), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn-light::after {
  background: linear-gradient(100deg, transparent, rgb(31 111 224 / 0.18), transparent);
}

.btn-primary:hover::after,
.btn-light:hover::after {
  animation: shine 0.8s ease;
}

.hero .btn-primary::after {
  animation: shine-idle 6s ease 3s infinite;
}

.btn-primary:hover {
  box-shadow: 0 14px 32px -12px rgb(31 111 224 / 0.85);
}

@keyframes shine {
  to {
    left: 120%;
  }
}

@keyframes shine-idle {
  0% {
    left: -60%;
  }
  18%,
  100% {
    left: 120%;
  }
}

/* ---------- Solucoes: painel e mockups ganham vida ao aparecer ---------- */

.showcase img[data-scroll] {
  transform: translateY(calc((var(--p, 0.5) - 0.5) * -80px)) scale(1.15);
  will-change: transform;
}

.js .glass-panel li::before {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .showcase:not(.is-in) .glass-panel li::before {
  transform: scale(0);
}

.js .glass-panel li:nth-child(2)::before {
  transition-delay: 0.5s;
}

.js .glass-panel li:nth-child(3)::before {
  transition-delay: 1s;
}

.glass-panel li:not(.done)::before {
  border-color: var(--azure);
  border-right-color: transparent;
  animation: spin 1.2s linear infinite;
}

.js .mock-page i,
.js .mock-stats i {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease);
}

.js .is-in .mock-page i,
.js .is-in .mock-stats i {
  transform: none;
}

.js .mock-page i:nth-child(1),
.js .mock-stats span:nth-child(1) i {
  transition-delay: 0.05s;
}

.js .mock-page i:nth-child(2),
.js .mock-stats span:nth-child(2) i {
  transition-delay: 0.15s;
}

.js .mock-page i:nth-child(3),
.js .mock-stats span:nth-child(3) i {
  transition-delay: 0.3s;
}

.mock-page b {
  animation: ring 2.4s ease-out 1.5s infinite;
}

@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgb(31 111 224 / 0.45);
  }
  70%,
  100% {
    box-shadow: 0 0 0 12px rgb(31 111 224 / 0);
  }
}

.js .mock-bars i {
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s var(--ease);
}

.js .is-in .mock-bars i {
  transform: none;
}

.mock-bars i:nth-child(1) { transition-delay: 0.2s; }
.mock-bars i:nth-child(2) { transition-delay: 0.28s; }
.mock-bars i:nth-child(3) { transition-delay: 0.36s; }
.mock-bars i:nth-child(4) { transition-delay: 0.44s; }
.mock-bars i:nth-child(5) { transition-delay: 0.52s; }
.mock-bars i:nth-child(6) { transition-delay: 0.6s; }
.mock-bars i:nth-child(7) { transition-delay: 0.68s; }

.js .mock-flow .node,
.js .mock-flow .flow-pill {
  opacity: 0;
  scale: 0.6;
  transition:
    opacity 0.4s ease,
    scale 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .is-in .mock-flow .node,
.js .is-in .mock-flow .flow-pill {
  opacity: 1;
  scale: 1;
}

.mock-flow .n1 { transition-delay: 0.2s; }
.mock-flow .n2 { transition-delay: 0.35s; }
.mock-flow .n3 { transition-delay: 0.5s; }
.mock-flow .flow-pill { transition-delay: 1s; }

.flow-core {
  animation: core-pulse 2.6s ease-in-out infinite;
}

@keyframes core-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 8px rgb(124 196 255 / 0.2),
      0 16px 32px -10px rgb(31 111 224 / 0.7);
  }
  50% {
    box-shadow:
      0 0 0 18px rgb(124 196 255 / 0.08),
      0 16px 32px -10px rgb(31 111 224 / 0.7);
  }
}

.js .mock-chat > * {
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition:
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.js .is-in .mock-chat > * {
  opacity: 1;
  transform: none;
}

.mock-chat > :nth-child(1) { transition-delay: 0.3s; }
.mock-chat > :nth-child(2) { transition-delay: 1.1s; }
.mock-chat > :nth-child(3) { transition-delay: 1.7s; }

.chips span.on {
  animation: ring 2.4s ease-out 2.4s infinite;
}

/* ---------- FiveM: a tela levanta conforme a secao entra ---------- */

.device[data-scroll] {
  transform: perspective(1400px) rotateX(calc((1 - var(--p, 1)) * 24deg)) scale(calc(0.88 + var(--p, 1) * 0.12));
  transform-origin: 50% 100%;
  will-change: transform;
}

.device-screen {
  position: relative;
}

.device-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / 0.08) 45%, transparent 55%);
  background-size: 250% 100%;
  animation: glare 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glare {
  0%,
  100% {
    background-position: 120% 0;
  }
  50% {
    background-position: -20% 0;
  }
}

/* ---------- Processo: avanco automatico com barra de tempo ---------- */

.tab-list button {
  position: relative;
  overflow: hidden;
}

.tab-list button::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.375rem;
  height: 2px;
  border-radius: 2px;
  background: var(--azure);
  transform: scaleX(0);
  transform-origin: left;
}

[data-autoplay] .tab-list button[aria-selected="true"]::after {
  animation: tab-progress 6s linear forwards;
}

[data-autoplay]:hover .tab-list button::after,
[data-autoplay]:focus-within .tab-list button::after,
[data-autoplay].is-offscreen .tab-list button::after {
  animation-play-state: paused;
}

@keyframes tab-progress {
  to {
    transform: scaleX(1);
  }
}

.tab-list .tile {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-list button[aria-selected="true"] .tile {
  transform: scale(1.08) rotate(-6deg);
}

.js .tab-panel.is-active .tab-visual > * {
  animation: pop-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
}

/* ---------- Ferramentas: blocos seguem o cursor em profundidades diferentes ---------- */

@media (min-width: 1000px) {
  .stack-tiles li {
    translate: calc(var(--px, 0) * var(--d, 10) * 1px) calc(var(--py, 0) * var(--d, 10) * 1px);
    transition:
      translate 0.6s var(--ease),
      box-shadow 0.3s ease;
  }

  .stack-tiles li:hover {
    box-shadow: 0 20px 40px -16px rgb(31 111 224 / 0.5);
  }
}

/* ---------- Fechamento: gradiente vivo ---------- */

.cta-card {
  background:
    radial-gradient(60% 90% at 100% 0%, rgb(124 196 255 / 0.35), transparent 60%),
    linear-gradient(135deg, var(--azure), var(--navy) 45%, var(--azure-hover) 75%, var(--navy));
  background-size: 100% 100%, 250% 250%;
  animation: cta-flow 12s ease-in-out infinite;
}

@keyframes cta-flow {
  0%,
  100% {
    background-position: 0 0, 0% 0%;
  }
  50% {
    background-position: 0 0, 100% 100%;
  }
}

/* ---------- Rodape: assinatura gigante ---------- */

.footer-word {
  margin-bottom: -0.18em;
  padding-inline: var(--gutter);
  font-size: clamp(4.5rem, 1rem + 17vw, 17rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgb(124 196 255 / 0.22), rgb(124 196 255 / 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* ---------- Movimento reduzido: tudo parado e visivel ---------- */

@media (prefers-reduced-motion: reduce) {
  .js .hero-title .line > span,
  .js [data-split] .w > span,
  .js .mock-page i,
  .js .mock-stats i,
  .js .mock-bars i,
  .js .mock-chat > *,
  .js .showcase:not(.is-in) .glass-panel li::before {
    transform: none;
  }

  .js .code-card .ln {
    clip-path: none;
  }

  .js .mock-flow .node,
  .js .mock-flow .flow-pill,
  .js .mock-chat > * {
    opacity: 1;
    scale: 1;
  }

  .js .mark {
    background-size: 100% 100%;
  }

  .device[data-scroll] {
    transform: none;
  }

  .showcase img[data-scroll] {
    transform: scale(1.02);
  }
}

/* ---------- Catálogo de scripts (/scripts) ---------- */
.buy-ways {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 1.75rem auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
  color: var(--on-dark-muted);
}

.buy-ways strong {
  color: var(--white);
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  align-items: start;
}

.script-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Espaço da imagem/vídeo: troque o <span> por <img> ou <video> quando houver mídia. */
.script-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 80% 20%, rgb(124 196 255 / 0.35), transparent 55%),
    linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

.script-media img,
.script-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.script-media:has(img, video) {
  padding: 0;
}

.script-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
}

.script-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.script-tag .badge {
  background: var(--sky-soft);
  font-family: var(--font);
}

/* Os chips dos cards são só rótulos: sem o anel pulsante de .chips span.on da home (57 animações = CPU alta parada). */
.script-card .chips span {
  animation: none;
}

.script-card h3 {
  font-size: var(--t-h3);
}

.script-body > p:not(.script-tag) {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

.script-card details {
  border-top: 1px solid var(--line);
  padding-top: 0.875rem;
}

.script-card summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}

.script-block {
  margin-top: 1rem;
}

.script-block h4 {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--azure);
}

.script-block ul {
  display: grid;
  gap: 0.375rem;
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  list-style: disc;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}

.script-cta {
  align-self: flex-start;
}

.script-notice {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
}
