/* ==========================================================================
   MG Tecnologia — Design System
   CyberSecurity • Risk • Privacy • AI
   ==========================================================================
   Sumário
   01. Design tokens
   02. Reset & base
   03. Tipografia & gradientes
   04. Superfícies (cards, glass, glow)
   05. Botões & microinterações
   06. Formulários
   07. Backgrounds tecnológicos (grid, orbes, nodes)
   08. Composição visual do Hero (SOC)
   09. Navegação (header, mobile menu, scrollspy)
   10. Animações de entrada (reveal)
   11. Componentes utilitários
   12. Acessibilidade & preferências do usuário
   13. Responsividade
   ========================================================================== */

/* ==========================================================================
   01. Design tokens
   ========================================================================== */
:root {
  /* Backgrounds */
  --bg-base: #050816;
  --bg-alt: #090e1a;
  --bg-card: #0d1424;
  --bg-elevated: #111a2e;

  /* Bordas */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Texto */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Acentos */
  --accent-cyan: #00d4ff;
  --accent-teal: #06b6d4;
  --accent-blue: #2563eb;
  --accent-violet: #7c3aed;

  /* Gradientes */
  --grad-brand: linear-gradient(120deg, #00d4ff 0%, #2563eb 55%, #7c3aed 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(0, 212, 255, 0.16), rgba(37, 99, 235, 0.14) 55%, rgba(124, 58, 237, 0.16));
  --grad-text: linear-gradient(100deg, #7dd3fc 0%, #00d4ff 40%, #60a5fa 70%, #a78bfa 100%);
  --grad-line: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.55), transparent);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, 0.6);
  --shadow-md: 0 12px 32px -12px rgba(2, 6, 23, 0.9);
  --shadow-lg: 0 32px 80px -32px rgba(2, 6, 23, 1);
  --glow-cyan: 0 0 0 1px rgba(0, 212, 255, 0.28), 0 18px 60px -24px rgba(0, 212, 255, 0.42);

  /* Layout */
  --header-h: 76px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ==========================================================================
   02. Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

body.is-locked {
  overflow: hidden;
}

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

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

::selection {
  background: rgba(0, 212, 255, 0.28);
  color: #fff;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-base);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.4), rgba(37, 99, 235, 0.4));
  border-radius: 999px;
  border: 2px solid var(--bg-base);
}

/* Ícones Lucide — dimensionamento consistente */
[data-lucide] {
  flex: none;
  stroke-width: 1.6;
}

/* ==========================================================================
   03. Tipografia & gradientes
   ========================================================================== */
h1,
h2,
h3,
h4 {
  font-family: "Manrope", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

/* Sublinhado gradiente para labels de seção */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #67e8f9;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff);
}

.section-divider {
  height: 1px;
  background: var(--grad-line);
  border: 0;
  margin: 0;
}

/* ==========================================================================
   04. Superfícies (cards, glass, glow)
   ========================================================================== */
.surface {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)) ,
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.glass {
  background: rgba(13, 20, 36, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--border-subtle);
}

/* Card com border glow no hover */
.card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out), background-color 0.45s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

/* Halo suave que segue o cursor */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx, 50%) var(--my, 0%),
    rgba(0, 212, 255, 0.12),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.28);
  box-shadow: var(--shadow-lg), 0 0 44px -22px rgba(0, 212, 255, 0.5);
}

.card:hover::before,
.card:focus-within::before,
.card:hover::after,
.card:focus-within::after {
  opacity: 1;
}

/* Card com moldura gradiente sempre visível (destaques) */
.card-featured {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.07), rgba(124, 58, 237, 0.05)),
    var(--bg-card);
  border-color: rgba(0, 212, 255, 0.22);
}

/* Ícone em cápsula */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #67e8f9;
  background: linear-gradient(150deg, rgba(0, 212, 255, 0.16), rgba(37, 99, 235, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    color 0.4s var(--ease-out);
}

.card:hover .icon-tile {
  transform: translateY(-2px) scale(1.04);
  color: #a5f3fc;
  box-shadow: 0 0 28px -8px rgba(0, 212, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-tile-sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.icon-tile-danger {
  color: #fca5a5;
  background: linear-gradient(150deg, rgba(248, 113, 113, 0.16), rgba(190, 24, 93, 0.1));
  border-color: rgba(248, 113, 113, 0.22);
}

.card:hover .icon-tile-danger {
  color: #fecaca;
  box-shadow: 0 0 28px -8px rgba(248, 113, 113, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Pílulas / badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
}

.pill:hover {
  color: #e2e8f0;
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.07);
}

.tag-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #a5f3fc;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.22);
  backdrop-filter: blur(10px);
}

/* Lista de entregáveis com marcador customizado */
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--grad-brand);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.65);
}

/* ==========================================================================
   05. Botões & microinterações
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn [data-lucide] {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover [data-lucide]:last-child {
  transform: translateX(3px);
}

/* Primário — gradiente com brilho */
.btn-primary {
  color: #04121f;
  background-image: var(--grad-brand);
  background-size: 160% 160%;
  background-position: 0% 50%;
  box-shadow: 0 10px 34px -14px rgba(0, 212, 255, 0.85);
  transition: background-position 0.7s var(--ease-in-out), transform 0.25s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 48px -16px rgba(0, 212, 255, 0.95);
}

