@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

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

:root {
  --bg: #08080f;
  --bg2: #0e0e1a;
  --bg3: #13131f;
  --border: #1e1e30;
  --purple: #7b2fff;
  --purple-dim: #5a1fd1;
  --cyan: #00e5ff;
  --cyan-dim: #00b8cc;
  --text: #e2e2f0;
  --text-dim: #8888a8;
  --text-muted: #44445a;
  --green: #00ff88;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,47,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px 60px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(123,47,255,0.5), 0 0 40px rgba(123,47,255,0.2);
}

.logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(123,47,255,0.4));
}

.tagline {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.5px;
}

nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 60px;
}

nav a {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.2s;
}

nav a:hover {
  color: var(--text);
  background: var(--bg3);
}

main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.latest-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(123,47,255,0.1),
    0 0 40px rgba(123,47,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.latest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
}

.version-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.version-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.version-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.version-date {
  font-size: 13px;
  color: var(--text-dim);
}

.badge-latest {
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.version-notes {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 28px;
  padding: 16px;
  background: var(--bg3);
  border-radius: 8px;
  border-left: 2px solid var(--purple);
}

.version-notes ul {
  padding-left: 18px;
}

.version-notes li {
  margin-bottom: 4px;
}

.screenshot-wrap {
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.download-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
  color: white;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(123,47,255,0.4), 0 4px 15px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(123,47,255,0.6), 0 8px 25px rgba(0,0,0,0.4);
}

.btn-download svg { width: 18px; height: 18px; }

.download-count {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-count span {
  color: var(--cyan);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
}

.history-table {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr 140px auto;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  gap: 16px;
}

.history-row:last-child { border-bottom: none; }

.history-row:hover { background: var(--bg3); }

.history-row.header-row {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg3);
  padding: 10px 20px;
}

.hist-version {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.hist-date {
  font-size: 13px;
  color: var(--text-dim);
}

.hist-count {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.hist-count span {
  color: var(--cyan-dim);
  font-family: 'JetBrains Mono', monospace;
}

.btn-small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--purple);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(123,47,255,0.3);
  transition: all 0.15s;
  white-space: nowrap;
}

.btn-small:hover {
  background: rgba(123,47,255,0.1);
  border-color: var(--purple);
  color: var(--text);
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
}

footer a:hover { color: var(--purple); }
