@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/playfair-700.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jakarta-400.woff2") format("woff2");
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jakarta-600.woff2") format("woff2");
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: #e7e0ea;
  background: linear-gradient(
    180deg,
    #151219 0%,
    #1a141c 18%,
    #120e16 38%,
    #151219 58%,
    #1a1218 78%,
    #0f0d14 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

::-webkit-scrollbar {
  display: none;
}

::selection {
  background: #e11d48;
  color: #fffaf9;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
}

.glow-rose {
  top: -8%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  background: rgba(225, 29, 72, 0.22);
  animation: pulse-glow 8s ease-in-out infinite;
}

.glow-violet {
  bottom: 8%;
  right: -10%;
  width: 360px;
  height: 360px;
  background: rgba(89, 45, 162, 0.28);
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

.glow-ember {
  bottom: 22%;
  left: -8%;
  width: 280px;
  height: 280px;
  background: rgba(163, 103, 0, 0.12);
  filter: blur(140px);
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 1rem max(2.5rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 9999px;
  object-fit: cover;
  border: 1.5px solid rgba(225, 29, 72, 0.35);
  box-shadow:
    0 0 32px rgba(225, 29, 72, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.55);
  background: #1d1a21;
}

.brand {
  margin: 0.25rem 0 0;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #e7e0ea;
}

.tagline {
  margin: 0;
  max-width: 28rem;
  font-size: 15px;
  line-height: 1.5;
  color: #e5bdbe;
}

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

.link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: inherit;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(33, 30, 37, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.link:nth-child(1) {
  animation-delay: 0.08s;
}
.link:nth-child(2) {
  animation-delay: 0.14s;
}
.link:nth-child(3) {
  animation-delay: 0.2s;
}
.link:nth-child(4) {
  animation-delay: 0.26s;
}
.link:nth-child(5) {
  animation-delay: 0.32s;
}
.link:nth-child(6) {
  animation-delay: 0.38s;
}

.link:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(44, 41, 48, 0.88);
  box-shadow:
    0 0 28px rgba(225, 29, 72, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.4);
}

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

.link-primary {
  border-color: rgba(225, 29, 72, 0.45);
  background: linear-gradient(180deg, #e11d48 0%, #be0037 100%);
  color: #fffaf9;
  box-shadow:
    0 0 32px -4px rgba(225, 29, 72, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.45);
}

.link-primary .link-sub {
  color: rgba(255, 250, 249, 0.78);
}

.link-primary .link-arrow {
  color: rgba(255, 250, 249, 0.85);
}

.link-primary:hover {
  border-color: rgba(255, 179, 182, 0.5);
  background: linear-gradient(180deg, #f43f5e 0%, #be0037 100%);
  box-shadow:
    0 0 36px -2px rgba(225, 29, 72, 0.65),
    0 14px 28px rgba(0, 0, 0, 0.5);
}

.link-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(15, 13, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.link-primary .link-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  text-align: left;
}

.link-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.link-sub {
  font-size: 12px;
  line-height: 18px;
  color: #ac8889;
}

.link-arrow {
  flex-shrink: 0;
  font-size: 1.125rem;
  color: #ffb3b6;
  opacity: 0.7;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.link:hover .link-arrow {
  transform: translateX(3px);
  opacity: 1;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.footer-note {
  margin: 0;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ac8889;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.glow-violet {
  animation-name: pulse-glow-free;
}

@keyframes pulse-glow-free {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@media (min-width: 480px) {
  .page {
    padding-top: 4rem;
  }

  .brand {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile,
  .link,
  .footer,
  .glow-rose,
  .glow-violet {
    animation: none;
  }

  .link:hover {
    transform: none;
  }
}
