/* ===== Custom properties ===== */
:root {
  --bg: #0a0612;
  --text: #f0f0f5;
  --text-muted: rgba(240, 240, 245, .5);
  --accent-purple: #7c4dff;
  --accent-purple-light: #b388ff;
  --accent-cyan: #00bcd4;
  --accent-pink: #ff4db4;
  --border: rgba(179, 136, 255, .15);
  --border-hover: rgba(179, 136, 255, .45);
  --card-bg: rgba(255, 255, 255, .04);
  --card-bg-hover: rgba(255, 255, 255, .07);
  --glow: rgba(124, 77, 255, .22);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }

/* ===== Page background (radial glows + noise) ===== */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 77, 255, .35), transparent 60%),
    radial-gradient(ellipse 50% 30% at 100% 100%, rgba(0, 188, 212, .18), transparent 60%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(255, 77, 180, .15), transparent 60%),
    var(--bg);
  position: relative;
  isolation: isolate;
}
.page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='1'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: -1;
}

/* ===== Card layout ===== */
.card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
@media (max-width: 340px) {
  .page { padding: 20px; }
}

/* ===== Name + handle ===== */
.name {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.handle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: -14px;
  font-feature-settings: "tnum";
}

/* ===== Avatar ===== */
.avatar {
  position: relative;
  width: 104px;
  height: 104px;
}
.avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--accent-purple-light),
    var(--accent-purple),
    var(--accent-cyan),
    var(--accent-pink),
    var(--accent-purple-light)
  );
  filter: blur(14px);
  opacity: .55;
  z-index: 0;
  animation: avatar-spin 14s linear infinite;
}
.avatar-inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .12);
  background:
    radial-gradient(circle at 30% 25%, var(--accent-purple-light) 0%, transparent 50%),
    radial-gradient(circle at 75% 70%, var(--accent-cyan) 0%, transparent 55%),
    radial-gradient(circle at 25% 80%, var(--accent-pink) 0%, transparent 50%),
    linear-gradient(135deg, #2a1a4a, #1a0a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

@keyframes avatar-spin {
  to { transform: rotate(360deg); }
}

/* ===== Links ===== */
.links { width: 100%; margin-top: 8px; }
.links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background-color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}
.link:hover,
.link:focus-visible {
  background: var(--card-bg-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 28px 0 var(--glow);
  transform: translateY(-1px);
}
.link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
}
.link-text { flex: 1; }
.link-arrow {
  opacity: .35;
  font-size: 14px;
  transition: opacity .2s ease, transform .2s ease;
}
.link:hover .link-arrow,
.link:focus-visible .link-arrow {
  opacity: .8;
  transform: translateX(2px);
}

/* ===== Entrance cascade ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.avatar,
.name,
.handle,
.links li {
  opacity: 0;
  animation: fade-up .4s ease-out forwards;
}
.avatar       { animation-delay: 0ms; }
.name         { animation-delay: 80ms; }
.handle       { animation-delay: 160ms; }
.links li:nth-child(1) { animation-delay: 240ms; }
.links li:nth-child(2) { animation-delay: 320ms; }
.links li:nth-child(3) { animation-delay: 400ms; }
.links li:nth-child(4) { animation-delay: 480ms; }
.links li:nth-child(5) { animation-delay: 560ms; }

/* ===== Focus-visible ===== */
.link:focus-visible {
  outline: 2px solid var(--accent-purple-light);
  outline-offset: 2px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .avatar-glow { animation: none; }
  .avatar,
  .name,
  .handle,
  .links li {
    opacity: 1;
    animation: none;
  }
  .link,
  .link-arrow { transition: none; }
}
