/* =========================================================
   Bruno Luiz — Hub
   Estética: editorial sofisticado / luxo terapêutico.
   Paleta creme + verde-musgo + ouro terroso como acento.
   Toda a personalização vive em :root.
   ========================================================= */

:root {
  color-scheme: light;

  /* --- Cores --- */
  --bg:        #f3ede1;             /* creme aquecido (papel) */
  --bg-deep:   #ebe2d2;             /* sombra do creme nos cantos (vinheta) */
  --ink:       #1a1714;             /* tinta — preto aquecido */
  --ink-soft:  #4a443c;             /* texto secundário */
  --ink-mute:  #8a8275;             /* meta, eyebrows */
  --line:      rgba(26, 23, 20, 0.14);
  --line-soft: rgba(26, 23, 20, 0.08);

  --noir:         #1a1714;          /* preto profundo aquecido (botão primário) */
  --noir-deep:    #0e0c09;
  --gold:         #b89968;          /* ouro terroso, sofisticado */
  --gold-deep:    #a3855a;
  --gold-glow:    rgba(184, 153, 104, 0.28);

  /* --- Tipografia --- */
  --display: "Cinzel", "Trajan Pro", "Optima", Georgia, serif;             /* nome, tags, monograma */
  --serif:   "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif; /* tagline italic */
  --sans:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* --- Espaços --- */
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --maxw: 38rem;

  /* --- Movimento --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg) 0%, var(--bg-deep) 110%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Vinheta sutil — concentra o olhar no centro */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(20, 17, 12, 0.06) 100%
  );
  z-index: 1;
}

/* Linha decorativa sutil no topo */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Textura de grão (papel) ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

.page {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter);
}

.hero {
  width: 100%;
  max-width: var(--maxw);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Monograma (mark) ---------- */

.mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: clamp(11rem, 28vw, 14rem);
  margin-bottom: 2.5rem;
}

.mark__line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.mark__monogram {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

/* ---------- Tipografia ---------- */

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8.4vw, 4.1rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--ink);
  /* Cinzel já é maiúscula nativa; reforço pra garantir consistência */
  text-transform: uppercase;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: clamp(6rem, 16vw, 8rem);
  margin: 2rem 0 1.5rem;
}

.ornament__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 40%, var(--line) 60%, transparent);
}

.ornament__diamond {
  color: var(--gold);
  font-size: 0.55rem;
  line-height: 1;
  transform: translateY(-1px);
}

.tagline {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.1rem, 2.7vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 28ch;
}

.lead {
  margin: 0.75rem 0 0;
  color: var(--ink-mute);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

/* ---------- CTAs ---------- */

.cta {
  margin-top: clamp(2.5rem, 6vh, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 26rem;
}

.cta__group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.cta__tag {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  /* Pequeno traço antes/depois pra dar identidade editorial */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.cta__tag::before,
.cta__tag::after {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--line);
}

/* ---------- Botões ---------- */

.btn {
  /* Estado base = primário (contorno em ouro, fundo transparente).
     A variante .btn--ghost só troca a cor da borda pra um escuro discreto. */
  --btn-bg:     transparent;
  --btn-fg:     var(--ink);
  --btn-border: var(--gold);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  width: 100%;
  min-height: 60px;
  padding: 1rem 1.5rem;

  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;

  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-border);
  border-radius: 999px;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  isolation: isolate;
  transition:
    background-color 360ms var(--ease),
    color 360ms var(--ease),
    border-color 360ms var(--ease),
    transform 360ms var(--ease),
    box-shadow 360ms var(--ease);
}

/* Brilho dourado que desliza ao hover (camada decorativa) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 700ms var(--ease);
  z-index: -1;
  pointer-events: none;
}

.btn:hover {
  --btn-bg:     var(--gold);
  --btn-fg:     var(--ink);
  --btn-border: var(--gold);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px -10px var(--gold-glow),
    0 2px 6px -2px rgba(20, 17, 12, 0.08);
}

.btn:hover::before { transform: translateX(110%); }

.btn:active { transform: translateY(0); }

.btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--gold);
}

/* Variante secundária (criação digital) — contorno escuro discreto, fino */
.btn--ghost {
  --btn-border: rgba(26, 23, 20, 0.38);
  border-width: 1.5px;
}

.btn__label {
  flex: 1;
}

.btn__arrow {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 360ms var(--ease), color 360ms var(--ease);
  flex-shrink: 0;
}

/* Seta do botão primário em ouro — reforça hierarquia sem precisar de fundo */
.btn--primary .btn__arrow { color: var(--gold-deep); }
.btn--primary:hover .btn__arrow { color: var(--ink); }

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 3;
  padding: 1.75rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer__sep { opacity: 0.5; }

.footer__link {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 280ms var(--ease), border-color 280ms var(--ease);
}

.footer__link:hover {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* ---------- Animação de entrada (cascade, CSS-only) ---------- */
/* Importante: sem dependência de JS. Garante que crawlers, leitores
   de tela e o screenshot service da Vercel vejam o conteúdo. */

@keyframes rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

[data-anim] {
  animation: rise-in 900ms var(--ease) both;
}

[data-anim="1"] { animation-delay: 100ms; }
[data-anim="2"] { animation-delay: 240ms; }
[data-anim="3"] { animation-delay: 380ms; }
[data-anim="4"] { animation-delay: 520ms; }
[data-anim="5"] { animation-delay: 640ms; }
[data-anim="6"] { animation-delay: 760ms; }
[data-anim="7"] { animation-delay: 920ms; }
[data-anim="8"] { animation-delay: 1140ms; }

/* Reveal especial para a linha do monograma — cresce a partir do centro */
.mark__line {
  transform-origin: center;
  animation: line-grow 1100ms var(--ease) 200ms both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Responsivo ---------- */

/* A partir de 720px relaxa o respiro e mantém empilhado (cada CTA com sua tag) */
@media (min-width: 720px) {
  .cta { gap: 1.75rem; }
  .btn { font-size: 0.92rem; padding: 1.05rem 1.75rem; min-height: 64px; }
}