/* Secundário — contorno translúcido */
.btn-ghost {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.42);
  background: rgba(0, 212, 255, 0.08);
  box-shadow: 0 14px 40px -20px rgba(0, 212, 255, 0.6);
}

/* Link com seta */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #67e8f9;
  transition: color 0.3s var(--ease-out), gap 0.3s var(--ease-out);
}

.btn-link:hover {
  color: #a5f3fc;
  gap: 0.65rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   06. Formulários
   ========================================================================== */
.field {
  display: block;
}

.field-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.field-req {
  color: #67e8f9;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.9rem;
  background: rgba(5, 8, 22, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
}

.input::placeholder,
.textarea::placeholder {
  color: #526180;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: var(--border-strong);
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(5, 8, 22, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.14);
}

.textarea {
  min-height: 132px;
  resize: vertical;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
}

.select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Checkbox customizado */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 8, 22, 0.7);
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.checkbox input:checked {
  background: var(--grad-brand);
  border-color: transparent;
  background-image: var(--grad-brand),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23041220' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: cover, 12px 12px;
}

.checkbox input:focus-visible {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

/* Mensagens de erro e sucesso */
.field-error {
  display: none;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fca5a5;
}

.field-invalid .input,
.field-invalid .textarea,
.field-invalid .select {
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

.field-invalid .field-error {
  display: block;
}

.form-feedback {
  display: none;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: rgba(0, 212, 255, 0.08);
  color: #a5f3fc;
}

.form-feedback.is-visible {
  display: flex;
}

/* ==========================================================================
   07. Backgrounds tecnológicos (grid, orbes, nodes)
   ========================================================================== */
.section {
  position: relative;
  isolation: isolate;
}

.bg-alt {
  background: var(--bg-alt);
}

/* Grid tecnológico */
.tech-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 25%, transparent 78%);
  pointer-events: none;
}

/* Grid em perspectiva (usado no CTA final) */
.tech-grid-perspective::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(0, 212, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(520px) rotateX(58deg) scale(1.9) translateY(18%);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 72%);
  mask-image: linear-gradient(to top, #000, transparent 72%);
  pointer-events: none;
}

/* Orbes de luz */
.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.orb-cyan {
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 68%);
}

.orb-blue {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 68%);
}

.orb-violet {
  background: radial-gradient(circle, rgba(124, 58, 237, 0.24), transparent 68%);
}

/* Linha luminosa no topo de uma seção */
.top-glow-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 88%);
  height: 1px;
  background: var(--grad-line);
  z-index: 1;
}

/* Pontos luminosos animados */
.dot-lights {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.dot-lights span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #00d4ff;
  box-shadow: 0 0 10px 2px rgba(0, 212, 255, 0.75);
  opacity: 0;
  animation: dotFloat 9s var(--ease-in-out) infinite;
}

@keyframes dotFloat {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  25%,
  60% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translateY(-42px);
  }
}

/* Gradiente animado discreto (faixa executiva) */
.gradient-animated {
  background: linear-gradient(115deg, #06121f, #0b1a35, #101038, #06121f);
  background-size: 320% 320%;
  animation: gradientDrift 22s var(--ease-in-out) infinite;
}

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

/* ==========================================================================
   08. Composição visual do Hero (SOC)
   ========================================================================== */
.soc-panel {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(0, 212, 255, 0.06), rgba(124, 58, 237, 0.05) 55%, rgba(5, 8, 22, 0)),
    rgba(9, 14, 26, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.soc-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* Linha de scan que percorre o painel */
.soc-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.09), transparent);
  animation: socScan 7s linear infinite;
  pointer-events: none;
}

@keyframes socScan {
  0% {
    transform: translateY(-140px);
  }
  100% {
    transform: translateY(560px);
  }
}

.soc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(5, 8, 22, 0.55);
  position: relative;
  z-index: 1;
}

.soc-body {
  position: relative;
  z-index: 1;
  padding: 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.soc-tile {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 20, 36, 0.78);
  padding: 0.85rem;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.soc-tile:hover {
  border-color: rgba(0, 212, 255, 0.32);
  box-shadow: 0 0 30px -16px rgba(0, 212, 255, 0.7);
}

/* Indicador "ao vivo" */
.live-dot {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22d3ee;
  animation: pulseRing 2.4s var(--ease-out) infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* Barras de maturidade */
.meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  overflow: hidden;
}

.meter > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
  width: 0;
  transition: width 1.6s var(--ease-out);
}

/* Sparkline animada */
.sparkline path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: drawLine 3.2s var(--ease-out) forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Malha de nodes conectados */
.node-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}

.node-mesh line {
  stroke: rgba(0, 212, 255, 0.22);
  stroke-width: 1;
}

