/* Base compartilhada entre a página da bio e o funil. */

@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  --ink: #0e0d0b;
  --ink-2: #1a1815;
  --ink-3: #24211d;
  --paper: #f3eee4;
  --paper-dim: #a8a196;
  --signal: #ff4a1c;
  --acid: #d8ff3e;
  --whatsapp: #25d366;
  --line: rgb(243 238 228 / 0.14);
  --line-strong: rgb(243 238 228 / 0.32);

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --gutter: 16px;

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

[hidden] {
  display: none !important;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Atmosfera: manchas de cor que flutuam devagar */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 32% at 18% 12%, rgb(255 74 28 / 0.5), transparent 70%),
    radial-gradient(30% 26% at 88% 38%, rgb(216 255 62 / 0.08), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgb(255 74 28 / 0.2), transparent 70%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}

/* Granulado de filme */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:is(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Avatar com anel girando ---------- */
.avatar {
  width: var(--avatar-size, 96px);
  aspect-ratio: 1;
  padding: 3px;
  border-radius: 50%;
  background: conic-gradient(from var(--ring-angle), var(--signal), var(--acid), var(--signal));
  animation: ring 6s linear infinite;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--ink-2);
  font-size: calc(var(--avatar-size, 96px) * 0.35);
  font-weight: 800;
  font-variation-settings: "wdth" 75, "opsz" 96;
}

.avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Rótulos ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.kicker .icon {
  width: 16px;
  height: 16px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  padding: 18px 28px;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--signal);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--paper);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--ink);
}

.btn-whatsapp:hover {
  background: var(--paper);
}

.btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Movimento ---------- */
.reveal {
  animation: rise 0.8s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes ring {
  to {
    --ring-angle: 360deg;
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(255 74 28 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255 74 28 / 0);
  }
}

@keyframes drift {
  to {
    transform: translate3d(4%, 3%, 0) rotate(6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
