/* =========================================================
   LOOPING TECNOLOGIA — PÁGINA ERP CONFEITEIROS
   Estilos específicos desta página.
   Mantém o style.css global intacto.
========================================================= */

.page-erp {
  background:
    radial-gradient(circle at 12% 6%, rgba(245, 158, 11, 0.16), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(107, 91, 255, 0.22), transparent 30%),
    radial-gradient(circle at 50% 86%, rgba(66, 184, 255, 0.1), transparent 35%),
    linear-gradient(135deg, #070814 0%, #10142b 45%, #080a16 100%);
}

/* ==============================
   HERO
============================== */

.erp-hero {
  min-height: 100vh;
  padding: calc(var(--header-height) + 74px) 0 96px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.erp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(2.3rem, 5vw, 5rem);
}

.erp-hero-copy {
  position: relative;
  z-index: 2;
}

.erp-hero-copy h1 {
  margin-top: 1.3rem;
}

.erp-hero-copy p {
  max-width: 700px;
  margin-top: 1.4rem;
  font-size: 1.1rem;
}

.erp-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.erp-hero-metrics span {
  display: grid;
  gap: 0.1rem;
  min-height: 86px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(16px);
}

.erp-hero-metrics strong {
  color: #fff;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
}

.erp-hero-showcase {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 1200px;
}

.erp-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
  opacity: 0.9;
  animation: erpPulse 6s ease-in-out infinite;
}

.erp-orb-one {
  width: 320px;
  height: 320px;
  left: -20px;
  top: 70px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.24), transparent 68%);
}

.erp-orb-two {
  width: 420px;
  height: 420px;
  right: -100px;
  bottom: 30px;
  background: radial-gradient(circle, rgba(107, 91, 255, 0.36), transparent 66%);
  animation-delay: 1.2s;
}

.erp-hero-desktop {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  transform: rotateX(3deg) rotateY(-8deg);
  animation: erpFloat 7s ease-in-out infinite;
}

.erp-hero-phone {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 26px;
  animation: erpFloat 6s ease-in-out infinite;
  animation-delay: 0.9s;
}

.erp-floating-note {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 220px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.erp-floating-note i {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.erp-note-one {
  left: 2%;
  top: 82px;
  animation: erpFloatSmall 5.4s ease-in-out infinite;
}

.erp-note-two {
  right: 18%;
  top: 10px;
  animation: erpFloatSmall 5.8s ease-in-out infinite;
  animation-delay: 1s;
}

/* ==============================
   MOCKUPS
============================== */

.erp-device {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.055)),
    rgba(11, 14, 31, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.erp-device::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 12%, rgba(255,255,255,.16) 24%, transparent 38%);
  transform: translateX(-120%);
  animation: erpShine 7s ease-in-out infinite;
}

.erp-device-desktop {
  width: min(100%, 620px);
  border-radius: 30px;
}

.erp-device-phone {
  width: 178px;
  min-height: 354px;
  border-radius: 32px;
  padding: 0.8rem;
}

.erp-device-label {
  position: absolute;
  z-index: 4;
  left: 1rem;
  top: 0.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.erp-device-bar {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.erp-device-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.erp-phone-notch {
  width: 58px;
  height: 6px;
  border-radius: 999px;
  margin: 0 auto 0.65rem;
  background: rgba(255, 255, 255, 0.28);
}

.erp-screen {
  position: relative;
  display: grid;
  place-items:center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 158, 11, 0.22), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(66, 184, 255, 0.16), transparent 30%),
    rgba(7, 9, 20, 0.72);
}

.erp-device-desktop .erp-screen {
  min-height: 350px;
  margin: 1rem;
  border-radius: 24px;
}

.erp-device-phone .erp-screen {
  min-height: 318px;
  border-radius: 24px;
}

