/* ========================================
   Telegram Landing Page - Global Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background: #f4f7fa;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Keyframes */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Container */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== Navigation ========== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: #1a1a2e;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a4a6a;
  transition: background 0.2s, color 0.2s;
}
.nav-link:hover { background: #eef2f7; color: #1a1a2e; }
.nav-link.active { background: #e0f7fa; color: #0088cc; font-weight: 700; }
.nav-link svg { width: 18px; height: 18px; opacity: 0.7; }
.nav-link.active svg { opacity: 1; }

/* Mobile menu toggle */
.menu-toggle { display: none; }
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: #fff; padding: 12px 24px; border-bottom: 1px solid rgba(0,0,0,0.06); gap: 4px; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #0088cc, #005f8f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,136,204,0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,136,204,0.45); }
.btn-secondary {
  background: #fff;
  color: #0088cc;
  border: 2px solid #0088cc;
}
.btn-secondary:hover { background: #f0f9ff; }
.btn-large { padding: 16px 36px; font-size: 1.1rem; border-radius: 12px; }

/* ========== Sections ========== */
.section { padding: 72px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  color: #1a1a2e;
}
.section-subtitle {
  text-align: center;
  color: #6b6b8a;
  max-width: 640px;
  margin: 0 auto 44px auto;
  font-size: 1.05rem;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1020 0%, #141b2d 100%);
  color: #fff;
  padding: 100px 0 120px;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,136,204,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,200,180,0.08) 0%, transparent 50%);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; color: #b0c4de; margin-bottom: 20px;
}
.hero-title { font-size: 2.8rem; font-weight: 900; line-height: 1.15; margin-bottom: 16px; }
.hero-title span { color: #00c8b4; }
.hero-desc { font-size: 1.15rem; color: #b0c4de; line-height: 1.7; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; }
.hero-stat h4 { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero-stat p { font-size: 0.85rem; color: #8aa2bf; }
.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-visual .orbit {
  position: absolute; width: 420px; height: 420px; border: 1px dashed rgba(255,255,255,0.08); border-radius: 50%;
  animation: spin 20s linear infinite;
}
.hero-visual .planet {
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #00c8b4, #0088cc);
  box-shadow: 0 0 60px rgba(0,136,204,0.25);
  animation: float 6s ease-in-out infinite;
}

@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-title { font-size: 2.2rem; }
}

/* ========== Cards ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #e8ecf1;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e0f7fa, #f0f9ff); margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: #1a1a2e; }
.card p { font-size: 0.95rem; color: #5a5a7a; line-height: 1.7; }

/* ========== Feature detail section ========== */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px;
}
.feature-row:nth-child(even) .feature-text { order: 2; }
.feature-row:nth-child(even) .feature-graphic { order: 1; }
.feature-text h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 14px; color: #1a1a2e; }
.feature-text p { color: #4a4a6a; line-height: 1.8; margin-bottom: 12px; }
.feature-graphic {
  background: linear-gradient(135deg, #eef2f7, #fff);
  border-radius: 20px; min-height: 260px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #e8ecf1;
}
.feature-graphic svg { width: 140px; height: 140px; opacity: 0.9; }
@media (max-width: 768px) {
  .feature-row { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-text { order: 1; }
  .feature-row:nth-child(even) .feature-graphic { order: 2; }
}

/* ========== Download platforms ========== */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}
.platform-card {
  background: #fff; border-radius: 14px; padding: 24px; text-align: center;
  border: 1px solid #e8ecf1; transition: transform 0.2s, box-shadow 0.2s;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.07); }
.platform-card .icon-wrap { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: #f4f7fa; }
.platform-card .icon-wrap svg { width: 30px; height: 30px; }
.platform-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.platform-card p { font-size: 0.88rem; color: #6b6b8a; margin-bottom: 14px; }
.platform-card .btn { width: 100%; padding: 12px; font-size: 0.95rem; }

/* ========== Testimonials ========== */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}
.testimonial-card {
  background: #fff; border-radius: 14px; padding: 24px; border: 1px solid #e8ecf1;
}
.testimonial-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #0088cc, #00c8b4);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1rem;
}
.testimonial-meta h5 { font-size: 0.95rem; font-weight: 700; }
.testimonial-meta .stars { color: #f5a623; font-size: 0.9rem; margin-top: 2px; }
.testimonial-card p { font-size: 0.92rem; color: #4a4a6a; line-height: 1.7; }

/* ========== Stats ========== */
.stats-bar {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; text-align: center;
}
.stats-item {
  background: #fff; border-radius: 14px; padding: 28px 18px; border: 1px solid #e8ecf1;
}
.stats-item h4 { font-size: 2rem; font-weight: 900; color: #0088cc; }
.stats-item p { font-size: 0.9rem; color: #6b6b8a; margin-top: 4px; }

/* ========== Comparison Table ========== */
.comparison-table-wrap { overflow-x: auto; }
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: 0.95rem;
  background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e8ecf1;
}
.comparison-table th, .comparison-table td { padding: 14px 18px; text-align: left; }
.comparison-table thead th { background: #f4f7fa; font-weight: 700; color: #1a1a2e; }
.comparison-table tbody tr:nth-child(even) { background: #fafbfc; }
.comparison-table tbody tr:hover { background: #f0f9ff; }
.comparison-table td { color: #4a4a6a; border-bottom: 1px solid #f0f0f5; }
.comparison-table .yes { color: #0aaf0a; font-weight: 700; }
.comparison-table .no  { color: #c0392b; }

/* ========== FAQ ========== */
.faq-item {
  background: #fff; border-radius: 12px; border: 1px solid #e8ecf1; margin-bottom: 14px; overflow: hidden;
}
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer; font-weight: 700; color: #1a1a2e; font-size: 1rem;
}
.faq-q:hover { background: #fafbfc; }
.faq-icon { width: 20px; height: 20px; color: #6b6b8a; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 22px 18px; color: #4a4a6a; line-height: 1.8; font-size: 0.95rem; }

/* ========== Footer ========== */
.site-footer {
  background: #0b1020; color: #8aa2bf; padding: 40px 0 28px; text-align: center;
}
.site-footer p { font-size: 0.9rem; line-height: 1.7; }
.site-footer .footer-seal { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #00c8b4; font-weight: 600; }

/* ========== Download Page Specific ========== */
.download-hero {
  background: linear-gradient(135deg, #0b1020, #141b2d);
  color: #fff; padding: 80px 0 90px; position: relative; overflow: hidden;
}
.download-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 60% 40%, rgba(0,136,204,0.12) 0%, transparent 50%);
}
.download-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.download-hero-text h1 { font-size: 2.4rem; font-weight: 900; margin-bottom: 14px; }
.download-hero-text p { color: #b0c4de; font-size: 1.05rem; line-height: 1.7; margin-bottom: 22px; }
.download-meta { display: flex; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.download-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.9rem; color: #8aa2bf; }
.download-hero-graphic {
  display: flex; align-items: center; justify-content: center; min-height: 280px;
  background: rgba(255,255,255,0.04); border-radius: 20px; border: 1px solid rgba(255,255,255,0.08);
}
.download-hero-graphic svg { width: 160px; height: 160px; }
@media (max-width: 968px) {
  .download-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .download-meta { justify-content: center; }
}

/* Install steps */
.step-list { display: flex; flex-direction: column; gap: 18px; }
.step-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: #fff; border-radius: 14px; padding: 22px; border: 1px solid #e8ecf1;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #0088cc, #005f8f);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.step-body h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-body p { font-size: 0.92rem; color: #4a4a6a; line-height: 1.7; }

/* Version logs */
.log-item {
  background: #fff; border-radius: 12px; padding: 20px 24px; border: 1px solid #e8ecf1; margin-bottom: 12px;
}
.log-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.log-header h4 { font-size: 1rem; font-weight: 800; color: #1a1a2e; }
.log-header span { font-size: 0.85rem; color: #8aa2bf; }
.log-item ul { padding-left: 18px; list-style: disc; }
.log-item li { font-size: 0.92rem; color: #4a4a6a; line-height: 1.7; margin-bottom: 4px; }

/* System requirements table */
.req-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e8ecf1; font-size: 0.92rem; }
.req-table th, .req-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f0f0f5; }
.req-table thead th { background: #f4f7fa; font-weight: 700; color: #1a1a2e; }
.req-table tbody tr:nth-child(even) { background: #fafbfc; }

/* ========== SEO Page ========== */
.seo-hero {
  background: linear-gradient(135deg, #eef2f7, #fff); padding: 80px 0 70px;
}
.seo-hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.seo-hero h1 { font-size: 2.2rem; font-weight: 900; color: #1a1a2e; margin-bottom: 14px; }
.seo-hero p { font-size: 1.1rem; color: #4a4a6a; line-height: 1.8; margin-bottom: 28px; }

.article-section { background: #fff; border-radius: 16px; padding: 36px; border: 1px solid #e8ecf1; margin-bottom: 24px; }
.article-section h2 { font-size: 1.3rem; font-weight: 800; color: #1a1a2e; margin-bottom: 14px; }
.article-section p { font-size: 0.98rem; color: #4a4a6a; line-height: 1.9; margin-bottom: 12px; }
.article-section ul { padding-left: 22px; list-style: disc; }
.article-section li { font-size: 0.95rem; color: #4a4a6a; line-height: 1.8; margin-bottom: 6px; }

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, #0088cc, #005f8f);
  color: #fff; border-radius: 16px; padding: 36px; text-align: center; margin-bottom: 24px;
}
.cta-box h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.cta-box p { color: #cce6f5; line-height: 1.7; margin-bottom: 18px; font-size: 1rem; }

/* ========== Utility ========== */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.highlight { background: #fffbe6; padding: 2px 6px; border-radius: 4px; color: #b46a00; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.badge-blue { background: #e0f7fa; color: #0088cc; }
.badge-green { background: #e6f9ed; color: #0aaf0a; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
