:root {
  --bg: #08080c;
  --bg-elev: rgba(255, 255, 255, 0.04);
  --bg-elev-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --text-muted: #9a9aa3;
  --text-dim: #6b6b75;
  --accent: #a78bfa;
  --accent-2: #ec4899;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 6vw, 64px) 20px;
  position: relative;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(236, 72, 153, 0.12), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(56, 189, 248, 0.10), transparent 65%);
  filter: blur(20px) saturate(120%);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.04); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: clamp(24px, 5vw, 36px);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
  animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.profile {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 30px -10px rgba(167, 139, 250, 0.5);
  object-fit: cover;
  margin-bottom: 4px;
}

.name {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.bio {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 32ch;
  line-height: 1.5;
}

.badge {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  will-change: transform;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

.link:nth-child(1) { animation-delay: 0.05s; }
.link:nth-child(2) { animation-delay: 0.10s; }
.link:nth-child(3) { animation-delay: 0.15s; }
.link:nth-child(4) { animation-delay: 0.20s; }
.link:nth-child(5) { animation-delay: 0.25s; }
.link:nth-child(6) { animation-delay: 0.30s; }
.link:nth-child(7) { animation-delay: 0.35s; }
.link:nth-child(8) { animation-delay: 0.40s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.link:hover,
.link:focus-visible {
  background: var(--bg-elev-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  outline: none;
}

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

.link .icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--text);
  flex-shrink: 0;
}

.link .icon svg {
  width: 100%;
  height: 100%;
}

.link .label {
  flex: 1;
}

.link .arrow {
  color: var(--text-dim);
  transition: transform 0.2s ease, color 0.2s ease;
  font-size: 16px;
}

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

.foot {
  margin-top: 28px;
  text-align: center;
}

.foot p {
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

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