/* ========== O NOVO DINHEIRO — bio link page ========== */

:root {
  --bg-0: #05070f;
  --bg-1: #0a0e1d;
  --bg-2: #11172a;
  --gold: #D4A24C;
  --gold-bright: #F4C97A;
  --gold-deep: #8a6a2e;
  --ink: #f5f1e6;
  --ink-dim: #b9b3a3;
  --ink-mute: #7a7464;
  --line: rgba(212, 162, 76, 0.22);
  --line-strong: rgba(212, 162, 76, 0.45);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, #131a32 0%, var(--bg-0) 55%, #02030a 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ----- PAGE ----- */
.page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 40% at 50% 8%, rgba(212, 162, 76, 0.10), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.6), transparent 70%);
}

.container {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: 56px 24px calc(56px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* ----- HEADER ----- */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}

.profile-frame {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 14px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 140deg,
    var(--gold-deep) 0deg,
    var(--gold) 80deg,
    var(--gold-bright) 180deg,
    var(--gold) 260deg,
    var(--gold-deep) 360deg);
  box-shadow: 0 8px 30px rgba(212, 162, 76, 0.22), 0 0 0 1px rgba(212, 162, 76, 0.18);
}

.profile-frame::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(212, 162, 76, 0.22);
  pointer-events: none;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--bg-1);
}

.title-classic {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 6px 0 4px;
  color: var(--ink);
  line-height: 1.05;
}

.title-classic .gold {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 30px rgba(212, 162, 76, 0.25);
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-dim);
  margin-top: 8px;
  margin-bottom: 22px;
}

.lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 380px;
  margin: 0 auto;
  font-weight: 400;
}

/* Modern header */
.modern-eyebrow-top {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin: 8px 0 10px;
}

.title-modern {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 0.95;
  margin: 0 0 14px;
  color: var(--ink);
}

.title-modern .gold-italic {
  font-style: italic;
  font-weight: 600;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead-modern {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

/* ----- COUNTER ----- */
.counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: center;
  padding: 8px 16px;
  margin: 4px auto 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(212, 162, 76, 0.04);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80, 0 0 0 3px rgba(74, 222, 128, 0.15);
  animation: pulse 2.2s ease-in-out infinite;
}

.counter-number {
  font-weight: 600;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.counter-label {
  font-size: 11.5px;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

/* ----- LINKS GRID ----- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

/* ----- CARD BASE ----- */
.card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 18px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 26, 48, 0.85) 0%, rgba(10, 14, 29, 0.9) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), border-color 0.3s, box-shadow 0.3s;
  opacity: 1;
}

.page.anim .card {
  opacity: 0;
  transform: translateY(14px);
  animation: cardIn 0.7s cubic-bezier(.2,.7,.3,1) forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.page.anim .header,
.page.anim .counter,
.page.anim .footer {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(.2,.7,.3,1) forwards;
}
.page.anim .header { animation-delay: 0ms; }
.page.anim .counter { animation-delay: 250ms; }
.page.anim .footer { animation-delay: 1100ms; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 22px 48px -22px rgba(0,0,0,0.85), 0 0 30px -10px rgba(212,162,76,0.25);
}

.card:active {
  transform: translateY(0);
}

/* shimmer overlay */
.card.shimmer::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg),
    transparent 0deg,
    transparent 70deg,
    var(--gold) 90deg,
    var(--gold-bright) 100deg,
    var(--gold) 110deg,
    transparent 130deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  animation: shimmerSpin 6s linear infinite;
}

.card.shimmer:hover::before {
  opacity: 1;
}

@property --ang {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes shimmerSpin {
  to { --ang: 360deg; }
}

/* sweep line effect */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(110deg,
    transparent 0%,
    rgba(212, 162, 76, 0.0) 35%,
    rgba(244, 201, 122, 0.13) 50%,
    rgba(212, 162, 76, 0.0) 65%,
    transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  transition: left 0.9s cubic-bezier(.2,.7,.3,1);
}

.card:hover::after {
  left: 120%;
}

/* ----- CLASSIC CARD ----- */
.classic-card {
  min-height: 96px;
}

.classic-card .card-icon {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  position: relative;
}

.classic-card .card-body {
  flex: 1;
  min-width: 0;
}

.classic-card .card-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.classic-card .card-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.classic-card .card-desc {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-dim);
}