.erp-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.erp-screen-placeholder {
  text-align: center;
  padding: 1.2rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.erp-screen-placeholder i {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.85rem;
  border-radius: 20px;
  color: #fff;
  font-size: 1.45rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 38px rgba(107, 91, 255, 0.26);
}

.erp-screen-placeholder strong {
  display: block;
  max-width: 340px;
  color: #fff;
  font-family: "Sora", "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.erp-screen-placeholder small {
  display: block;
  max-width: 320px;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.erp-device-phone .erp-screen-placeholder strong {
  font-size: 0.9rem;
}

.erp-device-phone .erp-screen-placeholder small {
  font-size: 0.76rem;
}

.erp-dashboard-preview {
  align-content: start;
  place-items: stretch;
  padding: 1.2rem;
}

.erp-dashboard-preview small,
.erp-phone-preview small {
  justify-self: center;
  align-self: end;
}

.erp-preview-topline {
  width: 58%;
  height: 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
  margin-bottom: 1rem;
}

.erp-preview-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.erp-preview-kpis span,
.erp-preview-layout div,
.erp-phone-preview span {
  display: block;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(107, 91, 255, 0.34), rgba(66, 184, 255, 0.14));
}

.erp-preview-kpis span {
  min-height: 76px;
}

.erp-preview-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 0.8rem;
  min-height: 150px;
}

.erp-phone-preview {
  align-content: start;
  gap: 0.75rem;
  padding: 1rem;
}

.erp-phone-preview span {
  width: 100%;
  min-height: 44px;
}

/* ==============================
   CONTEXTO / NAV
============================== */

.erp-context-section {
  overflow: hidden;
}

.erp-modules-overview {
  overflow: hidden;
}

.erp-module-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.erp-module-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.74rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: #fff;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.065);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.erp-module-nav a:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 91, 255, 0.48);
  background: rgba(107, 91, 255, 0.14);
}

.erp-module-nav i {
  color: var(--accent);
}

/* ==============================
   SEÇÕES DOS MÓDULOS
============================== */

.erp-module-section {
  overflow: hidden;
}

.erp-module-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.erp-module-row-reverse {
  grid-template-columns: minmax(420px, 1.18fr) minmax(0, 0.82fr);
}

.erp-module-row-reverse .erp-module-copy {
  order: 2;
}

.erp-module-copy h2 {
  margin-top: 1rem;
}

.erp-module-copy p {
  margin-top: 1rem;
  font-size: 1.02rem;
}

.erp-feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.3rem;
  list-style: none;
}

.erp-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted);
  font-weight: 700;
}

.erp-feature-list i {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  border-radius: 999px;
  color: #07101f;
  font-size: 0.74rem;
  background: var(--success);
}

.erp-mockup-pair {
  position: relative;
  min-height: 460px;
  display: grid;
  align-items: center;
  isolation: isolate;
}

.erp-mockup-pair .erp-device-desktop {
  position: relative;
  z-index: 2;
  transform: rotateX(2deg) rotateY(-4deg);
}

.erp-module-row-reverse .erp-mockup-pair .erp-device-desktop {
  transform: rotateX(2deg) rotateY(4deg);
}

.erp-mockup-pair .erp-device-phone {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 18px;
  animation: erpFloatSmall 6s ease-in-out infinite;
}

.erp-module-row-reverse .erp-mockup-pair .erp-device-phone {
  right: auto;
  left: 0;
}

.erp-module-section-clientes .erp-screen,
.erp-module-section-produtos .erp-screen,
.erp-module-section-financeiro .erp-screen,
.erp-module-section-fiscal .erp-screen {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}

.erp-module-section-clientes .erp-screen {
  background:
    radial-gradient(circle at 22% 20%, rgba(66, 184, 255, 0.22), transparent 34%),
    rgba(7, 9, 20, 0.72);
}

.erp-module-section-produtos .erp-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.2), transparent 34%),
    rgba(7, 9, 20, 0.72);
}

.erp-module-section-financeiro .erp-screen {
  background:
    radial-gradient(circle at 78% 20%, rgba(81, 227, 155, 0.18), transparent 34%),
    rgba(7, 9, 20, 0.72);
}

