/* ============================================================
   Landing page — Diogo Porfirio · Gestor de IA & Projetos
   Identidade: Glacial System (Royal #235DFF · Deep Black #02030A)
   Tipografia: Inter (900 títulos) + Fraunces itálico (acentos)
   ✏️ Tokens oficiais do brand guide — não alterar sem atualizar o guide.
   ============================================================ */

:root {
  /* — Glacial System — */
  --royal:      #235DFF;
  --royal-mid:  #4F82FF;
  --royal-glow: rgba(35, 93, 255, 0.18);
  --royal-edge: rgba(35, 93, 255, 0.30);

  --bg:      #02030A;   /* Deep Black */
  --bg2:     #080C18;   /* Abyss */
  --bg3:     #0D1020;   /* Navy Card */
  --text:    #FFFFFF;
  --text2:   rgba(255, 255, 255, 0.45);
  --text-strong: rgba(255, 255, 255, 0.85);
  --border:  rgba(255, 255, 255, 0.07);

  --nav-bg:       rgba(2, 3, 10, 0.8);
  --nav-bg-solid: rgba(2, 3, 10, 0.97);
  --input-bg:     rgba(2, 3, 10, 0.6);
  --placeholder:  rgba(255, 255, 255, 0.25);
  --shadow-lg:        0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-lg-hover:  0 28px 72px rgba(0, 0, 0, 0.6), 0 0 32px rgba(35, 93, 255, 0.08);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 24px rgba(35, 93, 255, 0.08);

  --radius: 14px;
  --font-body: "Inter", sans-serif;
  --font-serif: "Fraunces", serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;
}

/* — Modo Light (tokens oficiais do guide: White/Mist/Tint) — */
[data-theme="light"] {
  --bg:      #FFFFFF;   /* Pure White */
  --bg2:     #F4F7FF;   /* Mist */
  --bg3:     #EEF2FF;   /* Tint */
  --text:    #02030A;
  --text2:   rgba(2, 3, 10, 0.5);
  --text-strong: rgba(2, 3, 10, 0.85);
  --border:  rgba(2, 3, 10, 0.08);

  --nav-bg:       rgba(255, 255, 255, 0.85);
  --nav-bg-solid: rgba(255, 255, 255, 0.98);
  --input-bg:     #FFFFFF;
  --placeholder:  rgba(2, 3, 10, 0.3);
  --shadow-lg:        0 20px 60px rgba(13, 16, 32, 0.10);
  --shadow-lg-hover:  0 28px 72px rgba(13, 16, 32, 0.14), 0 0 32px rgba(35, 93, 255, 0.10);
  --shadow-card-hover: 0 16px 48px rgba(13, 16, 32, 0.10), 0 0 24px rgba(35, 93, 255, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* scrollbar da marca */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--royal-edge); border-radius: 2px; }

.mono { font-family: var(--font-mono); }
.accent { color: var(--royal); }
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--royal-mid);
}
.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- fundo decorativo (grid + glow do guide) ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(35, 93, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 93, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none;
  top: -120px; right: -120px; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(35, 93, 255, 0.14) 0%, transparent 70%);
  border-radius: 50%;
}

/* ---------- corner marks (marca registrada do guide) ---------- */
.corner { position: absolute; width: 24px; height: 24px; pointer-events: none; }
.corner-tl { top: 88px;  left: 20px;  border-top: 1.5px solid var(--royal-edge); border-left: 1.5px solid var(--royal-edge); }
.corner-tr { top: 88px;  right: 20px; border-top: 1.5px solid var(--royal-edge); border-right: 1.5px solid var(--royal-edge); }
.corner-bl { bottom: 24px; left: 20px;  border-bottom: 1.5px solid var(--royal-edge); border-left: 1.5px solid var(--royal-edge); }
.corner-br { bottom: 24px; right: 20px; border-bottom: 1.5px solid var(--royal-edge); border-right: 1.5px solid var(--royal-edge); }

/* ---------- navegação ---------- */
/* Menu com o tema INVERTIDO da página (redefine os tokens só dentro da .nav):
   página dark → menu light · página light → menu dark.
   O botão royal e o toggle não usam estes tokens, então seguem iguais. */
