:root {
  --bg: #6b4e9b;
  --bg-deep: #4a3570;
  --bg-soft: #784f9b;
  --surface: rgba(255, 255, 255, 0.12);
  --surface-hover: rgba(255, 255, 255, 0.2);
  --ink: #ffffff;
  --ink-muted: rgba(255, 255, 255, 0.86);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #784f9b;
  --accent-pink: #e04592;
  --whatsapp: #25d366;
  --radius: 14px;
  --font: Inter, system-ui, sans-serif;
  --max: 420px;
  --shadow: 0 16px 40px rgba(42, 24, 72, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 50% -5%, rgba(224, 69, 146, 0.35), transparent 55%),
    radial-gradient(70% 50% at 100% 80%, rgba(143, 79, 154, 0.45), transparent 50%),
    linear-gradient(180deg, #8f4f9a 0%, #6b4e9b 42%, #4a3570 100%);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: clamp(2.75rem, 9vh, 4.75rem) 0 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile {
  text-align: center;
}

.logo {
  display: block;
  width: min(240px, 72vw);
  height: auto;
  margin: 0 auto;
}

.tagline {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  color: var(--bg-deep);
  background: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(42, 24, 72, 0.28);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  border-color: transparent;
  box-shadow: 0 16px 36px rgba(42, 24, 72, 0.38);
  outline: none;
}

.link:active {
  transform: translateY(0);
}

.link-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(74, 53, 112, 0.1);
  color: var(--bg-deep);
}

.link[data-icon="whatsapp"] .link-icon {
  background: rgba(37, 211, 102, 0.16);
  color: var(--whatsapp);
}

.link--action .link-icon {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent));
  color: #fff;
}

.link-icon svg {
  width: 20px;
  height: 20px;
}

.link-copy {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.link-title {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.link-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: rgba(74, 53, 112, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  flex: 0 0 auto;
  color: var(--bg-soft);
  opacity: 0.85;
  transition: transform 0.22s ease, opacity 0.22s ease, color 0.22s ease;
}

.link:hover .link-arrow,
.link:focus-visible .link-arrow {
  transform: translateX(3px);
  opacity: 1;
  color: var(--accent-pink);
}

.footer {
  text-align: center;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.social {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}

.social svg {
  width: 18px;
  height: 18px;
}

.credit {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Entrada sem opacity:0 — evita NO_FCP no Lighthouse/Google */
@media (prefers-reduced-motion: no-preference) {
  .profile {
    animation: rise 0.55s ease both;
  }

  .link {
    animation: rise 0.5s ease both;
  }

  .link:nth-child(1) { animation-delay: 0.04s; }
  .link:nth-child(2) { animation-delay: 0.08s; }
  .link:nth-child(3) { animation-delay: 0.12s; }
  .link:nth-child(4) { animation-delay: 0.16s; }
  .link:nth-child(5) { animation-delay: 0.2s; }
  .link:nth-child(6) { animation-delay: 0.24s; }
  .link:nth-child(7) { animation-delay: 0.28s; }
  .link:nth-child(8) { animation-delay: 0.32s; }

  .footer {
    animation: rise 0.55s ease both;
    animation-delay: 0.2s;
  }

  @keyframes rise {
    from {
      transform: translateY(12px);
    }
    to {
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
