/* ==========================================================================
   HAGNOS TECNOLOGIA — Design System
   Etapa 1: Navbar + Hero (alinhado com 21st.dev: dark puro, whitespace
   generoso, tipografia grande e confiante, zero ruído visual)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  color-scheme: dark;

  /* Cores oficiais */
  --color-deep: #05001A;
  --color-navy: #0A1628;
  --color-cyan: #00C8FF;
  --color-blue: #0066FF;
  --color-white: #FFFFFF;

  --color-ink-95: rgba(255, 255, 255, 0.95);
  --color-ink-80: rgba(255, 255, 255, 0.80);
  --color-ink-60: rgba(255, 255, 255, 0.60);
  --color-ink-45: rgba(255, 255, 255, 0.45);
  --color-ink-30: rgba(255, 255, 255, 0.30);

  /* Gradientes */
  --grad-primary: linear-gradient(135deg, #0066FF 0%, #00C8FF 100%);

  /* Glass */
  --glass-bg: rgba(10, 22, 40, 0.60);
  --glass-bg-strong: rgba(5, 0, 26, 0.72);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(0, 200, 255, 0.30);

  /* Tipografia */
  --font-head: 'Sora', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1240px;
  --header-h: 76px;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 180ms;
  --dur-base: 280ms;
  --dur-slow: 520ms;

  /* Espaçamento vertical uniforme entre seções (topo e base) */
  --section-pad: clamp(48px, 5vw, 64px);
}

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

* {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #05001A;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink-80);
  background-color: #05001A;
  background-image: linear-gradient(#05001A, #05001A);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.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;
}

/* Section base (reutilizável em todas as etapas).
   Padding top/bottom iguais via var(--section-pad) pra gaps uniformes
   entre todas as seções. Alternância de tonalidade via .section--tinted */
.section {
  position: relative;
  padding: var(--section-pad) 0;
  isolation: isolate;
}

/* Tint em seções alternadas: gradient vertical de navy que aparece
   no centro e faz fade nas bordas (15% em cada ponta) pra evitar
   linha dura na transição. 55% de opacidade no corpo pra ser claramente
   visível sobre o body #05001A. */
.section--tinted {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(10, 22, 40, 0.55) 15%,
    rgba(10, 22, 40, 0.55) 85%,
    transparent 100%
  );
}

/* Divisor visual no topo de cada seção: linha fina gradient ciano
   que fade pras bordas. Marca a transição entre seções sem brigar
   com backdrops/tints. Hero não entra (é .hero, não .section). */
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 255, 0.32) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
}

.section__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 760px;
  margin-inline: auto;
}

.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  background: rgba(0, 200, 255, 0.06);
  border: 1px solid rgba(0, 200, 255, 0.18);
  border-radius: 999px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-white);
}

.section__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--color-ink-60);
  line-height: 1.65;
  max-width: 580px;
}

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform var(--dur-base) var(--ease-out-expo),
    box-shadow var(--dur-base) var(--ease-out-expo),
    border-color var(--dur-base) var(--ease-out-expo),
    background var(--dur-base) var(--ease-out-expo);
  will-change: transform;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  color: #001018;
  background: var(--grad-primary);
  box-shadow:
    0 10px 30px rgba(0, 200, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow:
    0 16px 40px rgba(0, 200, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ghost {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--glass-border-hover);
  background: rgba(0, 200, 255, 0.04);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.14);
}

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

/* ==========================================================================
   NAVBAR (estilo 21st.dev: minimal, discreta, zero competição com conteúdo)
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur-base) var(--ease-out-quart),
    backdrop-filter var(--dur-base) var(--ease-out-quart),
    border-color var(--dur-base) var(--ease-out-quart);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5, 0, 26, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* Scroll progress bar: linha fina no rodapé da navbar
   preenche da esquerda pra direita conforme o usuário rola */
.nav__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  pointer-events: none;
}

.nav__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg,
    rgba(0, 102, 255, 0.9) 0%,
    rgba(0, 200, 255, 1) 50%,
    rgba(0, 200, 255, 0.9) 100%);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  box-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
  transition: transform 0.1s linear;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.brand {
  grid-column: 1;
  justify-self: start;
}

