:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.2);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.3);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
  --radius-lg: 18px;
  --radius-full: 999px;
  --transition: 180ms ease-out;
  --max-width: 420px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  color: var(--text);
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Subtle animated background */
.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(129, 140, 248, 0.18), transparent 55%),
    radial-gradient(circle at 0% 80%, rgba(45, 212, 191, 0.12), transparent 55%);
  opacity: 0.9;
  filter: blur(2px);
  z-index: -1;
}

/* Main card */
.card {
  width: 100%;
  max-width: var(--max-width);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 24px 22px 18px;
  backdrop-filter: blur(18px);
}

/* Profile section */
.profile {
  text-align: center;
  margin-bottom: 18px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  object-fit: cover;
  margin-bottom: 12px;
}

.profile h1 {
  font-size: 1.4rem;
  margin: 0 0 4px;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 10px;
}

.link-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.96));
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.85);
}

.link-btn span:first-child {
  font-weight: 500;
}

.link-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.link-btn:hover {
  transform: translateY(-1px) translateZ(0);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.35), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.95);
}

.link-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.9);
}

/* Footer */
.footer {
  margin-top: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.heart {
  color: #f97373;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .card {
    padding: 20px 16px 14px;
  }

  .link-btn {
    padding: 10px 12px;
  }
}