/* ── Digo Lemos · v2 "Aurora Viva" ────────────────────────────────────────
   Canvas quase-preto com aurora que reage ao cursor (e à inclinação do
   celular). Botões de vidro escuro que acendem em azul onde o dedo toca.
   Mesma paleta e tipografia da v1 (hoje em /v1). */

:root {
  /* Cores (herdadas da v1) */
  --iris: #847dff;
  --cyan: #00b3dd;
  --orchid: #dd90d8;
  --periwinkle: #90b8f0;
  --deep-iris: #4b49aa;
  --glow: #0289fe;
  --abyss: #090a0b;
  --graphite: #1d1e1f;
  --silver: #cacaca;
  --ash: #9f9fa0;
  --fog: #6a6b6b;
  --cloud: #f5f5f7;
  --line: rgba(255, 255, 255, 0.1);

  /* Tipografia (fonts.js sobrescreve com o que estiver no admin) */
  --font-display: 'Instrument Serif', serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --quick: 0.2s ease;

  /* Posição da aurora que segue o cursor */
  --mx: 50%;
  --my: 16%;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--abyss);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.ready { opacity: 1; }
body.sheet-open { overflow: hidden; }

[hidden] { display: none !important; }

a { text-decoration: none; color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--iris); color: #000; }

/* ── Aurora ─────────────────────────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 38% at var(--mx) var(--my), rgba(2, 137, 254, 0.34), transparent 62%),
    radial-gradient(ellipse 58% 44% at 16% 6%, rgba(26, 71, 136, 0.42), transparent 62%),
    radial-gradient(ellipse 50% 40% at 88% 28%, rgba(132, 125, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 98%, rgba(75, 73, 170, 0.2), transparent 64%);
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 2%, 0) scale(1.08); }
}
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, rgba(9, 10, 11, 0.55) 100%),
    linear-gradient(transparent 62%, rgba(9, 10, 11, 0.92));
}
@media (prefers-reduced-motion: reduce) {
  .aurora { animation: none; }
}

/* ── Coluna central ─────────────────────────────────────────────────────── */
.wrap {
  position: relative;
  z-index: 5;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(56px, 11vh, 110px) 20px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Status ao vivo */
.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cloud);
}
.live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 10px #35d07f;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.live span { transition: opacity 0.35s ease; }
@media (prefers-reduced-motion: reduce) {
  .live i { animation: none; }
}

.name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 10vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 18px 0 0;
  text-wrap: balance;
}
.name em { font-style: italic; }
/* Título longo (uma frase, não só o nome) encolhe para caber com elegância */
.name--long {
  font-size: clamp(1.75rem, 6vw, 2.45rem);
  line-height: 1.08;
  max-width: 19ch;
}

/* Sem frase, nada de buraco embaixo do título */
.phrase:empty { display: none; }

.phrase {
  margin-top: 16px;
  max-width: 34ch;
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--cloud);
  opacity: 0.92;
  text-wrap: balance;
}

.stack {
  width: 100%;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot {
  margin-top: 56px;
  max-width: 44ch;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

/* ── Botões ─────────────────────────────────────────────────────────────── */
.link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color var(--quick), box-shadow var(--quick),
              transform var(--quick), background-color var(--quick);
}
.link:hover,
.link:focus-visible {
  background: #242526;
  border-color: rgba(2, 137, 254, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(2, 137, 254, 0.28), 0 0 52px rgba(2, 137, 254, 0.12);
  outline: none;
}
/* Clarão que segue o dedo/cursor dentro do botão */
.link::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: radial-gradient(180px circle at var(--cx, 50%) var(--cy, 50%),
              rgba(2, 137, 254, 0.22), transparent 70%);
}
.link:hover::before, .link:focus-visible::before { opacity: 1; }
.link > * { position: relative; z-index: 1; }

.link-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 12px currentColor;
}
.link-text { flex: 1; min-width: 0; }
.link-text b {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--cloud);
}
.link-text span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}
.link-arrow { flex: none; transition: transform var(--quick); color: var(--silver); }
.link:hover .link-arrow, .link:focus-visible .link-arrow { transform: translateX(3px); }

