/* ── Header base ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.6rem;
  padding: .9rem clamp(1rem, 4vw, 3.75rem);
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

/* ── Brand ──────────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: .65rem;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #3b82f6);
  box-shadow: 0 6px 18px rgba(124, 58, 237, .28);
  font-size: .78rem;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
}

/* ── Brand logos (oficial SVG) ──────────────────────────────────── */
.brand-logo {
  height: 20px;
  width: auto;
  display: block;
  transition: opacity .2s ease;
}

.brand:hover .brand-logo {
  opacity: .88;
}

.brand-endorsement {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding-left: .85rem;
  border-left: 1px solid var(--line);
  font-size: .68rem;
  color: var(--muted-soft);
  font-weight: 500;
  line-height: 1;
}

.endorsement-by {
  font-size: .68rem;
  color: var(--muted-soft);
  font-weight: 500;
  letter-spacing: .02em;
}

.endorsement-x {
  color: var(--muted-soft);
  font-size: .75rem;
  opacity: .6;
  user-select: none;
}

.partner-logo {
  height: 15px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  transition: opacity .2s ease;
}

.partner-logo--thinkdigital {
  height: 14px;
}

.partner-logo--nos {
  height: 15px;
}

/* ── Navegação principal ────────────────────────────────────────── */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 760;
}

.site-nav a {
  padding: .55rem .1rem;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: #fff !important;
  padding: .72rem 1rem !important;
  border-radius: .65rem;
  background: var(--purple) !important;
  border-color: transparent !important;
}

/* Ocultar componente mobile-ai-card no desktop */
.mobile-ai-card {
  display: none;
}

/* ── Language switcher ──────────────────────────────────────────── */
.language-switcher {
  display: flex;
  gap: .18rem;
  padding: .18rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: rgba(255, 255, 255, .7);
}

.language-switcher button {
  min-width: 2.1rem;
  min-height: 2rem;
  border: 0;
  border-radius: .55rem;
  color: var(--muted);
  background: transparent;
  font-size: .76rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #fff;
  background: var(--purple);
}

/* ── Menu mobile toggle ─────────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: .25rem auto;
  background: var(--ink);
}

/* ── Nav items com dropdown ─────────────────────────────────────── */
.nav-item {
  position: relative;
}

.nav-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  padding: .5rem .6rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border-radius: 6px;
  transition: background .15s;
}

.nav-link:hover {
  background: var(--soft);
}

.nav-link-sub {
  display: none;
}

.nav-link-arrow {
  display: none;
}

.has-dropdown>.nav-link::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5'%3E%3Cpath d='M0 0l4 5 4-5H0z' fill='%23a1a1aa'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s;
}

.has-dropdown.is-open>.nav-link::after {
  transform: rotate(180deg);
}

/* ── Mega-menu panel ────────────────────────────────────────────── */
.mega-menu,
.drop-menu {
  position: absolute;
  top: calc(100% + .75rem);
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.14), 0 10px 20px -5px rgba(15, 23, 42, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s cubic-bezier(0.16, 1, 0.3, 1), transform .2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 200;
  overflow: hidden;
}

.has-dropdown.is-open .mega-menu,
.has-dropdown.is-open .drop-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-item:has(.mega-menu) {
  position: static;
}

.site-nav {
  position: static;
}

.mega-menu {
  left: auto;
  right: clamp(1rem, 4vw, 3.75rem);
  width: min(1220px, calc(100vw - 2 * clamp(1rem, 4vw, 3.75rem)));
  max-width: calc(100vw - 2rem);
  max-height: calc(90vh - 4.5rem);
  overflow-y: auto;
  padding: 0;
}

.mega-menu-inner {
  display: flex;
  align-items: stretch;
  background: #ffffff;
}

.mega-groups {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.8rem;
  gap: 1.5rem;
}

.mega-row {
  display: grid;
  gap: 1.6rem;
}

.mega-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mega-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 1.35rem;
  border-top: 1px dashed rgba(226, 232, 240, 0.9);
}

