/* ===================================================================
   Grupo Closr — landing page
   Paleta (identidade/design-guide.md): light / clean
   #ffffff fundo · #0a0a0a texto · #000AFF azul acento (CTA/destaque)
   =================================================================== */

:root {
  /* ---- base dark-first ---- */
  --bg:        #07080f;   /* fundo escuro */
  --surface:   #10131f;   /* cards / superfícies elevadas */
  --surface-2: #171b28;
  --border:    #242838;
  --border-2:  #313650;
  --text:      #ffffff;
  --muted:     #a7aec1;   /* ≥4.5:1 sobre o escuro */
  --muted-2:   #828ca2;   /* secundário / pequeno */
  --accent:      #000aff;   /* preenchimento: botões, glow */
  --accent-2:    #2b34ff;   /* hover de botão */
  --accent-text: #6f7bff;   /* azul p/ TEXTO/ícone sobre o escuro */
  --accent-glow: rgba(0, 10, 255, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-blue: 0 12px 30px -10px rgba(0, 10, 255, 0.45);

  --radius:   14px;
  --radius-sm: 10px;
  --maxw: 1120px;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

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

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------- Acessibilidade --------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 16px;
}

.accent { color: var(--accent-text); }

/* ===================== BOTÕES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; flex: none; fill: currentColor; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
/* botão com degradê (mesmo da variante A dos ícones da seção 2) */
.btn-grad {
  background: linear-gradient(155deg, #6f7bff 0%, #000aff 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-grad:hover {
  background: linear-gradient(155deg, #808bff 0%, #0a13ff 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
}
.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 18px; min-height: 42px; font-size: 0.92rem; }
.btn-lg { padding: 16px 30px; min-height: 54px; font-size: 1.05rem; }

/* bolinha com setinha (CTA da hero) — bola branca, seta no azul da marca */
.btn-arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 26px; height: 26px;
  margin-left: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s var(--ease);
}
.btn-arrow svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ===================== HEADER ===================== */
/* Cabeçalho em "gota" flutuante (vidro escuro) — sobre o conteúdo, sem faixa */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 16px;
  background: transparent;
  transition: padding .3s var(--ease);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  max-width: 980px;
  height: 60px;
  padding: 0 12px 0 22px;
  background: rgba(12, 15, 26, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.65);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.brand { justify-self: start; display: inline-flex; }
.brand-logo { height: 26px; width: auto; }

.nav-desktop { display: flex; gap: 30px; justify-self: center; }
.nav-desktop a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-desktop a:hover { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }

/* leve reforço ao rolar */
.site-header.scrolled .header-inner {
  background: rgba(12, 15, 26, 0.74);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.78);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0 12px;
}
.menu-toggle span {
  height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* menu mobile: card flutuante de vidro escuro (combina com a gota) */
.mobile-menu {
  max-width: 980px;
  margin: 10px auto 0;
  background: rgba(12, 15, 26, 0.94);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 18px;
  box-shadow: 0 16px 44px -12px rgba(0, 0, 0, 0.72);
  overflow: hidden;
}
.mobile-menu nav { display: flex; flex-direction: column; padding: 10px 12px 14px; gap: 2px; }
.mobile-menu a {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  border-radius: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:nth-last-child(2) { border-bottom: none; }
.mobile-menu a.btn { margin-top: 10px; color: #fff; border-bottom: none; justify-content: center; }

/* ===================== HERO (espaço + planeta) ===================== */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(125% 95% at 50% 6%, #12163a 0%, #0a0c20 46%, var(--bg) 100%);
}
/* funde o fundo escuro do hero na próxima seção — precisa chegar a 100%
   opaco ANTES do corte do overflow, senão sobra a linha da emenda */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 320px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg) 82%);
  pointer-events: none;
  z-index: 1;
}
/* escurece o topo (atrás do texto) p/ leitura sobre o planeta */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(8, 10, 26, 0.92) 0%,
    rgba(8, 10, 26, 0.6) 28%,
    rgba(8, 10, 26, 0.15) 46%,
    transparent 60%);
}

.hero-space { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: opacity; }

