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

:root {
  --bg: #0d1117;
  --bg-secondary: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --border: #30363d;
}

html {
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

a:hover {
  color: var(--accent-hover);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.logo img {
  width: 56px;
  height: 56px;
}

nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

nav .discord-link:hover {
  color: #5865F2;
}

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

/* Hero */
.hero {
  padding: 100px 0 24px;
}

.hero-split {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-text p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-demo video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Video Tabs */
.hero-videos {
  width: 100%;
}

.video-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  justify-content: center;
}

.video-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.video-tab:hover {
  color: var(--text);
}

.video-tab.active {
  background: transparent;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}

.hero-videos video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.video-note {
  text-align: center;
  margin-top: 16px;
  font-size: 1rem;
}

.video-link {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-secondary);
  transition: all 0.2s;
}

.video-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
  background: var(--bg);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

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

.btn-secondary:hover {
  border-color: var(--text-muted);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

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

.features .screenshot-grid {
  margin-top: 32px;
}

.features h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

.feature {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Download */
.download {
  padding: 32px 0;
}

.download h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.version {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  display: block;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: all 0.2s;
  color: var(--text);
}

.download-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.platform-icon {
  margin-bottom: 12px;
  color: var(--text-muted);
}

.download-card:hover .platform-icon {
  color: var(--accent);
}

.download-card h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.download-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.file-type {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-note {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
footer {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    height: auto;
    padding: 12px 20px 16px;
    gap: 12px;
  }
  
  nav {
    gap: 12px;
    justify-content: center;
  }
  
  nav a {
    font-size: 0.85rem;
  }
  
  .hero {
    padding: 160px 0 24px;
  }
  
  .hero-text h1 {
    font-size: 1.75rem;
  }
  
  .hero-text p {
    font-size: 0.95rem;
  }
  
  .hero-buttons {
    gap: 8px;
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .docs-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

/* Videos Section */
.videos {
  padding: 32px 0;
}

.videos .hero-videos {
  max-width: 600px;
  margin: 0 auto;
}

/* Screenshots */
.screenshots {
  padding: 32px 0;
}

.screenshots h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.screenshot-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg-secondary);
  min-height: 200px;
  object-fit: cover;
}

.screenshot-item p {
  padding: 12px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-caption {
  text-align: center;
  color: white;
  margin-top: 16px;
  font-size: 1rem;
}

/* FAQ */
.faq {
  padding: 32px 0;
  background: var(--bg-secondary);
}

.faq h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.faq-item {
  max-width: 700px;
  margin: 0 auto;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Docs */
.docs {
  padding: 32px 0;
  background: var(--bg-secondary);
}

.docs h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.docs-card {
  display: block;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  color: var(--text);
}

.docs-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}

.docs-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.docs-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}
