/* ==========================================================================
   ScaleCodex — Design System
   Dark premium. Tokens, superfícies de vidro, iluminação e movimento.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Fundos */
  --bg: #050505;
  --bg-2: #0b0b0d;
  --bg-3: #0f0f12;

  /* Superfícies */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text: #ffffff;
  --muted: #a1a1aa;
  --muted-2: #82828c;

  /* Cores de marca */
  --blue: #2563eb;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --purple: #8b5cf6;

  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--cyan) 100%);
  --grad-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(139, 92, 246, 0.18));
  --grad-text: linear-gradient(120deg, #ffffff 20%, #c7d2fe 55%, #a5f3fc 100%);

  /* Geometria */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shell: 1200px;
  --gutter: 24px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 40px 120px rgba(0, 0, 0, 0.6);
  --glow-blue: 0 0 0 1px rgba(37, 99, 235, 0.32), 0 18px 60px -12px rgba(37, 99, 235, 0.5);
  --glow-violet: 0 24px 80px -20px rgba(124, 58, 237, 0.55);

  /* Tipografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Ruído reutilizado nas superfícies */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}

::selection { background: rgba(124, 58, 237, 0.4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   FUNDO VIVO — grid, iluminação radial e ruído
   ========================================================================== */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

/* grid tecnológico, com máscara para desaparecer nas bordas */
.backdrop::before {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ruído por cima de tudo */
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.backdrop__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  will-change: transform;
}

.backdrop__glow--1 {
  width: 720px;
  height: 720px;
  top: -300px;
  left: 50%;
  margin-left: -520px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 68%);
  animation: drift-a 22s var(--ease) infinite alternate;
}

.backdrop__glow--2 {
  width: 620px;
  height: 620px;
  top: -180px;
  right: -160px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.45), transparent 68%);
  animation: drift-b 26s var(--ease) infinite alternate;
}

.backdrop__glow--3 {
  width: 560px;
  height: 560px;
  top: 62%;
  left: -220px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22), transparent 70%);
  animation: drift-a 30s var(--ease) infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-70px, 50px, 0) scale(1); }
}

/* partículas muito discretas */
.backdrop__particles { position: absolute; inset: 0; }
.backdrop__particles i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { opacity: 0; transform: translateY(0); }
  12%  { opacity: 0.7; }
  88%  { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-460px); }
}

/* barra de progresso do scroll */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad-brand);
  z-index: 90;
  will-change: transform;
}

/* ==========================================================================
   PRIMITIVOS
   ========================================================================== */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(80px, 9vw, 128px) 0;
}

.section--tight { padding: clamp(56px, 6vw, 88px) 0; }

/* divisor luminoso entre seções */
.section--divided::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 1100px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px 1px var(--purple);
}

.eyebrow--light { color: var(--muted); }

