:root {
  color-scheme: dark;
  --bg: #060504;
  --panel: rgba(18, 14, 9, 0.88);
  --panel-strong: rgba(31, 23, 13, 0.96);
  --line: rgba(231, 178, 74, 0.72);
  --text: #fffaf1;
  --muted: #e1d4bd;
  --gold: #d8a139;
  --gold-2: #ffe4a8;
  --gold-3: #a76c1f;
  --green: #1fc467;
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(6, 5, 4, 0.72), rgba(6, 5, 4, 0.96)),
    radial-gradient(circle at 50% -6rem, rgba(255, 216, 139, 0.34), transparent 32rem),
    radial-gradient(circle at 50% 42rem, rgba(167, 108, 31, 0.2), transparent 26rem),
    var(--bg);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(255, 228, 168, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 228, 168, .06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.page-shell {
  width: min(100%, 500px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 18px 34px;
}

.profile {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 4px 8px 24px;
}

.avatar-wrap {
  position: relative;
  width: 148px;
  aspect-ratio: 1;
  margin-bottom: 22px;
  border-radius: 999px;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold-3), var(--gold-2), var(--gold));
  box-shadow: 0 24px 44px var(--shadow), 0 0 46px rgba(217, 161, 57, 0.34);
  animation: float 4.6s ease-in-out infinite;
}

.avatar-wrap::after {
  position: absolute;
  inset: -9px;
  content: "";
  border: 1px solid rgba(255, 228, 168, 0.44);
  border-radius: inherit;
}

.avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #090806;
  border-radius: inherit;
}

.name {
  margin: 0 0 14px;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

h1 {
  max-width: 430px;
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.48;
}

.section-title {
  margin: 0 0 16px;
  color: var(--gold-2);
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.links {
  display: grid;
  gap: 16px;
  justify-items: center;
}

.link-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: stretch;
  width: min(100%, 438px);
  min-height: 132px;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(255, 228, 168, 0.78);
  border-radius: 12px;
  background-color: var(--panel);
  background-position: center;
  background-size: cover;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 20px 42px var(--shadow), inset 0 0 0 1px rgba(255, 228, 168, 0.16);
  backdrop-filter: blur(10px);
  transform: translateY(0);
  animation: floatLink 5.4s ease-in-out infinite;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.link-card::before,
.link-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
}

.link-card::before {
  background:
    linear-gradient(90deg, rgba(6, 5, 4, 0.82), rgba(6, 5, 4, 0.5) 48%, rgba(6, 5, 4, 0.82)),
    linear-gradient(180deg, rgba(6, 5, 4, 0.18), rgba(6, 5, 4, 0.78));
}

.link-card::after {
  border: 1px solid rgba(255, 228, 168, 0.2);
  border-radius: inherit;
  box-shadow: inset 0 0 36px rgba(255, 196, 88, 0.15);
}

.card-whatsapp {
  border-color: rgba(31, 196, 103, 0.86);
  background-image: url("assets/card-whatsapp.png");
}

.card-performance {
  background-image: url("assets/card-performance.png");
}

.card-consultas {
  background-image: url("assets/card-consultas.png");
}

.card-sistema {
  background-image: url("assets/card-sistema.png");
}

.link-card:nth-child(2) {
  animation-delay: -1.2s;
}

.link-card:nth-child(3) {
  animation-delay: -2.4s;
}

.link-card:nth-child(4) {
  animation-delay: -3.6s;
}

.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(255, 228, 168, 0.95);
  background: var(--panel-strong);
  transform: translateY(-3px);
  outline: none;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 100%;
  min-height: 102px;
  border: 1px solid rgba(255, 228, 168, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 228, 168, 0.3), rgba(217, 161, 57, 0.16)),
    rgba(10, 8, 5, 0.82);
  box-shadow: inset 0 0 0 4px rgba(217, 164, 65, 0.12), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.card-whatsapp .icon-badge {
  border-color: rgba(31, 196, 103, 0.9);
}

.icon-badge svg {
  width: 31px;
  height: 31px;
  fill: var(--gold-2);
}

.card-whatsapp .icon-badge svg {
  fill: #98f4bd;
}

.card-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  justify-items: center;
  padding: 0 10px;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.84);
}

.link-card strong,
.link-card small,
.link-card em {
  display: block;
  min-width: 0;
}

.link-card strong {
  color: var(--gold-2);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.24;
}

.link-card small {
  margin-top: 7px;
  color: #fff7e8;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.link-card em {
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 228, 168, 0.64);
  border-radius: 7px;
  color: #0b0905;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.card-whatsapp em {
  border-color: rgba(152, 244, 189, 0.78);
  background: linear-gradient(135deg, #bdf9d1, var(--green));
}

footer {
  padding: 26px 0 0;
  text-align: center;
}

footer a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold-2);
  outline: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes floatLink {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 390px) {
  .page-shell {
    padding-inline: 12px;
  }

  .name {
    font-size: 2rem;
  }

  h1 {
    font-size: 1rem;
  }

  .link-card {
    grid-template-columns: 60px minmax(0, 1fr);
    min-height: 126px;
    padding: 12px;
  }

  .icon-badge {
    width: 50px;
    min-height: 102px;
  }

  .icon-badge svg {
    width: 27px;
    height: 27px;
  }

  .link-card strong {
    font-size: 0.9rem;
  }
}

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