/* ============================================================
   White Labs — Landing page · v2 (dark-first)
   Paleta e tipografia derivadas do Brand Guidelines v2.0
   Base: preto profundo. Branco como protagonista por contraste.
   Referências de equilíbrio tech/premium: linear.app, vercel.com.
   ============================================================ */

:root {
  /* Cores — v2 dark-first */
  --black: #0a0a0a;          /* base, fundo principal */
  --elevated: #16161a;       /* cards, seções, profundidade */
  --white: #ffffff;          /* foco, títulos */
  --off-white: #ededed;      /* corpo de texto (menos cansativo que branco puro) */
  --gray-mid: #8a8a8f;       /* texto secundário, legendas */
  --gray-dark: #2a2a2e;      /* bordas, divisores sutis */
  --gold: #c9a84c;           /* acento raro — hover, destaque pontual */
  --silver: #b8b8bd;         /* acento secundário — ícones, detalhes */

  /* Tipografia */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Ritmo */
  --maxw: 1080px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section-y: clamp(5.5rem, 12vw, 9.5rem);
}

/* ---------------- Reset ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--off-white);
  background: var(--black);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(201, 168, 76, 0.22); /* dourado discreto na seleção */
  color: var(--white);
}

/* ---------------- Layout helpers ---------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow,
.section__eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.4rem;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

/* divisor de 1px quase imperceptível entre seções */
.section + .section::before,
.section::before {
  content: "";
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 22ch;
  margin-bottom: 2rem;
  color: var(--white);
}

.prose {
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--gray-mid);
}

.prose p + p {
  margin-top: 1.3rem;
}

.prose__highlight {
  color: var(--off-white);
  font-weight: 400;
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--gray-dark);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.4rem;
  color: var(--white);
  text-transform: lowercase;
  letter-spacing: 0.22em;
  /* compensa o espaço extra à direita do letter-spacing */
  padding-left: 0.22em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.nav__links a {
  color: var(--gray-mid);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--off-white);
}

.nav__cta {
  color: var(--off-white) !important;
  border: 1px solid var(--gray-dark);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav__cta:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.25);
}

@media (max-width: 620px) {
  .nav__links a:not(.nav__cta) {
    display: none;
  }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

/* botão branco sobre preto — CTA discreto mas claro, com glow sutil */
.btn--primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px -6px rgba(255, 255, 255, 0.35);
}

.btn--ghost {
  color: var(--off-white);
  border: 1px solid var(--gray-dark);
}

.btn--ghost:hover {
  border-color: var(--silver);
  color: var(--white);
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--gutter) 6rem;
  overflow: hidden;
  background: var(--black);
}

/* glow luminoso vindo do topo — "sala escura com foco de luz" */
.hero__glow {
  position: absolute;
  top: -28%;
  left: 50%;
  width: min(120vw, 1100px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 28%,
    rgba(10, 10, 10, 0) 62%
  );
  pointer-events: none;
}

.hero__glow--soft {
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 760px);
  background: radial-gradient(
    circle at center,
    rgba(201, 168, 76, 0.07) 0%,
    rgba(10, 10, 10, 0) 60%
  );
}

/* grade técnica extremamente sutil ao fundo (vocabulário tech) */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 56ch;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 13vw, 8.5rem);
  line-height: 0.95;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--white);
  /* o letter-spacing adiciona um respiro no fim da palavra; o negative
     margin-right o absorve para o texto ficar opticamente centralizado */
  margin-right: -0.08em;
  margin-bottom: 1.8rem;
  /* brilho discreto reforçando a estética tech premium */
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.18);
}

.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--gray-mid);
  max-width: 40ch;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  color: var(--off-white);
  margin-bottom: 2.8rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--silver), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.7);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(1);
  }
}

/* ---------------- Manifesto ---------------- */
.section--manifesto {
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
}

/* ---------------- Método (steps) ---------------- */
.section--method {
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: 3.5rem;
}

.step {
  border-top: 1px solid var(--gray-dark);
  padding-top: 1.6rem;
  transition: border-color 0.35s ease;
}

.step:hover {
  border-top-color: var(--silver);
}

.step__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0.6rem 0 0.8rem;
  color: var(--white);
}

.step__text {
  font-size: 0.98rem;
  color: var(--gray-mid);
}

/* ---------------- Diferença (cards) ---------------- */
.section--diff {
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2x2 equilibrado */
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--gray-dark); /* o gap vira a linha divisória de 1px */
  border: 1px solid var(--gray-dark);
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--elevated); /* profundidade por tom de preto, não por sombra */
  padding: clamp(1.8rem, 3vw, 2.6rem);
  transition: background 0.35s ease;
}

.card:hover {
  background: #1c1c22;
}

/* linha de luz no topo do card ao passar o mouse — foco pontual */
.card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 168, 76, 0.55),
    transparent
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover::after {
  opacity: 1;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  color: var(--white);
}

.card__text {
  font-size: 0.96rem;
  color: var(--gray-mid);
}

/* ---------------- Quote ---------------- */
.section--quote {
  position: relative;
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
  text-align: center;
  overflow: hidden;
}

.quote {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.3;
  max-width: 24ch;
  margin-inline: auto;
  color: var(--white);
}

/* ---------------- Contato ---------------- */
.section--contact {
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
  text-align: center;
}

.section--contact .section__title,
.section--contact .prose {
  margin-inline: auto;
}

.section--contact .prose {
  margin-bottom: 2.5rem;
}

/* ---------------- Footer ---------------- */
.footer {
  background: var(--black);
  border-top: 1px solid var(--gray-dark);
  padding-block: 3rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--gray-mid);
}

.footer__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--off-white);
  text-transform: lowercase;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
}

.footer__tag {
  font-style: italic;
  flex: 1 1 320px;
  text-align: center;
}

/* ---------------- Reveal (scroll fade) ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero__scroll span {
    animation: none;
  }
}