.title-xl {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.title-lg {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.title-md { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
}

.lead--light { color: var(--muted); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.section-head .title-lg { margin-top: 22px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  isolation: isolate;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn svg {
  width: 16px; height: 16px;
  flex: none;
  transition: transform 0.4s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* primário: branco sólido, brilho ao redor */
.btn--primary {
  background: #ffffff;
  color: #050505;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 30px -8px rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 50px -10px rgba(255, 255, 255, 0.5);
}

/* gradiente: para os CTAs de maior peso */
.btn--gradient {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  background-size: 160% 160%;
  box-shadow: var(--glow-blue);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    background-position 0.6s var(--ease);
}
.btn--gradient:hover {
  background-position: 100% 0;
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.5), 0 24px 70px -14px rgba(124, 58, 237, 0.75);
}

/* fantasma de vidro */
.btn--ghost,
.btn--ghost-light {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover,
.btn--ghost-light:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn--light { background: #fff; color: #050505; font-weight: 600; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 15.5px; }

/* ==========================================================================
   CABEÇALHO
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 0.45s var(--ease), background-color 0.45s var(--ease),
    border-color 0.45s var(--ease), backdrop-filter 0.45s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.header.is-stuck {
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.03em;
  color: var(--text);
  flex: none;
  transition: opacity 0.3s var(--ease);
}
.brand:hover { opacity: 0.82; }
.brand__mark { width: 30px; height: 30px; }
.brand__name span {
  background: linear-gradient(120deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list > li:last-child { display: none; }

.nav__link {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 450;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease-out);
}

.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { flex: none; }

/* ---------- Menu de idiomas do cabeçalho ----------
   Um disclosure: o botão mostra o idioma vigente e abre a lista dos três.
   Fica fora do .nav para continuar ao alcance no celular sem abrir o menu.
------------------------------------------------------------------------- */
.lang-menu { position: relative; flex: none; }

.lang-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.lang-menu__btn:hover,
.lang-menu__btn[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--border-strong);
}

.lang-menu__globe { width: 16px; height: 16px; flex: none; }
.lang-menu__atual {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.lang-menu__chevron {
  width: 13px; height: 13px;
  flex: none;
  opacity: 0.7;
  transition: transform 0.35s var(--ease-out);
}
.lang-menu__btn[aria-expanded="true"] .lang-menu__chevron { transform: rotate(180deg); }

.lang-menu__list {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 184px;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: 100% 0;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out),
    visibility 0.3s;
}
.lang-menu.is-open .lang-menu__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.lang-menu__item:hover { color: var(--text); background: var(--surface); }
.lang-menu__item[aria-pressed="true"] { color: var(--text); }

.lang-menu__code {
  flex: none;
  width: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.lang-menu__nome { flex: 1 1 auto; font-size: 14px; font-weight: 450; }

.lang-menu__check {
  width: 15px; height: 15px;
  flex: none;
  color: #a5b4fc;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lang-menu__item[aria-pressed="true"] .lang-menu__check { opacity: 1; }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease-out), background-color 0.3s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -0.75px; }
.nav-toggle span::before { content: ""; top: -5px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 5px; left: 0; transform: none; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(108px, 14vh, 132px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.005em;
  margin-bottom: 32px;
}

.hero__badge strong { color: var(--text); font-weight: 550; }

.dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(34, 197, 94, 0.55);
  animation: pulse-ring 2.4s var(--ease) infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 { margin-bottom: 30px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(110deg, #60a5fa 0%, #a78bfa 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted-2);
}

.hero__proof-avatars { display: flex; }
.hero__proof-avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--grad-brand);
  margin-left: -8px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.hero__proof-avatars span:first-child { margin-left: 0; }
.hero__proof-avatars span:nth-child(2) { background: linear-gradient(135deg, var(--purple), var(--cyan)); }
.hero__proof-avatars span:nth-child(3) { background: linear-gradient(135deg, var(--cyan), var(--blue)); }

/* ---------- Composição 3D do hero ---------- */
.hero__stage {
  position: relative;
  min-height: 470px;
  perspective: 1600px;
  perspective-origin: 50% 40%;
}

.hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% -10% 12% -6%;
  background: radial-gradient(ellipse at 55% 45%, rgba(124, 58, 237, 0.34), transparent 65%);
  filter: blur(52px);
  pointer-events: none;
}

.stage__deck {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -16deg));
  transition: transform 0.9s var(--ease-out);
}

.glass-card {
  position: absolute;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  padding: 18px;
  will-change: transform;
}

/* painel principal — o dashboard */
.card--dash {
  top: 74px;
  left: 0;
  width: 74%;
  transform: translateZ(0);
  animation: float-1 9s var(--ease) infinite alternate;
}

.card--code {
  bottom: 8px;
  left: -6%;
  width: 62%;
  transform: translateZ(70px);
  animation: float-2 11s var(--ease) infinite alternate;
  padding: 16px 18px;
}

.card--ai {
  top: 0;
  right: -2%;
  width: 47%;
  transform: translateZ(120px);
  animation: float-3 8s var(--ease) infinite alternate;
}

.card--metric {
  bottom: 78px;
  right: -8%;
  width: 44%;
  transform: translateZ(160px);
  animation: float-2 10s var(--ease) infinite alternate-reverse;
}

@keyframes float-1 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(0, -16px, 20px); }
}
@keyframes float-2 {
  from { transform: translate3d(0, 0, 70px); }
  to   { transform: translate3d(6px, -22px, 90px); }
}
@keyframes float-3 {
  from { transform: translate3d(0, 0, 120px); }
  to   { transform: translate3d(-10px, -18px, 140px); }
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card__title {
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.92);
}

.card__dots { display: flex; gap: 5px; }
.card__dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.card__dots i:first-child { background: rgba(239, 68, 68, 0.55); }
.card__dots i:nth-child(2) { background: rgba(234, 179, 8, 0.5); }
.card__dots i:nth-child(3) { background: rgba(34, 197, 94, 0.5); }

.card__value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.card__delta {
  font-size: 11.5px;
  color: #4ade80;
  font-weight: 550;
}

.card__label {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* mini gráfico de barras */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 76px;
  margin-top: 16px;
}
.bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--purple), rgba(37, 99, 235, 0.35));
  transform-origin: 50% 100%;
  animation: bar-grow 0.9s var(--ease-out) backwards;
}
@keyframes bar-grow {
  from { transform: scaleY(0.05); opacity: 0; }
  to   { transform: scaleY(1); opacity: 1; }
}

