/* ============================================================
   AZ Docs — landing.css
   A capa: só ela usa esta folha. Fundo em gradiente com duas
   auroras que respiram, título com brilho deslizante e entrada
   em cascata. Tudo em CSS — nenhuma linha de JavaScript.
   O bloco de prefers-reduced-motion no fim desliga o movimento
   sem tirar nada do conteúdo.
   ============================================================ */

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(3rem, 8vh, 7rem) clamp(1.2rem, .6rem + 3vw, 3rem);
  text-align: center;
  overflow: hidden;
}

/* ── Fundo: auroras + malha técnica ──────────────────────── */

.landing::before,
.landing::after {
  content: "";
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

/* Aurora quente, atrás do título */
.landing::before {
  width: min(70vw, 46rem);
  aspect-ratio: 1;
  top: -18%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(209, 74, 22, .30) 0%, transparent 68%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 68%);
  opacity: .55;
  animation: aurora-a 19s ease-in-out infinite alternate;
}

/* Aurora fria, no rodapé da tela */
.landing::after {
  width: min(80vw, 52rem);
  aspect-ratio: 1.4;
  bottom: -30%;
  right: -10%;
  background: radial-gradient(circle, rgba(27, 98, 71, .24) 0%, transparent 70%);
  background: radial-gradient(circle, color-mix(in srgb, var(--sev-low) 26%, transparent) 0%, transparent 70%);
  opacity: .4;
  animation: aurora-b 24s ease-in-out infinite alternate;
}

/* Malha fina, para dar textura de documentação técnica */
.landing__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 42%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 42%, #000 30%, transparent 78%);
}

@keyframes aurora-a {
  from { transform: translate3d(-4%, -2%, 0) scale(1);    opacity: .42; }
  to   { transform: translate3d(5%, 6%, 0)  scale(1.16); opacity: .62; }
}
@keyframes aurora-b {
  from { transform: translate3d(3%, 2%, 0)  scale(1.08); opacity: .28; }
  to   { transform: translate3d(-6%, -5%, 0) scale(1);   opacity: .46; }
}

/* ── Entrada em cascata ──────────────────────────────────── */

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

@keyframes unveil {
  from { opacity: 0; transform: translateY(115%) rotate(2deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to   { background-position: 200% 50%; }
}

.hero { display: grid; justify-items: center; gap: 1.5rem; max-width: 52rem; }

.hero__eyebrow,
.hero__lede,
.hero__note,
.hero__actions {
  animation: rise .85s cubic-bezier(.22, .68, .32, 1) both;
}
.hero__eyebrow { animation-delay: .05s; }
.hero__lede    { animation-delay: .55s; }
.hero__note    { animation-delay: .68s; }
.hero__actions { animation-delay: .8s; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0;
  max-width: none;
}

/* ── O título ────────────────────────────────────────────── */

.hero__title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(3.5rem, 2rem + 9vw, 8.5rem);
  line-height: .95;
  letter-spacing: -.045em;
  margin: 0;
  overflow: hidden;          /* a máscara do reveal */
  padding: .08em .04em;      /* ar para o brilho não cortar */
}

.hero__title-in {
  display: inline-block;
  background: linear-gradient(
    100deg,
    var(--ink) 12%,
    var(--accent) 34%,
    var(--accent-ink) 46%,
    var(--ink) 68%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    unveil .95s cubic-bezier(.16, .84, .3, 1) .18s both,
    shimmer 7s linear 1.3s infinite;
}

/* Sem background-clip no texto, o título ainda precisa ter cor. */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title-in { color: var(--ink); background: none; }
}

.hero__rule {
  width: 4.5rem;
  height: 2px;
  background: var(--accent);
  border: none;
  margin: .25rem 0;
  transform-origin: center;
  animation: draw .7s cubic-bezier(.22, .68, .32, 1) .45s both;
}

.hero__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__note {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin: 0;
  max-width: 52ch;
}

/* ── Botões ──────────────────────────────────────────────── */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-top: .5rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 7px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 6px 20px -8px rgba(209, 74, 22, .55);
  box-shadow: 0 6px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 85%, transparent);
}

/* Faixa de brilho que cruza o botão no hover */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.38) 50%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn--primary:hover::after,
.btn--primary:focus-visible::after { transform: translateX(120%); }

.btn__arrow { transition: transform .18s ease; }
.btn--primary:hover .btn__arrow,
.btn--primary:focus-visible .btn__arrow { transform: translateX(4px); }

.btn--ghost {
  color: var(--ink-soft);
  border-color: var(--rule);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--ink);
  border-color: var(--ink-muted);
  transform: translateY(-2px);
}

/* ── Atalhos para as seções ──────────────────────────────── */

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  margin-top: clamp(3rem, 7vh, 5rem);
  width: 100%;
  max-width: 58rem;
  text-align: left;
  box-shadow: var(--shadow);
}

.entry {
  position: relative;
  background: var(--surface);
  padding: 1.6rem 1.5rem 1.5rem;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: .45rem;
  align-content: start;
  transition: background-color .2s ease, transform .2s ease;
  animation: rise .8s cubic-bezier(.22, .68, .32, 1) both;
}
.entry:nth-child(1) { animation-delay: .95s; }
.entry:nth-child(2) { animation-delay: 1.05s; }
.entry:nth-child(3) { animation-delay: 1.15s; }

/* Fio que corre no topo do cartão apontado */
.entry::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.entry:hover, .entry:focus-visible { background: var(--surface-alt); }
.entry:hover::before, .entry:focus-visible::before { transform: scaleX(1); }

.entry__num {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--accent);
}
.entry__grupo {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .1rem .5rem;
  justify-self: start;
}

.entry__title {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: color .2s ease;
}
.entry:hover .entry__grupo {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .1rem .5rem;
  justify-self: start;
}

.entry__title { color: var(--accent-ink); }
.entry__desc {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
  max-width: none;
}

.landing__foot {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--ink-muted);
  max-width: none;
  animation: rise .8s ease 1.3s both;
}

/* ── Quem pediu menos movimento, recebe menos movimento ──── */

@media (prefers-reduced-motion: reduce) {
  .landing::before,
  .landing::after,
  .hero__eyebrow, .hero__lede, .hero__note, .hero__actions,
  .hero__title-in, .hero__rule, .entry, .landing__foot {
    animation: none;
  }
  .btn, .btn__arrow, .entry, .entry::before, .entry__grupo {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .1rem .5rem;
  justify-self: start;
}

.entry__title { transition: none; }
  .btn--primary:hover, .btn--ghost:hover { transform: none; }
  .btn--primary::after { display: none; }
  .hero__title-in { color: var(--ink); background: none; }
}
