:root {
  --card-width: 385px;
  --card-radius: 20px;
  --card-bg: #222222;
  --button-bg: #191919;
  --button-hover: #242424;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --border: rgba(255, 255, 255, 0.06);
  --hero-image: url("assets/leriane-hero.jpg");
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #111; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #121212;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.background {
  position: fixed;
  inset: -70px;
  z-index: -2;
  background-image: var(--hero-image);
  background-position: center 32%;
  background-size: cover;
  filter: blur(42px) saturate(.72);
  transform: scale(1.13);
}

.background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 17, .18), rgba(16, 10, 10, .36) 52%, rgba(6, 12, 14, .18)),
    rgba(0, 0, 0, .19);
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 16px 14px;
}

.profile-card {
  width: min(100%, var(--card-width));
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .38);
  border-radius: var(--card-radius);
  background: var(--card-bg);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .42),
    0 2px 6px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  opacity: 0;
  transform: translateY(18px) scale(.985);
  animation: cardEnter .85s cubic-bezier(.16, 1, .3, 1) .08s forwards;
}

.hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: #151515;
}

.hero > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 27%;
  transform: scale(1.015);
  transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .6s ease;
}

.profile-card:hover .hero > img { transform: scale(1.055); }

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 48%, rgba(25,25,25,.42) 69%, #222 98%),
    linear-gradient(to top, rgba(0,0,0,.28), transparent 45%);
  pointer-events: none;
}

.identity {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.75px;
}

.verified {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.3));
}

.verified::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #24a7f2;
  clip-path: polygon(50% 0, 63% 8%, 77% 6%, 86% 18%, 100% 23%, 98% 38%, 100% 50%, 92% 63%, 94% 77%, 82% 86%, 77% 100%, 62% 98%, 50% 100%, 37% 92%, 23% 94%, 14% 82%, 0 77%, 2% 62%, 0 50%, 8% 37%, 6% 23%, 18% 14%, 23% 0, 38% 2%);
}

.verified::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.meta-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.8);
  font-size: 10px;
  font-weight: 600;
}

.meta-divider {
  width: 1px;
  height: 11px;
  background: rgba(255,255,255,.35);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4e5e;
  box-shadow: 0 0 0 3px rgba(255, 78, 94, .08), 0 0 9px rgba(255, 78, 94, .56);
  animation: pulse 2.2s ease-in-out infinite;
}

.content { padding: 5px 12px 28px; }

.socials {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-link {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;
  background: #555;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.09), 0 5px 13px rgba(0,0,0,.2);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, box-shadow .3s ease;
}

.social-link::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(10,10,10,.92);
  color: #fff;
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: .22s ease;
}

.social-link:hover {
  transform: translateY(-4px) scale(1.08);
  background: #696969;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.12), 0 10px 22px rgba(0,0,0,.27);
}
.social-link:hover::after { opacity: 1; transform: translate(-50%, 0); }
.social-link svg { width: 17px; height: 17px; fill: #fff; }

.promo-card {
  position: relative;
  height: 204px;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(105, 73, 255, .34);
  border-radius: 12px;
  background: #111;
  box-shadow: 0 9px 30px rgba(0,0,0,.16);
  isolation: isolate;
  transition: transform .42s cubic-bezier(.16, 1, .3, 1), box-shadow .42s ease, border-color .42s ease;
}

.promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 33%;
  transition: transform .7s cubic-bezier(.16, 1, .3, 1), filter .45s ease;
}

.promo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.58), transparent 45%);
  z-index: 1;
}

.promo-card strong {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.promo-arrow {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(7px);
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: .35s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 95, 255, .7);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.promo-card:hover img { transform: scale(1.05); filter: brightness(1.04); }
.promo-card:hover .promo-arrow { opacity: 1; transform: translate(0,0); }

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.main-link {
  --accent: #fff;
  position: relative;
  height: 49px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.025);
  border-radius: 10px;
  background: var(--button-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018), 0 6px 18px rgba(0,0,0,.08);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .3s ease, box-shadow .35s ease;
}

.main-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 38%);
  opacity: 0;
  transform: translateX(-24%);
  transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}

.main-link:hover {
  transform: translateY(-3px) scale(1.008);
  background: var(--button-hover);
  box-shadow: 0 12px 25px rgba(0,0,0,.20);
}
.main-link:hover::before { opacity: 1; transform: translateX(0); }
.main-link:active { transform: translateY(-1px) scale(.995); }

.link-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}
.link-icon svg { width: 23px; height: 23px; fill: var(--accent); }

.link-title {
  position: relative;
  z-index: 1;
  justify-self: center;
  font-size: 12px;
  font-weight: 800;
}

.link-arrow {
  position: relative;
  z-index: 1;
  justify-self: center;
  color: rgba(255,255,255,.46);
  font-size: 14px;
  opacity: 0;
  transform: translateX(-7px);
  transition: .3s ease;
}
.main-link:hover .link-arrow { opacity: 1; transform: translateX(0); }

.social-link:focus-visible,
.promo-card:focus-visible,
.main-link:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}

@keyframes cardEnter {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.82); opacity: .72; }
}

@media (max-height: 850px) and (min-width: 600px) {
  .page-shell { align-items: start; padding-top: 0; }
  .profile-card { border-radius: 0 0 var(--card-radius) var(--card-radius); }
}

@media (max-width: 540px) {
  :root { --card-width: 100%; }
  body { background: #222; }
  .background { display: none; }
  .page-shell { display: block; padding: 0; }
  .profile-card {
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .hero { height: min(430px, 53svh); }
  .content { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}

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