/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #F5F5F5;
  font-family: 'Manrope', Arial, sans-serif;
  color: #222;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  letter-spacing: 0.02rem;
}
main {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-section {
  height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-main {
  display: flex;
  width: 100%;
  gap: 28px;
}
.logo-box {
  width: 160px;
  height: 160px;
  border-radius: 34px;
  /* box-shadow: 0 2px 12px 0 rgba(0,0,0,0.04); */
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-box img {
  width: 100%;
  height: 100%;
  display: block;
}
.main-text {
  flex: 1;
  margin-top: 1.4rem;
}
.main-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.main-desc {
  font-size: 1rem;
  color: #444;
  line-height: 1.4;
}
.hero-download {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: calc(100% - 2rem);
}
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.1s ease-in;
  opacity: 0.8;
  margin-right: 2rem;
  /* Add glow effect */
  box-shadow: 0 0 15px rgba(59, 130, 246, 0); /* Initial state with no glow */
  transition: all 0.1s ease-in, box-shadow 0.3s ease-in-out;
  
}
.download-btn:hover {
  transform: scale(1.05);
  opacity: 1;
  /* Enhanced glow effect on hover */
  box-shadow: 0 0 20px 10px rgba(59, 130, 246, 0.5);
}

/* Add dark mode support for the glow */
body.dark-mode .download-btn:hover {
  box-shadow: 0 0 20px 10px rgba(96, 165, 250, 0.5);
}
.divider {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
  margin: 0 8px;
}
.features-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 2px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 0.97rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0.8;
}
.feature:hover {
  opacity: 1;
}
.feature-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  opacity: 0.8;
  vertical-align: middle;
}

.preview-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 8rem;
}
.preview-image {
  width: 45%;
  border-radius: 8px;
  overflow: hidden;
}
.preview-image img {
  width: 100%;
  height: auto;
  display: block;
}
.preview-text {
  flex: 1;
  font-size: 15px;
}
.preview-text ul {
  margin-left: 2rem;
  list-style: none;
}
.preview-text ul li:nth-child(1) {
  margin-top: 0.3rem;
}
.preview-text ul li:nth-child(2),
.preview-text ul li:nth-child(3),
.preview-text ul li:nth-child(4) {
  margin-top: 1rem;
}
.preview-text ul li:nth-child(5) {
  margin-top: 2rem;
}
.preview-text ul li:nth-child(6) {
  margin-top: 2.5rem;
}
.preview-text ul li:nth-child(7) {
  margin-top: 2rem;
}
.faq-section {
  width: 100%;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
  padding: 36px 32px 32px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #222;
  margin-bottom: 24px;
  text-align: center;
}
.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-item {
  /* border-bottom: 1px solid #f0f1f3; */
  padding: 10px 0;
}
.faq-q {
  font-weight: 600;
  font-size: 1rem;
  color: #222;
  margin-bottom: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
  user-select: none;
  opacity: 0.9;
}
.faq-q:hover {
  color: #3b82f6;
}
.faq-toggle {
  font-size: 1.1em;
  margin-left: 8px;
  transition: transform 0.2s;
  color: #bbb;
}
.faq-item.open .faq-toggle {
  transform: rotate(90deg);
  color: #3b82f6;
}
.faq-a {
  color: #444;
  font-size: 0.97rem;
  line-height: 1.5;
  margin-top: 6px;
  display: none;
  animation: fadeIn 0.3s;
  opacity: 0.9;
}
.faq-a a {
  color: #3b82f6;
  text-decoration: none;
}
.faq-item.open .faq-a {
  display: block;
}
footer {
  width: 100%;
  text-align: center;
  padding: 24px 0;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}