.mega-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mega-label {
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em !important;
  color: #64748b;
  padding: 0 0 .6rem;
  margin: 0 0 .4rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(241, 245, 249, 1);
}

.mega-label>span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.mega-label>span:first-child::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b5cf6;
  flex-shrink: 0;
}

.mega-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: .55rem .6rem;
  border-radius: 10px;
  margin: 0 -.6rem;
  transition: background .16s ease, transform .16s ease;
}

.mega-item:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.mega-item strong {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .90rem;
  font-weight: 650;
  color: #1e293b;
  line-height: 1.28;
  transition: color .15s ease;
}

.mega-item:hover strong {
  color: #0f172a;
}

.mega-item small {
  display: block;
  font-size: .77rem;
  line-height: 1.38;
  color: #64748b;
  margin-top: .18rem;
  font-weight: 400;
}

.mega-badge-pill {
  font-size: .64rem;
  font-weight: 700;
  padding: .12rem .45rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.mega-badge-pill--core {
  background: rgba(16, 185, 129, .1);
  color: #059669;
  border-color: rgba(16, 185, 129, .25);
}

.mega-badge-pill--ai {
  background: linear-gradient(135deg, rgba(124, 58, 237, .12), rgba(236, 72, 153, .12));
  color: #7c3aed;
  border-color: rgba(124, 58, 237, .25);
}

/* Ícones suaves e coloridos inspirados no benchmark Railes */
.mega-item-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  transition: all .18s ease;
}

.mega-item:hover .mega-item-icon {
  transform: scale(1.06);
}

.mega-item-icon svg {
  width: 17px;
  height: 17px;
}

/* Cores temáticas por coluna para leitura visual imediata e elegante (Linha 1) */
.mega-row--4>.mega-col:nth-child(1) .mega-label>span:first-child::before {
  background: #2563eb;
}

.mega-row--4>.mega-col:nth-child(1) .mega-item-icon {
  background: rgba(59, 130, 246, 0.09);
  color: #2563eb;
}

.mega-row--4>.mega-col:nth-child(1) .mega-item:hover .mega-item-icon {
  background: #2563eb;
  color: #ffffff;
}

.mega-row--4>.mega-col:nth-child(2) .mega-label>span:first-child::before {
  background: #7c3aed;
}

.mega-row--4>.mega-col:nth-child(2) .mega-item-icon {
  background: rgba(124, 58, 237, 0.09);
  color: #7c3aed;
}

.mega-row--4>.mega-col:nth-child(2) .mega-item:hover .mega-item-icon {
  background: #7c3aed;
  color: #ffffff;
}

.mega-row--4>.mega-col:nth-child(3) .mega-label>span:first-child::before {
  background: #059669;
}

.mega-row--4>.mega-col:nth-child(3) .mega-item-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.mega-row--4>.mega-col:nth-child(3) .mega-item:hover .mega-item-icon {
  background: #059669;
  color: #ffffff;
}

.mega-row--4>.mega-col:nth-child(4) .mega-label>span:first-child::before {
  background: #d97706;
}

.mega-row--4>.mega-col:nth-child(4) .mega-item-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.mega-row--4>.mega-col:nth-child(4) .mega-item:hover .mega-item-icon {
  background: #d97706;
  color: #ffffff;
}

/* Cores temáticas por coluna (Linha 2) */
.mega-row--3>.mega-col:nth-child(1) .mega-label>span:first-child::before {
  background: #0284c7;
}

.mega-row--3>.mega-col:nth-child(1) .mega-item-icon {
  background: rgba(2, 132, 199, 0.09);
  color: #0284c7;
}

.mega-row--3>.mega-col:nth-child(1) .mega-item:hover .mega-item-icon {
  background: #0284c7;
  color: #ffffff;
}

.mega-row--3>.mega-col:nth-child(2) .mega-label>span:first-child::before {
  background: #8b5cf6;
}

