:root {
  --color-midnight-canvas: #05060f;
  --color-steel-plate: #2f343e;
  --color-fog-veil: #9da7ba;
  --color-moon-mist: #c7d3ea;
  --color-frost-glow: #d1e4fa;
  --color-pure-white: #ffffff;
  --color-void-violet: #663af3;
  --color-blueprint-blue: #b6d9fc;
  --color-gridline-blue: #3f4959;
  --color-glass-edge: rgba(186, 215, 247, 0.12);
  --color-luminous-fill: rgba(199, 211, 234, 0.12);
  --color-frost-wash: rgba(186, 214, 247, 0.06);
  --color-frost-surface: rgba(186, 214, 247, 0.03);

  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-card: 16px;
  --radius-badge: 6px;
  --radius-pill: 999px;

  --shadow-feature:
    inset 0 1px 1px rgba(199, 211, 234, 0.12),
    inset 0 24px 48px rgba(199, 211, 234, 0.05),
    0 24px 32px rgba(6, 6, 14, 0.7);
  --shadow-auth:
    inset 0 1px 1px rgba(216, 236, 248, 0.2),
    inset 0 24px 48px rgba(168, 216, 245, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.3);
  --shadow-subtle: inset 0 0 0 1px var(--color-glass-edge);

  --page-max: 420px;
}

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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-midnight-canvas);
  color: var(--color-frost-glow);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

.spotlight {
  position: absolute;
  inset: -20% -10% auto;
  height: 70vh;
  background: conic-gradient(
    from 180deg at 50% -5%,
    transparent 45%,
    rgba(124, 145, 182, 0.3) 49%,
    rgba(124, 145, 182, 0.5) 50%,
    rgba(124, 145, 182, 0.3) 51%,
    transparent 55%
  );
  filter: blur(18px);
  opacity: 0.85;
  animation: spotlight-breathe 8s ease-in-out infinite;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(186, 215, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 215, 247, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 20%, transparent 75%);
}

.grid-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(124, 145, 182, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(102, 58, 243, 0.08), transparent 70%);
}

.cross {
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: 0.45;
}

.cross::before,
.cross::after {
  content: "";
  position: absolute;
  background: rgba(186, 215, 247, 0.35);
}

.cross::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.cross::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
  transform: translateY(-50%);
}

.cross-tl {
  top: 28px;
  left: 28px;
}

.cross-tr {
  top: 28px;
  right: 28px;
}

.cross-bl {
  bottom: 28px;
  left: 28px;
}

.cross-br {
  bottom: 28px;
  right: 28px;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--page-max));
  margin: 0 auto;
  padding: 4.5rem 0 3.5rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0 0 1.75rem;
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-moon-mist);
  white-space: nowrap;
}

.eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(186, 215, 247, 0.12) 35%,
    rgba(186, 215, 247, 0.12) 65%,
    transparent
  );
}

.avatar-wrap {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 4px;
  border-radius: 9999px;
  background: rgba(186, 214, 247, 0.04);
  box-shadow:
    var(--shadow-subtle),
    0 0 24px rgba(186, 207, 247, 0.16);
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(186, 207, 247, 0.18), transparent 68%);
  z-index: -1;
  animation: glow-pulse 5.5s ease-in-out infinite;
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 9999px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.18);
}

.wordmark {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 3.75rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  background-image: linear-gradient(180deg, #d8ecf8 0%, #98c0ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(186, 207, 247, 0.28));
}

.handle {
  margin: 0.55rem 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-fog-veil);
}

.bio {
  margin: 0.85rem 0 0;
  max-width: 28ch;
  color: var(--color-moon-mist);
  font-size: 16px;
  line-height: 1.45;
}

.panel {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: rgba(5, 6, 15, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-auth);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--color-void-violet);
  color: var(--color-pure-white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    box-shadow 180ms ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 28px rgba(102, 58, 243, 0.28);
}

.cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

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

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--color-fog-veil);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(186, 215, 247, 0.12),
    transparent
  );
}

.links {
  display: grid;
  gap: 0.7rem;
}

.link,
.extra {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 56px;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-frost-wash);
  box-shadow: var(--shadow-subtle);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.link:hover,
.extra:hover {
  background: rgba(186, 214, 247, 0.12);
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(186, 215, 247, 0.2),
    0 10px 24px rgba(6, 6, 14, 0.45);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9999px;
  background: rgba(186, 214, 247, 0.06);
  color: var(--color-frost-glow);
  box-shadow:
    inset 0 0 0 1px rgba(186, 215, 247, 0.12),
    0 0 6px rgba(186, 207, 247, 0.22);
}

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

.link-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.link-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-pure-white);
  line-height: 1.2;
}

.link-meta {
  font-size: 12px;
  color: var(--color-fog-veil);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  color: var(--color-moon-mist);
  font-size: 14px;
  opacity: 0.7;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.link:hover .link-arrow,
.extra:hover .link-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

.extras {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.extra {
  border-radius: var(--radius-card);
  background: var(--color-frost-surface);
  box-shadow: var(--shadow-feature);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-badge);
  background: var(--color-luminous-fill);
  color: var(--color-frost-glow);
  font-size: 12px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(186, 215, 247, 0.08);
}

.extra-label {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-pure-white);
}

.footer {
  margin-top: 2.5rem;
  text-align: center;
}

.footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fog-veil);
}

/* Entrance motion */
.hero > *,
.panel,
.footer {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero > *:nth-child(1) {
  animation-delay: 60ms;
}
.hero > *:nth-child(2) {
  animation-delay: 140ms;
}
.hero > *:nth-child(3) {
  animation-delay: 220ms;
}
.hero > *:nth-child(4) {
  animation-delay: 280ms;
}
.hero > *:nth-child(5) {
  animation-delay: 340ms;
}
.panel {
  animation-delay: 420ms;
}
.footer {
  animation-delay: 560ms;
}

.link,
.extra,
.cta {
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cta {
  animation-delay: 500ms;
}
.divider {
  opacity: 0;
  animation: fade-in 700ms ease forwards;
  animation-delay: 560ms;
}
.link:nth-child(1) {
  animation-delay: 600ms;
}
.link:nth-child(2) {
  animation-delay: 660ms;
}
.link:nth-child(3) {
  animation-delay: 720ms;
}
.link:nth-child(4) {
  animation-delay: 780ms;
}
.link:nth-child(5) {
  animation-delay: 840ms;
}
.link:nth-child(6) {
  animation-delay: 900ms;
}
.extra:nth-child(1) {
  animation-delay: 980ms;
}
.extra:nth-child(2) {
  animation-delay: 1040ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes spotlight-breathe {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.03);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero > *,
  .panel,
  .footer,
  .link,
  .extra,
  .cta,
  .divider {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .page {
    padding-top: 5.5rem;
  }

  .cross-tl,
  .cross-tr {
    top: 40px;
  }

  .cross-bl,
  .cross-br {
    bottom: 40px;
  }

  .cross-tl,
  .cross-bl {
    left: 40px;
  }

  .cross-tr,
  .cross-br {
    right: 40px;
  }
}
