:root {
  color-scheme: dark;
  --bg: #030006;
  --ink: #fbf7ff;
  --muted: #d8cbe5;
  --dim: #a391b2;
  --line: rgba(178, 96, 255, 0.24);
  --violet: #8f2cff;
  --violet-2: #d45cff;
  --cyan: #68f1ff;
  --hot: #ff4fd8;
  --glass: rgba(28, 18, 40, 0.58);
  --glass-strong: rgba(42, 29, 58, 0.72);
  --hairline: rgba(255, 255, 255, 0.16);
  --hairline-bright: rgba(255, 255, 255, 0.28);
  --shadow: 0 28px 90px rgba(18, 4, 34, 0.62);
  --spring: cubic-bezier(0.2, 1.15, 0.28, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, Inter, ui-sans-serif, system-ui, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 8%, rgba(104, 241, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 4%, rgba(255, 79, 216, 0.2), transparent 24rem),
    radial-gradient(circle at 50% 0%, rgba(140, 39, 255, 0.38), transparent 34rem),
    linear-gradient(180deg, #10031a 0%, #050008 56%, #000 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 72%);
  pointer-events: none;
}

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

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    conic-gradient(from 140deg at 42% 38%, transparent 0deg, rgba(104, 241, 255, 0.18) 50deg, transparent 116deg),
    conic-gradient(from 22deg at 62% 30%, transparent 0deg, rgba(255, 79, 216, 0.2) 46deg, rgba(143, 44, 255, 0.26) 118deg, transparent 188deg);
  filter: blur(56px);
  opacity: 0.78;
  animation: auroraDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(143, 44, 255, 0.42), transparent 21rem),
    rgba(3, 0, 6, 0.88);
  backdrop-filter: blur(28px);
  transition:
    opacity 620ms ease,
    visibility 620ms ease,
    transform 620ms var(--spring);
}

.loader-card {
  position: relative;
  overflow: hidden;
  display: grid;
  width: min(100%, 340px);
  min-height: 220px;
  place-items: center;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--hairline);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
    rgba(18, 10, 28, 0.72);
  box-shadow: var(--shadow);
  text-align: center;
}

.loader-sheen {
  position: absolute;
  inset: -1px;
  background: linear-gradient(115deg, transparent 16%, rgba(255, 255, 255, 0.18) 38%, transparent 58%);
  transform: translateX(-90%);
  animation: sheen 1.8s ease-in-out infinite;
  pointer-events: none;
}

.loader-ring {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0.16);
  border-top-color: #fff;
  border-right-color: var(--violet-2);
  border-radius: 50%;
  box-shadow: 0 0 34px rgba(212, 92, 255, 0.5);
  animation: spin 820ms linear infinite;
}

.loader p {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.45;
}

.loader-dots {
  display: flex;
  gap: 7px;
}

.loader-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  animation: dotPulse 900ms ease-in-out infinite;
}

.loader-dots span:nth-child(2) {
  animation-delay: 120ms;
}

.loader-dots span:nth-child(3) {
  animation-delay: 240ms;
}

body.profile-ready .loader {
  visibility: hidden;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

body.is-loading .shell {
  transform: translateY(16px) scale(0.98);
  opacity: 0;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.58;
  pointer-events: none;
}

.glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(84px);
  opacity: 0.28;
  pointer-events: none;
}

.glow-a {
  top: 6rem;
  left: 50%;
  background: #7b20ff;
  transform: translateX(-50%);
}

.glow-b {
  right: -14rem;
  bottom: 8rem;
  background: #ff38cc;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 920px);
  margin: 0 auto;
  padding: 14px 0 56px;
  transition:
    opacity 700ms ease,
    transform 820ms var(--spring);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.22), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(14, 8, 22, 0.58);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(28px) saturate(1.55);
}

.brand,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  padding: 5px 12px 5px 6px;
  color: #f7edff;
  font-size: 0.86rem;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 10px;
  background:
    radial-gradient(circle at 35% 25%, #fff, transparent 13%),
    linear-gradient(135deg, var(--violet), #1b072f 70%);
  box-shadow: 0 0 22px rgba(143, 44, 255, 0.75);
  color: white;
  font-size: 0.78rem;
}

.icon-link {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 26px rgba(var(--brand-rgb, 143, 44, 255), 0.16);
  color: #eee5ff;
  transition:
    transform 260ms var(--spring),
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.icon-link:hover,
.link-card:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(212, 92, 255, 0.78);
  box-shadow:
    0 16px 42px rgba(143, 44, 255, 0.32),
    0 0 28px rgba(var(--brand-rgb, 143, 44, 255), 0.26);
}

.icon-link:active,
.link-card:active {
  transform: scale(0.965);
}

.icon-link svg,
.link-card svg,
.brand-logo {
  width: 18px;
  height: 18px;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.hero {
  display: flex;
  min-height: 640px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 70px 22px 56px;
  border: 1px solid var(--hairline);
  border-radius: 42px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.2), transparent 22%),
    linear-gradient(320deg, rgba(104, 241, 255, 0.08), transparent 38%),
    radial-gradient(circle at 50% 0%, rgba(143, 44, 255, 0.28), transparent 27rem),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.5);
  text-align: center;
  animation: appReveal 720ms var(--spring) both 120ms;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
}

