body.dark {
  --primary: #ffb4a9;
  --on-primary: #5f150f;
  --primary-container: #7d2b22;
  --on-primary-container: #ffdad5;
  --secondary: #e7bdb7;
  --on-secondary: #442926;
  --secondary-container: #5d3f3b;
  --on-secondary-container: #ffdad5;
  --tertiary: #dfc38c;
  --on-tertiary: #3e2e04;
  --tertiary-container: #574419;
  --on-tertiary-container: #fcdfa6;
  --error: #ffb4ab;
  --on-error: #690005;
  --error-container: #93000a;
  --on-error-container: #ffb4ab;
  --background: #201a19;
  --on-background: #ede0de;
  --surface: #181211;
  --on-surface: #ede0de;
  --surface-variant: #534341;
  --on-surface-variant: #d8c2be;
  --outline: #a08c89;
  --outline-variant: #534341;
  --shadow: #000000;
  --scrim: #000000;
  --inverse-surface: #ede0de;
  --inverse-on-surface: #362f2e;
  --inverse-primary: #9c4237;
  --surface-dim: #181211;
  --surface-bright: #3f3736;
  --surface-container-lowest: #120d0c;
  --surface-container-low: #201a19;
  --surface-container: #251e1d;
  --surface-container-high: #2f2827;
  --surface-container-highest: #3b3332;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Navigation */
.Beatly-logo {
  filter: invert(0) sepia(1) hue-rotate(-45deg) saturate(0.8) brightness(1.05)
    contrast(1.1) !important;
}

@media only screen and (max-width: 760px) {
  .Beatly-nav-logo {
    display: none;
  }
}

.section {
  padding: 2rem 1rem 3rem;
}

/* Hero Section */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(
    ellipse at top,
    var(--surface-container-high) 0%,
    var(--surface) 70%
  );
}

.hero-content {
  max-width: 700px;
}

#hero .shape {
  background-color: var(--on-primary) !important;
  width: 180px;
  height: 180px;
  margin: auto !important;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--on-surface);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.hero-actions button {
  font-weight: 600;
}

.hero-actions button.border {
  border-color: var(--outline-variant);
}

/* Notice Banner */
.notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  margin: 2rem auto;
  max-width: 700px;
  text-align: left;
}

.notice-banner > i {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-banner strong {
  display: block;
  margin-bottom: 0.25rem;
}

.notice-banner p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.notice-banner a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--on-surface);
  margin: 3rem auto 2rem;
  text-align: center;
}

.section-title i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Stats Section */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.stat-card {
  background: var(--surface-container);
  border-radius: 24px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-block-start: unset !important;
  box-sizing: border-box;
  flex: 1 1 220px;
  max-width: 280px;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.stat-card > i {
  font-size: 2rem;
  color: var(--primary);
}

.stat-content {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card img {
  height: 24px;
}

/* Features Section */
.features-section {
  background: var(--surface-container-low);
  border-radius: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.feature-card {
  background: var(--surface-container);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease;
  min-height: 120px;
  height: 100%;
  box-sizing: border-box;
  margin-block-start: unset !important;
}

.feature-card:hover {
  transform: translateX(4px);
}

.feature-card i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-card span {
  color: var(--on-surface);
  font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots-section {
  padding: 2rem 0 3rem;
  overflow: visible;
}

.splide {
  padding: 2rem 0 3rem;
  overflow: visible;
}

.splide__track {
  overflow: visible;
}

.splide__slide {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.splide__pagination__page {
  background: var(--on-surface-variant);
}

.splide__pagination__page.is-active {
  background: var(--primary);
}

.screenshot-item {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.screenshot-img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

/* Changelog Section */
.changelog-section {
  background: var(--surface-container-low);
  border-radius: 16px;
}

.changelog-card {
  background: var(--surface-container);
  border-radius: 24px;
  padding: 1.5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

#changelog_element p {
  padding: 0.35rem 0;
  color: var(--on-surface);
  font-size: 0.95rem;
}

#changelog_element p:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: var(--surface-container-highest);
  padding: 3rem 1.5rem;
  border-radius: 16px;
  margin: 1rem auto;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-links a i {
  font-size: 1.25rem;
}

.footer-copyright {
  color: var(--outline);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.footer-copyright i {
  color: var(--primary);
  font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .screenshot-img {
    max-height: 420px;
  }

  .notice-banner {
    margin: 1.5rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-card > i {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .changelog-card {
    padding: 1rem 1.25rem;
    margin: 0 1rem;
  }

  .footer-links {
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions button {
    width: 100%;
  }

  .screenshot-img {
    max-height: 380px;
  }
}
