:root {
  --bg: #0a0a0b;
  --surface: #111113;
  --border: #1e1e22;
  --text: #e8e8ea;
  --muted: #5a5a66;
  --accent: #7c6af7;
  --accent-dim: #7c6af720;
  --green: #3ecf8e;
  --red: #f87171;
  --yellow: #fbbf24;
  --spotify: #1db954;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

nav {
  padding: 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.logo span { color: var(--accent); }

.nav-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent)30;
}

.hero {
  padding: 64px 0 40px;
  animation: fadeUp 0.6s ease both;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.status-dot.dnd { background: var(--red); }
.status-dot.idle { background: var(--yellow); }
.status-dot.offline { background: var(--muted); }

h1 {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
h1 .accent { color: var(--accent); }

.tagline {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
}

.discord-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.discord-card:hover { border-color: var(--accent)40; }

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--border);
  object-fit: cover;
}
.avatar-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--green);
}
.avatar-status.dnd { background: var(--red); }
.avatar-status.idle { background: var(--yellow); }
.avatar-status.offline { background: var(--muted); }

.discord-info h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.discord-info p {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.guild-badge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--accent)25;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent);
}
.guild-badge img { width: 16px; height: 16px; border-radius: 4px; }

.spotify-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.spotify-card:hover { border-color: var(--spotify)40; }

.spotify-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--spotify)06 0%, transparent 60%);
  pointer-events: none;
}

.album-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--border);
  flex-shrink: 0;
}
.album-art.spinning {
  animation: spin 8s linear infinite;
}

.spotify-info { flex: 1; min-width: 0; }
.spotify-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--spotify);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.spotify-icon { width: 12px; height: 12px; fill: var(--spotify); }
.spotify-song {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-artist {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--spotify);
  border-radius: 99px;
  transition: width 1s linear;
}
.progress-time {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  flex-shrink: 0;
}

.section { display: none; animation: fadeUp 0.4s ease both; }
.section.active { display: block; }

.section-title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.project-card:hover { border-color: var(--accent)50; transform: translateY(-2px); }

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.project-name { font-size: 16px; font-weight: 600; }
.project-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--accent)30;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
}
.project-link:hover { background: var(--accent-dim); }
.project-desc {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent)20;
  border-radius: 5px;
  padding: 2px 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
}

footer {
  padding: 40px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-left {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 16px; }
.footer-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--text); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { border-radius: 50%; }
  to { transform: rotate(360deg); border-radius: 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}