.nav__inner > nav {
  grid-column: 2;
  justify-self: center;
}

.nav__cta,
.nav__toggle {
  grid-column: 3;
  justify-self: end;
}

/* Brand (logo oficial) */
.brand {
  display: inline-flex;
  align-items: center;
  transition: filter var(--dur-base) var(--ease-out-quart);
}

.brand__logo {
  width: auto;
  height: 28px;
}

@media (min-width: 640px) {
  .brand__logo { height: 32px; }
}

@media (min-width: 1024px) {
  .brand__logo { height: 34px; }
}

.brand:hover .brand__logo {
  filter: drop-shadow(0 0 18px rgba(0, 200, 255, 0.35));
}

/* Nav links: pill em glassmorphism com halo, flip 3D por item e glow */
.nav__links {
  display: none;
  list-style: none;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: linear-gradient(to bottom, rgba(10, 22, 40, 0.75), rgba(10, 22, 40, 0.4));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.4s var(--ease-out-quart), box-shadow 0.4s var(--ease-out-quart);
}

/* Halo radial colorido que acende ao passar o mouse na pill inteira */
.nav__links::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 100% at 25% 50%, rgba(0, 102, 255, 0.30), transparent 55%),
    radial-gradient(ellipse 50% 100% at 75% 50%, rgba(0, 200, 255, 0.30), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.nav__links:hover::before {
  opacity: 1;
}

.nav__links:hover {
  border-color: rgba(0, 200, 255, 0.2);
  box-shadow: 0 4px 24px rgba(0, 200, 255, 0.12);
}

.nav__link-item {
  position: relative;
  z-index: 1;
  list-style: none;
}

/* Link = perspective parent para o flip 3D dos filhos */
.nav__link {
  position: relative;
  display: block;
  border-radius: 10px;
  perspective: 600px;
  color: inherit;
}

/* Glow que acompanha cada item (hover ou ativo) */
.nav__link-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: radial-gradient(circle at center, rgba(0, 200, 255, 0.25), transparent 65%);
}

.nav__link:hover .nav__link-glow,
.nav__link.is-active .nav__link-glow {
  opacity: 1;
  transform: scale(1.5);
}

/* Face frontal (padrão) e traseira (invisível no início) */
.nav__link-face {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink-60);
  white-space: nowrap;
  backface-visibility: hidden;
  border-radius: inherit;
  position: relative;
  z-index: 1;
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    color 0.3s var(--ease-out-quart);
}

.nav__link-face--front {
  transform-origin: center bottom;
}

.nav__link-face--back {
  position: absolute;
  inset: 0;
  transform: rotateX(90deg);
  transform-origin: center top;
}

.nav__link:hover .nav__link-face--front,
.nav__link:focus-visible .nav__link-face--front {
  transform: rotateX(-90deg);
}

.nav__link:hover .nav__link-face--back,
.nav__link:focus-visible .nav__link-face--back {
  transform: rotateX(0);
}

.nav__link:hover .nav__link-face,
.nav__link:focus-visible .nav__link-face,
.nav__link.is-active .nav__link-face {
  color: var(--color-white);
}

/* Ícone: fica ciano, com brilho no hover */
.nav__link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-cyan);
  opacity: 0.75;
  transition: opacity 0.3s, filter 0.3s;
}

.nav__link:hover .nav__link-icon,
.nav__link:focus-visible .nav__link-icon,
.nav__link.is-active .nav__link-icon {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(0, 200, 255, 0.6));
}

.nav__cta {
  display: none;
  position: relative;
  overflow: visible;
}

/* Orbita uma bolinha ciano ao redor da borda do CTA principal.
   As keyframes interpolam top/left linearmente, traçando o retângulo. */
.nav__cta::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 6px #00C8FF,
    0 0 14px #00C8FF,
    0 0 24px rgba(0, 200, 255, 0.7);
  pointer-events: none;
  animation: nav-cta-orbit 5s linear infinite;
}

