/* =========================================================================
   1. VARIÁVEIS CSS (:root) — Identidade Visual LAVOR.DEV.BR
   ========================================================================= */
:root {
  /* Paleta Principal */
  --bg-deep: #050B1A;
  --bg-mid: #081024;
  --bg-surface: #0A1228;
  --bg-card: rgba(10, 18, 40, 0.76);
  --bg-card-solid: #0C1733;
  --bg-glass: rgba(5, 11, 26, 0.72);

  /* Cores de Destaque */
  --electric-blue: #1E6BFF;
  --neon-cyan: #00D4FF;
  --cyan-soft: #67E8F9;
  --white: #FFFFFF;
  --text-primary: #F8FAFC;
  --text-secondary: #B8C7E0;
  --text-muted: #7B8FB2;

  /* Bordas & Brilhos (Glow) */
  --border-subtle: rgba(0, 212, 255, 0.16);
  --border-strong: rgba(0, 212, 255, 0.48);
  --glow-cyan: 0 0 22px rgba(0, 212, 255, 0.42);
  --glow-blue: 0 0 32px rgba(30, 107, 255, 0.45);
  --glow-card: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 28px rgba(30, 107, 255, 0.14);

  /* Gradientes */
  --grad-brand: linear-gradient(135deg, #1E6BFF 0%, #00D4FF 100%);
  --grad-brand-hover: linear-gradient(135deg, #2D78FF 0%, #3BE3FF 100%);
  --grad-text: linear-gradient(95deg, #FFFFFF 15%, #7BE8FF 58%, #1E6BFF 100%);

  /* Tipografia */
  --font-display: 'Exo 2', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Layout & Motion */
  --container-max: 1200px;
  --header-height: 76px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-fast: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-smooth: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================================
   2. RESET, BASE E ACESSIBILIDADE
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body {
  background: radial-gradient(circle at 18% 12%, rgba(30, 107, 255, 0.12), transparent 45%),
              radial-gradient(circle at 82% 28%, rgba(0, 212, 255, 0.09), transparent 42%),
              linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-surface) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
}

/* Foco visível acessível para navegação via teclado */
:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link para leitores de tela e teclado */
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--electric-blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--glow-cyan);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: rgba(0, 212, 255, 0.28);
  color: var(--white);
}

/* Barra de rolagem personalizada */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--electric-blue), var(--neon-cyan));
  border-radius: 99px;
}

/* =========================================================================
   3. FUNDO 3D (THREE.JS) + FALLBACK ELEGANTE SEM WEBGL
   ========================================================================= */
#webgl-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Camada sutil sobre o 3D: protege leitura à esquerda e deixa o 3D brilhar à direita */
.canvas-readability-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 65% at 18% 45%, rgba(5, 11, 26, 0.62) 0%, rgba(5, 11, 26, 0.14) 68%, transparent 100%),
    linear-gradient(180deg, rgba(5, 11, 26, 0.22) 0%, rgba(5, 11, 26, 0.34) 55%, rgba(5, 11, 26, 0.62) 100%);
}

/* Fallback visual quando WebGL não está disponível ou modo leve está ativo */
.webgl-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background:
    radial-gradient(ellipse 60% 50% at 75% 38%, rgba(0, 212, 255, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 45% at 25% 75%, rgba(30, 107, 255, 0.16), transparent 65%),
    linear-gradient(180deg, #050B1A 0%, #0A1228 100%);
}
.webgl-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, black 25%, transparent 80%);
}
body.lite-mode .webgl-fallback {
  opacity: 1;
}
body.lite-mode #webgl-canvas {
  display: none;
}

/* =========================================================================
   4. LOADER DE ENTRADA ANIMADO
   ========================================================================= */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #0C1A3A 0%, #050B1A 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s ease;
}

#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-emblem {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
}

.loader-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--neon-cyan);
  border-right-color: var(--electric-blue);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
  animation: spinRing 1.3s linear infinite;
}

.loader-ring-outer {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.32);
  animation: spinRingReverse 4s linear infinite;
}

.loader-logo {
  width: 118px;
  height: 118px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 36px rgba(30, 107, 255, 0.55);
  background: #050B1A;
}

