/* Shared styles for team link-in-bio pages (usedigi.io/<name>/) */
:root {
  --bg: #050505;
  --surface: #141414;
  --line: #262626;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --green: #00e639;
  --green-hover: #00ff44;
  --green-line: rgba(0,230,57,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: "Raleway", system-ui, sans-serif;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ───── Background: green glows + slow panning dot grid (same motion as the main site) ───── */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.bg::before, .bg::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(40px);
}
.bg::before { top: -30vmax; right: -25vmax; background: radial-gradient(circle, rgba(0,230,57,.22), transparent 65%); }
.bg::after { bottom: -32vmax; left: -28vmax; background: radial-gradient(circle, rgba(0,230,57,.14), transparent 65%); }
.bg-grid {
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background-image: radial-gradient(rgba(0,230,57,.18) 1px, transparent 1px);
  background-size: 40px 40px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 65%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 65%);
  animation: panGrid 20s linear infinite;
}
@keyframes panGrid { to { transform: translate(40px, 40px); } }

/* ───── Layout ───── */
.profile {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 64px 20px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.avatar {
  width: 140px; height: 140px; border-radius: 32px; overflow: hidden;
  border: 2px solid var(--green);
  box-shadow: 0 0 0 6px rgba(0,230,57,.08), 0 18px 50px -12px rgba(0,230,57,.55);
  background: #0a0a0a;
}
/* --zoom / --focus let each page frame a face in a wider photo */
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: var(--focus, 50% 50%); }

.name { margin: 28px 0 12px; font-size: clamp(36px, 9vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.name span { color: var(--green); }
.bio { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ───── Links ───── */
.links { list-style: none; margin: 40px 0 0; padding: 0; width: 100%; display: grid; gap: 16px; }
.link {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 70px; padding: 0 28px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(20,20,20,.85);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 18px; font-weight: 700;
  transition: all .3s ease;
}
.link:hover { transform: scale(1.03); border-color: var(--green); box-shadow: 0 8px 30px rgba(0,230,57,.25); }
.link:active { transform: translateY(1px); }
.link-primary { background: var(--green); border-color: var(--green); color: #000; box-shadow: 0 4px 15px rgba(0,230,57,.3); }
.link-primary:hover { background: var(--green-hover); box-shadow: 0 8px 30px rgba(0,230,57,.7); }
.link svg, .link img { width: 24px; height: 24px; flex: none; object-fit: contain; }
.link svg { fill: currentColor; }

.powered {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 56px; padding: 10px 20px; border-radius: 999px;
  background: #fff; color: #000; font-size: 15px; font-weight: 600;
  transition: all .3s ease;
}
.powered:hover { transform: scale(1.05); box-shadow: 0 8px 30px rgba(0,230,57,.45); }
.powered img { width: 22px; height: 22px; object-fit: contain; }

/* Entrance animation */
.profile > * { animation: rise .6s ease both; }
.profile > :nth-child(2) { animation-delay: .06s; }
.profile > :nth-child(3) { animation-delay: .12s; }
.profile > :nth-child(4) { animation-delay: .18s; }
.profile > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .bg-grid, .profile > * { animation: none; }
  .link:hover, .powered:hover { transform: none; }
}

@media (max-width: 480px) {
  .profile { padding-top: 48px; }
  .avatar { width: 120px; height: 120px; border-radius: 28px; }
  .link { min-height: 62px; font-size: 17px; }
}
