*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --color-primary: #7c3aed;
  --color-primary-light: #a78bfa;
  --color-primary-dark: #5b21b6;
  --color-secondary: #06b6d4;
  --color-accent: #8b5cf6;
  --bg-primary: #0a0a1a;
  --bg-secondary: #111128;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(124, 58, 237, 0.3);
  --gradient-hero: linear-gradient(
    135deg,
    #0a0a1a 0%,
    #1a0a2e 50%,
    #0a0a1a 100%
  );
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --gradient-card: linear-gradient(
    180deg,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(6, 182, 212, 0.05) 100%
  );
  --gradient-cta: linear-gradient(135deg, #1a0a2e 0%, #0a1628 100%);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.2);
  --shadow-glow-strong: 0 0 40px rgba(124, 58, 237, 0.4);
  --font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --section-padding: clamp(60px, 8vw, 100px) 0;
  --container-width: min(1200px, 92vw);
  --transition-fast: all 0.2s ease;
  --transition-normal: all 0.3s ease;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-normal);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-purple);
  transition: var(--transition-fast);
  border-radius: 1px;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.lang-selector:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
/* Language globe icon */
.lang-globe {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.lang-globe svg {
  width: 100%;
  height: 100%;
}
.lang-selector:hover .lang-globe {
  color: var(--text-primary);
}
.lang-chevron {
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.lang-selector.active .lang-chevron {
  transform: rotate(180deg);
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px;
  display: none;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  overflow: visible;
}
.lang-dropdown.show {
  display: block;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  font-size: 13px;
}
.lang-option:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.lang-option.active {
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.1);
}
/* Language option globe icon */
.lang-option-globe {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.lang-option-globe svg {
  width: 100%;
  height: 100%;
}
.lang-option:hover .lang-option-globe,
.lang-option.active .lang-option-globe {
  color: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition-fast);
}
.mobile-menu-btn:hover {
  background: var(--bg-card-hover);
}

/* Mobile Navigation Menu */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.98);
  backdrop-filter: blur(20px);
  padding: 20px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.nav-links.active a {
  font-size: 16px;
  padding: 8px 0;
  width: 100%;
  text-align: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
/* .hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
} */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}
.hero-content {
  max-width: 560px;
  padding: 20px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}
.hero-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.hero-title-gradient {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.hero-logo-img {
  display: block;
  max-width: 120px;
  height: auto;
  margin: 16px auto 24px;
  object-fit: contain;
}
/* .hero-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: block;
} */
.hero-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-normal);
  cursor: pointer;
}
.download-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.download-btn svg {
  width: 20px;
  height: 20px;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.features {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 13px;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-purple);
  opacity: 0;
  transition: var(--transition-normal);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.feature-card:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.testimonials {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition-normal);
}
.testimonial-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
}
.testimonial-info h4 {
  font-size: 16px;
  font-weight: 600;
}
.testimonial-info span {
  font-size: 13px;
  color: var(--text-muted);
}
.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: #fbbf24;
  font-size: 16px;
}

/* FAQ Link Section (replacement for full FAQ on index.html) */
.faq-link-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}
.faq-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 28px;
  background: var(--gradient-purple);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-glow);
}
.faq-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
}
.faq-link-btn svg {
  width: 20px;
  height: 20px;
}

/* FAQ Section */
.faq {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  transition: var(--transition-normal);
}
.faq-item:hover {
  border-color: var(--border-glow);
}
.faq-item.active {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}
.faq-question:hover {
  background: var(--bg-card-hover);
}
.faq-question h3 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
  padding-right: 16px;
  margin: 0;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-normal);
}
.faq-item.active .faq-icon {
  background: var(--gradient-purple);
  transform: rotate(45deg);
}
.faq-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--primary-light);
}
.faq-item.active .faq-icon svg {
  stroke: #fff;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.35s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 300px;
}

.cta {
  padding: var(--section-padding);
  background: var(--gradient-cta);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "Xchat";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 200px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  letter-spacing: 20px;
  white-space: nowrap;
}
.cta .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}
.cta-content {
  padding: 20px 0;
}
.cta-content h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}
.cta-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-image {
  display: flex;
  justify-content: center;
  position: relative;
}
/* .cta-screenshot {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: block;
} */

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.show {
  display: flex;
}
.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.modal::-webkit-scrollbar {
  width: 6px;
}
.modal::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
.modal-header {
  position: sticky;
  top: 0;
  background: var(--bg-secondary);
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 18px;
}
.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}
.modal-body {
  padding: 32px;
}
.modal-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}
.modal-body h3:first-child {
  margin-top: 0;
}
.modal-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}
.modal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.modal-body ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 6px;
}