.loader-brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--white);
  text-transform: uppercase;
}
.loader-brand span {
  color: var(--neon-cyan);
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.65);
}

.loader-bar-wrap {
  width: min(290px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-bar-track {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.22);
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--electric-blue), var(--neon-cyan));
  box-shadow: 0 0 16px var(--neon-cyan);
  transition: width 0.12s linear;
}

.loader-status {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-soft);
  letter-spacing: 0.06em;
}

@keyframes spinRing {
  to { transform: rotate(360deg); }
}
@keyframes spinRingReverse {
  to { transform: rotate(-360deg); }
}

/* =========================================================================
   5. CURSOR CUSTOMIZADO COM GLOW
   ========================================================================= */
.cursor-dot,
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease, width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
}

.cursor-glow {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 212, 255, 0.6);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.18), transparent 70%);
  box-shadow: 0 0 22px rgba(30, 107, 255, 0.35);
}

body.cursor-active .cursor-dot,
body.cursor-active .cursor-glow {
  opacity: 1;
}

body.cursor-hover .cursor-glow {
  width: 60px;
  height: 60px;
  border-color: var(--neon-cyan);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.28), rgba(30, 107, 255, 0.08) 65%, transparent 80%);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.5);
}

body.cursor-hover .cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--white);
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-glow { display: none !important; }
}

/* =========================================================================
   6. UTILITÁRIOS DE LAYOUT, TÍTULOS E COMPONENTES REUTILIZÁVEIS
   ========================================================================= */
.site-content {
  position: relative;
  z-index: 2;
}

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

section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  margin-bottom: 52px;
  max-width: 740px;
}

.section-header.centered {
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.26);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.12);
}

.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.section-title .accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.25));
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.7;
}

/* Botões principais com glow neon */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.26) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}
.btn:hover::after {
  transform: translateX(130%);
}

.btn-primary {
  background: var(--grad-brand);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(30, 107, 255, 0.42), 0 0 18px rgba(0, 212, 255, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--grad-brand-hover);
  box-shadow: 0 12px 34px rgba(30, 107, 255, 0.58), 0 0 26px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
  background: rgba(10, 18, 40, 0.7);
  color: var(--white);
  border: 1px solid rgba(0, 212, 255, 0.45);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 16px rgba(0, 212, 255, 0.08);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--neon-cyan);
  background: rgba(30, 107, 255, 0.18);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
  border-radius: 10px;
}

/* Card base com efeito de borda neon e spotlight seguindo o mouse */
.neon-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glow-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.neon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(320px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.9), rgba(30, 107, 255, 0.35) 45%, transparent 72%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.neon-card:hover::before {
  opacity: 1;
}

.neon-card:hover {
  border-color: rgba(0, 212, 255, 0.38);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 34px rgba(0, 212, 255, 0.22);
}

/* Separador decorativo com símbolo </> */
.code-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  opacity: 0.55;
}
.code-divider::before,
.code-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.45), transparent);
}
.code-divider span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

/* =========================================================================
   7. HEADER FIXO (GLASSMORPHISM) + MENU RESPONSIVO
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(5, 11, 26, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 11, 26, 0.88);
  border-bottom-color: rgba(0, 212, 255, 0.28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-link:hover .brand-logo-wrap {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.65);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-deep);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--white);
}

.brand-name span {
  color: var(--neon-cyan);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Botão discreto para alternar modo 3D / Modo Leve */
.btn-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(10, 18, 40, 0.65);
  transition: all var(--transition-fast);
}
.btn-mode-toggle:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}
.btn-mode-toggle .dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}
body.lite-mode .btn-mode-toggle .dot-status {
  background: #64748B;
  box-shadow: none;
}

.header-cta {
  display: none;
}

/* Hambúrguer mobile */
.hamburger {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(10, 18, 40, 0.7);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color var(--transition-fast);
}
.hamburger:hover {
  border-color: var(--neon-cyan);
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease, background 0.3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--neon-cyan);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--neon-cyan);
}

/* Drawer Mobile */
.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(5, 11, 26, 0.96);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 32px 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-drawer a.mobile-nav-link {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.55rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 20px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.mobile-drawer a.mobile-nav-link:hover,
.mobile-drawer a.mobile-nav-link.active {
  color: var(--neon-cyan);
  transform: scale(1.05);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.55);
}