@keyframes nav-cta-orbit {
  0%   { top: 0%;   left: 0%; }
  25%  { top: 0%;   left: 100%; }
  50%  { top: 100%; left: 100%; }
  75%  { top: 100%; left: 0%; }
  100% { top: 0%;   left: 0%; }
}

/* Mobile toggle */
.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.nav__toggle:hover {
  background: rgba(0, 200, 255, 0.06);
  border-color: rgba(0, 200, 255, 0.3);
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
  transition: transform var(--dur-base) var(--ease-out-expo), opacity var(--dur-base);
}

.nav__toggle .icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-45deg);
}

body.is-menu-open .nav__toggle .icon-open {
  opacity: 0;
  transform: rotate(45deg);
}

body.is-menu-open .nav__toggle .icon-close {
  opacity: 1;
  transform: rotate(0);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 40px;
  background: #05001A;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-base) var(--ease-out-quart),
    transform var(--dur-base) var(--ease-out-quart),
    visibility var(--dur-base);
}

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

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-white);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background var(--dur-fast), border-color var(--dur-fast);
}

.mobile-menu a:hover {
  background: rgba(0, 200, 255, 0.04);
  border-color: rgba(0, 200, 255, 0.12);
}

.mobile-menu .btn {
  margin-top: 24px;
  width: 100%;
}

@media (min-width: 960px) {
  .nav__toggle { display: none; }
  .mobile-menu { display: none; }
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
}

/* ==========================================================================
   HERO (estilo 21st.dev: tipografia gigante, whitespace muito generoso,
   badge pequeno como destaque visual, zero decoração desnecessária)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 var(--section-pad);
  overflow: hidden;
  isolation: isolate;
  background-color: #05001A;
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 20%, rgba(0, 102, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(0, 200, 255, 0.06), transparent 60%);
}

/* Gradient mesh animado em CSS puro (GPU, zero JS)
   Três blobs radiais de blue/cyan flutuando lentamente. */
.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
}

.hero__blob--a {
  top: -10%;
  left: -8%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.22), transparent 60%);
  animation: blob-float-a 24s ease-in-out infinite;
}

.hero__blob--b {
  top: 20%;
  right: -12%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18), transparent 60%);
  animation: blob-float-b 30s ease-in-out infinite;
}

.hero__blob--c {
  bottom: -20%;
  left: 30%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.12), transparent 60%);
  animation: blob-float-c 36s ease-in-out infinite;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 85%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mx, -20%) var(--my, -20%),
    rgba(0, 200, 255, 0.08),
    transparent 65%
  );
  opacity: 1;
  transition: background var(--dur-fast) linear;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin-inline: auto;
  text-align: center;
}

/* Badge (pequeno destaque visual no topo, estilo 21st.dev) */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink-80);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  animation: hero-fade-up 0.9s var(--ease-out-expo) 0.15s both;
}

.hero__badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

/* Title: maior, mais confiante, entrelinhas calibradas pra caber cedilhas
   e descendentes sem colidir com a linha seguinte quando o título quebra */
.hero__title {
  margin-top: 32px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 7.4vw, 5.5rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
  color: var(--color-white);
}

.hero__title .line {
  display: block;
  overflow: hidden;
  /* sem padding: o gap entre blocos .line fica igual ao gap entre
     quebras internas, mantendo simetria vertical no título */
}

.hero__title .word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  animation: hero-word-in 0.9s var(--ease-out-expo) both;
}

.hero__title .word + .word {
  margin-left: 0.28em;
}

.hero__title .accent {
  background: linear-gradient(90deg, #00C8FF 0%, #0066FF 45%, #00C8FF 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation:
    hero-word-in 0.9s var(--ease-out-expo) both,
    shimmer 6s linear infinite;
}

/* Subtitle: largura contida pra quebra natural */
.hero__subtitle {
  max-width: 560px;
  margin: 32px auto 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--color-ink-60);
  line-height: 1.65;
  animation: hero-fade-up 1s var(--ease-out-expo) 1.0s both;
}

