@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── TOKENS ──────────────────────────────────────────────── */
:root {
  --bg:           #04070c;
  --bg-2:         #09111a;
  --text:         #f5f8fc;
  --muted:        #8ea2b5;
  --blue:         #8ebbea;
  --blue-strong:  #d5e8ff;
  --blue-glow:    rgba(142, 187, 234, 0.32);
  --green:        #25D366;
  --green-glow:   rgba(37, 211, 102, 0.28);
  --ease:         cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Switzer", system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(59, 98, 138, 0.22) 0%, transparent 70%),
    url("../img/modular-grid.svg"),
    var(--bg);
  background-size: cover, 480px 480px, cover;
  background-repeat: no-repeat, repeat, no-repeat;
  background-blend-mode: screen, overlay, normal;
  color: var(--text);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── PAGE ────────────────────────────────────────────────── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 20px 44px;
  gap: 0;
}

/* ─── AVATAR ──────────────────────────────────────────────── */
.avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.05s forwards;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    var(--blue) 30%,
    var(--blue-strong) 50%,
    var(--blue) 70%,
    transparent 100%
  );
  animation: spinRing 5s linear infinite;
}
.avatar-ring::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--bg-2);
}

.avatar-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: -1;
}

.avatar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
}

/* ─── IDENTITY ────────────────────────────────────────────── */
.identity {
  text-align: center;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.65s var(--ease) 0.15s forwards;
}

.name {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.handle {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 10px;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ─── LINKS ───────────────────────────────────────────────── */
.links {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── BUTTON ──────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 15px 17px;
  border-radius: 20px;
  background: #0d2035;
  color: var(--text);
  font-family: "Switzer", system-ui, sans-serif;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 0 0 1px rgba(142, 187, 234, 0.16),
    inset 0 1px 0 rgba(142, 187, 234, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.55s var(--ease) forwards;
  animation-delay: calc(0.28s + var(--i, 0) * 0.07s);
  transition:
    box-shadow 0.3s ease,
    transform 0.35s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px) scale(1.008);
  box-shadow:
    inset 0 0 0 1px rgba(142, 187, 234, 0.28),
    inset 0 1px 0 rgba(142, 187, 234, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.35);
}
.btn:hover::before { opacity: 1; }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn:active { transform: scale(0.975) !important; transition: transform 0.1s ease !important; }

/* Particle dots */
.btn .hover-particle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: blur(14px);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn .hover-particle.fade-in  { opacity: 0.6; }
.btn .hover-particle.fade-out { opacity: 0; transition: opacity 1.2s ease; }

/* ─── ICON ────────────────────────────────────────────────── */
.btn-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg { width: 20px; height: 20px; display: block; }

.btn-icon-logo {
  border-radius: 50% !important;
  overflow: hidden;
  border: 1.5px solid rgba(142, 187, 234, 0.28);
  background: transparent !important;
}
.btn-icon-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ─── LABEL ───────────────────────────────────────────────── */
.btn-label { flex: 1; line-height: 1.2; }
.btn-main { display: block; font-size: 0.93rem; font-weight: 700; letter-spacing: -0.01em; }
.btn-sub  { display: block; font-size: 0.72rem; font-weight: 400; color: rgba(255,255,255,0.38); margin-top: 1px; }

/* ─── CHEVRON ─────────────────────────────────────────────── */
.chevron {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  opacity: 0.28;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
.btn:hover .chevron { opacity: 0.65; transform: translateX(3px); }

/* ─── BUTTON VARIANTS ─────────────────────────────────────── */
.btn-whatsapp { --particle-start: #25D366; --particle-end: #1aa352; }
.btn-whatsapp .btn-icon { background: var(--green); box-shadow: 0 3px 12px var(--green-glow); }
.btn-whatsapp .btn-icon svg { fill: #000; }

.btn-site { --particle-start: #8ebbea; --particle-end: #3a7bd5; }
.btn-site .btn-icon { background: rgba(142, 187, 234, 0.14); border: 1px solid rgba(142, 187, 234, 0.22); }

.btn-instagram { --particle-start: #f09433; --particle-end: #bc1888; }
.btn-instagram .btn-icon {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 3px 12px rgba(220, 39, 67, 0.25);
}
.btn-instagram .btn-icon svg { fill: #fff; }

.btn-tiktok { --particle-start: #ffffff; --particle-end: #888888; }
.btn-tiktok .btn-icon { background: #000; box-shadow: 0 3px 12px rgba(0,0,0,0.5); }
.btn-tiktok .btn-icon svg { fill: #fff; }

.btn-tabela { --particle-start: #d5e8ff; --particle-end: #8ebbea; }
.btn-tabela .btn-icon { background: rgba(213, 232, 255, 0.09); border: 1px solid rgba(213, 232, 255, 0.16); }
.btn-tabela .btn-icon svg { stroke: var(--blue-strong); }

/* ─── DIVIDER ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 175, 221, 0.18), transparent);
  margin: 2px 0;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 0.6s ease 0.9s forwards;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.77rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-email:hover { color: var(--blue); }
.footer-email svg { width: 13px; height: 13px; flex-shrink: 0; }

.footer-logo img { height: 19px; opacity: 0.28; transition: opacity 0.2s; }
.footer-logo:hover img { opacity: 0.55; }

.footer-copy { font-size: 0.67rem; color: rgba(142, 162, 181, 0.32); letter-spacing: 0.04em; }

/* ─── KEYFRAMES ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.14); }
}

/* ─── DESKTOP ─────────────────────────────────────────────── */
@media (min-width: 480px) {
  .page { padding: 64px 24px 52px; }
  .avatar-wrap { width: 104px; height: 104px; }
  .name { font-size: 1.9rem; }
  .links { max-width: 440px; }
  .btn { padding: 16px 20px; }
}

/* ─── REDUCED MOTION ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .avatar-wrap, .identity, .btn, .footer { opacity: 1 !important; transform: none !important; }
}