/* =========================================================================
   8. SEÇÃO HERO (TELA CHEIA + GLITCH + DIGITAÇÃO + CENA 3D)
   ========================================================================= */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 104px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 99px;
  background: rgba(10, 18, 40, 0.78);
  border: 1px solid rgba(0, 212, 255, 0.34);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-soft);
  margin-bottom: 22px;
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Efeito Glitch sutil e elegante no nome */
.glitch-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.55rem, 6.2vw, 4.55rem);
  line-height: 1.03;
  text-transform: uppercase;
  color: var(--white);
  letter-spacing: -0.015em;
  text-shadow: 0 0 36px rgba(30, 107, 255, 0.35);
  margin-bottom: 16px;
}

.glitch-title::before,
.glitch-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.glitch-title.is-glitching::before {
  color: var(--neon-cyan);
  opacity: 0.72;
  clip-path: polygon(0 10%, 100% 10%, 100% 38%, 0 38%);
  transform: translate(-3px, -1px);
}

.glitch-title.is-glitching::after {
  color: var(--electric-blue);
  opacity: 0.75;
  clip-path: polygon(0 62%, 100% 62%, 100% 88%, 0 88%);
  transform: translate(3px, 1px);
}

.hero-impact {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  line-height: 1.28;
  color: #E2EEFF;
  margin-bottom: 18px;
}

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

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 580px;
}

.hero-typing-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(390px, 100%);
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--white);
  background: rgba(10, 18, 40, 0.76);
  border: 1px solid rgba(30, 107, 255, 0.38);
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 30px;
  backdrop-filter: blur(8px);
}

.hero-typing-line .code-sym {
  color: var(--neon-cyan);
  font-weight: 700;
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blinkCaret 0.85s steps(1) infinite;
  vertical-align: middle;
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: rgba(10, 18, 40, 0.65);
  border: 1px solid rgba(0, 212, 255, 0.16);
  padding: 6px 12px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}
.meta-pill strong {
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* Espaço reservado à direita no desktop para o objeto 3D "L" + </> respirar sem cobrir texto */
.hero-stage-spacer {
  display: none;
  position: relative;
  min-height: 360px;
}

.hero-3d-hint {
  position: absolute;
  bottom: 8px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(184, 199, 224, 0.78);
  background: rgba(5, 11, 26, 0.68);
  border: 1px solid rgba(0, 212, 255, 0.22);
  padding: 6px 12px;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

/* Ilustração SVG de fallback no Hero quando WebGL está desligado */
.hero-lite-emblem {
  display: none;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  position: relative;
  align-items: center;
  justify-content: center;
}
body.lite-mode .hero-lite-emblem {
  display: flex;
}
.hero-lite-emblem img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 42px rgba(0, 212, 255, 0.45);
}

/* Indicador de Scroll */
.scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.scroll-indicator:hover {
  color: var(--neon-cyan);
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border-radius: 99px;
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 7px;
  border-radius: 99px;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: scrollWheel 1.6s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =========================================================================
   9. SEÇÃO SOBRE MIM (FOTO NEON + HISTÓRIA LOGÍSTICA/FISCAL + CONTADORES)
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

.about-photo-card {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(30, 107, 255, 0.25), rgba(10, 18, 40, 0.92) 55%, rgba(0, 212, 255, 0.28));
  border: 1.5px solid rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 42px rgba(30, 107, 255, 0.32), 0 24px 60px rgba(0, 0, 0, 0.65);
  transform-style: preserve-3d;
}

.about-photo-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

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

.about-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 11, 26, 0.88) 100%);
  pointer-events: none;
}

.photo-badge-bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(5, 11, 26, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.35);
  backdrop-filter: blur(12px);
  transform: translateZ(26px);
}

.photo-badge-bottom .name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.1;
}

.photo-badge-bottom .role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-cyan);
}

.photo-code-chip {
  position: absolute;
  top: -14px;
  right: -10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--grad-brand);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.65);
  transform: translateZ(34px);
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.03rem;
  margin-bottom: 18px;
  line-height: 1.78;
}