.download-modal .modal-body {
  text-align: center;
}
.download-platform {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.download-platform-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
  position: relative;
}
.download-platform-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}
.download-platform-item .dp-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.download-platform-item .dp-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.download-platform-item .dp-name {
  font-size: 15px;
  font-weight: 500;
}
.download-platform-item .dp-size {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.download-platform-item .dp-btn {
  padding: 8px 20px;
  background: var(--gradient-purple);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.download-platform-item.recommended {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.download-platform-item.recommended::before {
  content: "推荐";
  position: absolute;
  top: -8px;
  right: 16px;
  background: var(--gradient-purple);
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
}

.footer {
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition-fast);
}
.footer-col ul li a:hover {
  color: var(--primary-light);
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Enhanced Responsive Layout
   ============================================ */

/* Large tablets and small desktops (1024px and below) */
@media (max-width: 1024px) {
  :root {
    --section-padding: clamp(60px, 7vw, 80px) 0;
  }

  .hero .container,
  .cta .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 30px clamp(16px, 3vw, 24px);
  }

  .hero-content {
    max-width: 100%;
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-downloads,
  .cta-downloads {
    justify-content: center;
  }

  /* .hero-screenshot {
    max-width: min(500px, 70%);
    margin: 0 auto;
  } */

  /* .cta-screenshot {
    max-width: min(450px, 60%);
    margin: 0 auto;
  } */

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  /* Adjust nav spacing for medium screens */
  .nav-links {
    gap: clamp(12px, 2vw, 20px);
  }

  .nav-links a {
    font-size: 13px;
  }

  /* CTA background text scaling */
  .cta::before {
    font-size: clamp(100px, 15vw, 200px);
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Hide lang selector text on small tablets to save space */
  .lang-selector span#currentLang {
    display: none;
  }

  .lang-selector {
    padding: 8px 10px;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero .container {
    gap: 30px;
    padding: 20px clamp(16px, 3vw, 24px);
  }

  /* .hero-screenshot {
    max-width: min(400px, 85%);
    border-radius: 12px;
  } */

  /* .cta-screenshot {
    max-width: min(350px, 75%);
    border-radius: 12px;
  } */

  .section-header {
    margin-bottom: 40px;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Modal adjustments */
  .modal {
    max-width: 95%;
    margin: 16px;
  }

  .modal-header {
    padding: 16px 20px;
  }

  .modal-body {
    padding: 20px;
  }

  /* FAQ link button */
  .faq-link-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  :root {
    --section-padding: 50px 0;
  }

  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-logo-img {
    height: 28px;
  }

  .nav-logo-text {
    font-size: 18px;
  }

  .nav-logo {
    gap: 8px;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero .container {
    padding: 16px;
    gap: 24px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 6px 12px;
    margin-bottom: 16px;
  }

  .hero-logo-img {
    max-width: 70px;
    margin: 10px auto 16px;
  }

  /* .hero-screenshot {
    max-width: 95%;
    border-radius: 10px;
  } */

  .hero-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-downloads {
    gap: 8px;
  }

  .download-btn {
    padding: 10px 14px;
    font-size: 12px;
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 0;
  }

  .download-btn svg {
    width: 18px;
    height: 18px;
  }

  .cta .container {
    padding: 16px;
  }

  /* .cta-screenshot {
    max-width: 90%;
    border-radius: 10px;
  } */

  .cta-downloads {
    gap: 8px;
  }

  .section-title {
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 14px;
  }

  .section-label {
    font-size: 12px;
    padding: 5px 12px;
  }

  .feature-card {
    padding: 20px;
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 16px;
  }

  .feature-title {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .feature-desc {
    font-size: 13px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .testimonial-info h4 {
    font-size: 15px;
  }

  .testimonial-text {
    font-size: 13px;
  }

  .testimonial-stars {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .faq-question {
    padding: 14px 16px;
  }

  .faq-question h3 {
    font-size: 14px;
    padding-right: 12px;
  }

  .faq-icon {
    width: 24px;
    height: 24px;
  }

  .faq-icon svg {
    width: 12px;
    height: 12px;
  }

  .faq-answer-inner {
    font-size: 13px;
    padding: 0 16px 14px;
  }

  .faq-link-btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  /* Footer mobile */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
  }

  .footer-col h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .footer-col ul li {
    margin-bottom: 8px;
  }

  .footer-col ul li a {
    font-size: 13px;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 12px;
  }

  /* Download modal mobile optimizations */
  .download-platform-item {
    padding: 12px 14px;
  }

  .download-platform-item .dp-left {
    gap: 10px;
  }

  .download-platform-item .dp-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .download-platform-item .dp-name {
    font-size: 13px;
  }

  .download-platform-item .dp-size {
    font-size: 11px;
  }

  .download-platform-item .dp-btn {
    padding: 6px 14px;
    font-size: 12px;
  }

  /* CTA background text smaller on mobile */
  .cta::before {
    font-size: 80px;
    letter-spacing: 10px;
  }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .nav-logo-text {
    font-size: 16px;
  }

  .nav-logo-img {
    height: 24px;
  }

  .hero-downloads {
    flex-direction: column;
  }

  .download-btn {
    width: 100%;
  }

  .cta-downloads {
    flex-direction: column;
  }

  /* .hero-screenshot,
  .cta-screenshot {
    max-width: 100%;
  } */
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 70px 0 30px;
  }

  .hero .container {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-screenshot {
    max-width: 100%;
  }

  .nav-links.active {
    max-height: 60vh;
    overflow-y: auto;
  }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* .hero-screenshot,
  .cta-screenshot,
  .nav-logo-img,
  .hero-logo-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  } */
}

/* Print styles */
@media print {
  .navbar,
  .hero-image,
  .cta-image,
  .modal-overlay,
  .mobile-menu-btn,
  .lang-selector {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .features,
  .testimonials,
  .cta,
  .footer {
    padding: 20px 0;
  }

  a {
    text-decoration: underline;
    color: #000;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Prefers contrast */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(255, 255, 255, 0.3);
    --text-secondary: rgba(255, 255, 255, 0.9);
  }

  .feature-card,
  .testimonial-card {
    border-width: 2px;
  }
}

/* ============================================
   Global Responsive Rules
   ============================================ */

/* Ensure all images are responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent horizontal overflow */
html,
body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure text doesn't overflow containers */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Legal Pages */
.legal-content {
  padding-top: 112px;
  padding-bottom: 48px;
  background:
    radial-gradient(
      circle at 10% -10%,
      rgba(124, 58, 237, 0.2),
      transparent 35%
    ),
    radial-gradient(circle at 90% 0%, rgba(6, 182, 212, 0.14), transparent 30%),
    var(--bg-primary);
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.legal-hero {
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(
    145deg,
    rgba(124, 58, 237, 0.16),
    rgba(6, 182, 212, 0.08) 45%,
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: var(--shadow-card);
}

.legal-header {
  text-align: left;
  margin-bottom: 0;
}

.legal-header .section-subtitle {
  margin: 0;
  max-width: 780px;
}

.legal-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-breadcrumb a:hover {
  color: var(--text-primary);
}

.legal-title {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-meta-item {
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.legal-toc {
  position: sticky;
  top: 102px;
  align-self: start;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  background: rgba(17, 17, 40, 0.78);
  backdrop-filter: blur(10px);
}

.legal-toc h2 {
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-toc ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.legal-toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: var(--transition-fast);
}

.legal-toc a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.legal-body {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(17, 17, 40, 0.72);
  box-shadow: var(--shadow-card);
}

.legal-body section {
  scroll-margin-top: 110px;
}

.legal-body section + section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-body h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.legal-body p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-body ul {
  margin: 8px 0 8px 18px;
}

.legal-body li {
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.legal-body a {
  color: #9ddcff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-highlight {
  border-left: 3px solid #9ddcff;
  background: rgba(157, 220, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
}

.legal-footer-note {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-toc {
    position: static;
  }
}

@media (max-width: 768px) {
  .legal-content {
    padding-top: 96px;
  }

  .legal-title {
    font-size: clamp(24px, 8vw, 34px);
  }

  .legal-subtitle {
    font-size: 15px;
  }
}
