/* ==========================================================================
   Esense Automação — landing page temporária
   ========================================================================== */

:root {
  --bg-black: #0a0a0a;
  --ink: #f5f4f2;
  --ink-dim: rgba(245, 244, 242, 0.72);
  --ink-faint: rgba(245, 244, 242, 0.46);
  --hairline: rgba(245, 244, 242, 0.22);
  --slide-duration: 9s;
  --fade-duration: 2.2s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-black);
  color: var(--ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
  width: 100vw;
  height: 100svh;
  height: 100dvh;
}

/* ---------- Slideshow ---------- */

.slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg-black);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
  animation: kenburns 36s ease-in-out infinite;
  transition: opacity var(--fade-duration) ease-in-out;
  will-change: opacity, transform;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

@keyframes kenburns {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
}

/* ---------- Overlays for legibility ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 90% 60% at 50% 52%, rgba(6,6,7,0.62) 0%, rgba(6,6,7,0.30) 45%, rgba(6,6,7,0.08) 70%),
    linear-gradient(180deg, rgba(4,4,5,0.62) 0%, rgba(4,4,5,0.12) 22%, rgba(4,4,5,0.10) 70%, rgba(4,4,5,0.66) 100%);
  pointer-events: none;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 min(18vw, 220px) rgba(0,0,0,0.55);
  pointer-events: none;
}

/* ---------- Content ---------- */

.content {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vh 6vw;
}

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

.logo {
  width: clamp(220px, 30vw, 420px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.55));
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
  margin-bottom: clamp(1.4rem, 3.2vh, 2.2rem);
}

.logo.logo-missing {
  width: clamp(220px, 30vw, 420px);
  height: clamp(120px, 16vw, 220px);
  border: 1px dashed var(--hairline);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: none;
  opacity: 0;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.subtitle {
  font-weight: 300;
  font-size: clamp(0.95rem, 1.9vw, 1.35rem);
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  max-width: 34ch;
  opacity: 0;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.social-btn {
  margin-top: clamp(1.8rem, 4vh, 2.8rem);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  border: 1px solid var(--hairline);
  border-radius: 50%;
  opacity: 0;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.95s forwards;
}

.social-btn svg {
  width: 20px;
  height: 20px;
}

.social-btn:hover,
.social-btn:focus-visible {
  color: var(--ink);
  border-color: rgba(245, 244, 242, 0.55);
  transform: translateY(-2px);
}

.status {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(1.6rem, 4vh, 3rem);
  z-index: 3;
  text-align: center;
  font-weight: 400;
  font-size: clamp(0.68rem, 1.1vw, 0.78rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: fadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
}

.status::before {
  content: '';
  display: block;
  width: 1px;
  height: clamp(20px, 4vh, 32px);
  margin: 0 auto clamp(0.9rem, 2vh, 1.2rem);
  background: linear-gradient(180deg, transparent, var(--hairline));
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .content {
    padding: 7vh 8vw;
  }

  .logo {
    width: clamp(200px, 62vw, 320px);
  }

  .subtitle {
    max-width: 26ch;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .logo { width: clamp(140px, 24vh, 220px); margin-bottom: 1rem; }
  .subtitle { font-size: clamp(0.8rem, 2vh, 1rem); }
  .social-btn { margin-top: 1rem; width: 36px; height: 36px; }
  .social-btn svg { width: 17px; height: 17px; }
  .status { bottom: 1rem; }
}

@media (min-width: 1600px) {
  .content { padding: 8vh 10vw; }
}