.about-text strong {
  color: var(--white);
}

.about-highlight-box {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.14), rgba(0, 212, 255, 0.08));
  border-left: 3px solid var(--neon-cyan);
  border-top: 1px solid rgba(0, 212, 255, 0.22);
  border-right: 1px solid rgba(0, 212, 255, 0.15);
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  margin: 22px 0 26px;
  color: #E2EEFF;
  font-size: 0.98rem;
}

.about-highlight-box .hl-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  color: var(--neon-cyan);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.domain-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-soft);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.26);
  padding: 6px 12px;
  border-radius: 8px;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.counter-card {
  padding: 20px 14px;
  text-align: center;
}

.counter-value {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.05;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.counter-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* =========================================================================
   10. SEÇÃO PROJETOS (FILTROS + CARDS 3D TILT + MODAL ANIMADO)
   ========================================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: rgba(10, 18, 40, 0.72);
  border: 1px solid rgba(0, 212, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--white);
  border-color: rgba(0, 212, 255, 0.55);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--grad-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.42);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

/* Card 3D Tilt com profundidade e glare dinâmico */
.project-card {
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card.is-hidden {
  display: none;
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(280px circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 4;
}

.project-card:hover .card-glare,
.service-card:hover .card-glare {
  opacity: 1;
}

.project-thumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(5, 11, 26, 0.92);
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
  transform: translateZ(18px);
}

.project-thumb {
  position: relative;
  height: 186px;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 212, 255, 0.16);
  background: linear-gradient(135deg, #07122B, #0D1E42);
  transform: translateZ(16px);
}

.project-thumb svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-thumb svg {
  transform: scale(1.045);
}

.project-cat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 7px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.38);
}

.project-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(22, 199, 132, 0.12);
  color: #86EFAC;
  border: 1px solid rgba(22, 199, 132, 0.5);
}

.project-status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16C784;
  box-shadow: 0 0 8px #16C784;
  animation: pulseGlow 1.8s ease-in-out infinite;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transform: translateZ(24px);
}

.project-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.24rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.85em;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
  margin-top: auto;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #CBE7FF;
  background: rgba(30, 107, 255, 0.16);
  border: 1px solid rgba(30, 107, 255, 0.34);
  padding: 4px 9px;
  border-radius: 6px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.project-code-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================================================
   11. SEÇÃO HABILIDADES (ESFERA 3D INTERATIVA + PAINEL DE DETALHES)
   ========================================================================= */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.sphere-stage {
  position: relative;
  width: 100%;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 50%, rgba(30, 107, 255, 0.14), rgba(10, 18, 40, 0.55) 62%, rgba(5, 11, 26, 0.78) 100%);
  border: 1px solid rgba(0, 212, 255, 0.22);
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.sphere-stage::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.18);
  pointer-events: none;
}

#sphere-lines-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sphere-cloud {
  position: relative;
  width: 100%;
  height: 100%;
}

.sphere-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  padding: 8px 15px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(10, 18, 40, 0.84);
  border: 1px solid rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 16px rgba(30, 107, 255, 0.25);
  white-space: nowrap;
  will-change: transform, opacity;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sphere-tag:hover,
.sphere-tag.is-selected {
  background: var(--grad-brand);
  border-color: var(--white);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.72);
  z-index: 999 !important;
}

.sphere-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(5, 11, 26, 0.75);
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid rgba(0, 212, 255, 0.18);
  white-space: nowrap;
  pointer-events: none;
}

.skill-inspector {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.skill-selected-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--white);
}

.skill-selected-cat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 5px 11px;
  border-radius: 99px;
}

.skill-selected-desc {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

.skill-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-meter-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-soft);
}

.skill-meter-track {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-meter-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--grad-brand);
  box-shadow: 0 0 14px var(--neon-cyan);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-quick-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--text-secondary);
  background: rgba(5, 11, 26, 0.72);
  border: 1px solid rgba(0, 212, 255, 0.18);
  transition: all 0.2s ease;
}

.skill-quick-btn:hover,
.skill-quick-btn.active {
  color: var(--white);
  border-color: var(--neon-cyan);
  background: rgba(30, 107, 255, 0.26);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.25);
}

