:root {
  --bg-navy: #0a0e1a;
  --bg-purple: #150f2e;
  --bg-teal: #0a1f2e;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --text-primary: #f2f4f8;
  --text-secondary: #a8b0c3;
  --text-tertiary: #6b7386;
  --accent-cyan: #4fd1e8;
  --accent-violet: #a78bfa;
  --accent-magenta: #f472b6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  min-height: 100vh;
  background: var(--bg-navy);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(79, 209, 232, 0.12), transparent),
    radial-gradient(ellipse 80% 60% at 80% 20%, rgba(167, 139, 250, 0.14), transparent),
    radial-gradient(ellipse 80% 80% at 50% 100%, rgba(20, 15, 46, 0.6), transparent),
    linear-gradient(160deg, var(--bg-navy) 0%, var(--bg-purple) 55%, var(--bg-teal) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Animated glow orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: drift 22s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -10%;
  left: -8%;
  background: var(--accent-cyan);
  animation-delay: 0s;
}

.orb-2 {
  width: 360px;
  height: 360px;
  top: 30%;
  right: -10%;
  background: var(--accent-violet);
  animation-delay: -7s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  bottom: -12%;
  left: 30%;
  background: var(--accent-magenta);
  animation-delay: -14s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.08); }
  66% { transform: translate(-25px, 25px) scale(0.95); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 48px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 64px;
}

.avatar-ring {
  width: 84px;
  height: 84px;
  margin: 0 auto 24px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 0deg, var(--accent-cyan), var(--accent-violet), var(--accent-magenta), var(--accent-cyan));
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.35);
  animation: spin-ring 8s linear infinite;
}

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

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.hero-title {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 20%, var(--accent-cyan) 50%, var(--accent-violet) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 400;
}

/* Section */
.section {
  margin-bottom: 56px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-pill {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  color: var(--text-primary);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.empty-state {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-style: italic;
  padding: 16px 4px;
}

/* Card */
.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px) scale(1.015);
  background: var(--glass-hover);
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(79, 209, 232, 0.15),
    0 0 30px rgba(167, 139, 250, 0.25);
}

.card:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.card-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(79, 209, 232, 0.25));
}

.card-body {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.card-desc {
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.card-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--text-tertiary);
  transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover .card-arrow {
  transform: translate(2px, -2px);
  color: var(--accent-cyan);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-tertiary);
  font-size: 0.82rem;
  line-height: 1.8;
}

.footer-note {
  color: var(--text-tertiary);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 640px) {
  .page {
    padding: 48px 16px 32px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-bottom: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .avatar-ring {
    animation: none;
  }

  .card {
    transition: none;
  }
}