.mega-row--3>.mega-col:nth-child(2) .mega-item-icon {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.mega-row--3>.mega-col:nth-child(2) .mega-item:hover .mega-item-icon {
  background: #8b5cf6;
  color: #ffffff;
}

.mega-row--3>.mega-col:nth-child(3) .mega-label>span:first-child::before {
  background: #4f46e5;
}

.mega-row--3>.mega-col:nth-child(3) .mega-item-icon {
  background: rgba(79, 70, 229, 0.09);
  color: #4f46e5;
}

.mega-row--3>.mega-col:nth-child(3) .mega-item:hover .mega-item-icon {
  background: #4f46e5;
  color: #ffffff;
}

/* ── Rail em destaque: Inteligência & Mobilidade (AI Native) ── */
.mega-rail {
  flex: 0 0 270px;
  background: linear-gradient(175deg, #0f172a 0%, #1e1b4b 60%, #172554 100%);
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(226, 232, 240, 0.8);
}

.mega-rail::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -20%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.mega-rail .mega-label {
  display: flex;
  color: #e2e8f0;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.5;
  padding-bottom: .6rem;
  margin-bottom: .8rem;
}

.mega-rail .mega-label>span:first-child {
  display: inline-flex;
}

.mega-rail .mega-label>span:first-child::before {
  background: #a855f7;
}

.mega-label-badge {
  display: inline-block;
  margin-left: .4rem;
  vertical-align: middle;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
  font-size: .62rem;
  padding: .12rem .48rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .05em;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  flex-shrink: 0;
}

.mega-rail .mega-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 0 .55rem;
  padding: .7rem .8rem;
  border-radius: 12px;
}

.mega-rail .mega-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateX(3px);
}

.mega-rail .mega-item strong {
  font-size: .90rem;
  color: #f8fafc;
}

.mega-rail .mega-item small {
  font-size: .77rem;
  line-height: 1.38;
  color: #94a3b8;
}

.mega-rail .mega-item-icon {
  width: 34px;
  height: 34px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #c084fc;
}

.mega-rail .mega-item-icon svg {
  width: 17px;
  height: 17px;
}

.mega-rail .mega-item:hover .mega-item-icon {
  background: #8b5cf6;
  color: #fff;
  border-color: #a855f7;
}

/* ── Floating Siri / AI Luminous Orb (Erupção Solar & Alta Energia) ── */
.siri-orb-stage {
  position: relative;
  width: 100%;
  height: 130px;
  margin-top: auto;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: transparent;
}

.siri-orb {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: siriOrbHover 4s ease-in-out infinite alternate;
}

/* Corona solar incandescente / halo de alta energia */
.siri-orb-corona {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, rgba(168, 85, 247, 0.5) 40%, rgba(56, 189, 248, 0.3) 70%, transparent 85%);
  filter: blur(8px);
  mix-blend-mode: screen;
  animation: siriCoronaBreath 2.8s ease-in-out infinite alternate;
  z-index: 1;
}

/* Núcleo escuro esférico profundo */
.siri-orb-core {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(139, 92, 246, 0.4) 0%, rgba(10, 15, 35, 0.96) 55%, #030712 100%);
  box-shadow:
    inset 0 0 16px rgba(236, 72, 153, 0.6),
    inset 0 0 28px rgba(168, 85, 247, 0.5),
    inset 0 0 40px rgba(56, 189, 248, 0.4);
  z-index: 2;
}

/* Erupções de plasma / Solar Flares que emergem do perímetro */
.siri-flare {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 4;
}