.classic-card .card-arrow {
  flex: 0 0 auto;
  color: var(--gold);
  opacity: 0.85;
  transition: transform 0.3s, opacity 0.3s;
  margin-left: 6px;
}

.classic-card:hover .card-arrow {
  transform: translateX(4px);
  opacity: 1;
}

/* ----- MODERN CARD ----- */
.modern-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 22px 22px 16px;
  border-radius: 18px;
  min-height: 0;
}

.modern-card .modern-icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(212, 162, 76, 0.18), rgba(212, 162, 76, 0.04));
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 16px;
  padding: 10px;
}

.modern-card .modern-icon-frame svg {
  width: 100%;
  height: 100%;
}

/* ebook card has a tall image — let it spill */
.modern-card.ebook .modern-icon-frame {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  padding: 0;
}

.modern-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.modern-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 8px;
}

.modern-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin-bottom: 16px;
}

.modern-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(212, 162, 76, 0.08);
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-self: flex-start;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.modern-card:hover .modern-cta {
  background: var(--gold);
  color: #0a0d1c;
  transform: translateX(2px);
}

.modern-card:hover .modern-cta svg { color: #0a0d1c; }

/* ----- FOOTER ----- */
.footer {
  text-align: center;
  margin-top: 14px;
  padding-top: 18px;
}

.values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gold);
  margin-bottom: 22px;
  font-weight: 500;
}

.values .dot {
  letter-spacing: 0;
  opacity: 0.6;
  font-size: 10px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 18px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--gold);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.socials a:hover {
  background: rgba(212, 162, 76, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

/* ----- MODERN VARIANT TWEAKS ----- */
.page.moderna .profile-frame {
  width: 88px;
  height: 88px;
}

.page.moderna .container {
  padding-top: 64px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 480px) {
  .container { padding: 32px 16px calc(40px + env(safe-area-inset-bottom, 0px)); padding-top: calc(36px + env(safe-area-inset-top, 0px)); }
  .title-classic { font-size: 26px; letter-spacing: 0.04em; }
  .title-modern { font-size: 44px; }
  .profile-frame { width: 92px; height: 92px; margin-bottom: 10px; }
  .kicker { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 18px; }
  .lead { font-size: 13.5px; line-height: 1.5; max-width: 320px; }
  .lead-modern { font-size: 13px; }
  .counter { font-size: 11.5px; padding: 7px 14px; }
  .counter-label { font-size: 11px; }
  .links { gap: 12px; margin-bottom: 28px; }
  .card { padding: 14px 14px; gap: 14px; border-radius: 12px; }
  .classic-card { min-height: 88px; }
  .classic-card .card-icon { width: 56px; height: 56px; }
  .classic-card .card-icon svg { width: 50px; height: 50px; }
  .classic-card .card-title { font-size: 13.5px; letter-spacing: 0.04em; }
  .classic-card .card-subtitle { font-size: 12.5px; }
  .classic-card .card-desc { font-size: 12px; line-height: 1.42; }
  .classic-card .card-arrow svg { width: 18px; height: 18px; }
  .modern-card { padding: 18px 18px 14px; border-radius: 14px; }
  .modern-card .modern-icon-frame { width: 44px; height: 44px; padding: 8px; margin-bottom: 12px; }
  .modern-eyebrow { font-size: 9.5px; letter-spacing: 0.26em; }
  .modern-title { font-size: 22px; }
  .modern-desc { font-size: 12.5px; margin-bottom: 12px; }
  .modern-cta { padding: 9px 12px; font-size: 11px; }
  .values { gap: 10px; font-size: 10px; letter-spacing: 0.24em; margin-bottom: 18px; }
  .socials { gap: 18px; margin-bottom: 14px; }
  .socials a { width: 42px; height: 42px; }
  .copy { font-size: 10.5px; }
}

@media (max-width: 360px) {
  .title-classic { font-size: 22px; }
  .title-modern { font-size: 38px; }
  .lead { font-size: 13px; }
  .classic-card { min-height: 80px; }
  .classic-card .card-icon { width: 50px; height: 50px; }
  .classic-card .card-icon svg { width: 44px; height: 44px; }
  .values { gap: 8px; font-size: 9.5px; letter-spacing: 0.2em; }
}

@media (hover: none) {
  /* on touch, dim the shimmer (no hover state to trigger it) and skip the sweep */
  .card.shimmer::before { display: none; }
  .card::after { display: none; }
}
