/* =============================================================================
   Infinoos WMS — estilos específicos da página (usa css/base.css)
   ========================================================================== */

:root, [data-theme="dark"], [data-theme="light"] {
  /* o WMS usa o degradê de 2 paradas da arte original (sem o meio-tom azul) */
  --gradient-hero: linear-gradient(135deg, #3BB8FF 0%, #8B5CF6 100%);
  /* o foco de luz dos cards usa o roxo (--brand-2) em vez do azul padrão */
  --spot-color: rgba(139, 92, 246, 0.28);
}

/* -------------------------------------------- animações específicas do WMS -- */
@keyframes binPulse {
  0%, 100% { opacity: .25; box-shadow: none; }
  12% { opacity: 1; box-shadow: 0 0 12px rgba(139, 92, 246, 0.8); }
  30% { opacity: .25; box-shadow: none; }
}
@keyframes wmsScanSweep { 0% { top: 6%; } 50% { top: 88%; } 100% { top: 6%; } }
@keyframes wmsAuroraDrift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.12); } }
@keyframes agvMove {
  0% { transform: translate(-40px, 60px); }
  45% { transform: translate(220px, -56px); }
  50% { transform: translate(220px, -56px); }
  95% { transform: translate(-40px, 60px); }
  100% { transform: translate(-40px, 60px); }
}
@keyframes shelfBlink { 0%, 100% { opacity: .35; } 20%, 80% { opacity: 1; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hologramFlicker { 0%, 100% { opacity: .85; } 47% { opacity: .6; } 52% { opacity: 1; } }
@keyframes wmsRingSpin { to { transform: rotate(360deg); } }
@keyframes wmsPulseRing { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ----------------------------------------------------------------- hero -- */
.wms-hero { position: relative; overflow: hidden; padding: 80px 32px 72px; }
.wms-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1100px 480px at 70% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(760px 380px at 8% 12%, rgba(59, 184, 255, 0.14), transparent 55%);
}
.wms-hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(900px 520px at 60% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 520px at 60% 20%, #000, transparent 75%);
}
.wms-hero__grid { position: relative; max-width: 1760px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 4vw, 72px); align-items: center; }
.wms-hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.wms-hero__copy h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; max-width: 16ch; }
.wms-hero__copy h1 .thin { font-weight: 100; }
.wms-hero__copy h1 strong { font-weight: 700; }
.wms-hero__lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--text-dim); max-width: 52ch; }
.wms-hero__chips { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.wms-hero__chip { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-dim); }
.wms-hero__chip span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 8px rgba(139, 92, 246, 0.8); flex-shrink: 0; }

