/* Clube da Luz — base + responsive + animations */
:root {
  --bg: #060912;
  --bg-2: #0a0f1c;
  --surface: #0e1424;
  --surface-2: #131b2e;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --ivory: #F1EEE6;
  --ivory-dim: #C9C5BA;
  --muted: #8B98A6;
  --muted-2: #5E6B7B;

  --aqua: #7AD7E8;
  --aqua-2: #4AB8D8;
  --deep: #2890B0;

  /* warm / dourado para misturar com o retrato do Adriano */
  --gold:    #E8C079;
  --gold-2:  #C99848;
  --gold-3:  #8A6428;
  --ember:   #F2A659;

  --ink: #1B2436;
  --ink-glow: 0 0 60px rgba(122, 215, 232, 0.25);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-ui: "Inter Tight", "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap-pad: 40px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient drifting gradient background — sutil */
body::before {
  content: "";
  position: fixed; inset: -10vh;
  background:
    radial-gradient(900px 700px at 78% 12%, rgba(232,192,121,0.10), transparent 60%),
    radial-gradient(1200px 800px at 18% 30%, rgba(74,184,216,0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 80%, rgba(40,144,176,0.12), transparent 60%),
    radial-gradient(600px 500px at 55% 110%, rgba(232,192,121,0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 28s ease-in-out infinite alternate;
}
@keyframes ambientDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 1%, 0) scale(1.04); }
  100% { transform: translate3d(1.5%, -1%, 0) scale(1.02); }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* film grain */
.grain::before {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 1   0 0 0 0 1   0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 100;
}

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--wrap-pad); position: relative; z-index: 1; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 var(--wrap-pad); position: relative; z-index: 1; }

/* Typography */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display-italic { font-style: italic; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 500;
}
.eyebrow-muted { color: var(--muted); }
.eyebrow-gold  { color: var(--gold); }
.serial {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.aqua { color: var(--aqua); }
.gold { color: var(--gold); }
.ivory-dim { color: var(--ivory-dim); }
.muted { color: var(--muted); }

/* gradient text helpers */
.grad-aqua {
  background: linear-gradient(180deg, #BFEEFB 0%, #4AB8D8 70%, #2890B0 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.grad-gold {
  background: linear-gradient(180deg, #F7E1B0 0%, #E8C079 55%, #C99848 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.grad-dual {
  background: linear-gradient(115deg, #BFEEFB 0%, #7AD7E8 30%, #E8C079 70%, #C99848 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all .25s ease;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--ivory);
}
.btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn-primary {
  background: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-2) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #061018;
  border-color: transparent;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 12px 40px -10px rgba(74,184,216,0.5),
    0 0 0 1px rgba(255,255,255,0.06);
  transition: background-position .8s ease, transform .25s ease, filter .25s ease;
}
.btn-primary:hover {
  background-position: 100% 50%;
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn-arrow { width: 14px; height: 14px; }

/* Hairlines */
.hr { height: 1px; background: var(--line); width: 100%; }

/* sections */
section { position: relative; z-index: 1; }

/* utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-slow.in { transition-duration: 1.3s; }
.reveal-1.in { transition-delay: .08s; }
.reveal-2.in { transition-delay: .16s; }
.reveal-3.in { transition-delay: .26s; }
.reveal-4.in { transition-delay: .36s; }

/* 3D scene primitive */
.scene-3d { perspective: 1400px; transform-style: preserve-3d; }

/* gold-tinted duotone over the Adriano portrait */
.duotone-gold {
  filter: contrast(1.05) saturate(1.15);
}

/* Hero line-rise — class-based so React re-renders don't restart the animation
   by reassigning the same inline `animation` string. */
.line-rise { opacity: 0; animation: lineRise .95s cubic-bezier(.2,.7,.2,1) forwards; will-change: opacity, transform, filter; }
.line-rise-1 { animation-delay: .15s; }
.line-rise-2 { animation-delay: .35s; }
.line-rise-3 { animation-delay: .55s; }
.line-rise-4 { animation-delay: .75s; }
.line-rise-5 { animation-delay: 1.05s; }
.line-rise-6 { animation-delay: 1.30s; }
@keyframes lineRise {
  from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0);   filter: blur(0); }
}

/* Hero floating sparkles */
@keyframes sparkleDrift {
  0%   { transform: translate3d(0,0,0) scale(1);    opacity: .0; }
  20%  { opacity: 1; }
  100% { transform: translate3d(var(--dx,40px), var(--dy,-80px), 0) scale(.6); opacity: 0; }
}

/* shake for invalid form fields */
@keyframes inputShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
.shake { animation: inputShake .35s ease; }

/* spinner for form submitting */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }

/* chatbot pulse */
@keyframes chatPulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,192,121,0.45), 0 12px 40px -10px rgba(0,0,0,0.5); }
  70%  { box-shadow: 0 0 0 22px rgba(232,192,121,0), 0 12px 40px -10px rgba(0,0,0,0.5); }
  100% { box-shadow: 0 0 0 0 rgba(232,192,121,0), 0 12px 40px -10px rgba(0,0,0,0.5); }
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 1080px) {
  :root { --wrap-pad: 28px; }
  .display { line-height: 1.0; }
}
@media (max-width: 820px) {
  :root { --wrap-pad: 22px; }
  html, body { font-size: 15px; }
  .stack-mobile { grid-template-columns: 1fr !important; gap: 48px !important; }
  .hide-mobile { display: none !important; }
  .hero-meta-mobile { margin-left: 0 !important; max-width: 100% !important; }
  nav .nav-links-desktop { display: none !important; }
}
@media (max-width: 560px) {
  :root { --wrap-pad: 18px; }
  .btn { padding: 12px 18px; font-size: 12.5px; }
  .vozes-grid { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
}

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