/* Sim2Use — página temporária "Em breve"
   Sem dependências. Fontes do sistema. */

:root {
  --blue: #27519B;
  --blue-deep: #0B1E42;
  --blue-mid: #16356F;
  --gold: #E7AF19;
  --ink: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.74);
  --ink-faint: rgba(255, 255, 255, 0.46);
  --line: rgba(255, 255, 255, 0.14);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--blue-deep);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(39, 81, 155, 0.85), transparent 70%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(231, 175, 25, 0.10), transparent 70%),
    linear-gradient(180deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ---------- Fundo: aurora + malha de pontos ---------- */

.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora__blob {
  position: absolute;
  /* parallax leve controlado por --px/--py (script.js, só pointer: fine) */
  translate: calc(var(--px, 0) * -18px) calc(var(--py, 0) * -18px);
  transition: translate 0.9s var(--ease);
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  will-change: transform;
}

.aurora__blob--blue {
  top: -30vmax;
  left: -15vmax;
  background: radial-gradient(circle at center, rgba(74, 125, 214, 0.42), rgba(39, 81, 155, 0.16) 40%, transparent 68%);
  animation: drift-a 28s ease-in-out infinite alternate;
}

.aurora__blob--gold {
  right: -30vmax;
  bottom: -35vmax;
  translate: calc(var(--px, 0) * 14px) calc(var(--py, 0) * 14px);
  background: radial-gradient(circle at center, rgba(231, 175, 25, 0.08), rgba(231, 175, 25, 0.025) 40%, transparent 60%);
  animation: drift-b 34s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(12vmax, 8vmax) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10vmax, -9vmax) scale(1.08); }
}

/* ---------- Fundo: rede de conexões (canvas) ---------- */

.net {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 30%, transparent 100%);
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 1;
  overflow: hidden;
  overflow: clip;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: clamp(1.75rem, 5vh, 3.5rem) clamp(1.25rem, 5vw, 3rem);
  gap: clamp(2rem, 6vh, 4rem);
}

/* ---------- Marca ---------- */

.brand {
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise 0.9s var(--ease) both;
}

.brand__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 175, 25, 0.16), rgba(74, 125, 214, 0.10) 38%, transparent 68%);
  animation: halo 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes halo {
  0%, 100% { opacity: 0.75; scale: 1; }
  50%      { opacity: 1;    scale: 1.06; }
}

.brand__logo {
  display: block;
  position: relative;
  width: clamp(104px, 22vw, 150px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

/* ---------- Hero ---------- */

.hero::before {
  /* escurecimento suave atrás do texto: legibilidade sobre a rede */
  content: "";
  position: absolute;
  inset: -12% -20%;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(11, 30, 66, 0.55), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero {
  align-self: center;
  position: relative;
  text-align: center;
  max-width: min(44rem, 100%);
  width: 100%;
  min-width: 0;
}

.badge {
  display: inline-flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
  padding: 0.5rem 0.95rem 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: rise 0.9s 0.12s var(--ease) both;
}

.badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.10), transparent);
  animation: sheen 6s 2s var(--ease) infinite;
}

@keyframes sheen {
  0%, 20% { left: -60%; }
  45%, 100% { left: 120%; }
}

.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(231, 175, 25, 0.55);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(231, 175, 25, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(231, 175, 25, 0); }
  100% { box-shadow: 0 0 0 0 rgba(231, 175, 25, 0); }
}

.hero__title {
  margin: 0 0 clamp(1.1rem, 3vh, 1.5rem);
  font-size: clamp(2.1rem, 6.2vw, 4rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  animation: rise 0.9s 0.22s var(--ease) both;
}

.hero__lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
  animation: rise 0.9s 0.32s var(--ease) both;
}

.hero__tagline {
  position: relative;
  margin: clamp(2rem, 5vh, 2.75rem) auto 0;
  padding-top: clamp(1.25rem, 3vh, 1.75rem);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  animation: rise 0.9s 0.44s var(--ease) both;
}

.hero__tagline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--gold);
}

/* ---------- Rodapé ---------- */

.footer {
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
  animation: rise 0.9s 0.55s var(--ease) both;
}

.footer p { margin: 0; }

/* ---------- Animações ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Acessibilidade ---------- */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

::selection {
  background: var(--gold);
  color: var(--blue-deep);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  body { background-attachment: scroll; }
}

/* ---------- Ajustes por largura ---------- */

@media (max-width: 480px) {
  .brand__halo { width: 240px; height: 240px; }
  .badge { font-size: 0.7rem; letter-spacing: 0.12em; }
  .hero__title { font-size: clamp(2rem, 9vw, 2.5rem); }
}

@media (min-width: 1024px) {
  .hero { max-width: 50rem; }
}
