:root {
  --bg-primary: #0f0f17;
  --bg-secondary: #161625;
  --bg-tertiary: #1c1c30;
  --bg-elevated: #22223a;
  --bg-hover: #2a2a45;
  --text-primary: #e4e4ef;
  --text-secondary: #9898b8;
  --text-muted: #65658a;
  --accent-primary: #7c6ff7;
  --accent-secondary: #5e4fd1;
  --accent-glow: rgba(124, 111, 247, 0.2);
  --accent-gradient: linear-gradient(135deg, #7c6ff7 0%, #a78bfa 100%);
  --border-primary: #2a2a45;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Navbar */
.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 23, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-primary);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero.full-height {
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 20px var(--accent-glow));
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 48px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  animation: fadeIn 1s ease-out 1s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.mouse {
  width: 20px;
  height: 32px;
  border: 2px solid var(--border-secondary);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  100% {
    opacity: 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 111, 247, 0.4);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  transform: translateY(-2px);
}

/* Features */
.features {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-tertiary);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-primary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 24px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 44px;
  }

  .hero-actions {
    flex-direction: column;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 23, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: modalSlide 0.3s ease-out;
}

@keyframes modalSlide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-header h3 {
  font-size: 24px;
  font-weight: 700;
}

.close-modal {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

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

.modal-desc {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 32px;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-option {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.2s;
}

.download-option:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
  background: var(--bg-hover);
}

.option-icon {
  font-size: 28px;
}

.option-text {
  display: flex;
  flex-direction: column;
}

.option-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
}

.option-subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

.modal-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.modal-footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

.release-tag-modal {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--bg-tertiary);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-primary);
  align-self: flex-start;
}

#version-number {
  color: var(--success, #34d399);
  font-weight: 600;
}

/* Content Pages (License & Docs) */
.content-page {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: calc(100vh - 220px);
}

.content-header {
  text-align: center;
  margin-bottom: 60px;
}

.content-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.content-header .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

.license-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 40px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.license-box pre {
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
}

/* Doc Layout */
.doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.doc-sidebar {
  position: sticky;
  top: 120px;
}

.doc-sidebar ul {
  list-style: none;
}

.doc-sidebar li {
  margin-bottom: 12px;
}

.doc-sidebar a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.doc-sidebar a:hover {
  color: var(--text-primary);
}

.doc-content h2 {
  font-size: 28px;
  margin-bottom: 20px;
  padding-top: 40px;
  color: var(--text-primary);
}

.doc-content h2:first-child {
  padding-top: 0;
}

.doc-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 24px;
}

.doc-content ul {
  margin-left: 20px;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content article {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-primary);
  margin-bottom: 40px;
}

.doc-content article:last-child {
  border-bottom: none;
}

@media (max-width: 900px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doc-sidebar {
    position: static;
    border-bottom: 1px solid var(--border-primary);
    padding-bottom: 20px;
  }
}