/* =========================================================================
   12. SEÇÃO SERVIÇOS (CARDS 3D INTERATIVOS)
   ========================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  padding: 30px 26px;
  transform-style: preserve-3d;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(30, 107, 255, 0.24), rgba(0, 212, 255, 0.14));
  border: 1px solid rgba(0, 212, 255, 0.38);
  color: var(--neon-cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.2);
  transform: translateZ(26px);
}

.service-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.32rem;
  color: var(--white);
  transform: translateZ(20px);
}

.service-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
  transform: translateZ(14px);
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  transform: translateZ(16px);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: #D2E3FA;
}

.service-features li::before {
  content: '</>';
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  font-weight: 700;
}

.service-cta-btn {
  margin-top: 14px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  transform: translateZ(22px);
  transition: all var(--transition-fast);
}
.service-cta-btn:hover {
  background: var(--grad-brand);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.45);
  transform: translateZ(22px) translateX(3px);
}

/* Bloco "Como eu trabalho" (4 passos) */
.process-block {
  margin-top: 58px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 212, 255, 0.14);
}

.process-header {
  text-align: center;
  margin-bottom: 34px;
}

.process-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 6px;
}
.process-title span {
  color: var(--neon-cyan);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.process-step {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.process-num::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.45), transparent);
}

.process-step h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--white);
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.form-control.highlight-pulse {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.25), 0 0 24px rgba(0, 212, 255, 0.45);
}

/* =========================================================================
   13. SEÇÃO FORMAÇÃO (TIMELINE ANIMADA)
   ========================================================================= */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 34px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 11px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--electric-blue), rgba(0, 212, 255, 0.15));
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.55);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 26px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--neon-cyan);
  box-shadow: 0 0 18px var(--neon-cyan);
  z-index: 2;
}

.timeline-card {
  padding: 26px 28px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 4px 12px;
  border-radius: 99px;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #CBE7FF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.timeline-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-inst {
  font-weight: 600;
  color: var(--cyan-soft);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* =========================================================================
   14. SEÇÃO CONTATO (CANAIS DIRETOS + FORMULÁRIO)
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card-intro {
  padding: 28px;
}

.contact-card-intro h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 10px;
}

.contact-card-intro p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 22px;
}

.btn-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #0FA958 0%, #16C784 100%);
  color: var(--white);
  box-shadow: 0 8px 26px rgba(22, 199, 132, 0.32);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 199, 132, 0.48);
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.social-card {
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-fast);
}
.social-card:hover {
  transform: translateY(-3px);
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30, 107, 255, 0.18);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--neon-cyan);
  flex-shrink: 0;
}

.social-meta strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--white);
}

.social-meta span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Formulário */
.contact-form-card {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan-soft);
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  background: rgba(5, 11, 26, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.22);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
  color: #64789C;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.16), 0 0 18px rgba(0, 212, 255, 0.2);
}

textarea.form-control {
  min-height: 136px;
  resize: vertical;
}

.form-feedback {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-feedback.success {
  display: block;
  background: rgba(22, 199, 132, 0.14);
  border: 1px solid rgba(22, 199, 132, 0.45);
  color: #86EFAC;
}
.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
}

/* =========================================================================
   15. MODAL ANIMADO DE DETALHES DO PROJETO
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0C1733 0%, #071024 100%);
  border: 1px solid rgba(0, 212, 255, 0.42);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.78), 0 0 42px rgba(30, 107, 255, 0.28);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5, 11, 26, 0.86);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--white);
  display: grid;
  place-items: center;
  z-index: 10;
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: var(--electric-blue);
  box-shadow: 0 0 18px var(--neon-cyan);
  transform: rotate(90deg);
}

.modal-visual {
  height: 240px;
  background: #061026;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  overflow: hidden;
  margin-top: -54px;
}
.modal-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-content {
  padding: 28px 30px 32px;
}

.modal-cat {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: inline-block;
}

.modal-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  margin-bottom: 14px;
}

.modal-summary {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.72;
  margin-bottom: 22px;
}

.modal-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.modal-hl-item {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(5, 11, 26, 0.65);
  border: 1px solid rgba(0, 212, 255, 0.16);
}

.modal-hl-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.modal-hl-item span {
  font-size: 0.9rem;
  color: #D7E5FA;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* =========================================================================
   16. RODAPÉ + BOTÃO VOLTAR AO TOPO
   ========================================================================= */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(4, 9, 21, 0.92);
  border-top: 1px solid rgba(0, 212, 255, 0.18);
  padding: 56px 0 34px;
  backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-row img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  object-fit: cover;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.footer-nav-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.footer-links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px 18px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--neon-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-bottom .code-accent {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(10, 18, 40, 0.88);
  border: 1px solid rgba(0, 212, 255, 0.5);
  color: var(--neon-cyan);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 212, 255, 0.28);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--grad-brand);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.65);
}

