:root {
  --bg: #06060a;
  --bg2: #0b0b14;
  --fg: #f2f2f5;
  --muted: #8b8b9a;
  --accent1: #8b5cf6;
  --accent2: #22d3ee;
  --accent3: #f472b6;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, var(--bg2) 0%, var(--bg) 60%);
  color: var(--fg);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

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

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(34, 211, 238, 0.06) 45%, transparent 70%);
  z-index: 1;
  will-change: transform;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.hero {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  pointer-events: none;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 18px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}

.name {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--fg) 30%, var(--accent2) 65%, var(--accent1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeUp 0.9s ease 0.25s forwards, shine 6s linear infinite 1.2s;
  opacity: 0;
}

.tagline {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  min-height: 1.4em;
  margin: 22px 0 0;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.blink {
  color: var(--accent2);
  animation: blink 1s steps(1) infinite;
}

.status {
  margin-top: 34px;
  max-width: 420px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

#statusText {
  transition: opacity 0.4s ease;
}

#statusText::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent3);
  box-shadow: 0 0 8px var(--accent3);
  vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}

.links {
  display: flex;
  gap: 26px;
  margin-top: 40px;
  pointer-events: auto;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.links a:hover {
  color: var(--fg);
  border-color: var(--accent2);
}

.hint {
  position: fixed;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 2;
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.8s ease 1.4s forwards, softPulse 4s ease-in-out infinite 2.4s;
  pointer-events: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 10, 0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease;
}

.overlay[hidden] { display: none; }

.overlay-panel {
  position: relative;
  max-width: min(520px, 88vw);
  max-height: 76vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0d0d16, #08080e);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.15);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--fg);
}

.overlay-content strong { color: var(--accent2); }
.overlay-content a { color: var(--accent3); }

.overlay-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.overlay-close:hover { color: var(--fg); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shine {
  to { background-position: 200% center; }
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .name, .eyebrow, .tagline, .status, .links, .hint {
    animation: none !important;
    opacity: 1 !important;
  }
  .blink, #statusText::before { animation: none !important; }
}
