:root {
  --bg-color: #0b0b0b;
  --text-color: #f5f5f5;
  --accent-color: #f2622e;
  --line-color: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* trava scroll em qualquer eixo, o conteúdo tem que caber */
}

.topbar {
  display: flex;
  align-items: center;
  padding: clamp(10px, 2vh, 20px) clamp(20px, 5vw, 40px);
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon,
.logo-nome {
  height: clamp(22px, 4vh, 35px);
  width: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-icon {
  transform: rotate(-6deg) scale(1.08);
}

.logo:hover .logo-nome {
  filter: drop-shadow(0 0 6px rgba(242, 98, 46, 0.55));
}

.divider {
  border: none;
  border-top: 1px solid var(--line-color);
  opacity: 0.5;
  margin: 0 clamp(20px, 5vw, 40px);
  flex-shrink: 0;
}

.content {
  flex: 1;
  min-height: 0; /* essencial: permite o flex item encolher em vez de forçar overflow */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vh, 40px);
  flex-wrap: wrap;
  padding: clamp(12px, 3vh, 60px) clamp(20px, 5vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.title {
  font-size: clamp(1.2rem, 4vh, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.title::after {
  content: "";
  display: block;
  width: clamp(50px, 8vh, 70px);
  height: 3px;
  margin: clamp(10px, 2vh, 18px) auto 0;
  background: var(--accent-color);
  border-radius: 2px;
  animation: growLine 1s ease both;
  animation-delay: 0.6s;
}

.hero-image {
  animation: fadeUp 1s ease both;
  animation-delay: 0.25s;
  max-height: 40vh; /* trava a altura da imagem ao espaço vertical disponível */
  display: flex;
}

.hero-image img {
  max-width: min(320px, 60vw);
  width: 100%;
  height: auto;
  max-height: 40vh;
  object-fit: contain;
  display: block;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1.2s;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.5));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.hero-image img:hover {
  filter: drop-shadow(0 16px 26px rgba(242, 98, 46, 0.25));
  transform: scale(1.03);
}

.subtitle {
  text-align: center;
  font-size: clamp(0.8rem, 2vh, 1rem);
  line-height: 1.5;
  padding: 0 20px clamp(12px, 3vh, 40px);
  opacity: 0.85;
  flex-shrink: 0;
}

.footer {
  text-align: center;
  padding: clamp(8px, 2vh, 20px);
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.footer:hover {
  opacity: 0.9;
}

/* ---- Animações ---- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes growLine {
  from { width: 0; }
  to { width: 70px; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---- Mobile / tablet retrato ---- */
@media (max-width: 700px) {
  .content {
    flex-direction: column;
  }

  .hero-image {
    order: -1;
    max-height: 30vh;
  }

  .hero-image img {
    max-height: 30vh;
  }
}

/* ---- Telas muito grandes (monitores 2K/4K) ---- */
@media (min-width: 1600px) {
  .hero-image img {
    max-width: 400px;
  }
}