/* linha de sparkline */
.spark { margin-top: 12px; height: 46px; width: 100%; overflow: visible; }
.spark path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 2.4s var(--ease-out) forwards 0.4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* bloco de código */
.code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.85;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
}
.code .ln { color: rgba(255, 255, 255, 0.2); margin-right: 12px; user-select: none; }
.code .kw { color: #c084fc; }
.code .fn { color: #60a5fa; }
.code .st { color: #86efac; }
.code .cm { color: #52525b; }
.code .nm { color: #fbbf24; }

.code__caret {
  display: inline-block;
  width: 6px; height: 12px;
  background: var(--cyan);
  vertical-align: -1px;
  animation: blink 1.15s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* pílula de IA */
.ai-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
}
.ai-row + .ai-row { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.ai-row__icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: #a5b4fc;
}
.ai-row__icon svg { width: 14px; height: 14px; }
.ai-row__text { font-size: 11.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.4; }
.ai-row__text small { display: block; color: var(--muted-2); font-size: 10px; }

.ai-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 12px;
}
.ai-progress i {
  display: block;
  height: 100%;
  width: 68%;
  border-radius: 999px;
  background: var(--grad-brand);
  animation: fill 2.6s var(--ease-out) infinite alternate;
}
@keyframes fill { from { width: 24%; } to { width: 86%; } }

/* ==========================================================================
   ESTATÍSTICAS
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  position: relative;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(28px, 3.4vw, 40px) clamp(22px, 2.6vw, 32px);
  transition: background-color 0.5s var(--ease);
}
.stat:hover { background: rgba(255, 255, 255, 0.05); }

.stat strong {
  display: block;
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   TECNOLOGIAS — marquee
   ========================================================================== */
.marquee {
  position: relative;
  padding: clamp(52px, 6vw, 76px) 0;
  overflow: hidden;
}

.marquee__label {
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 34px;
}

.marquee__viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee__viewport:hover .marquee__track { animation-play-state: paused; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
  filter: grayscale(1);
  opacity: 1;
  transition: color 0.4s var(--ease), filter 0.4s var(--ease), opacity 0.4s var(--ease),
    transform 0.4s var(--ease-out);
  white-space: nowrap;
}
.marquee__item svg { width: 22px; height: 22px; flex: none; }
.marquee__item:hover {
  color: var(--text);
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

/* ==========================================================================
   CARTÃO DE VIDRO — base compartilhada
   ========================================================================== */
.card {
  position: relative;
  padding: clamp(26px, 2.8vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s var(--ease-out), border-color 0.45s var(--ease),
    box-shadow 0.55s var(--ease-out), background-color 0.45s var(--ease);
}

/* holofote que segue o cursor */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.16),
    transparent 62%
  );
  transition: opacity 0.5s var(--ease);
}

/* borda em gradiente que acende no hover */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.65),
    rgba(37, 99, 235, 0.25) 42%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 0 60px -20px rgba(124, 58, 237, 0.5);
}
.card:hover::before,
.card:hover::after { opacity: 1; }

/* ==========================================================================
   SERVIÇOS
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service { display: flex; flex-direction: column; }

.service__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #c4b5fd;
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.2), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 30px -12px rgba(139, 92, 246, 0.7);
  transition: transform 0.6s var(--ease-spring), color 0.4s var(--ease),
    box-shadow 0.5s var(--ease);
}
.service__icon svg { width: 21px; height: 21px; }

.card:hover .service__icon {
  transform: rotate(-6deg) scale(1.08);
  color: #fff;
  box-shadow: 0 12px 40px -10px rgba(139, 92, 246, 0.9);
}

.service h3 {
  font-size: 1.18rem;
  font-weight: 550;
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}

.service p {
  color: var(--muted);
  font-size: 14.8px;
  line-height: 1.68;
}

.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}
.service__tags li {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover .service__tags li { color: rgba(255, 255, 255, 0.82); border-color: var(--border-strong); }

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.35s var(--ease), gap 0.35s var(--ease-out);
}
.service__cta svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease-out); }
.service:hover .service__cta { color: #c4b5fd; }
.service:hover .service__cta svg { transform: translateX(4px); }

/* ==========================================================================
   PROJETOS EM DESTAQUE
   ========================================================================== */
.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
}

