/* Base */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f9fafb;
  color: #1f2937;
  transition: background 0.3s, color 0.3s;
}
.dark body {
  background: #111827;
  color: #e5e7eb;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* Disclaimer */
.disclaimer {
  background: #facc15;
  color: #000;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.dark .disclaimer {
  background: #ca8a04;
  color: #fff;
}
.disclaimer a { text-decoration: underline; font-weight: 600; }

/* Navbar */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.dark .navbar { background: #1f2937; border-color: #374151; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; color: #2563eb; }
.logo img { width: 32px; height: 32px; }
.dark .logo { color: #60a5fa; }
.beta { background: #fef08a; color: #854d0e; padding: 0.1rem 0.5rem; border-radius: 0.25rem; font-size: 0.75rem; font-weight: 600; }
.dark .beta { background: #a16207; color: #fde68a; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a:hover { color: #2563eb; }
.dark .nav-links a:hover { color: #60a5fa; }
#theme-toggle {
  margin-left: 1rem; padding: 0.25rem 0.75rem; border-radius: 0.5rem;
  background: #e5e7eb; font-size: 0.875rem;
}
.dark #theme-toggle { background: #374151; }

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* Responsive Navbar */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 64px; /* navbar height */
    right: 0;
    background: white;
    padding: 1rem;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    gap: 1rem;
  }
  .dark .nav-links { background: #1f2937; }
  .nav-links.show { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
  padding: 5rem 1rem;
}
.hero-logo { width: 80px; height: 80px; margin-bottom: 1rem; }
.hero h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 1rem; }
.hero p { font-size: 1.125rem; margin-bottom: 1.5rem; }
.highlight { background: rgba(0,0,0,0.3); padding: 0.25rem 0.5rem; border-radius: 0.25rem; }
.btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn {
  padding: 0.75rem 1.5rem; border-radius: 0.75rem; font-weight: 600;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); transition: background 0.2s;
}
.btn.primary { background: white; color: #2563eb; }
.btn.primary:hover { background: #f3f4f6; }
.btn.yellow { background: #fcd34d; color: black; }
.btn.yellow:hover { background: #fbbf24; }

/* Features */
.features { padding: 4rem 1rem; }
.features h3 { font-size: 1.875rem; font-weight: 700; text-align: center; margin-bottom: 3rem; }
.grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: white; padding: 1.5rem; border-radius: 1rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}
.dark .card { background: #1f2937; }

/* How It Works */
.how { background: #f3f4f6; padding: 4rem 1rem; }
.dark .how { background: #1f2937; }
.how h3 { font-size: 1.875rem; font-weight: 700; margin-bottom: 2rem; }
.how ol { text-align: left; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* Install */
.install { padding: 4rem 1rem; }
.install h3 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1.5rem; }
.install p { margin-bottom: 1.5rem; }
.install ol { text-align: left; max-width: 500px; margin: 0 auto; line-height: 1.6; }

/* Status */
.status { padding: 3rem 1rem; }
.status-box {
  background: #fef9c3; border-left: 4px solid #facc15; padding: 1.5rem; border-radius: 0.75rem; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.dark .status-box { background: #713f12; border-color: #facc15; }
.status-box h3 { font-size: 1.5rem; font-weight: 700; color: #b45309; }
.dark .status-box h3 { color: #fcd34d; }
.note { margin-top: 1rem; font-size: 0.875rem; color: #4b5563; }
.dark .note { color: #9ca3af; }

/* Footer */
.footer {
  background: white; border-top: 1px solid #e5e7eb; padding: 1.5rem 0; margin-top: 3rem;
}
.dark .footer { background: #1f2937; border-color: #374151; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer p { font-size: 0.875rem; color: #6b7280; }
.dark .footer p { color: #9ca3af; }
.footer a { color: #2563eb; font-size: 0.875rem; }
.dark .footer a { color: #60a5fa; }
.footer a:hover { text-decoration: underline; }
/* Version Selection */
.versions {
  padding: 4rem 1rem;
  background: #f8fafc;
}
.dark .versions {
  background: #1e293b;
}
.versions h3 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.versions > p {
  margin-bottom: 3rem;
  color: #6b7280;
}
.dark .versions > p {
  color: #9ca3af;
}

.version-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-bottom: 3rem;
}

.version-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
  transition: transform 0.3s, border-color 0.3s;
}
.dark .version-card {
  background: #1f2937;
  border-color: #374151;
}
.version-card:hover {
  transform: translateY(-4px);
  border-color: #3b82f6;
}

.version-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.version-header h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}
.dark .version-header h4 {
  color: #f9fafb;
}

.version-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.version-badge.latest {
  background: #dcfce7;
  color: #166534;
}
.dark .version-badge.latest {
  background: #166534;
  color: #dcfce7;
}
.version-badge.legacy {
  background: #fef3c7;
  color: #92400e;
}
.dark .version-badge.legacy {
  background: #92400e;
  color: #fef3c7;
}

.version-desc {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.dark .version-desc {
  color: #9ca3af;
}

.version-features {
  text-align: left;
  margin-bottom: 2rem;
  padding: 0;
}
.version-features li {
  list-style: none;
  padding: 0.5rem 0;
  color: #374151;
}
.dark .version-features li {
  color: #d1d5db;
}

.version-card .btn-group {
  justify-content: center;
}
.btn.secondary {
  background: #6b7280;
  color: white;
}
.btn.secondary:hover {
  background: #4b5563;
}

/* Version Comparison */
.version-comparison {
  max-width: 600px;
  margin: 0 auto;
}
.version-comparison details {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.dark .version-comparison details {
  background: #1f2937;
}
.version-comparison summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem;
  color: #3b82f6;
}
.version-comparison summary:hover {
  color: #2563eb;
}

.version-comparison table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.version-comparison th,
.version-comparison td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.dark .version-comparison th,
.dark .version-comparison td {
  border-color: #374151;
}
.version-comparison th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
}
.dark .version-comparison th {
  background: #374151;
  color: #f9fafb;
}

/* Responsive Design for Version Section */
@media (max-width: 768px) {
  .version-cards {
    grid-template-columns: 1fr;
  }

  .version-header {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .version-comparison table {
    font-size: 0.875rem;
  }
}