:root {
  --primary-color: #222333;
  --text-color: #333;
  --background-color: #fff;
  --secondary-background: #f7f7f8;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-brand: 'Century Gothic', 'Century Gothic Custom', sans-serif;
  --transition-speed: 0.3s;
  --hover-color: #4a90e2;
  --author-color: #555;
  --spacing-unit: 1rem;
}

@font-face {
  font-family: 'Century Gothic Custom';
  src: url('../font/cg.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--background-color);
  padding-top: 80px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

.navbar {
  background-color: var(--background-color);
  box-shadow: 0 1px 2px var(--shadow-color);
  padding: var(--spacing-unit) 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar-placeholder {
  height: 80px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo-link {
  margin-right: 10px;
}

.logo {
  height: 30px;
  vertical-align: middle;
}

.brand-text {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-color);
}

.brand-description {
  font-size: 0.8rem;
  color: #666;
}

.brand-slogan {
  text-align: center;
  margin: 3rem 0;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 1px;
}

.navbar-menu {
  display: flex;
  align-items: center;
}

.navbar-item {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

.navbar-item:hover {
  color: var(--hover-color);
}

.navbar-toggle {
  display: none;
}

.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  min-width: 120px;
}

.current-language {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 5px 10px;
  border: 1px solid var(--text-color);
  border-radius: 4px;
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition: border-color 0.3s ease;
}

.current-language:hover {
  border-color: var(--hover-color);
}

.globe-icon {
  width: 18px;
  height: 18px;
  margin-right: 5px;
  transition: color 0.3s ease;
}

.language-text {
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.language-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--background-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 5px 0;
  min-width: 120px;
  z-index: 1000;
}

.language-selector.open .language-dropdown,
.language-selector:focus-within .language-dropdown {
  display: block;
}

.language-dropdown a {
  display: block;
  padding: 5px 15px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.language-dropdown a:hover {
  color: var(--hover-color);
}

.navbar-item:focus-visible,
.current-language:focus-visible,
.language-dropdown a:focus-visible,
.contact-button:focus-visible {
  outline: 2px solid var(--hover-color);
  outline-offset: 2px;
}

.hero {
  background-color: var(--secondary-background);
  padding: 100px 0 3rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.download-button-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(240px, 100%);
  height: 68px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.download-button:hover {
  transform: scale(1.05);
}

.download-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#app-requires {
  display: none;
}

.hero .download-links {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.hero .download-links a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  margin: 0 0.5rem;
}

.hero .download-links a:hover {
  color: var(--hover-color);
  text-decoration: underline;
}

.screenshots {
  padding: 20px 0 1rem;
  background-color: var(--background-color);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.swiper-container {
  width: 100%;
  max-width: 100%;
  padding: 0 20px 20px;
  box-sizing: border-box;
  position: relative;
  margin-top: 20px;
}

.swiper-slide {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 8 / 5;
  padding: 0;
}

.swiper-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 6px var(--shadow-color);
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.features {
  padding: 5rem 0;
  background-color: var(--secondary-background);
}

#app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-item {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--background-color);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.feature-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto;
}

.icon-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: #007aff;
  color: white;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.feature-item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.feature-item p {
  color: var(--text-color);
  line-height: 1.5;
  font-size: 0.9rem;
}

.user-reviews {
  padding: 5rem 0;
  background-color: var(--background-color);
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.review-item {
  background-color: var(--secondary-background);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.review-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.review-stars {
  color: #ffc107;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.review-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.review-text {
  font-style: italic;
  margin-bottom: 1.2rem;
  color: var(--text-color);
  line-height: 1.6;
  flex-grow: 1;
  font-size: 0.95rem;
}

.review-author {
  text-align: right;
  font-weight: normal;
  color: var(--author-color);
  font-size: 0.9rem;
}

.footer {
  background-color: var(--secondary-background);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.copyright {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copyright .pap-er-brand {
  margin-right: 0.3em;
}

.footer-links {
  font-size: 0.8rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
  color: var(--hover-color);
}

.contact {
  padding: 100px 0 4rem;
  background-color: var(--secondary-background);
  text-align: center;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact p {
  margin-bottom: 2rem;
}

.contact-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: var(--hover-color);
}

.pap-er-brand,
#app-title .pap-er-brand,
.footer .copyright .pap-er-brand {
  font-family: var(--font-brand), sans-serif !important;
  font-weight: bold !important;
}

#app-title .pap-er-brand {
  font-size: 1.2em !important;
}

.footer .copyright .pap-er-brand {
  font-size: 1em !important;
}

.swiper-pagination {
  position: absolute;
  bottom: 0 !important;
  left: 0;
  width: 100%;
}

.swiper-pagination-bullet {
  background: var(--text-color);
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  background: var(--primary-color);
  opacity: 1;
}

.faq {
  /* padding: 0 0 5rem; */
  background-color: var(--background-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--shadow-color);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.faq-toggle {
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.3s ease;
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.faq-toggle::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.faq-toggle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.faq-item:hover .faq-question h3 {
  color: var(--hover-color);
}

.faq-item:hover .faq-toggle::before,
.faq-item:hover .faq-toggle::after {
  background-color: var(--hover-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding: 0 1rem;
}

.faq-item.active .faq-answer {
  max-height: none;
  opacity: 1;
  padding: 1rem;
}

@media (max-width: 768px) {
  .navbar-brand {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 0;
  }

  .navbar-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
  }

  .navbar-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 1rem;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-item {
    margin: 10px 0;
    width: 100%;
  }

  .language-selector {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .current-language {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .language-dropdown {
    position: static;
    display: none;
    flex-direction: column;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }

  .language-selector.open .language-dropdown,
  .language-selector:focus-within .language-dropdown {
    display: flex;
  }

  .language-dropdown a {
    padding: 5px 0;
  }

  .slogan-text {
    font-size: 1.3rem;
    margin: 2rem 0;
  }

  #app-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .swiper-container {
    padding: 0 10px 15px;
    height: auto;
  }

  .swiper-slide {
    padding: 0;
  }

  .swiper-slide img {
    max-height: 50vh;
  }

  .download-button {
    max-width: 180px;
  }

  .reviews-container {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  #app-features,
  .reviews-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features,
  .user-reviews {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  #app-features,
  .reviews-container {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  #app-features,
  .reviews-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.noscript-warning {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  text-align: center;
  max-width: 80%;
}

.noscript-warning .alert {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px;
  font-size: 0.9rem;
  margin-bottom: 0;
}
