
:root {
  --bg: #0e1620;
  --bg-soft: #121d29;
  --surface: #16222f;
  --surface-hover: #1c2c3c;
  --border: #253547;

  --text: #eef2f6;
  --text-muted: #93a4b5;
  --text-faint: #5f7183;

  --amber: #ffb454;
  --amber-soft: rgba(255, 180, 84, 0.14);
  --cyan: #57d6dd;
  --cyan-soft: rgba(87, 214, 221, 0.14);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 14px;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* subtle network-grid backdrop */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 12%, var(--cyan-soft), transparent 40%),
    radial-gradient(circle at 85% 82%, var(--amber-soft), transparent 42%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse at top, black, transparent 75%);
  mask-image: radial-gradient(ellipse at top, black, transparent 75%);
}

.hub {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}

/* ---------- profile ---------- */

.profile {
  text-align: center;
  margin-bottom: 34px;
}

.avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-soft);
  position: relative;
  z-index: 2;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0;
  animation: ping 3.2s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
}

.ring--2 {
  animation-delay: 1.6s;
  border-color: var(--amber);
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.status-dot {
  position: absolute;
  bottom: 6px;
  right: 4px;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border: 3px solid var(--bg);
  border-radius: 50%;
  z-index: 3;
}

.name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.title {
  margin: 0 0 10px;
  color: var(--amber);
  font-weight: 500;
  font-size: 0.95rem;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.icon-pin {
  flex-shrink: 0;
  color: var(--text-faint);
}

.bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 360px;
  margin: 0 auto;
}

.socials {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ---------- links ---------- */

.links {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 34px;
}

.links-trace {
  position: absolute;
  left: 25px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--border) 40%, var(--amber) 100%);
  opacity: 0.35;
  z-index: 0;
}

.link-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.link-card:hover,
.link-card:focus-visible {
  background: var(--surface-hover);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

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

.link-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  color: var(--cyan);
}

.link-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-text strong {
  font-size: 0.94rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-text small {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.link-arrow {
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform 0.18s ease, color 0.18s ease;
}

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

.link-card.copied .link-icon {
  color: var(--amber);
}

/* ---------- stack tags ---------- */

.stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.stack-item {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- footer ---------- */

.foot {
  text-align: center;
}

.foot p {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.78rem;
}

/* ---------- accessibility & motion ---------- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
    display: none;
  }
  .link-card,
  .socials a {
    transition: none;
  }
}

@media (max-width: 380px) {
  .hub {
    padding: 40px 16px 32px;
  }
  .name {
    font-size: 1.5rem;
  }
}
