/* WDM Foto — Página 404 com Lumi em destaque */
body.wdm-is-404 #wdm-lumi-widget {
  display: none !important;
}

.wdm-404-page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 38%, rgba(72, 110, 122, 0.28) 0%, rgba(72, 110, 122, 0.08) 34%, transparent 62%),
    radial-gradient(circle at 22% 78%, rgba(255, 105, 0, 0.14) 0%, transparent 48%),
    linear-gradient(135deg, #070a0d 0%, #0d151b 52%, #080808 100%);
  border-bottom: 1px solid #222;
}

.wdm-404-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.wdm-404-watermark {
  position: absolute;
  right: clamp(1rem, 4vw, 5rem);
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(13rem, 32vw, 31rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.035);
  -webkit-text-stroke: 2px rgba(72, 110, 122, 0.22);
  user-select: none;
}

.wdm-404-bokeh {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(72, 110, 122, 0.05) 60%, transparent 72%);
  box-shadow: 0 0 36px rgba(72, 110, 122, 0.16);
}

.wdm-404-bokeh.b1 {
  width: clamp(90px, 11vw, 170px);
  height: clamp(90px, 11vw, 170px);
  right: 36%;
  top: 10%;
}

.wdm-404-bokeh.b2 {
  width: clamp(54px, 6.5vw, 100px);
  height: clamp(54px, 6.5vw, 100px);
  right: 8%;
  top: 16%;
  border-color: rgba(255, 105, 0, 0.28);
}

.wdm-404-bokeh.b3 {
  width: clamp(70px, 8vw, 130px);
  height: clamp(70px, 8vw, 130px);
  right: 43%;
  bottom: 14%;
}

.wdm-404-shell {
  position: relative;
  width: min(calc(100% - 5vw), 1440px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: 0;
}

.wdm-404-copy {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  max-width: 640px;
}

.wdm-404-brand {
  margin-bottom: 1.75rem;
}

.wdm-404-brand .brand img {
  height: 64px;
  max-height: 64px;
  width: auto;
}

.wdm-404-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #ff8b3d;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.wdm-404-eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: #ff6900;
}

.wdm-404-title {
  margin: 0 0 1rem;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(3.4rem, 6.4vw, 6.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: #f7f7f5;
}

.wdm-404-title span {
  color: #ff6900;
}

.wdm-404-lead {
  color: #d6dde0;
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  line-height: 1.65;
  margin: 0 0 1.2rem;
  max-width: 54ch;
}

.wdm-404-path {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  margin-bottom: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(72, 110, 122, 0.45);
  border-left: 3px solid #ff6900;
  color: #b9c9cf;
  font-size: 0.84rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wdm-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.2rem;
}

.wdm-404-card {
  background: rgba(16, 22, 27, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.25rem 1.35rem;
  position: relative;
}

.wdm-404-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff6900 0%, #486e7a 65%, transparent 100%);
}

.wdm-404-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.wdm-404-card-head strong {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.wdm-404-card-head span {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8faab3;
}

.wdm-404-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.wdm-404-quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #e4eaec;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.wdm-404-quicklink:hover {
  border-color: #ff6900;
  background: rgba(255, 105, 0, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.wdm-404-quicklink span {
  color: #ff8b3d;
  font-weight: 800;
}

.wdm-404-visual {
  position: relative;
  z-index: 2;
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: clamp(460px, 84svh, 860px);
  padding-top: 2rem;
  pointer-events: none;
}

.wdm-404-glow {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 110, 122, 0.42) 0%, rgba(255, 105, 0, 0.16) 44%, transparent 72%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.wdm-404-lumi-stage {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: end center;
  animation: wdmLumiFloat 5.5s ease-in-out infinite;
  pointer-events: none;
}

.wdm-404-lumi {
  display: block;
  width: auto;
  max-width: min(100%, 660px);
  max-height: clamp(560px, 92svh, 920px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}

.wdm-404-lumi-body {
  position: relative;
  z-index: 2;
}

.wdm-404-lumi-tail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-origin: 70.8% 85.5%;
  animation: wdmLumiTailSway 3.6s ease-in-out infinite;
}

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

@keyframes wdmLumiTailSway {
  0%, 100% {
    transform: rotate(-3.5deg);
  }
  50% {
    transform: rotate(4.5deg);
  }
}

@media (max-width: 980px) {
  .wdm-404-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .wdm-404-visual {
    order: -1;
    min-height: 360px;
    margin-top: 0;
    z-index: 2;
  }

  .wdm-404-lumi {
    max-height: 440px;
  }

  .wdm-404-copy {
    max-width: 100%;
    padding-bottom: 3rem;
  }

  .wdm-404-watermark {
    right: 50%;
    top: 22%;
    transform: translate(50%, -50%);
    font-size: clamp(10rem, 42vw, 18rem);
  }
}

@media (max-width: 560px) {
  .wdm-404-links {
    grid-template-columns: 1fr;
  }

  .wdm-404-actions .btn {
    width: 100%;
  }

  .wdm-404-lumi {
    max-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wdm-404-lumi-stage,
  .wdm-404-lumi-tail {
    animation: none;
  }
}