/* Ritmo vertical em escala modular base-8: 32 → 32 → 48 → 72 */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 48px;
  animation: hero-fade-up 1s var(--ease-out-expo) 1.15s both;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes hero-word-in {
  from { opacity: 0; transform: translateY(110%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes dot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px var(--color-cyan); }
  50%      { transform: scale(1.35); box-shadow: 0 0 16px var(--color-cyan); }
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Gradient mesh: blobs flutuando em loops lentos com offsets diferentes
   pra dar movimento contínuo sem repetição óbvia. GPU via transform. */
@keyframes blob-float-a {
  0%,100% { transform: translate3d(0, 0, 0) scale(1); }
  33%     { transform: translate3d(4vw, 6vw, 0) scale(1.05); }
  66%     { transform: translate3d(-3vw, 3vw, 0) scale(0.95); }
}

@keyframes blob-float-b {
  0%,100% { transform: translate3d(0, 0, 0) scale(1); }
  40%     { transform: translate3d(-5vw, 4vw, 0) scale(1.08); }
  70%     { transform: translate3d(3vw, -4vw, 0) scale(0.92); }
}

@keyframes blob-float-c {
  0%,100% { transform: translate3d(0, 0, 0) scale(1); }
  50%     { transform: translate3d(5vw, -5vw, 0) scale(1.1); }
}

/* ==========================================================================
   ETAPA 2: PROBLEMAS QUE RESOLVEMOS (cards glassmorphism em grid 3x2)
   ========================================================================== */
.problems__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 720px) {
  .problems__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1080px) {
  .problems__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
  }
}

.problem-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 16px;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 255, 0.08);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-quart),
    background 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart);
}

.problem-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(10, 22, 40, 0.72);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.14);
}

.problem-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.14);
  color: var(--color-cyan);
  transition:
    background 0.4s var(--ease-out-quart),
    border-color 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart);
}

.problem-card:hover .problem-card__icon {
  background: rgba(0, 200, 255, 0.15);
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 22px rgba(0, 200, 255, 0.22);
}

.problem-card__icon svg {
  width: 22px;
  height: 22px;
}

.problem-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--color-white);
}

.problem-card__solution {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-top: auto;
}

.problem-card__arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease-out-expo);
}

.problem-card:hover .problem-card__arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   ETAPA 3: SERVIÇOS (4 cards 2x2 com lista de entregáveis)
   ========================================================================== */
.services__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 56px;
}

@media (min-width: 880px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-radius: 18px;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-quart),
    background 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Linha gradiente sutil no topo: acende no hover */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out-quart);
}

.service-card:hover {
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(10, 22, 40, 0.72);
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.14);
}

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

.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 200, 255, 0.08);
  border: 1px solid rgba(0, 200, 255, 0.14);
  color: var(--color-cyan);
  transition:
    background 0.4s var(--ease-out-quart),
    border-color 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart);
}

.service-card:hover .service-card__icon {
  background: rgba(0, 200, 255, 0.15);
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow: 0 0 22px rgba(0, 200, 255, 0.22);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.service-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-ink-60);
}

.service-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-ink-80);
}

/* Bullet em forma de check minimalista em ciano */
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 6px;
  border-left: 1.5px solid var(--color-cyan);
  border-bottom: 1.5px solid var(--color-cyan);
  transform: rotate(-45deg);
  transform-origin: center;
  opacity: 0.85;
}

/* ==========================================================================
   ETAPA 10: STACK (órbita animada de ícones em torno de um núcleo)
   ========================================================================== */
.orbit {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: 64px auto 0;
}

/* Núcleo central com glow de marca */
.orbit__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1f1530 0%, #0a0614 100%);
  box-shadow:
    0 0 32px rgba(0, 200, 255, 0.25),
    0 0 64px rgba(147, 51, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.orbit__center svg {
  width: 36px;
  height: 36px;
}

/* Anéis decorativos — base das órbitas com halo radial */
.orbit__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

/* r1 = interna (radius 80, diâmetro 160) — base: HTML/CSS/JS — ciano */
.orbit__ring--r1 {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, transparent 55%, rgba(0, 200, 255, 0.08) 90%);
  border: 1px solid rgba(0, 200, 255, 0.25);
  box-shadow:
    0 0 26px rgba(0, 200, 255, 0.18),
    inset 0 0 26px rgba(0, 200, 255, 0.1);
  animation: orbit-ring-pulse 4s ease-in-out infinite;
}