.siri-flare-1 {
  width: 50px;
  height: 25px;
  top: -6px;
  right: 12px;
  background: radial-gradient(ellipse, #f43f5e 0%, #ec4899 50%, transparent 80%);
  filter: blur(4px) drop-shadow(0 0 12px #ec4899);
  transform: rotate(25deg);
  animation: flareBurst1 3.2s ease-in-out infinite alternate;
}

.siri-flare-2 {
  width: 55px;
  height: 28px;
  bottom: -4px;
  left: 8px;
  background: radial-gradient(ellipse, #38bdf8 0%, #818cf8 60%, transparent 85%);
  filter: blur(4px) drop-shadow(0 0 14px #38bdf8);
  transform: rotate(-35deg);
  animation: flareBurst2 4.1s ease-in-out infinite alternate;
}

.siri-flare-3 {
  width: 35px;
  height: 35px;
  left: -8px;
  top: 30%;
  background: radial-gradient(circle, #e879f9 0%, #c084fc 60%, transparent 80%);
  filter: blur(5px) drop-shadow(0 0 16px #e879f9);
  animation: flareBurst3 3.6s ease-in-out infinite alternate;
}

.siri-flare-4 {
  width: 40px;
  height: 22px;
  right: -6px;
  bottom: 25%;
  background: radial-gradient(ellipse, #a855f7 0%, #3b82f6 60%, transparent 85%);
  filter: blur(4px) drop-shadow(0 0 12px #a855f7);
  animation: flareBurst4 4.8s ease-in-out infinite alternate;
}

/* Anéis luminosos / fitas de luz 3D ultra-brilhantes */
.siri-orb-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 5;
}

.siri-orb-ring-1 {
  border: 3.5px solid transparent;
  border-top-color: #f43f5e;
  border-right-color: #ec4899;
  border-bottom-color: #c084fc;
  filter: drop-shadow(0 0 10px #f43f5e) drop-shadow(0 0 20px #ec4899) drop-shadow(0 0 32px #c084fc);
  animation: siriSpin3D1 4.5s linear infinite;
}

.siri-orb-ring-2 {
  inset: -6px;
  border: 3px solid transparent;
  border-left-color: #38bdf8;
  border-top-color: #06b6d4;
  border-bottom-color: #818cf8;
  filter: drop-shadow(0 0 12px #38bdf8) drop-shadow(0 0 24px #06b6d4) drop-shadow(0 0 35px #818cf8);
  animation: siriSpin3D2 6.5s linear infinite reverse;
}

.siri-orb-ring-3 {
  inset: -10px;
  border: 2px dashed transparent;
  border-bottom-color: #fb7185;
  border-right-color: #a855f7;
  border-left-color: #38bdf8;
  filter: drop-shadow(0 0 14px #fb7185) drop-shadow(0 0 26px #a855f7);
  animation: siriSpin3D3 8s ease-in-out infinite alternate;
}

/* Aura exterior viva com grande irradiação solar */
.siri-orb-glow {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35) 0%, rgba(168, 85, 247, 0.45) 30%, rgba(56, 189, 248, 0.3) 60%, transparent 75%);
  filter: blur(18px);
  mix-blend-mode: screen;
  animation: siriAuraPulse 2.5s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes siriOrbHover {
  0% {
    transform: translateY(4px) scale(0.97);
  }

  100% {
    transform: translateY(-6px) scale(1.03);
  }
}

@keyframes siriCoronaBreath {
  0% {
    transform: scale(0.92);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes flareBurst1 {
  0% {
    transform: translate(0, 0) scale(0.8) rotate(20deg);
    opacity: 0.6;
  }

  50% {
    transform: translate(6px, -4px) scale(1.35) rotate(35deg);
    opacity: 1;
  }

  100% {
    transform: translate(-2px, 2px) scale(0.9) rotate(15deg);
    opacity: 0.7;
  }
}

@keyframes flareBurst2 {
  0% {
    transform: translate(0, 0) scale(0.9) rotate(-30deg);
    opacity: 0.7;
  }

  50% {
    transform: translate(-8px, 6px) scale(1.4) rotate(-45deg);
    opacity: 1;
  }

  100% {
    transform: translate(3px, -2px) scale(0.85) rotate(-25deg);
    opacity: 0.65;
  }
}

@keyframes flareBurst3 {
  0% {
    transform: scale(0.85);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.4) translate(-4px, -2px);
    opacity: 0.95;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

@keyframes flareBurst4 {
  0% {
    transform: scale(0.8);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.3) translate(5px, 3px);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

@keyframes siriSpin3D1 {
  0% {
    transform: rotateX(65deg) rotateY(25deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(65deg) rotateY(25deg) rotateZ(360deg);
  }
}

@keyframes siriSpin3D2 {
  0% {
    transform: rotateX(-50deg) rotateY(60deg) rotateZ(0deg);
  }

  100% {
    transform: rotateX(-50deg) rotateY(60deg) rotateZ(360deg);
  }
}

@keyframes siriSpin3D3 {
  0% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(0deg) scale(0.96);
  }

  50% {
    transform: rotateX(55deg) rotateY(35deg) rotateZ(180deg) scale(1.12);
  }

  100% {
    transform: rotateX(35deg) rotateY(-45deg) rotateZ(360deg) scale(0.96);
  }
}

@keyframes siriAuraPulse {
  0% {
    opacity: 0.65;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1.18);
  }
}

.mega-rail-footer {
  position: relative;
  margin-top: 0;
  padding-top: .85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mega-rail-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 750;
  color: #fff;
  padding: .3rem .1rem;
  transition: gap .15s ease, color .15s ease;
}

.mega-rail-cta:hover {
  gap: .75rem;
  color: #e9d5ff;
}

/* ── Drop-menu simples ──────────────────────────────────────────── */
.drop-menu {
  min-width: 220px;
  padding: .5rem;
}

.drop-item {
  display: flex;
  gap: .7rem;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: .55rem .7rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 500;
  transition: background .12s;
}

.drop-item:hover {
  background: var(--soft);
}

.drop-item>span:first-child {
  font-size: 1.1rem;
}

/* ── Mega-menu Indústrias (reutiliza .mega-*, com largura e rail próprios) ── */
.mega-menu--industries { width: min(1140px, calc(100vw - 2 * clamp(1rem, 4vw, 3.75rem))); }
.mega-menu--industries .mega-groups { justify-content: center; }
.mega-menu--industries .mega-row--4 { row-gap: 1.2rem; }

/* Cor da 4.ª coluna nas indústrias: âmbar suave (materiais naturais) */
.mega-menu--industries .mega-row--4>.mega-col:nth-child(4) .mega-label>span:first-child::before { background: #b45309; }
.mega-menu--industries .mega-row--4>.mega-col:nth-child(4) .mega-item-icon { background: rgba(180, 83, 9, .09); color: #b45309; }
.mega-menu--industries .mega-row--4>.mega-col:nth-child(4) .mega-item:hover .mega-item-icon { background: #b45309; color: #fff; }

.mega-rail--industries { flex-basis: 290px; gap: .9rem; }
.mega-rail--industries .mega-label { margin-bottom: 0; }

.ind-rail-card {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  color: #fff;
}

.ind-rail-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.ind-rail-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, .05) 20%, rgba(15, 23, 42, .92) 100%);
}

.ind-rail-card:hover img { transform: scale(1.05); }

.ind-rail-card-copy {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .8rem;
  z-index: 1;
  display: grid;
  gap: .25rem;
}

.ind-rail-card-copy strong { font-size: .92rem; line-height: 1.3; color: #fff; }
.ind-rail-card-copy small { font-size: .74rem; line-height: 1.4; color: #cbd5e1; }

.ind-rail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }

.ind-rail-stats > span {
  display: grid;
  justify-items: center;
  padding: .55rem .3rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .68rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.ind-rail-stats b { font-size: 1.15rem; font-weight: 800; color: #c4b5fd; line-height: 1.2; }

.ind-rail-cases { font-size: .72rem; color: #94a3b8; }
.ind-rail-cases > span { text-transform: uppercase; font-weight: 700; color: #cbd5e1; }
.ind-rail-cases p { margin: .25rem 0 0; color: #e2e8f0; font-size: .78rem; line-height: 1.45; }

.ind-rail-links { margin-top: auto; display: grid; gap: .2rem; }
.ind-rail-link { font-size: .78rem; color: #a5b4fc; text-decoration: none; padding: .1rem; }
.ind-rail-link:hover { color: #fff; text-decoration: underline; }

/* ── Responsivo: mobile ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .mega-menu {
    width: min(96vw, calc(100vw - 1.5rem));
    right: 1rem;
  }

  .mega-row--4,
  .mega-row--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .mega-rail {
    flex-basis: 240px;
  }
}

@media (max-width: 920px) {
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .brand {
    position: relative;
    z-index: 1002;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    background: transparent;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    padding: 0;
    transition: border-color 0.2s;
  }

  .menu-toggle:hover {
    border-color: #94a3b8;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 1.15rem;
    height: 2px;
    margin: 2.5px auto;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.2s ease;
    transform-origin: center;
  }

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

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* Drawer Mobile em tela cheia limpa, fundo branco */
  .site-nav {
    position: fixed !important;
    inset: 0 !important;
    top: 4.6rem !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: calc(100vh - 4.6rem) !important;
    height: calc(100dvh - 4.6rem) !important;
    display: none;
    padding: 0.5rem 1.25rem 2.5rem;
    background: #ffffff;
    align-items: stretch;
    flex-direction: column;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior-y: contain;
    z-index: 1001;
    gap: 0;
    border: none;
    box-shadow: none;
  }

  .site-nav.is-open {
    display: flex !important;
  }

  /* Impede o fundo da página de rolar quando o menu mobile está aberto */
  body.menu-locked {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
  }

  body.menu-locked .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #ffffff !important;
  }

  /* Linhas de acordeão elegantes e minimalistas com borda inferior */
  .nav-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .nav-item.is-open {
    border-color: #f1f5f9;
    box-shadow: none;
  }

  .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 0.25rem;
    background: transparent !important;
    border: none;
    cursor: pointer;
    text-align: left;
  }

  .nav-link--direct {
    background: transparent !important;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    box-shadow: none;
    text-decoration: none;
    padding: 1.15rem 0.25rem;
  }

  .has-dropdown>.nav-link::after {
    display: none !important;
  }

  .nav-link-content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav-link-title {
    font-size: 1.12rem;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  .nav-link-sub {
    display: none !important;
  }

  .nav-link-arrow {
    display: flex !important;
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.2s ease;
  }

  .nav-link-arrow svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
  }

  .has-dropdown.is-open>.nav-link .nav-link-arrow {
    transform: rotate(180deg);
    background: transparent;
    color: #0f172a;
  }

  .has-dropdown.is-open>.nav-link .nav-link-title {
    color: #0f172a;
  }

  /* Submenus em Mobile - Acordeão limpo e fluido */
  .mega-menu,
  .drop-menu {
    position: static;
    display: none;
    opacity: 1 !important;
    pointer-events: all !important;
    transform: none !important;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0 1.25rem;
    max-height: none;
    overflow: visible;
  }

  .has-dropdown.is-open .mega-menu,
  .has-dropdown.is-open .drop-menu {
    display: block !important;
  }

  .mega-menu-inner {
    flex-direction: column;
    background: transparent;
    padding: 0;
  }

  .mega-groups {
    padding: 0;
    gap: 1.25rem;
  }

  .mega-row--4,
  .mega-row--3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 0;
    border-top: 0;
  }

  .mega-col {
    padding: 0;
    border-right: 0 !important;
    border-bottom: none;
  }

  /* Etiquetas de categoria (FUNCIONALIDADES, TECNOLOGIA, etc.) */
  .mega-label {
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    color: #94a3b8;
    text-transform: uppercase;
    padding-bottom: 0.4rem;
    margin-bottom: 0.35rem;
    border-bottom: none;
  }

  /* Linhas de módulos no acordeão com ícones em caixa suave */
  .mega-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: transparent;
    border: none;
    padding: 0.55rem 0.2rem;
    margin: 0;
    border-radius: 8px;
    box-shadow: none;
    text-decoration: none;
    transition: background 0.15s ease;
  }

  .mega-item:active {
    background: #f8fafc;
  }

  .mega-item-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    flex-shrink: 0;
  }

  .mega-item-icon svg {
    width: 18px;
    height: 18px;
  }

  /* Cores de ícones por contexto para replicar o design de referência */
  .mega-col:nth-child(1) .mega-item:nth-child(2) .mega-item-icon { background: #eff6ff; color: #2563eb; }
  .mega-col:nth-child(1) .mega-item:nth-child(3) .mega-item-icon { background: #faf5ff; color: #9333ea; }
  .mega-col:nth-child(1) .mega-item:nth-child(4) .mega-item-icon { background: #f0fdf4; color: #16a34a; }
  .mega-col:nth-child(1) .mega-item:nth-child(5) .mega-item-icon { background: #fff7ed; color: #ea580c; }

  .mega-col:nth-child(2) .mega-item .mega-item-icon { background: #f8fafc; color: #64748b; }
  .mega-col:nth-child(3) .mega-item .mega-item-icon { background: #eff6ff; color: #3b82f6; }

  .mega-item strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .mega-item small {
    display: none;
  }

  /* Secção de Inteligência AI Native colocada no final do acordeão conforme solicitado */
  .mega-rail {
    order: 10;
    flex-basis: auto;
    border-radius: 20px;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding: 1.35rem 1.15rem;
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 16px 36px -8px rgba(124, 58, 237, 0.28);
    background: linear-gradient(175deg, #090d16 0%, #17153a 50%, #0d1222 100%);
  }

  .mega-rail .mega-label {
    color: #ffffff;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

  .mega-rail .mega-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.5rem;
  }

  .mega-rail .mega-item strong {
    color: #ffffff;
    font-size: 0.9rem;
  }

  .mega-rail .mega-item small {
    display: block;
    color: #94a3b8;
    font-size: 0.74rem;
    margin-top: 0.15rem;
  }

  .mega-rail .mega-item-icon {
    background: rgba(124, 58, 237, 0.25);
    color: #c084fc;
  }

  .siri-orb-stage {
    height: 110px;
    margin: 0.6rem 0 0.4rem;
  }

  .siri-orb {
    width: 82px;
    height: 82px;
  }

  /* Dropdown simples (Indústrias, Empresa) */
  .drop-menu {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.25rem 0 0.75rem 0.5rem;
  }

  .drop-item {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 0.2rem;
    font-size: 0.95rem;
    font-weight: 550;
    color: #334155;
  }

  .drop-item:active {
    color: var(--purple);
  }

  /* Botão CTA estilo Marcar Demo / Avaliar Potencial */
  .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.95rem 1.25rem !important;
    border-radius: 10px !important;
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
    background: #1e3a8a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
    letter-spacing: -0.01em;
  }

  .language-switcher {
    width: 100%;
    justify-content: center;
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: none;
  }

  .language-switcher button {
    flex: 1;
    min-height: 2.2rem;
    border-radius: 8px;
    font-weight: 700;
  }

  /* ══ Componente AI Native no fundo do menu mobile (Dark Premium) ══ */
  .mobile-ai-card {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 auto;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 1.4rem 1.15rem 1.25rem;
    border-radius: 22px;
    background: linear-gradient(175deg, #090d16 0%, #17153a 50%, #0d1222 100%);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 0 16px 36px -8px rgba(124, 58, 237, 0.3), 0 4px 12px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
  }

  .mobile-ai-card::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -25%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    pointer-events: none;
  }

  .mobile-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
  }

  .mobile-ai-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #e2e8f0;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mobile-ai-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
    flex-shrink: 0;
  }

  .mobile-ai-pill {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
  }

  .mobile-ai-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
    z-index: 2;
  }

  .mobile-ai-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
  }

  .mobile-ai-item:active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
  }

  .mobile-ai-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.22);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    flex-shrink: 0;
  }

  .mobile-ai-icon svg {
    width: 18px;
    height: 18px;
  }

  .mobile-ai-info {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
  }

  .mobile-ai-info strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
  }

  .mobile-ai-info span {
    font-size: 0.74rem;
    font-weight: 450;
    color: #94a3b8;
    line-height: 1.35;
  }

  .mobile-ai-card .siri-orb-stage {
    height: 120px;
    margin: 0.85rem 0 0.5rem;
  }

  .mobile-ai-card .siri-orb {
    width: 86px;
    height: 86px;
  }

  .mobile-ai-footer {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
  }

  .mobile-ai-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 750;
    padding: 0.35rem 0.2rem;
    transition: color 0.15s ease;
  }

  .mobile-ai-cta span:last-child {
    font-size: 1.1rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 1rem;
  }

  .brand small {
    display: none;
  }
}