footer a {
  color: #666;
  text-decoration: none;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Add new animation for fade in from bottom */
@keyframes fadeInFromBottom {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation class for sections */
.animate-section {
  opacity: 0;
}

.animate-section.show {
  animation: fadeInFromBottom 0.8s ease forwards;
}

/* Add staggered delay for sections */
.animate-section:nth-child(1) { animation-delay: 0.1s; }
.animate-section:nth-child(2) { animation-delay: 0.3s; }
.animate-section:nth-child(3) { animation-delay: 0.5s; }
.animate-section:nth-child(4) { animation-delay: 0.7s; }
/* Dark mode styles */
body.dark-mode {
  background: #181a1b;
  color: #e5e7eb;
  height: max-content;
}
body.dark-mode .main-desc {
  color: #e5e7eb;
  opacity: 0.8;
}
body.dark-mode main {
  color: #e5e7eb;
}
body.dark-mode .faq-section {
  background: #232526;
}
body.dark-mode .faq-title,
body.dark-mode .faq-q {
  color: #e5e7eb;
}
body.dark-mode .faq-a {
  color: #bfc3c9;
}
body.dark-mode .divider {
  background: #33373a;
}
body.dark-mode .feature {
  color: #bfc3c9;
  opacity: 0.6;
}
body.dark-mode .feature:hover {
  opacity: 1;
}
body.dark-mode .faq-toggle {
  color: #888;
}
body.dark-mode .faq-item.open .faq-toggle {
  color: #60a5fa;
}
body.dark-mode .feature-icon {
  filter: invert(1);
}

/* Dark mode toggle button */
.darkmode-toggle-btn {
  position: fixed;
  top: 24px;
  right: 32px;
  z-index: 100;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.15s;
}
.darkmode-toggle-btn:hover {
  background: rgba(60, 60, 60, 0.08);
}
.darkmode-toggle-btn svg {
  width: 26px;
  height: 26px;
  display: block;
  color: #222;
  transition: color 0.2s;
}
body.dark-mode .darkmode-toggle-btn svg {
  color: #e5e7eb;
}

@media (max-width: 800px) {
  body {
    letter-spacing: normal;
  }
  .faq-section {
    padding: 1rem;
    width: 95%;
  }
  .hero-main {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 2rem;
  }
  .logo-box {
    height: 120px;
    width: 120px;
  }
  .main-text {
    text-align: center;
    margin-top: 0;
  }
  .main-desc {
    margin-top: 4rem;
    font-size: 0.8rem;
    line-height: 1.8;
  }
  .features-row {
    justify-content: space-evenly;
    gap: 0;
    width: 100%;
  }
  .feature {
    font-size: 14px;
  }
  .feature-icon {
    width: 14px;
    height: 14px;
  }
  .hero-download {
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  .download-btn {
    margin-right: 0;
  }
  .darkmode-toggle-btn {
    top: 12px;
    right: 12px;
  }
  .preview-section {
    flex-direction: column;
    margin-bottom: 4rem;
  }
  .preview-image {
    width: 88%;
    align-self: center;
  }
  .preview-text {
    width: 88%;
    align-self: center;
    opacity: 0.9;
  }
  .preview-text ul {
    margin-left: 1rem;
  }
  .preview-text ul li:nth-child(1),
  .preview-text ul li:nth-child(2),
  .preview-text ul li:nth-child(3),
  .preview-text ul li:nth-child(4),
  .preview-text ul li:nth-child(5),
  .preview-text ul li:nth-child(6) {
    margin-top: 1rem;
  }
}
/* Modal backdrop */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  cursor: pointer;
}

.modal-backdrop.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal content */
.preview-popup {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  width: 90vw;
  max-width: 500px;
  max-height: 90vh;
  cursor: default;
  animation: modalFadeIn 0.3s ease-out;
}

.dark-mode .preview-popup {
  background: rgba(32, 32, 32, 0.95);
  color: #e5e7eb;
}

.preview-popup video,
.preview-popup img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.preview-drop {
  position: relative;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.preview-drop:hover {
  color: #2563eb;
}

.dark-mode .preview-drop:hover {
  color: #3b82f6;
}

/* Close button for modal */
.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}