/* r2 = meio (radius 145, diâmetro 290) — frontend — roxo */
.orbit__ring--r2 {
  width: 290px;
  height: 290px;
  background: radial-gradient(circle, transparent 55%, rgba(147, 51, 234, 0.06) 90%);
  border: 1px solid rgba(147, 51, 234, 0.22);
  box-shadow:
    0 0 28px rgba(147, 51, 234, 0.15),
    inset 0 0 28px rgba(147, 51, 234, 0.08);
  animation: orbit-ring-pulse 4s ease-in-out infinite 1.2s;
}

/* r3 = externa (radius 210, diâmetro 420) — backend — azul brand */
.orbit__ring--r3 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, transparent 58%, rgba(0, 102, 255, 0.05) 92%);
  border: 1px solid rgba(0, 102, 255, 0.2);
  box-shadow:
    0 0 32px rgba(0, 102, 255, 0.14),
    inset 0 0 32px rgba(0, 102, 255, 0.07);
  animation: orbit-ring-pulse 4s ease-in-out infinite 2.4s;
}

@keyframes orbit-ring-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Ícones orbitando */
.orbit__skill {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  will-change: transform;
  cursor: pointer;
  z-index: 5;
}

.orbit__skill:hover {
  z-index: 20;
}

.orbit__icon {
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 50%;
  background: rgba(30, 30, 45, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-quart);
}

.orbit__skill:hover .orbit__icon {
  transform: scale(1.25);
}

.orbit__icon svg {
  width: 100%;
  height: 100%;
}

/* Hover com glow da cor da marca */
.orbit__skill[data-skill="java"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(231, 111, 0, 0.55), 0 0 56px rgba(231, 111, 0, 0.25);
}

.orbit__skill[data-skill="spring"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(109, 179, 63, 0.55), 0 0 56px rgba(109, 179, 63, 0.25);
}

.orbit__skill[data-skill="angular"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(221, 0, 49, 0.55), 0 0 56px rgba(221, 0, 49, 0.25);
}

.orbit__skill[data-skill="react"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(97, 218, 251, 0.55), 0 0 56px rgba(97, 218, 251, 0.25);
}

.orbit__skill[data-skill="inertia"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(149, 83, 232, 0.55), 0 0 56px rgba(149, 83, 232, 0.25);
}

.orbit__skill[data-skill="html"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(227, 79, 38, 0.55), 0 0 56px rgba(227, 79, 38, 0.25);
}

.orbit__skill[data-skill="css"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(21, 114, 182, 0.55), 0 0 56px rgba(21, 114, 182, 0.25);
}

.orbit__skill[data-skill="js"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(247, 223, 30, 0.55), 0 0 56px rgba(247, 223, 30, 0.25);
}

.orbit__skill[data-skill="vue"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(79, 192, 141, 0.55), 0 0 56px rgba(79, 192, 141, 0.25);
}

.orbit__skill[data-skill="tailwind"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.55), 0 0 56px rgba(6, 182, 212, 0.25);
}

.orbit__skill[data-skill="php"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(119, 123, 180, 0.6), 0 0 56px rgba(119, 123, 180, 0.3);
}

.orbit__skill[data-skill="laravel"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(255, 45, 32, 0.55), 0 0 56px rgba(255, 45, 32, 0.25);
}

.orbit__skill[data-skill="python"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(55, 118, 171, 0.6), 0 0 56px rgba(55, 118, 171, 0.3);
}

.orbit__skill[data-skill="django"]:hover .orbit__icon {
  box-shadow: 0 0 28px rgba(68, 183, 139, 0.55), 0 0 56px rgba(68, 183, 139, 0.25);
}

/* Label que aparece no hover */
.orbit__label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background: rgba(5, 0, 26, 0.92);
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out-expo);
}

