/* =========================================
   Lyrictified Website Styles
   ========================================= */

:root {
  --bg-deep: #050810;
  --bg-surface: #0b0f19;
  --bg-card: #10152a;
  --bg-card-hover: #151a32;
  --border-subtle: #1a2040;
  --border-glow: #2a3a6a;
  --text-primary: #e8edf5;
  --text-secondary: #9aa5bf;
  --text-muted: #5a6680;
  --accent-cyan: #22d3ee;
  --accent-violet: #a78bfa;
  --accent-rose: #fb7185;
  --accent-amber: #fbbf24;
  --gradient-hero: linear-gradient(135deg, #22d3ee 0%, #a78bfa 50%, #fb7185 100%);
  --gradient-hero-alt: linear-gradient(135deg, #fb7185 0%, #a78bfa 50%, #22d3ee 100%);
  --glass-bg: rgba(16, 21, 42, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(16px);
  background: rgba(5, 8, 16, 0.6);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a.active { color: var(--accent-cyan); }

.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(5, 8, 16, 0.95);
  backdrop-filter: blur(16px);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-cta {
  background: var(--gradient-hero);
  color: var(--bg-deep) !important;
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-family: inherit;
  font-size: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 24px 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 100vh;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: var(--gradient-hero-alt);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 100px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--bg-deep);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.btn-large { padding: 14px 28px; font-size: 1rem; }

.btn-icon { display: inline-flex; align-items: center; }

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* Hero visual card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-glow), 0 20px 60px rgba(0,0,0,0.4);
  animation: cardEntrance 1s ease-out 0.3s both;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-card-header {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.hero-card-art {
  width: 36px; height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  flex-shrink: 0;
}

.hero-card-meta { display: flex; flex-direction: column; }
.hero-card-title { font-weight: 700; font-size: 0.85rem; color: var(--text-primary); line-height: 1.2; }
.hero-card-artist { font-size: 0.75rem; color: var(--text-secondary); line-height: 1.2; }
.hero-card-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; line-height: 1.2; }

.hero-card-lyric {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.lyric-stage {
  display: grid;
  place-items: center end;
  height: 32px;
  overflow: hidden;
  position: relative;
}

.lyric-line {
  grid-area: 1 / 1;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  justify-self: end;
}

.lyric-line.current {
  transform: translateY(0);
  opacity: 1;
}

.lyric-line.below {
  transform: translateY(100%);
  opacity: 0;
}

.lyric-line.above {
  transform: translateY(-100%);
  opacity: 0;
}

/* =========================================
   Section Commons
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* =========================================
   Features
   ========================================= */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 14px;
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   Modes
   ========================================= */
.modes {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}

.modes-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.mode-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mode-tab:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.mode-tab.active {
  background: var(--gradient-hero);
  color: var(--bg-deep);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.modes-showcase { position: relative; }

.mode-panel {
  display: none;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  animation: fadeIn 0.5s ease;
}

.mode-panel.active { display: grid; }

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

.mode-image-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.mode-image {
  width: 100%;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.5s ease;
}

.mode-image-wrapper:hover .mode-image {
  transform: scale(1.02);
}

.mode-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.mode-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.mode-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.mode-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
}

/* =========================================
   How It Works
   ========================================= */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
  background: linear-gradient(180deg, transparent 0%, rgba(16,21,42,0.4) 50%, transparent 100%);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--gradient-hero);
  color: var(--bg-deep);
  padding: 4px 12px;
  border-radius: 100px;
}

.step-icon {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 18px;
  color: var(--accent-cyan);
  margin: 12px auto 20px;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--border-subtle), var(--border-glow), var(--border-subtle));
  margin-top: 64px;
  flex-shrink: 0;
  border-radius: 1px;
}

/* =========================================
    Download / Build
    ========================================= */
.download {
  position: relative;
  z-index: 1;
  padding: 80px 0 120px;
}

.build-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.build-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.build-left .section-tag {
  align-self: flex-start;
}

.build-left .section-title {
  text-align: left;
  margin-bottom: 0;
}

.build-left .section-subtitle {
  text-align: left;
  color: var(--text-secondary);
}

.requirements {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.requirements-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.requirements-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.requirements-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.build-right {
  display: flex;
  justify-content: center;
}

.terminal-window {
  width: 100%;
  max-width: 520px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.terminal-body {
  padding: 16px 20px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.terminal-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.terminal-prompt {
  color: var(--accent-cyan);
  font-weight: 600;
  flex-shrink: 0;
}

.terminal-cmd {
  color: var(--text-primary);
}

/* =========================================
   Footer
   ========================================= */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(8px);
}

.footer-inner { text-align: center; }

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo { width: 28px; height: 28px; border-radius: 6px; }
.footer-name { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.footer-version { font-size: 0.75rem; color: var(--text-muted); background: var(--bg-card); padding: 2px 8px; border-radius: 100px; border: 1px solid var(--border-subtle); }
.footer-prerelease {
  font-size: 0.75rem;
  color: #1a1500;
  background: #fbbf24;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: 6px;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent-cyan); }

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-panel { grid-template-columns: 1fr; }
  .mode-panel.active { display: flex; flex-direction: column; }
  .mode-info { text-align: center; }
  .mode-features { align-items: center; }
  .mode-features li { justify-content: center; }
  .build-section { grid-template-columns: 1fr; gap: 40px; }
  .build-left { text-align: center; align-items: center; }
  .build-left .section-title { text-align: center; }
  .build-left .section-subtitle { text-align: center; }
  .build-left .section-tag { align-self: center; }
  .requirements { text-align: left; width: 100%; max-width: 420px; }
  .download-buttons { justify-content: center; }
  .build-right { order: -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding-top: 120px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { display: none; }
  .download-buttons { flex-direction: column; align-items: stretch; }
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }
  .hero-card-lyric { text-align: left; width: 100%; }
  .lyric-stage { place-items: center start; height: 28px; }
  .lyric-line { font-size: 0.95rem; text-align: left; justify-self: start; }
  .terminal-window { max-width: 100%; }
  .terminal-body { font-size: 0.75rem; padding: 12px 14px; }
}

/* =========================================
   Modal
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.75);
  backdrop-filter: blur(8px);
  animation: modalFadeIn 0.25s ease;
}

.modal-container {
  position: relative;
  z-index: 201;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: modalSlideIn 0.3s ease;
}

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

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 2;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.modal-body {
  padding: 20px;
}

.modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.modal-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: modalSpin 0.8s linear infinite;
}

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

.release-card {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.release-card:last-child {
  margin-bottom: 0;
}

.release-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.release-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.release-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 100px;
}

.release-badge.stable {
  background: #4ade80;
  color: #052e16;
}

.release-badge.preview {
  background: #fbbf24;
  color: #1a1500;
}

.release-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.release-assets {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.asset-link:hover {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.asset-link svg {
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.asset-link .asset-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-link .asset-size {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.release-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.modal-error {
  text-align: center;
  padding: 24px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* =========================================
   Scroll Reveal
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
