:root {
  --bg: #050713;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.08);
  --text: #f4f6ff;
  --muted: #a7b1d2;
  --accent: #7bffb5;
  --accent-2: #8ec5ff;
  --shadow: 0 25px 70px rgba(4, 6, 16, 0.7);
  --radius: 22px;
  --glow-size: 420px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px 48px;
}

.gradient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px circle at 10% 20%, rgba(123, 255, 181, 0.12), transparent 40%),
    radial-gradient(640px circle at 85% 10%, rgba(142, 197, 255, 0.14), transparent 45%),
    radial-gradient(820px circle at 60% 80%, rgba(255, 140, 200, 0.12), transparent 50%),
    linear-gradient(130deg, #070a1c, #060513, #050511);
  filter: saturate(1.1);
  z-index: -3;
}

.glow {
  position: fixed;
  width: var(--glow-size);
  height: var(--glow-size);
  background: radial-gradient(circle, rgba(123, 255, 181, 0.25), rgba(142, 197, 255, 0));
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.45;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: -2;
  top: -200px;
  left: -200px;
}

.falling-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.falling-icon {
  position: absolute;
  top: -120px;
  color: #ffffff;
  opacity: 0.2;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
  animation: fallFloat linear infinite;
}

.falling-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes fallFloat {
  0% {
    transform: translateY(-140px) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.25;
  }
  90% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(120vh) translateX(-18px) rotate(120deg);
    opacity: 0;
  }
}

.canvas {
  width: min(100%, 1040px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 32px;
  padding: 32px clamp(18px, 5vw, 40px) 28px;
  position: relative;
  overflow: hidden;
}

.canvas::before,
.canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.canvas::before {
  border: 1px solid rgba(255, 255, 255, 0.03);
  opacity: 0.6;
}

.canvas::after {
  background: radial-gradient(300px circle at 80% 20%, rgba(255, 255, 255, 0.04), transparent 50%);
  mix-blend-mode: screen;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 5vw, 32px);
  align-items: center;
  margin-bottom: 26px;
}

.avatar-wrap {
  position: relative;
}

.avatar {
  width: clamp(240px, 70vw, 440px);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 14px 40px rgba(4, 6, 16, 0.6),
    0 0 0 10px rgba(255, 255, 255, 0.04);
}

.status-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, var(--accent), #53c18f);
  border: 3px solid var(--bg);
  border-radius: 50%;
  right: 14px;
  bottom: 14px;
  box-shadow: 0 0 18px rgba(123, 255, 181, 0.8);
}

.headline .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(123, 255, 181, 0.16), rgba(142, 197, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  margin: 12px 0 6px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.02em;
}

.bio {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--stroke);
  font-size: 14px;
}

.chip svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #031112;
  border: none;
  box-shadow: 0 10px 30px rgba(123, 255, 181, 0.35);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.06);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 15px 40px rgba(123, 255, 181, 0.5);
}

.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: #fff;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.social:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.links {
  display: grid;
  gap: 14px;
  margin: 8px 0 18px;
}

.link-card {
  position: relative;
  padding: 16px 18px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(123, 255, 181, 0.08), rgba(142, 197, 255, 0.12));
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

.link-card:hover::before {
  opacity: 1;
}

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(123, 255, 181, 0.16), rgba(142, 197, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0c172d;
  font-weight: 700;
  font-size: 18px;
  z-index: 1;
}

.link-info {
  z-index: 1;
}

.link-title {
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.link-action {
  z-index: 1;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.link-action svg {
  width: 16px;
  height: 16px;
}

.link-action:hover {
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.footnote {
  margin-top: 12px;
  padding: 14px 0 6px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  border-top: 1px solid var(--stroke);
}

@media (max-width: 720px) {
  body {
    padding: 22px 12px 32px;
  }

  .canvas {
    padding: 20px 16px 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .avatar-wrap {
    justify-self: center;
  }

  .meta,
  .actions,
  .socials {
    justify-content: center;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .link-card {
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      "icon info"
      "cta cta";
  }

  .icon-badge {
    grid-area: icon;
    width: 44px;
    height: 44px;
  }

  .link-info {
    grid-area: info;
  }

  .link-action {
    grid-area: cta;
    justify-self: start;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 26px;
  }

  .bio {
    font-size: 15px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
