:root {
  --bg: #050816;
  --bg-alt: #020617;
  --card-bg: rgba(15, 23, 42, 0.95);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-strong: rgba(56, 189, 248, 0.6);
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 22px 50px rgba(15, 23, 42, 0.65);
  --blur-radius: 28px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
}

.theme-light {
  --bg: #f5f3ff;
  --bg-alt: #eef2ff;
  --card-bg: rgba(250, 250, 255, 0.9);
  --text: #020617;
  --muted: #6b7280;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-strong: rgba(99, 102, 241, 0.6);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #0f172a 0, var(--bg) 40%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.glow {
  position: fixed;
  inset: auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(var(--blur-radius));
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
  animation: float 16s ease-in-out infinite alternate;
}

.theme-light .glow {
  mix-blend-mode: multiply;
  opacity: 0.75;
}

.glow--one {
  top: -80px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, #22d3ee, transparent 60%),
    radial-gradient(circle at 70% 70%, #6366f1, transparent 60%);
}

.glow--two {
  bottom: -120px;
  left: -160px;
  background: radial-gradient(circle at 30% 30%, #f97316, transparent 55%),
    radial-gradient(circle at 70% 70%, #ec4899, transparent 60%);
  animation-delay: 4s;
}

.card {
  position: relative;
  backdrop-filter: blur(30px) saturate(145%);
  -webkit-backdrop-filter: blur(30px) saturate(145%);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  border-radius: var(--radius-lg);
  padding: 22px 20px 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transform-origin: center;
  transform-style: preserve-3d;
}

.theme-light .card {
  background: linear-gradient(145deg, rgba(250, 250, 255, 0.96), rgba(238, 242, 255, 0.92));
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.5), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(129, 140, 248, 0.5), transparent 55%);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
}

.theme-light .card::before {
  opacity: 0.14;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 10%, #f97316, #ec4899 55%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.85);
  position: relative;
  overflow: hidden;
}

.theme-light .avatar {
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.45);
}

.avatar::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 10%, rgba(249, 115, 22, 0.1), transparent 60%);
}

.avatar-initials {
  position: relative;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 18px;
  text-transform: uppercase;
  color: #f9fafb;
}

.headline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.tagline {
  margin: 0;
  font-size: 13px;
  text-transform: lowercase;
  color: var(--muted);
}

.bio {
  margin: 6px 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

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

.link-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 65%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.4), transparent 65%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background-position var(--transition-med);
  will-change: transform;
}

.theme-light .link-chip {
  background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 70%),
    linear-gradient(135deg, rgba(250, 250, 255, 0.98), rgba(238, 242, 255, 0.96));
}

.link-chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -20%, rgba(248, 250, 252, 0.35), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-med);
}

.link-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  font-size: 14px;
  flex-shrink: 0;
  position: relative;
}

.theme-light .link-icon {
  background: rgba(15, 23, 42, 0.96);
}

.link-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg,
    rgba(56, 189, 248, 0.8),
    rgba(59, 130, 246, 0.8),
    rgba(236, 72, 153, 0.85),
    rgba(56, 189, 248, 0.8)
  );
  mask: radial-gradient(circle at center, transparent 55%, black 56%);
}

.link-icon--ig::after,
.link-icon--gh::after,
.link-icon--tt::after,
.link-icon--tw::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: inherit;
  background: #020617;
}

.theme-light .link-icon--ig::after,
.theme-light .link-icon--gh::after,
.theme-light .link-icon--tt::after,
.theme-light .link-icon--tw::after {
  background: #f9fafb;
}

.link-chip:nth-child(1) .link-icon::before {
  background: conic-gradient(
    from 200deg,
    #f97316,
    #ec4899,
    #6366f1,
    #22c55e,
    #f97316
  );
}

.link-chip:nth-child(2) .link-icon::before {
  background: conic-gradient(from 180deg, #0ea5e9, #22c55e, #0f172a, #0ea5e9);
}

.link-chip:nth-child(3) .link-icon::before {
  background: conic-gradient(from 150deg, #22c55e, #eab308, #f97316, #22c55e);
}

.link-chip:nth-child(4) .link-icon::before {
  background: conic-gradient(from 160deg, #22d3ee, #6366f1, #0f172a, #22d3ee);
}

.link-text {
  font-size: 14px;
  font-weight: 500;
}

.link-hint {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.link-chip:hover {
  transform: translateY(-1px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.9);
}

.theme-light .link-chip:hover {
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.35);
}

.link-chip:hover::after {
  opacity: 1;
}

.link-chip:active {
  transform: translateY(0) scale(0.995);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.75);
}

.footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f97316, #ec4899);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.theme-toggle {
  position: fixed;
  right: 20px;
  top: 18px;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 60%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  padding: 2px;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.75);
  transition:
    background var(--transition-med),
    border-color var(--transition-med),
    box-shadow var(--transition-med),
    transform var(--transition-fast);
}

.theme-light .theme-toggle {
  background: radial-gradient(circle at 0 0, rgba(99, 102, 241, 0.23), transparent 60%),
    linear-gradient(135deg, #eef2ff, #e5e7eb);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
}

.theme-toggle:active {
  transform: scale(0.97);
}

.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  background: transparent;
  color: #e5e7eb;
  opacity: 0.35;
  transform-origin: center;
  transition:
    opacity var(--transition-med),
    transform var(--transition-med),
    background var(--transition-med),
    color var(--transition-med);
}

.theme-light .theme-icon {
  color: #020617;
}

.theme-icon--sun {
  transform: translateX(0);
}

.theme-icon--moon {
  transform: translateX(4px);
}

.theme-dark .theme-icon--moon,
body:not(.theme-light) .theme-icon--moon {
  opacity: 0.9;
  background: radial-gradient(circle at 30% 20%, #22d3ee, #6366f1);
}

.theme-dark .theme-icon--sun,
body:not(.theme-light) .theme-icon--sun {
  opacity: 0.25;
}

.theme-light .theme-icon--sun {
  opacity: 0.95;
  background: radial-gradient(circle at 30% 20%, #fde047, #f97316);
}

.theme-light .theme-icon--moon {
  opacity: 0.12;
}

@keyframes float {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(30px, -40px, 0) scale(1.05);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 16px;
  }

  .card {
    padding: 18px 16px 14px;
  }

  .card-header {
    gap: 12px;
  }

  .avatar {
    width: 48px;
    height: 48px;
    border-radius: 18px;
  }

  .name {
    font-size: 20px;
  }

  .bio {
    font-size: 13px;
  }

  .theme-toggle {
    right: 14px;
    top: 14px;
    transform: scale(0.94);
  }
}