/* =========================================================================
   17. RESPONSIVIDADE (MOBILE-FIRST BREAKPOINTS)
   ========================================================================= */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .hamburger {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .hero-stage-spacer {
    display: block;
  }
  .about-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 58px;
  }
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .skills-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
  }
  .sphere-stage {
    height: 450px;
  }
  .contact-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 36px;
  }
  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.9fr 0.8fr;
    align-items: start;
  }
}

@media (max-width: 520px) {
  section {
    padding: 74px 0;
  }
  .counters-grid {
    grid-template-columns: 1fr;
  }
  .social-links-grid {
    grid-template-columns: 1fr;
  }
  .brand-sub {
    display: none;
  }
  .btn-mode-toggle span.mode-label {
    display: none;
  }
}

/* =========================================================================
   18. PREFERS-REDUCED-MOTION (ACESSIBILIDADE)
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-dot, .cursor-glow {
    display: none !important;
  }
}

/* =========================================================================
   19. ARQUITETURA MULTIPÁGINA — COMPONENTES COMPARTILHADOS
   ========================================================================= */
.section-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

/* Miniatura de projeto agora é um link para o case */
a.project-thumb {
  display: block;
}

.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-cover-img {
  transform: scale(1.045);
}

/* Hero compacto das páginas internas */
.page-hero {
  padding-top: calc(var(--header-height) + 64px);
  padding-bottom: 56px;
  position: relative;
}

.page-hero .section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero-lead {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}
.breadcrumb a {
  color: var(--cyan-soft);
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--white);
}
.breadcrumb span[aria-current] {
  color: var(--text-secondary);
}

.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Barra de contexto do catálogo */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.catalog-toolbar .filter-bar {
  margin-bottom: 0;
}
.catalog-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.catalog-count strong {
  color: var(--neon-cyan);
}

/* Faixa de CTA final reutilizável */
.cta-band {
  padding: 46px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 212, 255, 0.16), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(30, 107, 255, 0.2), transparent 55%),
    var(--bg-card);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
}
.cta-band p {
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 26px;
}
.cta-band .section-cta-row {
  margin-top: 0;
}

/* =========================================================================
   20. PÁGINA DE CASE (projeto.html?id=...)
   ========================================================================= */
.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.case-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(30, 107, 255, 0.25);
  background: #061026;
  aspect-ratio: 16 / 10;
}
.case-visual svg,
.case-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.case-body-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.case-block {
  padding: 28px;
  margin-bottom: 22px;
}
.case-block h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-block h2 span {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--neon-cyan);
}
.case-block p {
  color: var(--text-secondary);
  line-height: 1.75;
}

.case-feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.case-feature-list li {
  display: flex;
  gap: 10px;
  color: #D7E5FA;
  font-size: 0.95rem;
  line-height: 1.55;
}
.case-feature-list li::before {
  content: '</>';
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  padding-top: 3px;
  flex-shrink: 0;
}

.case-sidebar {
  padding: 26px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.case-sidebar h3 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-bottom: 10px;
}
.case-sidebar dl {
  display: grid;
  gap: 12px;
}
.case-sidebar dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.case-sidebar dd {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.case-sidebar .btn {
  width: 100%;
}

.case-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.case-gallery figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: #061026;
}
.case-gallery img {
  width: 100%;
  display: block;
}
.case-gallery figcaption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}
.case-gallery .is-mobile img {
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.case-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 30px;
}
.case-pager a {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-pager small {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-size: 0.74rem;
}
.case-pager strong {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--white);
  font-size: 1.1rem;
}
.case-pager .is-next {
  text-align: right;
}