/* estrelas */
.stars {
  position: absolute; inset: 0;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 28% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 45% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 62% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 78% 26%, rgba(255,255,255,0.85), transparent),
    radial-gradient(1px 1px at 88% 10%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 8% 45%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1.5px 1.5px at 92% 40%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 35% 7%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 55% 44%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 72% 52%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 20% 60%, rgba(255,255,255,0.5), transparent);
}

/* planeta */
.planet {
  position: absolute;
  left: 50%; bottom: -62%;
  width: min(900px, 152vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateX(-50%);
  will-change: transform;
  box-shadow: 0 -12px 130px 12px rgba(45, 95, 255, 0.28);
}
.planet-surface {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #0a1a30;
}
/* textura real da Terra + nuvens, girando */
.planet-tex,
.planet-clouds {
  position: absolute; top: 0; left: 0;
  width: 400%; height: 100%;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  will-change: transform;
}
.planet-tex {
  background-image: url("assets/earth.jpg");
  animation: earthSpin 90s linear infinite;
}
.planet-clouds {
  background-image: url("assets/earth-clouds.png");
  opacity: 0.45;
  mix-blend-mode: screen;
  animation: earthSpin 68s linear infinite;
}
/* sombreamento esférico: curvatura + luz do sol */
.planet-shade {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.20), transparent 42%),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(0,0,8,0.5) 90%);
  box-shadow: inset -30px -26px 72px rgba(0,0,8,0.62), inset 22px 16px 54px rgba(120,180,255,0.12);
}
/* atmosfera (brilho na borda) */
.planet-atmo {
  position: absolute; inset: -3%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 60%, rgba(95,150,255,0.30) 66%, rgba(0,10,255,0.15) 70%, transparent 76%);
  filter: blur(3px);
}
@keyframes earthSpin { to { transform: translateX(-50%); } }

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 112px 24px 250px;
  max-width: 900px;
}
.hero .eyebrow { color: #8f9bff; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 24px;
  color: #ffffff;
}
.hero .accent { color: #6f7bff; }
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  max-width: 780px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost {
  background: rgba(10, 14, 32, 0.28);
  color: #fff;
  border-color: rgba(255,255,255,0.22);
  /* borra o planeta atrás pra deixar o texto nítido */
  -webkit-backdrop-filter: blur(12px) saturate(120%);
          backdrop-filter: blur(12px) saturate(120%);
}
.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.hero-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}

/* ===================== STRIP ===================== */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.strip-inner {
  padding: 40px 24px;
  text-align: center;
}
.strip-inner p {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 820px;
  margin: 0 auto;
  color: var(--muted);
}
.strip-inner strong { color: var(--text); font-weight: 600; }