/* mini-dashboard "mapa do armazém" */
.wms-hero__panel-wrap { position: relative; }
.wms-hero__panel {
  position: relative; background: #0D1B2E; border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.wms-hero__panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.wms-hero__panel-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.wms-hero__live { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.1em; color: #34D399; }
.wms-hero__live span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #34D399; animation: blinkC 1.6s step-end infinite; }
.wms-hero__map { position: relative; padding: 22px 20px 16px; }
.wms-hero__map-sweep {
  position: absolute; left: 0; right: 0; height: 2px; top: 6%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.9), transparent);
  animation: wmsScanSweep 7s ease-in-out infinite; pointer-events: none; z-index: 2;
}
.wms-bins { display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; }
.wms-bin { aspect-ratio: 1 / 1; border-radius: 5px; background: rgba(255, 255, 255, 0.14); }
.wms-bin.is-lit { background: #8B5CF6; animation: binPulse 6s linear infinite; }
.wms-hero__map-rows {
  display: flex; justify-content: space-between; margin-top: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; color: rgba(255, 255, 255, 0.35);
}
.wms-hero__feed { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.wms-hero__feed-row {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: rgba(255, 255, 255, 0.7);
  animation: feedIn .5s ease both;
}
.wms-hero__feed-row span:first-child { flex-shrink: 0; }
.wms-hero__panel-glow {
  position: absolute; top: -8%; right: -6%; width: 55%; height: 55%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
  filter: blur(50px); pointer-events: none;
}

/* seções que ocupam a tela cheia e centralizam o conteúdo, como na arte original */
.wms-fullsec { max-width: 1760px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.wms-modules-sec { padding: 64px 32px; }
.wms-ladder-sec { padding: 20px 32px 72px; }
.wms-app-sec { padding: 0 32px 72px; }
.wms-adv-sec { max-width: 1760px; margin: 0 auto; padding: 0 32px 80px; }

/* --------------------------------------------------------------- módulos -- */
.wms-modules__grid { max-width: 1760px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modcard {
  position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 13px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.modcard:hover { transform: translateY(-4px); border-color: var(--brand-2); box-shadow: 0 16px 40px rgba(139, 92, 246, 0.14); }
.modcard__icon { position: relative; color: var(--brand-2); display: flex; }
.modcard__titlerow { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.modcard__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.modcard__desc { position: relative; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.modcard__idx { position: absolute; top: 18px; right: 22px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-faint); }

/* ------------------------------------------------- escada de automação -- */
.wms-ladder-card { position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); border-radius: 26px; padding: clamp(32px, 4vw, 56px); }
.wms-ladder-card__aurora {
  position: absolute; top: -40%; right: -12%; width: 55%; height: 130%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 65%);
  filter: blur(50px); animation: wmsAuroraDrift 16s ease-in-out infinite; pointer-events: none;
}
.ladder { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.ladder__line { position: absolute; top: 23px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, #94a3b8, #60a5fa, #8B5CF6, #c084fc); z-index: 0; opacity: .6; }
.ladder__step { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ladder__n {
  width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 2px solid var(--lv);
  box-shadow: 0 0 16px var(--lv-glow);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; color: var(--lv);
}
.ladder__name { font-size: 14.5px; font-weight: 700; color: var(--lv); }
.ladder__desc { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

/* ------------------------------------------------------ app do operador -- */
.wms-app__grid { max-width: 1760px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 4vw, 72px); align-items: center; }
.wms-app__copy { display: flex; flex-direction: column; gap: 16px; }
.wms-app__copy h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.wms-app__copy > p { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-dim); line-height: 1.6; max-width: 56ch; }
.wms-app__feats { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.wms-app__feat { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; }
.wms-app__feat span:first-child { color: var(--brand-2); flex-shrink: 0; margin-top: 2px; font-size: 18px; }
.wms-app__feat span:last-child { color: var(--text); }

/* mockup de celular */
.wms-phone-wrap { display: flex; justify-content: center; }
.wms-phone {
  position: relative; width: min(100%, 380px); background: #0D1B2E;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 44px; padding: 18px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.5);
}
.wms-phone__notch { width: 108px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); margin: 2px auto 14px; }
.wms-phone__screen { background: #0A1424; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.07); }
.wms-phone__head {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px;
}
.wms-phone__head-title { letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.55); }
.wms-phone__head-count { color: #34D399; }
.wms-phone__scan {
  position: relative; height: 160px; margin: 18px 20px; border: 1.5px dashed rgba(139, 92, 246, 0.55);
  border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.wms-phone__barcode {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 34px; letter-spacing: 5px; color: rgba(255, 255, 255, 0.85);
}
.wms-phone__scan-sweep {
  position: absolute; left: 8px; right: 8px; height: 2px; top: 6%;
  background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
  animation: wmsScanSweep 3.2s ease-in-out infinite;
}
.wms-phone__rows { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
.wms-phone__row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px; padding: 14px 16px;
}
.wms-phone__row-sku { display: flex; flex-direction: column; gap: 3px; }
.wms-phone__row-sku strong { font-size: 14.5px; font-weight: 600; color: #fff; }
.wms-phone__row-sku small { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.wms-phone__row-status { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 700; }

/* -------------------------------------------------------------- vantagens */
.wms-adv__grid { max-width: 1760px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.advcard {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px;
  padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .25s, box-shadow .25s;
}
.advcard:hover { border-color: var(--brand-2); box-shadow: 0 16px 40px rgba(139, 92, 246, 0.12); }
.advcard__idx { position: relative; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; color: var(--brand-2); }
.advcard__title { position: relative; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.advcard__desc { position: relative; font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ------------------------------------------------------------- cta final -- */
.wms-cta { max-width: 1760px; margin: 0 auto; padding: 0 32px 90px; }
.wms-cta__inner {
  position: relative; overflow: hidden; background: #0D1B2E; border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.wms-cta__grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.wms-cta__aurora { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.wms-cta__aurora--a { top: -30%; left: -10%; width: 65%; height: 120%; background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 65%); animation: wmsAuroraDrift 14s ease-in-out infinite; }
.wms-cta__aurora--b { bottom: -40%; right: -8%; width: 60%; height: 120%; background: radial-gradient(circle, rgba(59, 184, 255, 0.32), transparent 65%); animation: wmsAuroraDrift 17s ease-in-out infinite reverse; }
.wms-cta__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.wms-cta__eyebrow { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #c084fc; }
.wms-cta__cursor { display: inline-block; width: 8px; height: 13px; background: #c084fc; margin-left: 8px; vertical-align: middle; animation: blinkC 1.1s step-end infinite; }
.wms-cta__h2 { font-size: clamp(28px, 3.8vw, 50px); font-weight: 700; color: #fff; letter-spacing: -0.03em; max-width: 20ch; line-height: 1.08; }
.wms-cta__sub { font-size: clamp(15px, 1.15vw, 17px); color: rgba(255, 255, 255, 0.75); max-width: 56ch; line-height: 1.6; }
.wms-cta__btn {
  margin-top: 8px; font-weight: 700; font-size: 15px; padding: 16px 34px; border-radius: 999px;
  background: #fff; color: var(--navy); box-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.wms-cta__btn:hover { color: var(--navy); transform: scale(1.08); box-shadow: 0 0 46px rgba(139, 92, 246, 0.7); }

.wms-cta__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.wms-cta__visual-glow {
  position: absolute; width: 78%; aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 65%);
  filter: blur(30px); animation: floatY 6s ease-in-out infinite;
}
.wms-hologram { position: relative; width: min(100%, 560px); height: auto; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)); animation: hologramFlicker 5s ease-in-out infinite; }
.wms-hologram .ring-spin { animation: wmsRingSpin 9s linear infinite; transform-origin: 0 0; }
.wms-hologram .shelf-a1 { animation: shelfBlink 3.2s ease-in-out infinite; }
.wms-hologram .shelf-a2 { animation: shelfBlink 3.2s .5s ease-in-out infinite; }
.wms-hologram .shelf-a3 { animation: shelfBlink 3.2s 1s ease-in-out infinite; }
.wms-hologram .shelf-b1 { animation: shelfBlink 3.4s .2s ease-in-out infinite; }
.wms-hologram .shelf-b2 { animation: shelfBlink 3.4s .7s ease-in-out infinite; }
.wms-hologram .shelf-b3 { animation: shelfBlink 3.4s 1.2s ease-in-out infinite; }
.wms-hologram .shelf-c1 { animation: shelfBlink 3.6s .3s ease-in-out infinite; }
.wms-hologram .shelf-c2 { animation: shelfBlink 3.6s .9s ease-in-out infinite; }
.wms-hologram .shelf-c3 { animation: shelfBlink 3.6s 1.4s ease-in-out infinite; }
.wms-hologram .shelf-d1 { animation: shelfBlink 3.8s .1s ease-in-out infinite; }
.wms-hologram .shelf-d2 { animation: shelfBlink 3.8s .6s ease-in-out infinite; }
.wms-hologram .shelf-d3 { animation: shelfBlink 3.8s 1.1s ease-in-out infinite; }
.wms-hologram .agv { animation: agvMove 8s ease-in-out infinite; transform-origin: 0 0; }
.wms-hologram .pkg-a { animation: floatY 5s ease-in-out infinite; transform-origin: 0 0; }
.wms-hologram .pkg-b { animation: floatY 6s .8s ease-in-out infinite; transform-origin: 0 0; }
.wms-hologram .pulse-ring { animation: wmsPulseRing 2.4s ease-out infinite; transform-origin: 0 0; }

/* ------------------------------------------------------- rodapé (accent) -- */
.newsgrid input:focus { border-color: #8B5CF6; }
.newsgrid button { background: #8B5CF6; }
.footgridhome__lead h2 em { color: #8B5CF6; }

/* ------------------------------------------------------------ responsivo -- */
@media (max-width: 1024px) {
  .wms-hero__grid { grid-template-columns: 1fr; }
  .wms-modules__grid { grid-template-columns: repeat(2, 1fr); }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .ladder__line { display: none; }
  .wms-adv__grid { grid-template-columns: 1fr; }
  .wms-app__grid { grid-template-columns: 1fr; }
  .wms-cta__inner { grid-template-columns: 1fr; }
  .wms-cta__visual { min-height: 280px; }
}
@media (max-width: 640px) {
  .wms-modules__grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: 1fr 1fr; }
  .wms-bins { grid-template-columns: repeat(8, 1fr); }
}