/* Botão de destaque (pílula branca com brilho azul) */
.link--highlight {
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  padding: 17px 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(2, 137, 254, 0.6);
  box-shadow: 0 0 20px rgba(2, 137, 254, 0.4), 0 0 46px rgba(2, 137, 254, 0.2);
}
.link--highlight:hover, .link--highlight:focus-visible {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(2, 137, 254, 0.62), 0 0 64px rgba(2, 137, 254, 0.3);
}
.link--highlight::before { display: none; }
.link--highlight .link-dot { display: none; }
.link--highlight .link-text { flex: 0 1 auto; text-align: center; }
.link--highlight .link-text b {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #101014;
}
.link--highlight .link-text span { color: #4a4a52; }
.link--highlight .link-arrow { color: #101014; }

/* ── Painel de conteúdo (quando o botão não redireciona) ────────────────── */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(9, 10, 11, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade-in 0.25s ease;
}
@keyframes fade-in { from { opacity: 0; } }

.sheet {
  position: relative;
  width: min(620px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 44px clamp(22px, 5vw, 40px) 40px;
  border-radius: 24px 24px 0 0;
  background: rgba(23, 24, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(2, 137, 254, 0.08);
  animation: sheet-up 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes sheet-up { from { transform: translateY(26px); opacity: 0; } }
@media (min-width: 700px) {
  .sheet-backdrop { place-items: center; padding: 24px; }
  .sheet { border-radius: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); max-height: 86vh; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-backdrop { animation: none; }
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--silver);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color var(--quick), color var(--quick);
}
.sheet-close:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

.sheet-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}
.sheet h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  margin-top: 12px;
  text-wrap: balance;
}
.sheet-img {
  width: 100%;
  margin-top: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: block;
}
.sheet p.body {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--silver);
}
.sheet .sheet-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 15px 24px;
  border-radius: 9999px;
  background: #fff;
  color: #101014;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(2, 137, 254, 0.6);
  box-shadow: 0 0 20px rgba(2, 137, 254, 0.35);
  transition: box-shadow 0.3s ease;
}
.sheet .sheet-cta:hover { box-shadow: 0 0 28px rgba(2, 137, 254, 0.6); }

/* ── Formulário de parcerias dentro do painel ───────────────────────────── */
.sheet-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.sheet-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 7px;
}
.sheet-form input,
.sheet-form textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  resize: vertical;
  transition: border-color var(--quick), box-shadow var(--quick);
}
.sheet-form input:focus,
.sheet-form textarea:focus {
  outline: none;
  border-color: rgba(2, 137, 254, 0.6);
  box-shadow: 0 0 0 3px rgba(2, 137, 254, 0.14);
}
.sheet-form input::placeholder, .sheet-form textarea::placeholder { color: var(--fog); }
.sheet-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .sheet-form .row2 { grid-template-columns: 1fr; } }
.sheet-form button[type="submit"] {
  margin-top: 6px;
  padding: 15px 24px;
  border-radius: 9999px;
  background: #fff;
  color: #101014;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(2, 137, 254, 0.6);
  box-shadow: 0 0 20px rgba(2, 137, 254, 0.35);
  transition: box-shadow 0.3s ease, opacity var(--quick);
}
.sheet-form button[type="submit"]:hover { box-shadow: 0 0 28px rgba(2, 137, 254, 0.6); }
.sheet-form button[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
.form-msg { font-size: 14px; line-height: 1.5; min-height: 1.2em; }
.form-msg.ok { color: #35d07f; }
.form-msg.err { color: #ff8080; }

/* ── Celular ────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .link { padding: 14px 16px; }
  .link-text span { font-size: 9px; letter-spacing: 0.1em; }
  .foot { margin-top: 44px; }
}