.nav {
  --nav-bg:       #FFFFFF;          /* sólido da marca (Pure White), sem lavar a cor */
  --nav-bg-solid: #FFFFFF;
  --nav-line:     rgba(35, 93, 255, 0.55);   /* fio Royal na base */
  --text:         #02030A;
  --text2:        rgba(2, 3, 10, 0.5);
  --text-strong:  rgba(2, 3, 10, 0.85);
  --border:       rgba(2, 3, 10, 0.08);
}
[data-theme="light"] .nav {
  --nav-bg:       #080C18;          /* sólido da marca (Abyss), sem transparência */
  --nav-bg-solid: #080C18;
  --nav-line:     rgba(35, 93, 255, 0.60);
  --text:         #FFFFFF;
  --text2:        rgba(255, 255, 255, 0.45);
  --text-strong:  rgba(255, 255, 255, 0.85);
  --border:       rgba(255, 255, 255, 0.07);
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { text-decoration: none; line-height: 1.2; display: flex; align-items: center; gap: 10px; }
.logo-mark { height: 34px; width: auto; color: var(--text); flex-shrink: 0; }
.logo-mark .mark-p { fill: var(--royal); }
.logo-text { border-left: 1.5px solid rgba(35, 93, 255, 0.5); padding-left: 10px; }
.logo-name {
  font-size: 20px; font-weight: 800; letter-spacing: 0; color: var(--text);
}
.logo-role {
  font-size: 7px; font-weight: 700; letter-spacing: 0.29em;
  text-transform: uppercase; color: var(--royal); margin-top: 2px; white-space: nowrap;
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-links { display: flex; align-items: center; gap: 28px; margin-right: 8px; }
.nav-links a {
  color: var(--text2); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.theme-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--royal-glow); border: 1px solid var(--royal-edge);
  cursor: pointer; font-size: 15px; line-height: 1;
  display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.theme-btn:hover { background: rgba(35, 93, 255, 0.25); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; border-radius: 2px; transition: transform 0.25s, opacity 0.25s;
}

/* ---------- botões (padrão do guide: caps + tracking) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: all 0.18s;
}
.btn-primary { background: var(--royal); color: #fff; }
.btn-primary:hover {
  background: #1a4fd6;
  box-shadow: 0 4px 20px rgba(35, 93, 255, 0.4);
  transform: translateY(-2px);
}
.btn-ghost {
  background: var(--royal-glow); color: var(--royal);
  border: 1px solid var(--royal-edge);
}
.btn-ghost:hover { background: rgba(35, 93, 255, 0.25); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; }
.btn-full { width: 100%; border: 0; }

/* ---------- kickers e pills ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--royal);
  margin-bottom: 16px;
}
.kicker-num {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 12px; letter-spacing: 0.2em;
}
.kicker-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--royal); background: var(--royal-glow);
  border: 1px solid var(--royal-edge);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 28px; width: fit-content;
}
.kicker-dot {
  width: 6px; height: 6px; background: var(--royal); border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  align-items: center; gap: 56px;
  padding-top: 130px; padding-bottom: 60px;
}
/* foto inteira ao lado do nome */
.hero-title-row {
  display: flex; align-items: center; gap: 26px;
  margin-bottom: 14px;
}
.hero-foto {
  width: 152px; height: auto;
  border-radius: 22px;
  display: block; flex-shrink: 0;
  border: 2px solid var(--royal-edge);
  box-shadow: 0 16px 48px rgba(35, 93, 255, 0.25);
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.0; letter-spacing: -0.04em;
}
.hero-serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--royal-mid);
  font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.01em;
  line-height: 1.2;
}
.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.1rem); font-weight: 400;
  color: var(--text2); max-width: 480px; line-height: 1.6;
  margin-bottom: 36px; margin-top: 18px;
}
.hero-tagline strong { color: var(--text-strong); font-weight: 600; }
.hero-tagline .accent { color: var(--royal-mid); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
/* faixa de autoridade (credenciais em chips) */
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; max-width: 560px; }
.hero-stats li {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.hero-stats li:hover { border-color: var(--royal-edge); }
.hero-stats .label {
  font-size: 8px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--royal); margin-bottom: 3px;
}
.hero-stats .value { font-size: 12.5px; font-weight: 600; color: var(--text-strong); }