.orbit__skill:hover .orbit__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile: reduz a órbita inteira via scale na wrapper */
@media (max-width: 640px) {
  .orbit {
    max-width: 340px;
    transform: scale(0.68);
    transform-origin: center;
    margin-bottom: -80px; /* compensa o espaço vazio criado pelo scale */
  }
}

@media (max-width: 420px) {
  .orbit {
    transform: scale(0.58);
    margin-bottom: -120px;
  }
}

/* Prefers reduced motion: para a rotação, ícones ficam estáticos */
@media (prefers-reduced-motion: reduce) {
  .orbit__ring {
    animation: none;
  }
}

/* ==========================================================================
   ETAPA 4: PROCESSO (timeline horizontal 4 etapas, vertical em mobile)
   ========================================================================== */
.process__steps {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 64px;
  counter-reset: process;
}

/* Linha vertical (mobile): corre pela esquerda conectando os markers */
.process__steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 200, 255, 0.3) 10%,
    rgba(0, 200, 255, 0.3) 90%,
    transparent 100%
  );
  z-index: 0;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 20px;
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step__marker {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 22, 40, 0.95);
  border: 1px solid rgba(0, 200, 255, 0.35);
  box-shadow:
    0 0 24px rgba(0, 200, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
  transition:
    border-color 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart),
    transform 0.4s var(--ease-out-expo);
}

.process-step:hover .process-step__marker {
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow:
    0 0 32px rgba(0, 200, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: scale(1.06);
}

.process-step__num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-cyan);
}

.process-step__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
}

.process-step__title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--color-white);
}

.process-step__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-ink-60);
}

/* Desktop: timeline horizontal — 4 colunas, linha conectando centro dos markers */
@media (min-width: 900px) {
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 72px;
  }

  /* Linha horizontal, posicionada no centro vertical dos markers */
  .process__steps::before {
    top: 28px;
    bottom: auto;
    left: calc(100% / 8);
    right: calc(100% / 8);
    width: auto;
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 200, 255, 0.3) 10%,
      rgba(0, 200, 255, 0.3) 90%,
      transparent 100%
    );
  }

  .process-step {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 16px;
    padding: 0 12px;
  }

  .process-step__marker {
    margin-inline: auto;
  }

  .process-step__body {
    padding-top: 0;
    align-items: center;
  }

  .process-step__desc {
    max-width: 260px;
  }
}

/* ==========================================================================
   ETAPA 5: PORTFÓLIO (4 cards em 2x2 com screenshots reais)
   ========================================================================== */
.portfolio__grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 56px;
}

@media (min-width: 880px) {
  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(10, 22, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease-out-expo),
    transform 0.8s var(--ease-out-expo),
    border-color 0.4s var(--ease-out-quart),
    box-shadow 0.4s var(--ease-out-quart);
}

.portfolio-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-card:hover {
  border-color: rgba(0, 200, 255, 0.28);
  box-shadow: 0 0 42px rgba(0, 200, 255, 0.14);
}

.portfolio-card__cover {
  position: relative;
  overflow: hidden;
  background: #0A1628;
  border-bottom: 1px solid rgba(0, 200, 255, 0.08);
}

.portfolio-card__cover img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-card__cover img {
  transform: scale(1.04);
}

/* Link que cobre todo o cover (cards com site público) */
.portfolio-card__cover-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Marca "↗" no canto do cover: aparece ao passar o mouse */
.portfolio-card__external-mark {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 0, 26, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.4s var(--ease-out-quart),
    transform 0.4s var(--ease-out-expo),
    background 0.3s var(--ease-out-quart),
    border-color 0.3s,
    box-shadow 0.3s;
  pointer-events: none;
}

.portfolio-card:hover .portfolio-card__external-mark {
  opacity: 1;
  transform: translateY(0);
  background: rgba(0, 200, 255, 0.2);
  border-color: rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 22px rgba(0, 200, 255, 0.32);
}

.portfolio-card__external-mark svg {
  width: 15px;
  height: 15px;
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  flex: 1;
}

.portfolio-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cyan);
  opacity: 0.85;
}

.portfolio-card__title {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.portfolio-card__desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-ink-60);
}

/* Rodapé do card: agrupa link/marker + stack tags, alinhado ao fundo */
.portfolio-card__footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

