/* Soldaro: landing de pré-lançamento */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --azul: #0B2545;
  --verde: #10B981;
  --verde-claro: #34D399;
  --branco: #FFFFFF;
  --texto-suave: rgba(255, 255, 255, 0.82);
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--azul);
}

body {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--azul);
  color: var(--branco);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

p,
h1 {
  margin: 0;
}

.site-header,
.content,
.site-footer {
  position: relative;
  z-index: 1;
  padding-inline: var(--gutter);
}

.site-header {
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.logo {
  display: block;
  width: clamp(9.5rem, 14vw, 12rem);
  height: auto;
}

.content {
  align-self: center;
  max-width: calc(46rem + var(--gutter) * 2);
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.9375rem;
  border: 1px solid var(--verde-claro);
  border-radius: 999px;
  color: var(--verde-claro);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--verde-claro);
  animation: pulso 2.4s ease-in-out infinite;
}

h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.125rem, 1.35rem + 3.5vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

.accent {
  color: var(--verde-claro);
}

.description {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--texto-suave);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
}

.slogan {
  margin-top: 2rem;
  padding-top: 1.25rem;
  max-width: 36rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1rem;
  font-weight: 600;
}

.site-footer {
  padding-bottom: 1.75rem;
  color: var(--texto-suave);
  font-size: 0.875rem;
}

/* Arte: onda e barras, à direita no desktop */
.art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: crescer 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.bar-2 { animation-delay: 0.08s; }
.bar-3 { animation-delay: 0.16s; }
.bar-4 { animation-delay: 0.24s; }
.bar-5 { animation-delay: 0.32s; }

.wave {
  animation: surgir 1.1s ease-out both;
}

@keyframes crescer {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes surgir {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulso {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Abaixo de 960px a arte entra no fluxo, entre o texto e o rodapé, sem nunca
   ficar atrás de um texto. */
@media (max-width: 959.98px) {
  body {
    grid-template-rows: auto 1fr auto auto;
  }

  .content {
    padding-bottom: 1.5rem;
  }

  .art {
    position: relative;
    width: 100%;
    height: clamp(11rem, 60vw, 20rem);
  }

  .site-footer {
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar,
  .wave,
  .badge-dot {
    animation: none;
  }
}
