:root {
  --bg: #05070d;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #fbbf24;
  --accent-2: #f97316;
}

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

html, body { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at center, rgba(5, 7, 13, .55) 0%, rgba(5, 7, 13, .15) 45%, rgba(5, 7, 13, .7) 100%),
    linear-gradient(to bottom, rgba(5, 7, 13, 0) 60%, rgba(5, 7, 13, .85)),
    url("/assets/img/fundo-800.webp");
  background-size: cover;
  background-position: center 65%;
  background-attachment: fixed;
}

/* Conteúdo centralizado na tela */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1rem;
  text-align: center;
  animation: fade-up .9s ease-out both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(251, 191, 36, .45);
  border-radius: 999px;
  background: rgba(5, 7, 13, .55);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.badge__dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .7);
  animation: pulse 2s infinite;
}

.brand {
  font-size: clamp(3rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

.brand__x {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(251, 191, 36, .45));
}

.tagline {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.bar {
  width: min(18rem, 80%);
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
}

.bar span {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: load 1.8s ease-in-out infinite;
}

.footer {
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(251, 191, 36, .4);
}

.footer a:hover { border-bottom-color: var(--accent); }

@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 .6rem rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 860px) {
  body {
    background-image:
      radial-gradient(ellipse at center, rgba(5, 7, 13, .55) 0%, rgba(5, 7, 13, .15) 45%, rgba(5, 7, 13, .7) 100%),
      linear-gradient(to bottom, rgba(5, 7, 13, 0) 60%, rgba(5, 7, 13, .85)),
      url("/assets/img/fundo-1920.webp");
  }
}

/* background-attachment: fixed falha no iOS; usa scroll em telas de toque */
@media (hover: none) {
  body { background-attachment: scroll; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .badge__dot { animation: none; }
  .bar span { animation: none; width: 60%; }
}