/* Link "Ver site ao vivo ↗" (cards públicos) */
.portfolio-card__link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-cyan);
  border-bottom: 1px solid transparent;
  transition:
    gap 0.3s var(--ease-out-quart),
    border-color 0.3s,
    color 0.3s;
}

.portfolio-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out-expo);
}

.portfolio-card__link:hover {
  gap: 9px;
  color: #fff;
  border-bottom-color: rgba(0, 200, 255, 0.6);
}

.portfolio-card__link:hover svg {
  transform: translate(2px, -2px);
}

/* Marker "Sistema interno" (cards sem acesso público — simetria visual) */
.portfolio-card__private {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--color-ink-45);
  padding-bottom: 2px;
}

.portfolio-card__private svg {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

.portfolio-card__stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.portfolio-card__stack li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-ink-80);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  transition: background 0.3s var(--ease-out-quart), border-color 0.3s var(--ease-out-quart);
}

.portfolio-card:hover .portfolio-card__stack li {
  background: rgba(0, 200, 255, 0.05);
  border-color: rgba(0, 200, 255, 0.2);
}


/* ==========================================================================
   ETAPA 6: CONTATO (coluna única centralizada, bg com glows, vibe tech)
   ========================================================================== */
.section--contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Backdrop: dois glows radiais borrados dão a vibe tech/futurista */
.contact__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  will-change: transform;
}

.contact__glow--a {
  top: -15%;
  left: -10%;
  width: 42vw;
  height: 42vw;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.5), transparent 60%);
}

.contact__glow--b {
  bottom: -18%;
  right: -10%;
  width: 38vw;
  height: 38vw;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.4), transparent 60%);
}

/* Stack: coluna única centralizada */
.contact__stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.contact__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 640px;
}

.contact__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--color-white);
}

/* Palavra-accent com gradiente ciano animado (shimmer — reusa keyframe do hero) */
.contact__title-accent {
  background: linear-gradient(90deg, #00C8FF 0%, #0066FF 45%, #00C8FF 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

.contact__lead {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-ink-60);
  max-width: 520px;
}

.contact__socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

/* Divider decorativo entre socials e form: dois filetes + ponto glow */
.contact__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 240px;
}

.contact__divider::before,
.contact__divider::after {
  content: "";
  display: block;
  flex: 1;
  height: 1px;
}

.contact__divider::before {
  background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.45));
}

.contact__divider::after {
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.45), transparent);
}

.contact__divider-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow:
    0 0 10px rgba(0, 200, 255, 0.7),
    0 0 20px rgba(0, 200, 255, 0.35);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.contact__socials li {
  list-style: none;
}

.social-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.icon-container {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.4s var(--ease-out-expo),
    background 0.3s var(--ease-out-quart),
    border-color 0.3s,
    box-shadow 0.3s var(--ease-out-quart);
}

.icon-container svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.icon-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
}

.social-icon:hover .icon-container,
.social-icon:focus-visible .icon-container {
  transform: translateY(-10px) scale(1.1);
}

.social-icon:hover .icon-label,
.social-icon:focus-visible .icon-label {
  opacity: 1;
  transform: translateY(4px);
}

.social-icon:hover svg,
.social-icon:focus-visible svg {
  animation: social-shake 0.5s;
}

/* --- Hovers por marca --- */
.social-icon--whatsapp:hover .icon-container,
.social-icon--whatsapp:focus-visible .icon-container {
  background: #25D366;
  border-color: rgba(37, 211, 102, 0.7);
  box-shadow: 0 0 28px rgba(37, 211, 102, 0.6);
}

