:root {
  --bg: #07090d;
  --fg: #eef1f7;
  --muted: #9aa3b5;
  --faint: #5c6579;
  --accent-1: #6366f1;
  --accent-2: #22d3ee;
  --green: #34d399;
  --border: rgba(255, 255, 255, 0.09);
  --btn-bg: rgba(255, 255, 255, 0.04);
}

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

html,
body {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  min-height: 100vh;
  padding: 3rem 1.5rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---- background: drifting glows + film grain ---- */

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

.glow-1 {
  width: 46rem;
  height: 46rem;
  top: -18rem;
  left: 50%;
  margin-left: -32rem;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
}

.glow-2 {
  width: 34rem;
  height: 34rem;
  bottom: -14rem;
  right: -8rem;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.13), transparent 65%);
  animation: drift 27s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4rem, 3rem, 0) scale(1.12); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- layout ---- */

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  color: var(--faint);
}

/* ---- avatar with rotating gradient ring ---- */

.avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin-bottom: 2rem;
  border-radius: 50%;
  position: relative;
  background: #0c1017;
}

.avatar::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-1));
  animation: spin 6s linear infinite;
  opacity: 0.85;
}

.avatar::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-1));
  filter: blur(14px);
  opacity: 0.4;
  animation: spin 6s linear infinite;
}

.avatar span {
  position: relative;
  z-index: 2;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #c7d2fe, #a5f3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

/* ---- typography ---- */

.kicker {
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.gradient {
  background: linear-gradient(92deg, var(--accent-1) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.role {
  margin-top: 1.1rem;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  color: var(--muted);
  font-weight: 500;
}

.accent {
  color: var(--accent-2);
  font-size: 0.85em;
}

.tagline {
  margin-top: 1.1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 34ch;
}

/* ---- badges ---- */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  font-size: 0.78rem;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---- buttons ---- */

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 22rem);
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--btn-bg);
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, border-color 0.18s ease,
              background 0.18s ease, box-shadow 0.18s ease;
}

.btn.ghost {
  grid-column: 1 / -1;
  justify-content: center;
  color: var(--muted);
}

.btn.ghost:hover {
  color: var(--fg);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 8px 28px -8px rgba(99, 102, 241, 0.45);
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(92deg, var(--accent-1), #4f46e5);
  box-shadow: 0 6px 24px -8px rgba(99, 102, 241, 0.6);
}

.btn.primary:hover {
  background: linear-gradient(92deg, #818cf8, #6366f1);
  box-shadow: 0 10px 32px -8px rgba(99, 102, 241, 0.7);
}

/* ---- entrance reveal (staggered) ---- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.25s; }
.reveal:nth-child(4) { animation-delay: 0.35s; }
.reveal:nth-child(5) { animation-delay: 0.45s; }
.reveal:nth-child(6) { animation-delay: 0.55s; }
.reveal:nth-child(7) { animation-delay: 0.65s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

footer.reveal { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .glow, .avatar::before, .avatar::after, .dot {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