/* =========================================================================
   21. PÁGINA LOGÍSTICA & BI
   ========================================================================= */
.pain-grid,
.solution-grid,
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.pain-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pain-card .pain-icon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 4px 10px;
  align-self: flex-start;
}
.pain-card h3,
.solution-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
}
.pain-card p,
.solution-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.solution-card {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--bg-card);
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  background: rgba(30, 107, 255, 0.12);
}
.compare-table td {
  color: var(--text-secondary);
}
.compare-table td:last-child {
  color: #E2EEFF;
  font-weight: 600;
}

.faq-item {
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  font-style: normal;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 640px) {
  .pain-grid,
  .case-feature-list,
  .case-pager {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-gallery {
    grid-template-columns: 2fr 1fr;
  }
}

@media (min-width: 960px) {
  .case-hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 52px;
  }
  .case-body-grid {
    grid-template-columns: 1fr 320px;
    gap: 32px;
  }
  .pain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}

/* =========================================================================
   22. DEMO INTERATIVA (demos/dashboard-logistico.html) & CURRÍCULO (curriculo.html)
   ========================================================================= */
.demo-toolbar {
  padding: 20px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
}

.demo-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.demo-kpi-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.demo-kpi-val {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  line-height: 1.05;
}
.demo-kpi-sub {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-cyan);
}

.demo-charts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.demo-chart-card {
  padding: 22px 24px;
}
.demo-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.demo-chart-head h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--white);
}
.demo-chart-wrap {
  position: relative;
  height: 270px;
}

.demo-table-card {
  padding: 24px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}
.status-pill.ok {
  background: rgba(22, 199, 132, 0.14);
  color: #86EFAC;
  border: 1px solid rgba(22, 199, 132, 0.45);
}
.status-pill.warn {
  background: rgba(250, 204, 21, 0.14);
  color: #FDE047;
  border: 1px solid rgba(250, 204, 21, 0.45);
}
.status-pill.crit {
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

/* Currículo */
.cv-sheet {
  padding: 38px;
  max-width: 920px;
  margin: 0 auto;
}
.cv-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.22);
  margin-bottom: 28px;
}
.cv-identity {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cv-identity img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.35);
}
.cv-section {
  margin-bottom: 28px;
}
.cv-section:last-child {
  margin-bottom: 0;
}
.cv-section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  margin-bottom: 16px;
}
.cv-item {
  margin-bottom: 16px;
}
.cv-item-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.cv-item-head strong {
  color: var(--white);
  font-size: 1.04rem;
}
.cv-item-head span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan-soft);
}
.cv-item p,
.cv-list li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}
.cv-list {
  list-style: none;
  display: grid;
  gap: 8px;
}
.cv-list li::before {
  content: '▸ ';
  color: var(--neon-cyan);
  font-weight: 700;
}

@media (min-width: 760px) {
  .demo-toolbar {
    grid-template-columns: repeat(4, 1fr);
  }
  .demo-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .demo-charts-grid {
    grid-template-columns: 1.35fr 0.95fr;
  }
}

/* Estilo de impressão limpo para salvar o currículo em PDF */
@media print {
  body {
    background: #FFFFFF !important;
    color: #0F172A !important;
  }
  #webgl-wrapper,
  .webgl-fallback,
  .canvas-readability-overlay,
  #preloader,
  .site-header,
  .mobile-drawer,
  .site-footer,
  .back-to-top,
  .cursor-dot,
  .cursor-glow,
  .no-print {
    display: none !important;
  }
  .page-hero {
    padding-top: 0 !important;
    padding-bottom: 12px !important;
  }
  section {
    padding: 0 !important;
  }
  .cv-sheet {
    background: #FFFFFF !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .cv-sheet * {
    color: #0F172A !important;
    text-shadow: none !important;
  }
  .cv-section-title {
    color: #1E6BFF !important;
    border-bottom-color: #CBD5E1 !important;
  }
  .tech-pill {
    background: #EFF6FF !important;
    border-color: #93C5FD !important;
    color: #1E3A8A !important;
  }
}