.project::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px; height: 520px;
  top: -240px; right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 66%);
  filter: blur(60px);
}

.project--alt::before {
  right: auto;
  left: -180px;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.22), transparent 66%);
}

.project + .project { margin-top: clamp(24px, 3vw, 36px); }
.project--alt { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }

.project__body { position: relative; z-index: 2; }

.project__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.26);
  margin-bottom: 22px;
}
.project--alt .project__badge {
  color: #fda4af;
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(253, 164, 175, 0.26);
}

.project h3 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.project__tagline {
  color: #c4b5fd;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 20px;
}
.project--alt .project__tagline { color: #fda4af; }

.project p.project__desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.project__features {
  display: grid;
  gap: 11px;
  margin: 26px 0;
}
.project__features li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14.2px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}
.project__features svg {
  width: 17px; height: 17px;
  flex: none;
  margin-top: 3px;
  color: #a78bfa;
}
.project--alt .project__features svg { color: #fda4af; }

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}
.project__stack li {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
    border-color 0.4s var(--ease), background-color 0.4s var(--ease);
}
.store-badge:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-md);
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: block; line-height: 1.25; }
.store-badge small {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted-2);
}
.store-badge strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }

.project__visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.project__visual svg {
  width: min(290px, 82%);
  border-radius: 40px;
  filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.7));
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform 0.9s var(--ease-out);
}
.project--alt .project__visual svg { transform: rotateY(12deg) rotateX(4deg); }
.project:hover .project__visual svg { transform: rotateY(0) rotateX(0) translateY(-8px); }

.projects__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: clamp(34px, 4vw, 52px);
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
}
.projects__cta p { color: var(--muted); font-size: 15px; max-width: 54ch; }

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.edge__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.edge__item { display: flex; flex-direction: column; }

.edge__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #93c5fd;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.6s var(--ease-spring), color 0.4s var(--ease);
}
.edge__icon svg { width: 19px; height: 19px; }
.card:hover .edge__icon { transform: rotate(6deg) scale(1.08); color: #fff; }

.edge__item h3 {
  font-size: 1.1rem;
  font-weight: 550;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.edge__item p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ==========================================================================
   PROCESSO — linha do tempo conectada
   ========================================================================== */
.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

/* linha que conecta as etapas */
.process::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(139, 92, 246, 0.5) 12%,
    rgba(37, 99, 235, 0.5) 50%,
    rgba(6, 182, 212, 0.5) 88%,
    transparent
  );
}

/* pulso de luz percorrendo a linha */
.process::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 6%;
  width: 90px;
  height: 5px;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.9), transparent 70%);
  filter: blur(3px);
  animation: pulse-line 5.5s var(--ease) infinite;
}
@keyframes pulse-line {
  0%   { transform: translateX(0); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateX(950%); opacity: 0; }
}

.step { position: relative; text-align: center; padding-top: 0; }

.step__dot {
  position: relative;
  width: 42px; height: 42px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: #c4b5fd;
  transition: transform 0.6s var(--ease-spring), border-color 0.4s var(--ease),
    box-shadow 0.5s var(--ease), color 0.4s var(--ease);
}
.step__dot svg { width: 17px; height: 17px; }
.step:hover .step__dot {
  transform: scale(1.14);
  color: #fff;
  border-color: rgba(139, 92, 246, 0.7);
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.1), 0 12px 40px -8px rgba(139, 92, 246, 0.8);
}

.step__num {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
}