.erp-module-section-fiscal .erp-screen {
  background:
    radial-gradient(circle at 24% 18%, rgba(159, 99, 255, 0.22), transparent 34%),
    rgba(7, 9, 20, 0.72);
}

/* ==============================
   CARD FINAL
============================== */

.erp-real-examples-section {
  overflow: hidden;
}

.erp-real-card {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4.2rem);
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.15), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(107, 91, 255, 0.24), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.045));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.27);
  backdrop-filter: blur(18px);
}

.erp-real-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.15), transparent 70%);
  opacity: 0.55;
  transform: translateX(-90%);
  animation: erpShine 8s ease-in-out infinite;
}

.erp-real-card > * {
  position: relative;
  z-index: 1;
}

.erp-real-card .eyebrow {
  margin-inline: auto;
}

.erp-real-card h2 {
  max-width: 900px;
  margin: 1rem auto 0;
}

.erp-real-card p {
  max-width: 820px;
  margin: 1.1rem auto 0;
  font-size: 1.04rem;
}

/* ==============================
   ANIMAÇÕES
============================== */

@keyframes erpFloat {
  0%, 100% {
    transform: translateY(0) rotateX(3deg) rotateY(-8deg);
  }

  50% {
    transform: translateY(-14px) rotateX(3deg) rotateY(-5deg);
  }
}

@keyframes erpFloatSmall {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes erpPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes erpShine {
  0%, 48% {
    transform: translateX(-120%);
  }

  68%, 100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .erp-device,
  .erp-device::after,
  .erp-real-card::before,
  .erp-orb,
  .erp-floating-note,
  .erp-hero-desktop,
  .erp-hero-phone,
  .erp-mockup-pair .erp-device-phone {
    animation: none !important;
  }
}

/* ==============================
   RESPONSIVO
============================== */

@media (max-width: 1120px) {
  .erp-hero-grid,
  .erp-module-row,
  .erp-module-row-reverse {
    grid-template-columns: 1fr;
  }

  .erp-module-row-reverse .erp-module-copy {
    order: initial;
  }

  .erp-hero-showcase,
  .erp-mockup-pair {
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 820px) {
  .erp-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 54px);
  }

  .erp-hero-grid {
    gap: 2.5rem;
  }

  .erp-hero-metrics {
    grid-template-columns: 1fr;
  }

  .erp-hero-showcase,
  .erp-mockup-pair {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .erp-hero-desktop,
  .erp-mockup-pair .erp-device-desktop,
  .erp-module-row-reverse .erp-mockup-pair .erp-device-desktop {
    transform: none;
    animation: none;
  }

  .erp-hero-phone,
  .erp-mockup-pair .erp-device-phone,
  .erp-module-row-reverse .erp-mockup-pair .erp-device-phone {
    position: relative;
    right: auto;
    left: auto;
    bottom: auto;
    justify-self: center;
    animation: none;
  }

  .erp-floating-note,
  .erp-orb {
    display: none;
  }

  .erp-device-desktop .erp-screen {
    min-height: 270px;
  }

  .erp-device-phone {
    width: min(210px, 72vw);
  }

  .erp-module-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .erp-module-nav a {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .erp-device-desktop {
    border-radius: 24px;
  }

  .erp-device-bar {
    height: 46px;
  }

  .erp-device-desktop .erp-screen {
    min-height: 230px;
    margin: 0.75rem;
    border-radius: 20px;
  }

  .erp-screen-placeholder {
    padding: 1rem;
  }

  .erp-screen-placeholder i {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }

  .erp-module-nav {
    grid-template-columns: 1fr;
  }

  .erp-real-card {
    border-radius: 24px;
  }
}

.imagem-celular-inicio {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}

/* ==============================
   PRINTS DESKTOP — PREENCHER MOCKUP
   Não altera os mockups mobile
============================== */

.erp-device-desktop .erp-screen-placeholder {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
  display: block;
  width: 96%;
}

/* Só imagens dentro de mockups desktop */
.erp-device-desktop .erp-screen-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: fill;
  object-position: top center;
}