.hero::after {
  top: -20%;
  left: 18%;
  width: 64%;
  height: 44%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(42px);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.status-pill,
.kicker,
.eyebrow,
.section-heading p {
  color: #d9b8ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(143, 44, 255, 0.22);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.avatar-wrap {
  position: relative;
  display: grid;
  width: 128px;
  height: 128px;
  margin-bottom: 22px;
  place-items: center;
  filter: drop-shadow(0 24px 48px rgba(143, 44, 255, 0.24));
}

.avatar {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 18%),
    linear-gradient(315deg, rgba(255, 79, 216, 0.2), transparent 42%),
    radial-gradient(circle at 64% 28%, rgba(104, 241, 255, 0.28), transparent 18%),
    linear-gradient(145deg, #2a0a46, #08010d 68%);
  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.07),
    0 0 46px rgba(143, 44, 255, 0.56);
  color: white;
  font-size: 1.8rem;
  font-weight: 850;
  letter-spacing: 0;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(212, 92, 255, 0.38);
  border-radius: 50%;
  transform: rotate(-18deg);
  animation: floatOrbit 5s ease-in-out infinite;
}

.orbit-one {
  width: 126px;
  height: 52px;
}

.orbit-two {
  width: 92px;
  height: 146px;
  border-color: rgba(104, 241, 255, 0.2);
}

.kicker {
  margin: 0 0 10px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0 34px rgba(184, 87, 255, 0.48),
    0 0 2px rgba(255, 255, 255, 0.7);
}

.tagline {
  width: min(100%, 560px);
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 440px);
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.profile-metrics span {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  color: var(--dim);
  font-size: 0.74rem;
  line-height: 1.25;
}

.profile-metrics span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-metrics strong {
  color: #fff;
  font-size: 1.02rem;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quick-links .icon-link {
  width: auto;
  min-width: 118px;
  height: 48px;
  grid-auto-flow: column;
  grid-template-columns: 18px auto;
  gap: 8px;
  padding: 0 14px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(18, 9, 29, 0.66);
  font-size: 0.86rem;
  font-weight: 750;
}

.panel,
.about-strip {
  border: 1px solid var(--hairline);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.45);
  animation: appReveal 720ms var(--spring) both 220ms;
}

.panel {
  padding: 24px;
  border-radius: 30px;
  margin-top: 16px;
}

.panel::before,
.about-strip::before {
  display: block;
  height: 1px;
  margin: -24px -24px 22px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading p,
.eyebrow {
  margin-bottom: 6px;
}

.section-heading h2,
.about-strip h2 {
  margin-bottom: 0;
  font-size: 1.26rem;
  line-height: 1.2;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.link-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  min-height: 96px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--brand-rgb, 143, 44, 255), 0.24), transparent 9rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent),
    rgba(5, 2, 9, 0.72);
  transition:
    transform 260ms var(--spring),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transform: translateX(-70%);
  transition:
    opacity 220ms ease,
    transform 520ms ease;
  content: "";
  pointer-events: none;
}

.link-card:hover::after {
  opacity: 1;
  transform: translateX(70%);
}

.link-card .icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(var(--brand-rgb, 143, 44, 255), 0.52), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(143, 44, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 30px rgba(var(--brand-rgb, 143, 44, 255), 0.22);
  color: #f6eaff;
}

.link-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.link-card span {
  display: block;
  color: var(--dim);
  font-size: 0.8rem;
  line-height: 1.35;
}

.about-strip {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1fr;
  gap: 24px;
  margin-top: 16px;
  padding: 24px;
  border-radius: 30px;
  animation-delay: 300ms;
}

.about-strip p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 560px);
    padding-top: 10px;
  }

  .topbar {
    top: 8px;
  }

  .nav-actions .icon-link:nth-child(n + 4) {
    display: none;
  }

  .hero {
    min-height: 650px;
    padding: 50px 16px 38px;
    border-radius: 34px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5.8rem);
  }

  .link-grid,
  .about-strip {
    grid-template-columns: 1fr;
  }

  .panel,
  .about-strip {
    padding: 16px;
  }

  .panel::before,
  .about-strip::before {
    margin: -16px -16px 18px;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    display: none;
  }

  .quick-links .icon-link {
    min-width: calc(50% - 5px);
    justify-content: center;
  }

  .link-card {
    min-height: 86px;
  }
}

@media (max-width: 360px) {
  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .profile-metrics span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheen {
  0% {
    transform: translateX(-90%);
  }
  62%,
  100% {
    transform: translateX(90%);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-2%, -1%, 0) rotate(-3deg) scale(1);
  }
  to {
    transform: translate3d(2%, 1%, 0) rotate(4deg) scale(1.05);
  }
}

@keyframes appReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatOrbit {
  0%,
  100% {
    transform: rotate(-18deg) translateY(0);
  }
  50% {
    transform: rotate(-10deg) translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