/* ===================== SECTIONS ===================== */
.section { padding: 92px 0; }
/* compensa o cabeçalho fixo ao pular via âncora */
section[id], main [id] { scroll-margin-top: 96px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* seção clara — a única branca dentro do tema escuro.
   Redefine as variáveis de tema; os componentes internos se adaptam sozinhos. */
.section-light {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --border: #e6e8ec;
  --border-2: #d6dae0;
  --text: #0a0a0a;
  --muted: #52525b;
  --muted-2: #71717a;
  --accent-text: #000aff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.14);
  background: #ffffff;
  color: var(--text);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.section-lead { color: var(--muted); font-size: 1.08rem; }

/* ===================== CARDS / SERVIÇOS ===================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.card-ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(0,10,255,0.08);
  border: 1px solid rgba(0,10,255,0.22);
  margin-bottom: 20px;
}
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* variante A: caixinha com degradê azul claro → escuro, ícone branco em destaque */
.card-ico--grad {
  background: linear-gradient(155deg, #6f7bff 0%, #000aff 100%);
  border: 0;
  box-shadow: none;
}
.card-ico--grad svg { stroke: #fff; }

/* variante B: caixinha azul escuro, só a caixinha (sem borda) */
.card-ico--dark {
  background: #0a1140;
  border: 0;
  box-shadow: none;
}
.card-ico--dark svg { stroke: var(--accent-text); }
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card-cta {
  background: linear-gradient(160deg, rgba(0,10,255,0.08), var(--bg) 62%);
  border-color: rgba(0,10,255,0.28);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.card-cta h3 { font-size: 1.3rem; }
.card-cta p { flex: 1; }
.card-cta .btn { margin-top: 4px; }

/* ===================== MARQUEE "O QUE A GENTE FAZ" ===================== */
/* 2 linhas em sentidos opostos, com esmaecer nas laterais (foco no centro). */
.marquee {
  --mq-dur: 24s;      /* linha de cima (←→ rápida, mas legível) */
  --mq-dur-2: 30s;    /* linha de baixo: duração diferente = nunca sincroniza */
  display: flex;
  flex-direction: column;
  gap: 22px;
  /* card que sai esmaece; o do centro fica em foco */
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
          mask: linear-gradient(90deg, transparent 0, #000 15%, #000 85%, transparent 100%);
}
.mq-row { overflow: hidden; }
.mq-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  will-change: transform;
}
.mq-ltr { animation: mqLtr var(--mq-dur) linear infinite; }        /* esquerda → direita */
.mq-rtl { animation: mqRtl var(--mq-dur-2) linear infinite; }      /* direita → esquerda */
.mq-rtl { animation-delay: -3s; }                                 /* desloca a fase = desalinha */
.marquee:hover .mq-track { animation-play-state: paused; }        /* pausa no hover pra ler */

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

.mq-card { width: 300px; flex: none; margin: 0; }

.svc-cta { max-width: 560px; margin: 44px auto 0; }
.svc-cta .card-cta { align-items: center; text-align: center; }
.svc-cta .card-cta p { flex: none; }

/* ===================== COMO FUNCIONA (grid) ===================== */
.hiw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}

/* ---------- File tree animado (closr.exe) ---------- */
.filetree { display: flex; justify-content: center; }
.ft-window {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ft-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 15px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.ft-dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd4dc; }
.ft-name {
  margin-left: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.01em;
}
.ft-body { position: relative; padding: 14px 12px; min-height: 258px; }

.ft-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
}
.ft-row svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ft-chevron { width: 13px; height: 13px; color: var(--muted-2); flex: none; }
.ft-ficon  { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ft-folder { font-weight: 500; }
.ft-file   { color: var(--muted); }

/* pasta destacada (a que anima) */
.ft-anim { position: relative; }
.ft-anim .ft-chevron { color: var(--accent); transform-origin: 6px 12px; animation: ftChev 12s var(--ease) infinite; }
.ft-anim .ft-ficon   { color: var(--accent); }
.ft-anim > span      { color: var(--accent); font-weight: 600; }
.ft-anim { animation: ftHighlight 12s var(--ease) infinite; }

/* filhos da pasta (indentados) */
.ft-children {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-left: 22px;
  animation: ftOpen 12s var(--ease) infinite;
}
.ft-children .ft-row { font-size: 0.88rem; }

/* cursor do mouse */
.ft-cursor {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 22px;
  z-index: 6;
  animation: ftCursor 12s var(--ease) infinite;
}
.ft-cursor svg {
  width: 100%; height: 100%;
  fill: #0a0a0a; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

@keyframes ftCursor {
  0%   { transform: translate(220px, 250px) scale(1); }
  13%  { transform: translate(28px, 66px) scale(1); }
  16%  { transform: translate(28px, 66px) scale(0.8); }
  20%  { transform: translate(28px, 66px) scale(1); }
  40%  { transform: translate(155px, 150px) scale(1); }
  60%  { transform: translate(28px, 66px) scale(1); }
  63%  { transform: translate(28px, 66px) scale(0.8); }
  67%  { transform: translate(28px, 66px) scale(1); }
  100% { transform: translate(220px, 250px) scale(1); }
}
@keyframes ftOpen {
  0%, 20%   { max-height: 0; opacity: 0; }
  27%       { max-height: 140px; opacity: 1; }
  60%       { max-height: 140px; opacity: 1; }
  67%, 100% { max-height: 0; opacity: 0; }
}
@keyframes ftChev {
  0%, 20%   { transform: rotate(0deg); }
  27%, 60%  { transform: rotate(90deg); }
  67%, 100% { transform: rotate(0deg); }
}
@keyframes ftHighlight {
  0%, 15%   { background: transparent; }
  20%, 60%  { background: rgba(0, 10, 255, 0.07); }
  67%, 100% { background: transparent; }
}

/* ---------- Acordeão de etapas ---------- */
.acc-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.acc-item:last-child { margin-bottom: 0; }
.acc-item.is-open { border-color: rgba(0, 10, 255, 0.35); box-shadow: var(--shadow-md); }
.acc-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  background: none; border: 0;
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  min-height: 44px;
  color: var(--text);
}
.acc-num {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1rem;
  color: var(--accent-text);
  min-width: 22px;
}
.acc-title { flex: 1; font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; }
.acc-chevron {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease), stroke .2s var(--ease);
}
.acc-item.is-open .acc-chevron { transform: rotate(180deg); stroke: var(--accent-text); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel p {
  padding: 0 20px 20px 56px;
  color: var(--muted);
  font-size: 0.97rem;
}

/* ===================== A JORNADA (stepper vertical) ===================== */
.journey {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- Stepper (coluna esquerda / tablist) ---------- */
.stepper { display: flex; flex-direction: column; }
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;                 /* gap entre dots = 28px (2×14) */
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--muted);
  font-family: var(--font-head);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.step-dot {
  position: relative;
  z-index: 1;
  flex: none;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  transition: background .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
/* conector vertical até o próximo dot */
.step:not(:last-child) .step-dot::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 28px;                    /* = padding vertical somado entre dois steps */
  transform: translateX(-50%);
  background: var(--border-2);
  transition: background .3s var(--ease);
}
.step-num {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.step-check {
  position: absolute;
  width: 20px; height: 20px;
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.step-label {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  transition: color .2s var(--ease);
}

/* estado: concluído (etapas antes da ativa) — check no azul da marca */
.step.is-done .step-dot { background: var(--accent); border-color: var(--accent); }
.step.is-done .step-num { opacity: 0; }
.step.is-done .step-check { opacity: 1; transform: scale(1); }
.step.is-done .step-label { color: var(--text); }
.step.is-done:not(:last-child) .step-dot::after { background: var(--accent); }

/* estado: ativo */
.step.is-active .step-dot {
  border-color: var(--accent-text);
  box-shadow: 0 0 0 4px rgba(0, 10, 255, 0.18);
}
.step.is-active .step-num { color: var(--accent-text); }
.step.is-active .step-label { color: var(--text); }

/* hover / foco */
.step:hover .step-label { color: var(--text); }
.step:hover .step-dot { border-color: var(--accent-text); }

/* ---------- Painéis (coluna direita / tabpanels) ---------- */
.journey-panels { position: relative; padding-top: 4px; }
.jp[hidden] { display: none; }
.jp.is-active { animation: jpIn .3s var(--ease); }
@keyframes jpIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.jp:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: 6px; }
.jp-index {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent-text);
}
.jp h3 { font-size: clamp(1.4rem, 3vw, 1.95rem); margin: 12px 0 14px; }
.jp p { color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.jp-tags {
  list-style: none;
  margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.jp-tags li {
  font-family: var(--font-head);
  font-size: 0.85rem; font-weight: 500;
  color: var(--accent-text);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(0, 10, 255, 0.08);
  border: 1px solid rgba(0, 10, 255, 0.22);
}

/* ===================== DIFERENCIAL ===================== */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.diff-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin-bottom: 20px; }
.diff-copy .section-lead { margin-bottom: 28px; }
.diff-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.diff-list li {
  --mx: 50%; --my: 50%;
  position: relative;
  isolation: isolate;
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
/* brilho radial que segue o cursor */
.diff-list li::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx) var(--my), rgba(0, 10, 255, 0.045), transparent 58%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
/* borda que acende perto do cursor */
.diff-list li::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(170px circle at var(--mx) var(--my), rgba(0, 10, 255, 0.95), rgba(0, 10, 255, 0.25) 45%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.diff-list li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.diff-list li:hover::before,
.diff-list li:hover::after { opacity: 1; }
.diff-list .ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--accent-text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  margin-top: 2px;
}
.diff-list strong { display: block; font-family: var(--font-head); font-weight: 600; margin-bottom: 2px; }
.diff-list span { color: var(--muted); font-size: 0.94rem; }

/* ===================== CTA FINAL ===================== */
.cta-final { text-align: center; }
.cta-inner {
  max-width: 980px;
  background: #ffffff;
  border: 0;
  border-radius: 24px;
  padding: 68px 56px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; color: #0a0a0a; }
.cta-inner p { color: #52525b; font-size: 1.08rem; max-width: 560px; margin: 0 auto 32px; }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 56px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 320px; font-size: 0.95rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 40px; align-content: start; }
.footer-links a { color: var(--muted); font-size: 0.95rem; transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--accent-text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  color: var(--muted-2);
  font-size: 0.85rem;
  text-align: center;
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 120;
  box-shadow: var(--shadow-blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s var(--ease);
}
.whatsapp-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-float.is-visible:hover { transform: scale(1.08); background: var(--accent-2); }

/* ===================== REVEAL (scroll) ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===================== RESPONSIVO ===================== */
/* tablet */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hiw-grid { grid-template-columns: 1fr; gap: 40px; }
  .filetree { order: 2; }               /* etapas primeiro, file tree embaixo */
  .diff-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head { margin-bottom: 44px; }
}

/* celular */
@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-sm span { display: none; }
  .header-actions .btn-sm { padding: 10px 12px; }
  /* logo à esquerda, WhatsApp + menu à direita */
  .header-inner { grid-template-columns: 1fr auto; padding: 0 10px 0 18px; height: 56px; gap: 12px; }
  .brand-logo { height: 24px; }

  .section { padding: 62px 0; }

  /* hero: respiro pro header fixo, sem exagero */
  .hero-inner { padding: 122px 20px 150px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-sub { margin-bottom: 26px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; }        /* botões empilhados, alvo grande */
  .planet { width: min(640px, 168vw); bottom: -52%; }
  /* fade curto no mobile: revela mais da parte de baixo do planeta no vão,
     mas ainda chega a 100% opaco antes do corte (sem reabrir a emenda) */
  .hero::after { height: 140px; }

  /* descola o card do CTA das laterais — width:auto pra caber DENTRO da margem
     (com width:100% herdado do .container, a margem estouraria a tela) */
  .cta-inner { width: auto; margin: 0 20px; padding: 44px 24px; }
  .footer-inner { flex-direction: column; gap: 28px; }

  /* marquee: cards um pouco menores e fade mais estreito no celular */
  .mq-card { width: 260px; }
  .marquee {
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
            mask: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  }

  /* jornada: stepper vira linha horizontal de dots; painel embaixo */
  .journey { grid-template-columns: 1fr; gap: 28px; }
  .stepper { flex-direction: row; justify-content: center; gap: 12px; }
  .step { padding: 0; }
  .step-label { display: none; }                         /* nome fica no aria-label + no painel */
  .step-dot { width: 44px; height: 44px; }               /* alvo de toque ≥44px */
  .step:not(:last-child) .step-dot::after {              /* conector horizontal */
    top: 50%; left: 100%;
    width: 12px; height: 2px;
    transform: translateY(-50%);
  }
}

/* celular estreito */
@media (max-width: 420px) {
  .footer-links { grid-template-columns: 1fr; }
  .hero-inner { padding: 100px 18px 120px; }
  .btn-lg { padding: 15px 24px; font-size: 1rem; }
  .cta-inner { padding: 38px 20px; }
  .ft-window { max-width: 100%; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover, .whatsapp-float:hover { transform: none; }
  /* file tree: mostra estado aberto, sem cursor animado */
  .ft-cursor { display: none; }
  .ft-children { max-height: 140px; opacity: 1; }
  .ft-anim .ft-chevron { transform: rotate(90deg); }
  .ft-anim { background: rgba(0, 10, 255, 0.07); }
  /* marquee: sem movimento automático — vira faixa rolável manualmente */
  .mq-track { animation: none !important; transform: none !important; }
  .mq-row { overflow-x: auto; }
}
