body.light {
  --primary: #a855f7;
  --on-primary: #ffffff;
  --primary-container: #f3e8ff;
  --on-primary-container: #3b0764;
  --secondary: #c084fc;
  --on-secondary: #3b0764;
  --secondary-container: #e9d5ff;
  --on-secondary-container: #581c87;
  --tertiary: #ec4899;
  --on-tertiary: #500724;
  --tertiary-container: #fce7f3;
  --on-tertiary-container: #831843;
  --error: #ef4444;
  --on-error: #ffffff;
  --error-container: #fee2e2;
  --on-error-container: #7f1d1d;
  --background: #fffbea;
  --on-background: #1f2937;
  --surface: #ffffff;
  --on-surface: #1f2937;
  --surface-variant: #fef3c7;
  --on-surface-variant: #4b5563;
  --outline: #9ca3af;
  --outline-variant: #fde68a;
  --shadow: #000000;
  --scrim: #000000;
  --inverse-surface: #1f2937;
  --inverse-on-surface: #f9fafb;
  --inverse-primary: #d8b4fe;
  --surface-dim: #fde68a;
  --surface-bright: #ffffff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #fffdf5;
  --surface-container: #fef9ec;
  --surface-container-high: #fdf3dc;
  --surface-container-highest: #fbecc4;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

main {
  padding-top: 0;
  padding-bottom: 0;
}

/* Navigation / Sidebar */
.catchify-logo {
  border-radius: 10px;
}

.catchify-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--outline-variant);
}

.catchify-nav-logo img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background-color: var(--on-surface);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#navigation-bar.nav-open .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#navigation-bar.nav-open .hamburger-bar:nth-child(2) {
  opacity: 0;
}

#navigation-bar.nav-open .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-btn:hover,
.nav-toggle-btn:focus-visible {
  background: var(--surface-container-high);
}

@media only screen and (max-width: 760px) {
  #navigation-bar {
    padding: 0;
  }

  .catchify-nav-logo {
    display: flex;
    flex: 1 1 auto;
    padding: 0.5rem 1rem;
    margin-bottom: 0;
    border-bottom: none;
  }

  .nav-toggle-btn {
    display: inline-flex;
  }

  #navigation-bar > a {
    display: none;
  }

  #navigation-bar.nav-open {
    flex-direction: column;
    align-items: stretch;
  }

  #navigation-bar.nav-open > a {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    box-sizing: border-box;
  }
}

.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(--primary) !important;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px !important;
}

.hero-logo {
  width: 55%;
  height: 55%;
  object-fit: contain;
}

.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-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);
}

#download-version {
  opacity: 0.85;
}

/* 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: 1px solid var(--outline-variant);
  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: 1px solid var(--outline-variant);
  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: 1px solid var(--outline-variant);
  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;
}

/* FAQ Section */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.faq-list details {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--on-surface);
}

.faq-list details p {
  color: var(--on-surface-variant);
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.faq-list a {
  color: var(--primary);
}

/* 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 .shape {
    width: 130px;
    height: 130px;
  }

  .section-title {
    font-size: 1.4rem;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem;
  }

  .section-title i {
    font-size: 2rem;
  }

  .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;
  }
}
