:root {
  --bg: #0d0f10;
  --text: #f2f2f0;
  --text-muted: #9a9a97;
  --accent: #2dd4bf;
  --link-bg: rgba(255, 255, 255, 0.04);
  --link-border: rgba(255, 255, 255, 0.1);
  --link-shadow: rgba(0, 0, 0, 0.35);
  --footer: #55585d;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  position: relative;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: linear-gradient(rgba(45, 212, 191, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.1) 1px, transparent 1px);
  background-size: 26px 26px;
  animation: lt-drift 14s ease-in-out infinite;
}

.bg-dot {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: lt-pulse 2s ease-in-out infinite;
}

@keyframes lt-drift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-14px, 10px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes lt-pulse {
  0%,
  100% {
    opacity: 0.14;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes lt-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.name {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.links {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px 18px;
  background: var(--link-bg);
  border: 1px solid var(--link-border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 1px 2px var(--link-shadow);
  backdrop-filter: blur(6px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--link-shadow);
  border-color: var(--accent);
}

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

.link-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.link-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.footer {
  margin-top: 32px;
  font: 400 12px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color: var(--accent);
  opacity: 0.8;
}

.footer .cursor {
  animation: lt-blink 1s step-end infinite;
}

@media (max-width: 380px) {
  .name {
    font-size: 20px;
  }
  .link {
    padding: 13px 16px;
    font-size: 14.5px;
  }
}
