:root {
  --bg-deep: #0b0a12;
  --surface: #15131f;
  --surface-2: #1b1826;
  --violet-mid: #6d28d9;
  --violet-bright: #8b5cf6;
  --violet-light: #c4b5fd;
  --violet-glow: #a78bfa;
  --text-primary: #f4f2fb;
  --text-secondary: #b9b4c9;
  --text-muted: #7d7891;
  --border: rgba(139, 92, 246, 0.16);
  --border-bright: rgba(139, 92, 246, 0.45);
  --success: #34d399;
  --warning: #f97316;
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px var(--border-bright), 0 25px 70px rgba(139, 92, 246, 0.35), 0 0 90px rgba(139, 92, 246, 0.15);
  --r-2xl: 22px;
  --security: #f97316;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 24px;
  position: relative;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.bg-orb-1 { width: 420px; height: 420px; background: var(--violet-mid); top: -120px; left: -120px; }
.bg-orb-2 { width: 380px; height: 380px; background: var(--violet-bright); bottom: -140px; right: -100px; }

.page-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 28px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 14px;
}
.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 19px;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-light), var(--violet-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0;
}
.page-header h1 i { color: var(--violet-bright); }
.page-header .hint {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}

.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  height: 560px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.stage.grabbing { cursor: grabbing; }

.vcard {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  min-height: 420px;
  padding: 34px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
  will-change: transform, opacity, filter;
  transition:
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.9s ease,
    filter 0.9s ease,
    border-color 0.9s ease,
    box-shadow 0.9s ease;
}

.vcard.no-transition { transition: none !important; }

.vcard.is-current {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.vcard .version-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}
.vcard .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 11px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  color: #fff;
  letter-spacing: 0.3px;
}
.vcard .version-date {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.vcard .version-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--violet-light);
  margin: 18px 0 16px;
}
.vcard .changelog-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vcard .changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(139, 92, 246, 0.06);
}
.vcard .changelog-list li:last-child { border-bottom: none; }
.vcard .changelog-list li .icon { width: 18px; text-align: center; margin-top: 2px; flex-shrink: 0; }
.vcard .changelog-list li .icon.add { color: var(--violet-bright); }
.vcard .changelog-list li .icon.fix { color: var(--success); }
.vcard .changelog-list li .icon.security { color: var(--security); }

.carousel-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
}
.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.nav-arrow:hover {
  color: #fff;
  border-color: var(--border-bright);
  background: linear-gradient(135deg, var(--violet-mid), var(--violet-bright));
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}
.dots {
  display: flex;
  gap: 9px;
}
.dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
  cursor: pointer;
  transition: all 0.35s ease;
}
.dots .dot.active {
  background: var(--violet-bright);
  opacity: 1;
  width: 22px;
  border-radius: 5px;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

@media (max-width: 640px) {
  .stage { height: 480px; max-width: 100%; }
  .vcard {
    width: 86vw;
    min-height: 360px;
    padding: 24px 22px;
  }
  .vcard .version-tag { font-size: 20px; }
  .page-header h1 { font-size: 22px; }
  .page-header .hint { font-size: 12px; padding: 0 10px; }
  .nav-arrow { width: 38px; height: 38px; }
}