/* terminal animado — sempre dark, em qualquer tema (identidade tech) */
.terminal {
  background: #080C18;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(2, 3, 10, 0.35), 0 0 40px rgba(35, 93, 255, 0.06);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: #0D1020;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f56; } .dot.yellow { background: #ffbd2e; } .dot.green { background: #27c93f; }
.terminal-title { margin-left: 10px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.terminal-body {
  padding: 20px; min-height: 300px;
  font-size: 0.8rem; line-height: 1.9; color: rgba(255, 255, 255, 0.65);
  white-space: pre-wrap; word-break: break-word;
}
.terminal-body .ok { color: var(--royal-mid); }
.terminal-body .cmd { color: var(--royal); font-weight: 600; }
.terminal-body .cursor {
  display: inline-block; width: 8px; height: 15px;
  background: var(--royal); vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- seções ---------- */
.section { padding: 110px 0 20px; }
h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.25;
  margin-bottom: 8px;
}
.section-line {
  width: 32px; height: 2px; background: var(--royal);
  margin-bottom: 28px; border-radius: 2px;
}

/* sobre */
.sobre-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: start;
}
.sobre-grid p { color: var(--text2); margin-bottom: 16px; font-size: 0.95rem; }
.sobre-grid strong { color: var(--text); font-weight: 600; }
.sobre-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.15rem; color: var(--royal-mid); line-height: 1.5;
  border-left: 3px solid var(--royal);
  padding-left: 18px; margin-top: 8px;
}

/* formações */
.formacoes-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--royal) !important; margin-top: 26px; margin-bottom: 10px;
}
.formacoes {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.formacoes li {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-strong);
  display: flex; align-items: center; gap: 8px;
}
.formacoes li::before {
  content: "✓";
  color: var(--royal); font-weight: 800; flex-shrink: 0;
}

/* números de referência do framework */
.sobre-stats { display: flex; gap: 14px; margin-top: 24px; }
.sobre-stats div {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 0.8rem; color: var(--text2); line-height: 1.5;
}
.sobre-stats strong {
  display: block;
  font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--royal); margin-bottom: 4px;
}

/* ---------- serviços ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 20px;
}
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--royal-edge);
  box-shadow: var(--shadow-card-hover);
}
.card-icon {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--royal); font-size: 0.95rem;
  background: var(--royal-glow); border: 1px solid var(--royal-edge);
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.card p { color: var(--text2); font-size: 0.88rem; line-height: 1.65; }

/* card de destaque: Consultoria em IA para Negócios */
.card-featured {
  border-color: var(--royal-edge);
  background: linear-gradient(140deg, var(--bg3) 0%, var(--bg2) 100%);
  padding: 34px 32px;
  margin: 20px 0 28px;
  position: relative; overflow: hidden;
}
.card-featured::before {
  content: ""; position: absolute; top: -100px; right: -100px;
  width: 280px; height: 280px; pointer-events: none;
  background: radial-gradient(circle, rgba(35, 93, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.card-featured:hover { transform: none; }
.featured-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px;
  position: relative;
}
.card-featured h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.card-featured p { font-size: 0.92rem; }
.featured-offer {
  background: rgba(35, 93, 255, 0.07);
  border: 1px solid var(--royal-edge);
  border-radius: 12px;
  padding: 22px;
}
.featured-offer-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--royal) !important; margin-bottom: 8px;
}
.featured-offer p { margin-bottom: 14px; }
.featured-offer strong { color: var(--text); }
.cards-intro { color: var(--text2); font-size: 0.88rem; margin-bottom: 4px; }

