/* ===== DESIGN TOKENS ===== */
:root {
  --bg-primary: #0a0a0f;
  --bg-panel: #0d0d14;
  --bg-card: #10101a;
  --border-color: #1e1e2e;
  --border-hover: #2a2a3e;
  --text-primary: #c8c8d4;
  --text-secondary: #6e6e82;
  --text-muted: #44445a;
  --accent: #4ade80;
  --accent-dim: #22613e;
  --accent-glow: rgba(74, 222, 128, 0.08);
  --accent-amber: #f0b050;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', 'Cascadia Code', monospace;
  --max-width: 860px;
  --section-gap: 3.5rem;
}

/* ===== BODY ===== */
body {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== SCANLINE OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* ===== VIGNETTE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.35rem 0.7rem;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.2s ease, background 0.2s ease;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-glow);
  border-color: var(--border-color);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ===== MAIN CONTENT ===== */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 52px;
}

/* ===== SECTIONS ===== */
.section {
  margin-top: var(--section-gap);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.section-index {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.6;
  font-weight: 400;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ===== PANEL / CARD ===== */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.02);
}

.panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.panel p, .panel li {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.75;
}

.panel ul {
  list-style: none;
  padding: 0;
}

.panel ul li {
  padding: 0.2rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.panel ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
  font-weight: 700;
}

/* ===== HERO ===== */
.hero {
  padding-top: 5rem;
  padding-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-greeting {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.hero-name .accent {
  color: var(--accent);
}

.hero-alias {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero-alias .prev {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.hero-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 540px;
}

/* Blinking cursor — decorative only */
.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
  opacity: 0.7;
}

@keyframes blink {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0; }
}

/* ===== STATUS BAR (hero detail) ===== */
.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.status-item {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-value {
  color: var(--text-secondary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.03);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 18px;
  margin-bottom: 0.6rem;
  display: block;
}

.card-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.card-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  line-height: 1.65;
}

/* ===== MUSIC LIST ===== */
.music-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.music-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-color);
  border-bottom: none;
  background: var(--bg-panel);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.music-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.music-item:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.music-item:hover + .music-item {
  border-top-color: var(--border-hover);
}

.music-index {
  font-size: 11px;
  color: var(--text-muted);
  min-width: 24px;
  font-weight: 400;
}

.music-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.music-genre {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ===== TAG ===== */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-text {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-text .accent {
  color: var(--accent);
  opacity: 0.6;
}

.footer-sig {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ===== HIGHLIGHT / ACCENT TEXT ===== */
.accent-text {
  color: var(--accent);
}

.amber-text {
  color: var(--accent-amber);
}

.muted {
  color: var(--text-muted);
}

.dim {
  color: var(--text-secondary);
}

/* ===== DECORATIVE CORNER MARKS ===== */
.corner-marks {
  position: relative;
}

.corner-marks::before,
.corner-marks::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  opacity: 0.15;
}

.corner-marks::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner-marks::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid;
  border-right: 1px solid;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  body {
    font-size: 13px;
  }

  .nav-links {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.96);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.6rem 1rem;
    font-size: 13px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .panel {
    padding: 1.15rem;
  }

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

  .status-bar {
    gap: 1rem;
  }

  .music-genre {
    display: none;
  }
}
