body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: #181622; /* fallback solid color */
  min-height: 100vh;
  color: #fff;
  margin-top: 122px;
  position: relative;
  overflow-x: hidden;
}

.navbar, .navbar.detached {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,10,0.92);
  padding: 0 2rem;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 60px;
  width: 99vw;
  max-width: 1200px;
  margin: 32px auto 0 auto;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  z-index: 1000; /* Ensure always on top */
  transition: 
    margin 0.3s cubic-bezier(.4,0,.2,1),
    box-shadow 0.3s cubic-bezier(.4,0,.2,1),
    background 0.3s cubic-bezier(.4,0,.2,1);
}

.navbar.detached {
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.18), 0 1.5px 8px 0 rgba(0,0,0,0.10);
  background: rgba(10,10,10,0.97);
  align-items: center; /* Ensure vertical centering */
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.logo img {
  margin-right: 0.5rem;
}

.navbar nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1.2rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar nav a:hover {
  color: #ffd700;
}

.github-btn {
  background: #222;
  border-radius: 6px;
  padding: 0.4em 1em;
  margin-left: 1em;
  border: 1px solid #444;
  transition: background 0.2s;
}

.main-download-btn {
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 0.6em 1.5em;
  font-weight: 700;
  margin-left: 2em;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition:
    background 0.2s, color 0.2s,
    box-shadow 0.18s, transform 0.12s,
    margin 0.3s cubic-bezier(.4,0,.2,1);
}

.navbar.detached .main-download-btn {
  margin-top: 0;
  align-self: center; /* Vertically center in navbar */
}

.hero {
  background: 
    radial-gradient(circle at 20% 30%, #a259ff 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, #3c8cff 0%, transparent 60%),
    radial-gradient(circle at 60% 80%, #3cff7f 0%, transparent 60%),
    radial-gradient(circle at 30% 70%, #ff3c3c 0%, transparent 60%),
    radial-gradient(circle at 70% 50%, #ffd700 0%, transparent 60%);
  background-color: #181622; /* fallback */
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  margin-right: 30px;
  margin-left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -2px;
  background: linear-gradient(90deg, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .subtitle {
  font-size: 1.3rem;
  font-weight: 200;
  margin-bottom: 2.5rem;
  color: #f3f3f3;
  margin-top: 50px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.download-btn {
  display: flex;
  align-items: center;
  background: #fff;
  color: #222;
  border-radius: 10px;
  padding: 1em 2em;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.download-btn .icon {
  font-size: 1.5em;
  margin-right: 0.7em;
}


.hero-screenshot {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.hero-screenshot img {
  width: 700px;
  max-width: 95vw;
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
  border: 2px solid #fff2;
}

.features {
  background: rgba(0,0,0,0.12);
  border-radius: 32px;
  margin: 3rem auto 2rem auto;
  max-width: 1200px;
}

.features h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: #fff;
  text-align: left;
  min-height: 140px;
  position: relative;
  transition:
    transform 0.18s cubic-bezier(.22,1,.36,1),
    box-shadow 0.18s cubic-bezier(.22,1,.36,1);
  z-index: 0;
}

.feature-card::before {
  content: none;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 2px #ffd70033;
  z-index: 1;
}

.feature-card:active {
  transform: scale(0.98);
}

@media (hover: none) {
  .feature-card:hover {
    /* No pop for touch devices */
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
}

.downloads {
  padding: 4rem 2rem 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.downloads h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.downloads-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
}

.downloads-table th, .downloads-table td {
  padding: 1em 1.2em;
  text-align: center;
  border-bottom: 1px solid #fff2;
}

.downloads-table th {
  background: rgba(0,0,0,0.18);
  font-weight: 700;
  color: #ffd700;
}

.downloads-table tr:last-child td {
  border-bottom: none;
}

a, .downloads-table a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.18s, text-decoration 0.18s;
  font-weight: 500;
}

a:hover, .downloads-table a:hover {
  color: #fff;
  text-decoration: underline;
}

.download-btn, .main-download-btn, .github-btn {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  padding: 1em 2.2em;
  margin: 0.2em;
  transition: 
    background 0.18s, 
    color 0.18s, 
    box-shadow 0.18s, 
    transform 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  position: relative;
  overflow: hidden;
}


.download-btn.all {
  background: black;
  border: 1.5px solid #fff;
}

.download-btn:hover, .main-download-btn:hover {
  color: #222;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  transform: translateY(-2px) scale(1.03);
  text-decoration: none;
}

.main-download-btn {
  color: #222;
  padding: 0.7em 2.2em;
  font-size: 1.08rem;
  margin-left: 2em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.github-btn {
  background: linear-gradient(90deg, #232526 60%, #414345 100%);
  color: #ffd700;
  border: 1.5px solid #ffd700;
  padding: 0.5em 1.3em;
  font-size: 1.02rem;
  margin-left: 1em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.downloads-table a {
  display: inline-block;
  padding: 0.35em 1.1em;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffd700 60%, #fffde4 100%);
  color: #232526;
  font-weight: 700;
  border: 1px solid #ffd700;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.downloads-table a:hover {
  background: linear-gradient(90deg, #232526 60%, #414345 100%);
  color: #ffd700;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0,0,0,0.14);
}

.features-grid .feature-card a {
  color: #ffd700;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.18s;
}

.features-grid .feature-card a:hover {
  color: #fff;
}

.docs, .community {
  padding: 2rem 2rem 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.docs h2, .community h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

footer {
  background: rgba(10,10,10,0.92);
  padding: 1.5rem 0;
  text-align: center;
  color: #fff;
  font-size: 1rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.feature-cards-row {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hamburger menu button */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  cursor: pointer;
  margin-left: 1rem;
  z-index: 1101;
}
.navbar-toggle-bar {
  width: 26px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Hide mobile nav by default */
.navbar-mobile-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(20,20,20,0.98);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1100;
  padding: 1.2rem 0.5rem;
  gap: 1.2rem;
  text-align: center;
}
.navbar-mobile-links.open {
  display: flex;
}
.navbar-mobile-links a {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7em 0;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.navbar-mobile-links a:hover {
  background: #ffd70022;
  color: #ffd700;
}

/* Responsive navbar adjustments */
@media (max-width: 900px) {
  .navbar, .navbar.detached {
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    width: 99vw;
    max-width: 1200px;
  }
  body {
    margin-top: 110px;
  }
}

@media (max-width: 700px) {
  .navbar, .navbar.detached {
    flex-direction: row;
    height: auto;
    padding: 0.6rem 0.5rem;
    margin: 4px auto 0 auto;
    border-radius: 0 !important;
    align-items: stretch;
    position: relative;
    width: 100vw;
    max-width: 100vw;
    left: 0;
    right: 0;
  }
  .navbar .logo {
    font-size: 1.1rem;
  }
  .navbar-links {
    display: none !important;
  }
  .navbar-toggle {
    display: flex;
  }
  .main-download-btn {
    display: none !important;
  }
  .navbar-mobile-links.open + .main-download-btn,
  .navbar-mobile-links.open ~ .main-download-btn {
    display: flex !important;
    margin: 0.7rem auto 0 auto;
    width: fit-content;
    align-self: center;
  }
  body {
    margin-top: 100px;
  }
}

/* Show desktop nav on large screens */
@media (min-width: 701px) {
  .navbar-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .navbar-mobile-links,
  .navbar-toggle {
    display: none !important;
  }
}