.step h3 {
  font-size: 1rem;
  font-weight: 550;
  margin-bottom: 9px;
  letter-spacing: -0.02em;
}
.step p { color: var(--muted); font-size: 13.2px; line-height: 1.6; }

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact__channels { display: grid; gap: 10px; margin-top: 38px; }

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.45s var(--ease-out), border-color 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
.channel:hover {
  transform: translateX(5px);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.channel__icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex: none;
  color: #c4b5fd;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  transition: color 0.4s var(--ease);
}
.channel:hover .channel__icon { color: #fff; }
.channel__icon svg { width: 18px; height: 18px; }
.channel small {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted-2);
}
.channel strong {
  font-weight: 500;
  font-size: 14.8px;
  letter-spacing: -0.015em;
  word-break: break-word;
}

/* ---------- Formulário ---------- */
.form {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.form::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(139, 92, 246, 0.4), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.35s var(--ease);
}

.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
.field select option { background: var(--bg-2); color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.form__note {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-top: 14px;
  text-align: center;
}

.form__status {
  display: none;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--border);
}
.form__status.is-visible { display: block; }
.form__status.is-ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.form__status.is-erro {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   CTA FINAL — cinematográfico
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 10vw, 132px) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-band::before {
  content: "";
  position: absolute;
  width: 1100px; height: 700px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -42%);
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.32),
    rgba(37, 99, 235, 0.14) 42%,
    transparent 70%
  );
  filter: blur(70px);
  pointer-events: none;
}

/* halo em arco atrás do título */
.cta-band::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -420px;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 55%);
  pointer-events: none;
}

.cta-band__inner { position: relative; z-index: 2; }

.cta-band h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 26px auto 0;
  max-width: 16ch;
}

.cta-band p {
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 50ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 44px;
}

.cta-band__note {
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
  position: relative;
  border-top: 1px solid var(--border);
  background: rgba(11, 11, 13, 0.6);
  padding: clamp(56px, 6vw, 80px) 0 34px;
  color: var(--muted);
}

/* Quatro colunas: marca à esquerda, Serviços · Empresa · Jurídico à direita.
   A primeira é mais larga porque carrega a assinatura e as redes. */
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.footer .brand { color: var(--text); }
.footer__tagline {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.6;
}

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.footer__links { display: grid; gap: 11px; }
.footer__links a {
  font-size: 14.5px;
  color: var(--muted);
  width: fit-content;
  transition: color 0.3s var(--ease), transform 0.35s var(--ease-out);
}
.footer__links a:hover { color: var(--text); transform: translateX(3px); }

.socials { display: flex; gap: 9px; margin-top: 24px; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: transform 0.45s var(--ease-out), color 0.35s var(--ease),
    border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.socials a:hover {
  transform: translateY(-3px);
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.12);
}
.socials svg { width: 17px; height: 17px; }

/* Barra inferior: monoespaçada e miúda, para separar o institucional
   das colunas de navegação sem pedir atenção. */
.footer__bottom {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.footer__bottom-row,
.footer__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.footer__bottom-row { justify-content: space-between; gap: 12px; }
.footer__copy { margin: 0; }
.footer__meta { gap: 16px; }

/* ---------- Alternador de idioma ---------- */
.lang {
  display: flex;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang__btn {
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.lang__btn + .lang__btn { border-left: 1px solid var(--border); }
.lang__btn:hover { color: var(--text); background: var(--surface); }
.lang__btn.is-active { background: var(--text); color: var(--bg); }

/* Enquanto o dicionário de pt ou es não entrou, a página fica oculta —
   ver o texto trocar na frente do visitante é pior do que esperar 100 ms.
   O inglês é o HTML original e nunca passa por aqui. */
.traduzindo body { visibility: hidden; }

/* ==========================================================================
   PÁGINAS INTERNAS — hero, documentos, portfólio
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(140px, 17vh, 180px) 0 clamp(52px, 6vw, 76px);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 900px; height: 600px;
  left: 50%; top: -300px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.28), transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}

.page-hero__inner { position: relative; z-index: 2; }
.page-hero p { color: var(--muted); margin-top: 18px; max-width: 62ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 22px;
}
.breadcrumb a { transition: color 0.3s var(--ease); }
.breadcrumb a:hover { color: var(--text); }

.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Documentos legais ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(72px, 9vw, 120px);
}

.toc {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toc h2 {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  color: var(--muted);
}
.toc a { transition: color 0.3s var(--ease); }
.toc a:hover { color: #c4b5fd; }

.doc { max-width: 76ch; }

.doc h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
  margin: 52px 0 18px;
  scroll-margin-top: 110px;
}
.doc h2:first-of-type { margin-top: 0; }

.doc h3 {
  font-size: 1.12rem;
  font-weight: 550;
  margin: 32px 0 12px;
  letter-spacing: -0.02em;
}

.doc p { margin-bottom: 16px; color: var(--muted); line-height: 1.78; }

.doc ul { display: grid; gap: 11px; margin: 0 0 20px; }
.doc ul li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.7;
}
.doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.doc a {
  color: #a5b4fc;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(165, 180, 252, 0.4);
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
.doc a:hover { color: #c7d2fe; text-decoration-color: currentColor; }

.doc strong { font-weight: 600; color: var(--text); }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }

.doc code {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #c4b5fd;
}

.callout {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.12), rgba(37, 99, 235, 0.06));
  margin: 26px 0;
}
.callout p { color: rgba(255, 255, 255, 0.82); }
.callout p:last-child { margin-bottom: 0; }

.doc-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
}
.doc-contact p { margin: 0; }

/* ---------- Páginas de serviço, empresa e jurídico ---------- */

/* Etiquetas do topo: o resumo do serviço antes de qualquer parágrafo. */
.page-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}
.page-tags li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
}

/* Entregáveis: lista com marcador próprio, sem virar bullet de documento. */
.deliver {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.deliver li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  line-height: 1.7;
}
.deliver li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.45);
}
.deliver li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  width: 6px;
  height: 3.5px;
  border-left: 1.6px solid #c4b5fd;
  border-bottom: 1.6px solid #c4b5fd;
  transform: rotate(-45deg);
}