.social-icon--email:hover .icon-container,
.social-icon--email:focus-visible .icon-container {
  background: linear-gradient(135deg, #0066FF 0%, #00C8FF 100%);
  border-color: rgba(0, 200, 255, 0.55);
  box-shadow: 0 0 28px rgba(0, 200, 255, 0.55);
}

.social-icon--instagram:hover .icon-container,
.social-icon--instagram:focus-visible .icon-container {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: rgba(214, 36, 159, 0.5);
  box-shadow: 0 0 28px rgba(225, 48, 108, 0.55);
}

.social-icon--linkedin:hover .icon-container,
.social-icon--linkedin:focus-visible .icon-container {
  background: #0A66C2;
  border-color: rgba(10, 102, 194, 0.7);
  box-shadow: 0 0 28px rgba(10, 102, 194, 0.6);
}

@keyframes social-shake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-5px) rotate(-5deg); }
  40% { transform: translateX(5px) rotate(5deg); }
  60% { transform: translateX(-5px) rotate(-5deg); }
  80% { transform: translateX(5px) rotate(5deg); }
}

/* --- Form (centralizado, cartão glass com max-width) -------------------- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 36px;
  text-align: left;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 200, 255, 0.08);
  border-radius: 18px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-60);
}

.contact__label-hint {
  text-transform: none;
  letter-spacing: 0.04em;
  opacity: 0.6;
  font-weight: 400;
}

.contact__input {
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.contact__input::placeholder {
  color: var(--color-ink-30);
}

.contact__input:focus-visible {
  outline: none;
  border-color: rgba(0, 200, 255, 0.5);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.14);
}

.contact__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.contact__select option {
  background: #0A1628;
  color: var(--color-white);
}

.contact__textarea {
  min-height: 130px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.55;
}

.contact__submit {
  align-self: center;
  margin-top: 8px;
  min-width: 220px;
}

.contact__note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--color-ink-45);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
  padding-top: 16px;
}

/* ==========================================================================
   ETAPA 8: FOOTER (brand + navegação + contato + copyright)
   ========================================================================== */
.footer {
  position: relative;
  padding: clamp(64px, 7vw, 96px) 0 40px;
  background: rgba(10, 22, 40, 0.25);
  isolation: isolate;
}

/* Linha fina de gradient ciano no topo — separa do resto sem ser agressivo */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 255, 0.35) 50%,
    transparent 100%
  );
}

.footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-bottom: 52px;
}

@media (min-width: 880px) {
  .footer__main {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
}

.footer__logo {
  display: inline-block;
}

.footer__logo-img {
  width: auto;
  height: 32px;
}

.footer__tagline {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-ink-60);
}

.footer__socials {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer__socials li {
  list-style: none;
}

.footer__social {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-ink-80);
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease-out-expo);
}

.footer__social:hover,
.footer__social:focus-visible {
  color: var(--color-cyan);
  border-color: rgba(0, 200, 255, 0.3);
  background: rgba(0, 200, 255, 0.06);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer__heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-cyan);
  opacity: 0.85;
}

.footer__links,
.footer__contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer__links li,
.footer__contact li {
  list-style: none;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--color-ink-80);
}

.footer__links a,
.footer__contact a {
  color: var(--color-ink-80);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__links a:hover,
.footer__contact a:hover {
  color: var(--color-cyan);
}

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-ink-45);
  text-align: center;
}

.footer__copy {
  margin: 0;
}

/* ==========================================================================
   WHATSAPP FAB (floating action button, fixo no canto inferior direito)
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow:
    0 8px 24px rgba(37, 211, 102, 0.45),
    0 0 0 0 rgba(37, 211, 102, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.85);
  transition:
    opacity 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s var(--ease-out-quart);
}

.whatsapp-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
}

.whatsapp-fab:hover {
  transform: translateY(-4px) scale(1.06);
  animation-play-state: paused;
  box-shadow:
    0 14px 32px rgba(37, 211, 102, 0.6),
    0 0 0 6px rgba(37, 211, 102, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.whatsapp-fab:active {
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-fab__icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

/* Esconde enquanto menu mobile está aberto */
body.is-menu-open .whatsapp-fab {
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.85);
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(37, 211, 102, 0.45),
      0 0 0 0 rgba(37, 211, 102, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(37, 211, 102, 0.55),
      0 0 0 18px rgba(37, 211, 102, 0),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-fab__icon {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   MOTION SAFETY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero__blob { animation: none; }
}

/* Touch devices: desativa cursor glow */
@media (hover: none) {
  .hero__glow { display: none; }
}