.node-mesh circle {
  fill: #22d3ee;
  animation: nodePulse 4s var(--ease-in-out) infinite;
}

@keyframes nodePulse {
  0%,
  100% {
    opacity: 0.35;
    r: 2.5;
  }
  50% {
    opacity: 1;
    r: 3.5;
  }
}

/* Escudo orbital (badge flutuante) */
.orbit-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  background: rgba(9, 14, 26, 0.9);
  border: 1px solid rgba(0, 212, 255, 0.24);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  animation: floatY 6s var(--ease-in-out) infinite;
}

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

/* ==========================================================================
   09. Navegação (header, mobile menu, scrollspy)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
  background: rgba(5, 8, 22, 0.35);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 12px 40px -28px rgba(0, 0, 0, 1);
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #041220;
  background: var(--grad-brand);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  box-shadow: 0 0 26px -8px rgba(0, 212, 255, 0.8);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.brand:hover .brand-mark {
  transform: rotate(8deg) scale(1.05);
  box-shadow: 0 0 34px -6px rgba(0, 212, 255, 0.95);
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

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

/* Menu mobile */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2.5rem;
  background: rgba(5, 8, 22, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--border-subtle);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    visibility 0.35s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 20, 36, 0.7);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.mobile-link:hover,
.mobile-link.is-active {
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(3px);
}

/* Ícone hamburger animado */
.burger {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.35s var(--ease-out), opacity 0.25s var(--ease-out);
}

.burger span + span {
  margin-top: 4.5px;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.3px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.3px) rotate(-45deg);
}

/* Barra de progresso de leitura */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.8);
  transition: width 0.1s linear;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--text-primary);
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    visibility 0.35s, border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

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

.back-to-top:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 32px -10px rgba(0, 212, 255, 0.75);
}

/* ==========================================================================
   10. Animações de entrada (reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-scale {
  transform: translateY(16px) scale(0.985);
}

/* Atrasos escalonados */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

/* ==========================================================================
   11. Componentes utilitários
   ========================================================================== */

/* Timeline da metodologia */
.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.5), rgba(124, 58, 237, 0.35), transparent);
}

.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #a5f3fc;
  background: linear-gradient(160deg, rgba(0, 212, 255, 0.16), rgba(37, 99, 235, 0.08)), var(--bg-base);
  border: 1px solid rgba(0, 212, 255, 0.28);
  box-shadow: 0 0 32px -14px rgba(0, 212, 255, 0.7);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.step:hover .step-num {
  transform: scale(1.06);
  box-shadow: 0 0 40px -10px rgba(0, 212, 255, 0.9);
}

/* Pipeline Secure SDLC */
.sdlc-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  text-align: center;
  border: 1px solid var(--border-subtle);
  background: rgba(5, 8, 22, 0.6);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.sdlc-stage:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 30px -14px rgba(0, 212, 255, 0.7);
}

.sdlc-arrow {
  display: grid;
  place-items: center;
  color: rgba(0, 212, 255, 0.55);
}

/* Framework badge */
.framework-badge {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(13, 20, 36, 0.7);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}

.framework-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.32);
  box-shadow: 0 0 34px -18px rgba(0, 212, 255, 0.7);
}

.framework-badge .mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Marquee de especialidades */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

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

/* Item de palestra */
.talk-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 20, 36, 0.55);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.talk-item:hover {
  transform: translateX(4px);
  border-color: rgba(124, 58, 237, 0.42);
  background: rgba(124, 58, 237, 0.08);
  box-shadow: 0 0 34px -18px rgba(124, 58, 237, 0.8);
}

.talk-index {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #c4b5fd;
}

/* Canal de contato direto */
.contact-channel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 20, 36, 0.6);
  transition: border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.contact-channel:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 0 32px -18px rgba(0, 212, 255, 0.75);
}

/* Link de footer */
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.footer-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #041220;
  background: var(--accent-cyan);
  transition: top 0.25s var(--ease-out);
}

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

/* ==========================================================================
   12. Acessibilidade & preferências do usuário
   ========================================================================== */
:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-secondary: #cbd5e1;
    --border-subtle: rgba(255, 255, 255, 0.2);
    --border-strong: rgba(255, 255, 255, 0.32);
  }
}

/* ==========================================================================
   13. Responsividade
   ========================================================================== */
@media (max-width: 1023px) {
  .timeline::before {
    left: 23px;
  }

  .step-num {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 68px;
    --radius-lg: 20px;
    --radius-xl: 24px;
  }

  body {
    line-height: 1.58;
  }

  .btn {
    padding: 0.85rem 1.25rem;
  }

  .card:hover {
    transform: none;
  }

  .talk-item:hover {
    transform: none;
  }

  .soc-panel::after {
    display: none;
  }

  .orb {
    filter: blur(64px);
  }

  .tech-grid::before {
    background-size: 44px 44px;
  }

  .marquee-track {
    gap: 2rem;
    animation-duration: 28s;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 42px;
    height: 42px;
  }
}

@media print {
  .site-header,
  .mobile-menu,
  .back-to-top,
  .orb,
  .dot-lights {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}