/* ---------- método (Do Problema à Escala) ---------- */
.metodo-sub { color: var(--text2); font-size: 0.95rem; max-width: 62ch; margin-bottom: 32px; }
.fases-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.fase {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: 3px solid var(--royal);
  border-radius: 12px;
  padding: 22px 18px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.fase:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--royal-edge);
  border-top-color: var(--royal);
}
.fase-num {
  font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em;
  color: var(--royal); margin-bottom: 10px;
}
.fase h3 { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.fase p { color: var(--text2); font-size: 0.8rem; line-height: 1.55; }
.metodo-quote {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.05rem; color: var(--royal-mid); line-height: 1.6;
  border-left: 3px solid var(--royal);
  padding-left: 18px; margin-top: 32px; max-width: 60ch;
}

/* ---------- projetos ---------- */
/* ---------- letreiro de projetos (faixa horizontal deslizante) ---------- */
.projects-carousel { position: relative; margin-top: 32px; }
.projects-carousel:focus { outline: none; }
.projects-carousel:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 6px;
  border-radius: var(--radius);
}
.projects-viewport {
  position: relative;                 /* âncora das setas de vidro */
  overflow: hidden; border-radius: var(--radius);
}
/* faixa deslizada por transform (loop infinito, sempre p/ a direita) */
.projects {
  display: flex;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.project {
  flex: 0 0 100%;                      /* um projeto por vez, largura cheia */
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center;
  padding: 16px 68px 40px;            /* laterais reservam a calha das setas de vidro */
}

/* setas de vidro nas laterais: alto e fino ("retrovisor"), glassmorphism */
.proj-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 96px; border-radius: 22px;
  display: grid; place-items: center;
  background: rgba(10, 12, 22, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 34px rgba(2, 3, 10, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 3px rgba(2, 3, 10, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 4;
}
.proj-nav:hover {
  background: rgba(35, 93, 255, 0.42);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 40px rgba(35, 93, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.05);
}
.proj-nav:active { transform: translateY(-50%) scale(0.97); }
.proj-nav.prev { left: 16px; }
.proj-nav.next { right: 16px; }

/* barra inferior: só contador + dots (as setas agora ficam nas laterais) */
.proj-controls {
  display: flex; align-items: center; justify-content: center; margin-top: 14px;
}
.proj-progress {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.proj-counter {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text2); font-variant-numeric: tabular-nums;
}
.proj-counter b { color: var(--royal); font-weight: 800; }

/* dots: indicam o projeto atual */
.proj-dots {
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.proj-dot {
  width: 9px; height: 9px; border-radius: 99px;
  background: var(--border);
  border: 0; padding: 0; cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.proj-dot.active { background: var(--royal); width: 26px; }

/* ---------- lightbox (tela ampliada) ---------- */
/* Modal flutuante para ampliar as telas: um card centrado que NÃO ocupa a tela
   toda; a página fica visível (só levemente escurecida) por trás. */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5vw;
  background: rgba(2, 3, 10, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

/* o "card" flutuante em si — dimensionado ao conteúdo, com folga nas bordas */
.lb-modal {
  position: relative;
  max-width: min(1040px, 88vw);
  max-height: 86vh;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
}
.lightbox.open .lb-modal {
  animation: lb-in 0.34s cubic-bezier(0.2, 0.8, 0.25, 1) both,
             lb-float 6s ease-in-out 0.34s infinite;
}
@keyframes lb-in {
  from { opacity: 0; transform: translateY(16px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes lb-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.lb-img {
  display: block;
  max-width: 100%; max-height: calc(86vh - 20px);
  width: auto; height: auto;
  object-fit: contain; border-radius: 10px;
}
.lb-close, .lb-nav {
  position: absolute; z-index: 1;
  border-radius: 50%; cursor: pointer;
  background: rgba(20, 24, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; line-height: 1;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
/* controles ancorados às bordas do card (flutuando um pouco para fora) */
.lb-close { top: -16px; right: -16px; width: 42px; height: 42px; font-size: 26px; }
.lb-close:hover { background: var(--royal); border-color: var(--royal); transform: scale(1.08); }
.lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 26px; }
.lb-nav:hover { background: var(--royal); border-color: var(--royal); transform: translateY(-50%) scale(1.08); }
.lb-prev { left: -20px; }
.lb-next { right: -20px; }
.lb-counter {
  position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; font-variant-numeric: tabular-nums;
  background: rgba(20, 24, 42, 0.82); padding: 7px 15px; border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
body.lb-lock { overflow: hidden; }
.lb-nav[hidden], .lb-counter[hidden] { display: none; }

/* telas estreitas: traz as setas para dentro do card p/ não sair da viewport */
@media (max-width: 640px) {
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: -14px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox.open .lb-modal { animation: none; opacity: 1; transform: none; }
}

.project-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg2);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.project:hover .project-shot {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--royal-edge);
  box-shadow: var(--shadow-lg-hover);
}
.project-shot svg, .project-shot img { display: block; width: 100%; height: auto; }

/* carrossel de telas (scroll-snap, com swipe nativo no touch) */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;         /* esconde a barra (Firefox) */
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(2, 3, 10, 0.55);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.65;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
}
.car-btn:hover {
  opacity: 1; background: var(--royal);
  transform: translateY(-50%) scale(1.06);
}
.car-btn.prev { left: 12px; }
.car-btn.next { right: 12px; }
/* botão de ampliar (abre a tela no lightbox) */
.car-max {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(2, 3, 10, 0.55);
  color: #fff; border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0.62;
  transition: opacity 0.2s, background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 3;
}
.car-max:hover {
  opacity: 1; background: var(--royal); border-color: var(--royal);
  transform: scale(1.08);
}
.car-max svg { display: block; }
.car-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; align-items: center;
  background: rgba(2, 3, 10, 0.45);
  padding: 6px 9px; border-radius: 99px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.car-dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  border: 0; padding: 0; cursor: pointer;
  transition: background 0.2s, width 0.2s;
}
.car-dot.active { background: var(--royal); width: 20px; }
.project-num {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--royal); margin-bottom: 12px;
}
.project-num .kicker-num { margin-right: 6px; }
.project-info h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.project-info p { color: var(--text2); font-size: 0.92rem; margin-bottom: 20px; }
.project-info strong { color: var(--text-strong); font-weight: 600; }

/* objetivo e conquistas do projeto */
.project-meta {
  border-left: 3px solid var(--royal-edge);
  padding-left: 16px;
  margin-bottom: 20px;
}
.meta-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--royal);
  margin-bottom: 6px;
}
.meta-obj {
  font-size: 0.88rem; color: var(--text2); line-height: 1.6;
  margin-bottom: 14px;
}
.meta-wins { list-style: none; }
.meta-wins li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.84rem; color: var(--text-strong); line-height: 1.5;
  margin-bottom: 7px;
}
.meta-wins li::before {
  content: "✓";
  color: var(--royal); font-weight: 800; flex-shrink: 0;
}

/* tags no padrão pill do guide */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tags li {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--royal);
  background: var(--royal-glow);
  border: 1px solid var(--royal-edge);
  padding: 5px 12px; border-radius: 999px;
}

/* ---------- contato ---------- */
#contato { padding-bottom: 110px; }
.contato-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--bg2);
  border: 1px solid rgba(35, 93, 255, 0.2);
  border-radius: 20px;
  padding: 56px;
  position: relative; overflow: hidden;
}
.contato-box::before {
  content: ""; position: absolute; top: -120px; left: -120px;
  width: 320px; height: 320px; pointer-events: none;
  background: radial-gradient(circle, rgba(35, 93, 255, 0.14) 0%, transparent 70%);
  border-radius: 50%;
}
.contato-copy p { color: var(--text2); font-size: 0.95rem; }
.btn-whats { margin-top: 22px; }
.contato-form { display: flex; flex-direction: column; gap: 18px; position: relative; }
.contato-form label { display: flex; flex-direction: column; gap: 7px; }
.contato-form label span {
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--royal);
}
.contato-form input, .contato-form textarea {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.contato-form input:focus, .contato-form textarea:focus {
  outline: none; border-color: var(--royal);
  box-shadow: 0 0 0 3px var(--royal-glow);
}
.contato-form ::placeholder { color: var(--placeholder); }
/* honeypot anti-spam: fora da tela para humanos, visível para robôs */
.contato-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { display: none; font-size: 14px; margin: 2px 0 0; color: #E5484D; }
.form-status.visivel { display: block; }
.form-status.ok { color: #30A46C; }

/* ---------- rodapé (assinatura do guide) ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.signature { display: flex; flex-direction: column; }
.sig-name {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--royal);
}
.sig-role {
  font-size: 9px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text2); margin-top: 2px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text2); text-decoration: none;
  font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--royal); }

/* divisor gradiente da marca */
.divider {
  height: 1px;
  background: linear-gradient(90deg, var(--royal), transparent);
  opacity: 0.4;
}

/* ---------- animações de scroll (ativadas via JS) ---------- */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .project-shot { transition: none; }
  .kicker-dot { animation: none; }
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; min-height: auto; }
  .terminal { max-width: 560px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; gap: 20px; }
  .fases-grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-stats { flex-direction: column; }
  .sobre-grid { grid-template-columns: 1fr; gap: 20px; }
  .project { grid-template-columns: 1fr; gap: 24px; padding: 12px 44px 24px; }
  .proj-nav { width: 34px; height: 72px; border-radius: 17px; font-size: 21px; }
  .proj-nav.prev { left: 8px; }
  .proj-nav.next { right: 8px; }
  .contato-box { grid-template-columns: 1fr; padding: 36px 28px; }
  .corner { display: none; }
}

@media (max-width: 640px) {
  .hero-title-row { gap: 16px; }
  .hero-foto { width: 106px; border-radius: 16px; }
  .cards-grid { grid-template-columns: 1fr; }
  .fases-grid { grid-template-columns: 1fr; }
  .formacoes { grid-template-columns: 1fr; }
  .card-featured { padding: 26px 22px; }
  .section { padding: 80px 0 10px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }

  /* menu mobile */
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    background: var(--nav-bg-solid);
    border-bottom: 1px solid var(--border);
    padding: 20px 6%; gap: 18px;
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============================================================
   Dados legais do rodapé + página de política de privacidade
   (exigidos na verificação de empresa da Meta e no app do
   WhatsApp Cloud API; texto real no HTML, nunca imagem)
   ============================================================ */

/* ---------- bloco legal do rodapé ---------- */
.legal-box {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 18px;
}
.legal-id {
  font-style: normal;                 /* <address> vem itálico por padrão */
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text2);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.legal-id .legal-corp {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-strong);
}
.legal-id a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.legal-id a:hover { color: var(--royal); border-color: var(--royal-edge); }

/* ---------- página de política (leitura confortável) ---------- */
.legal-page { padding: 128px 0 96px; }
.legal-wrap { width: min(720px, 92%); margin-inline: auto; }
.legal-title {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 10px;
}
.legal-meta {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text2);
  margin-bottom: 28px;
}
.legal-lead {
  font-size: 1.02rem; color: var(--text-strong);
  padding-left: 16px; border-left: 2px solid var(--royal);
  margin-bottom: 44px;
}
.legal-wrap h2 {
  font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em;
  margin: 44px 0 12px;
}
.legal-wrap h2 .kicker-num { margin-right: 8px; }
.legal-wrap h3 {
  font-size: 0.95rem; font-weight: 700; color: var(--text-strong);
  margin: 24px 0 8px;
}
.legal-wrap p,
.legal-wrap li { color: var(--text-strong); font-size: 0.95rem; line-height: 1.75; }
.legal-wrap p { margin-bottom: 14px; }
.legal-wrap ul { margin: 0 0 16px 20px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: var(--royal); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }
.legal-wrap strong { color: var(--text); font-weight: 700; }
/* tabela de retenção: rola sozinha no mobile, sem quebrar o layout */
.legal-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.legal-table {
  width: 100%; border-collapse: collapse; min-width: 420px;
  font-size: 0.9rem;
}
.legal-table th, .legal-table td {
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-strong);
}
.legal-table th {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--royal);
}
/* cartão do controlador */
.legal-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--royal);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 20px 0 8px;
}
.legal-card p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .legal-page { padding: 104px 0 72px; }
  .legal-box { margin-top: 20px; }
  .legal-id { font-size: 11px; }
}