/* Pilha técnica. */
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack-chips li {
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* Perguntas frequentes — <details> nativo, sem JavaScript nenhum. */
.faq { display: grid; gap: 12px; max-width: 76ch; }

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s var(--ease);
}
.faq details[open] { border-color: rgba(139, 92, 246, 0.35); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 20px;
  font-weight: 400;
  color: var(--muted-2);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: #c4b5fd; }

.faq p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.75;
}

/* Outros serviços, no rodapé de cada página de serviço. */
.sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.sibling {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
  transition: color 0.3s var(--ease), border-color 0.35s var(--ease),
    transform 0.4s var(--ease-out);
}
.sibling:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
}
.sibling svg { width: 17px; height: 17px; flex: none; }

/* ---------- Página de portfólio ---------- */
.filters { display: grid; gap: 18px; }

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.search-field:focus-within {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}
.search-field svg { width: 18px; height: 18px; flex: none; color: var(--muted-2); }
.search-field input {
  flex: 1;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
.search-field input:focus { outline: none; }
.search-field input::placeholder { color: var(--muted-2); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease),
    background-color 0.3s var(--ease), transform 0.35s var(--ease-out);
}
.chip:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.chip.is-active {
  color: #050505;
  background: #fff;
  border-color: #fff;
  font-weight: 600;
}

.results-count {
  font-size: 13.5px;
  color: var(--muted-2);
  margin-top: 24px;
}

.pgroup { margin-top: clamp(38px, 4vw, 56px); }
.pgroup[hidden] { display: none; }

.pgroup__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pgroup__head h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); letter-spacing: -0.03em; }
.pgroup__count { font-size: 12.5px; color: var(--muted-2); }

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* ---------- Ícone do aplicativo (cards de projeto) ---------- */
.app-icon {
  flex: none;
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease-out), border-color 0.45s var(--ease);
}
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.app-icon--lg { width: 84px; height: 84px; border-radius: 22px; }

.pcard:hover .app-icon,
.project:hover .app-icon { transform: translateY(-2px) scale(1.04); border-color: var(--border-strong); }

/* Cabeçalho do card: ícone à esquerda, selo e nome à direita. */
.pcard__head,
.project__head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.pcard__head { margin-bottom: 16px; }
.project__head { margin-bottom: 22px; }

.pcard__head h3,
.project__head h3 { margin-bottom: 0; min-width: 0; }

@media (max-width: 560px) {
  .app-icon { width: 56px; height: 56px; border-radius: 15px; }
  .app-icon--lg { width: 64px; height: 64px; border-radius: 17px; }
  .pcard__head,
  .project__head { gap: 14px; }
}

.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s var(--ease-out), border-color 0.45s var(--ease),
    box-shadow 0.55s var(--ease-out), background-color 0.45s var(--ease);
}
.pcard[hidden] { display: none; }

