:root {
  --bg: #0a0a0f;
  --bg-soft: #101018;
  --fg: #eef0f5;
  --fg-dim: #9a9db0;
  --accent: #7c5cff;
  --accent-soft: #5ce1e6;
  --border: rgba(255, 255, 255, 0.08);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow--one {
  width: 480px;
  height: 480px;
  background: var(--accent);
  top: -160px;
  left: -120px;
}

.glow--two {
  width: 420px;
  height: 420px;
  background: var(--accent-soft);
  bottom: -140px;
  right: -100px;
  opacity: 0.22;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 640px;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero__name {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: linear-gradient(100deg, #fff 20%, var(--accent-soft) 45%, var(--accent) 60%, #fff 80%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-sweep 6s ease-in-out infinite;
}

.hero__name::before,
.hero__name::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  pointer-events: none;
}

.hero__name::before {
  color: var(--accent-soft);
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  animation: glitch-flicker-a 4s steps(1) infinite;
}

.hero__name::after {
  color: var(--accent);
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  animation: glitch-flicker-b 4s steps(1) infinite;
}

@keyframes gradient-sweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes glitch-flicker-a {
  0%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  40% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  41% { opacity: 0.85; transform: translate(-6px, 2px); clip-path: inset(10% 0 65% 0); }
  42% { opacity: 0.85; transform: translate(4px, -2px); clip-path: inset(55% 0 20% 0); }
  43% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  62% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  63% { opacity: 0.8; transform: translate(-8px, -3px); clip-path: inset(70% 0 5% 0); }
  64% { opacity: 0.8; transform: translate(5px, 3px); clip-path: inset(15% 0 60% 0); }
  65% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  81% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  82% { opacity: 0.9; transform: translate(-5px, 1px) skewX(-4deg); clip-path: inset(35% 0 40% 0); }
  84% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

@keyframes glitch-flicker-b {
  0%, 100% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  40% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  41% { opacity: 0.85; transform: translate(6px, -2px); clip-path: inset(60% 0 15% 0); }
  42% { opacity: 0.85; transform: translate(-4px, 2px); clip-path: inset(5% 0 70% 0); }
  43% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  62% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  63% { opacity: 0.8; transform: translate(8px, 3px); clip-path: inset(10% 0 68% 0); }
  64% { opacity: 0.8; transform: translate(-5px, -3px); clip-path: inset(58% 0 12% 0); }
  65% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  81% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
  82% { opacity: 0.9; transform: translate(5px, -1px) skewX(4deg); clip-path: inset(40% 0 35% 0); }
  84% { opacity: 0; transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--accent-soft);
  min-height: 1.5em;
}

.cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__bio {
  color: var(--fg-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg-dim);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.social:hover,
.social:focus-visible {
  color: var(--bg);
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  transform: translateY(-3px);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: var(--fg-dim);
  font-size: 0.8rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