.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.6), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.pcard:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: var(--shadow-md), 0 0 60px -20px rgba(124, 58, 237, 0.5);
}
.pcard:hover::after { opacity: 1; }

.pcard__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a5b4fc;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.26);
  margin-bottom: 20px;
}

.pcard h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -0.035em; margin-bottom: 8px; }
.pcard__tagline { color: #c4b5fd; font-weight: 500; font-size: 14.5px; margin-bottom: 16px; }
.pcard__desc { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-bottom: 22px; }

.pcard__list { display: grid; gap: 10px; margin: 0 0 24px; }
.pcard__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}
.pcard__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 9px rgba(139, 92, 246, 0.9);
}

.pcard__stack { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.pcard__stack li {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.pcard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

/* Selo de "ainda não publicado": mesma forma do selo da loja, sem ser um link. */
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  border-radius: 14px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  color: var(--muted);
}
.soon-badge svg { width: 24px; height: 24px; flex: none; }
.soon-badge span { display: block; line-height: 1.25; }
.soon-badge small {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted-2);
}
.soon-badge strong { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }

.pcard__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pcard__links a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.pcard__links a:hover { color: #c4b5fd; text-decoration-color: currentColor; }

.empty-state {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: clamp(48px, 6vw, 80px) 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  margin-top: 40px;
}
.empty-state[hidden] { display: none; }
.empty-state svg { width: 32px; height: 32px; color: var(--muted-2); }
.empty-state h2 { font-size: 1.35rem; letter-spacing: -0.03em; }
.empty-state p { color: var(--muted); max-width: 50ch; }
.empty-state .btn { margin-top: 8px; }

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal--scale { transform: translateY(24px) scale(0.97); }
.reveal--left { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--scale.is-visible,
.reveal--left.is-visible,
.reveal--right.is-visible { transform: none; }

/* elemento com parallax leve controlado por JS */
[data-parallax] { will-change: transform; }

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1080px) {
  .services__grid,
  .edge__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .process { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 42px; }
  .process::before,
  .process::after { display: none; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage {
    min-height: 420px;
    order: -1;
    margin-bottom: 12px;
    transform: scale(0.92);
  }
  .hero__lead { max-width: 60ch; }

  .project,
  .project--alt { grid-template-columns: 1fr; }
  .project__visual { order: -1; }
  .project__visual svg { transform: none; width: min(250px, 62%); }
  .project--alt .project__visual svg { transform: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }

  .nav-toggle { display: block; order: 3; }
  .lang-menu { margin-left: auto; }
  .header__cta { display: none; }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: var(--gutter);
    right: var(--gutter);
    margin-left: 0;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: rgba(10, 10, 12, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out),
      visibility 0.4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list > li:last-child { display: block; margin-top: 10px; }
  .nav__list > li:last-child .btn { width: 100%; }
  .nav__link { padding: 12px 14px; font-size: 15px; }
  .nav__link::after { display: none; }

  .services__grid,
  .edge__grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .form__row { grid-template-columns: 1fr; gap: 0; }

  .hero__actions .btn,
  .cta-band__actions .btn { flex: 1 1 200px; }

  .projects__cta { flex-direction: column; align-items: flex-start; }
  .footer__bottom-row { align-items: flex-start; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }

  .stats { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__bottom-row { align-items: flex-start; flex-direction: column; }
  .footer__meta { gap: 12px; }

  /* No celular a composição vira duas peças empilhadas, sem sobreposição. */
  .hero__stage { min-height: 424px; transform: none; margin-bottom: 4px; }
  .card--metric,
  .card--ai { display: none; }
  .card--dash { top: 0; left: 0; width: 88%; }
  .card--code { top: auto; bottom: 0; left: auto; right: 0; width: 80%; }

  .marquee__track { gap: 36px; }
  .marquee__item { font-size: 15px; }
}

@media (max-width: 420px) {
  .lang-menu__list { min-width: 168px; }
  .hero__proof { flex-direction: column; align-items: flex-start; gap: 10px; }
  .project__actions,
  .pcard__actions { flex-direction: column; align-items: stretch; }
  .store-badge { justify-content: center; }
}

/* ==========================================================================
   ACESSIBILIDADE — movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .stage__deck { transform: none; }
  .glass-card { animation: none; }
  .marquee__track { animation: none; }
}
