/* Timeless Classic Blue Theme for Telegram Site - Bing SEO Optimized */
:root {
  --primary: #229ed9;
  --primary-dark: #1c8adb;
  --primary-light: #eef7fc;
  --text-main: #222222;
  --text-muted: #5f7285;
  --bg-main: #ffffff;
  --bg-gray: #f4f8fc;
  --border-color: #e3edf5;
  --footer-bg: #17212b;
  --footer-text: #8e9da8;
  --max-width: 1140px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header & Navigation */
.header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transform: rotate(-10deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  color: #4a5c6d;
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(34, 158, 217, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 60px 0 50px;
  background: linear-gradient(180deg, #e8f4fa 0%, #ffffff 100%);
  text-align: center;
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.showcase-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 12px 32px rgba(34, 158, 217, 0.12);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.showcase-card:hover {
  transform: translateY(-5px);
}

.showcase-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.showcase-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #334455;
}

/* General Section */
.section {
  padding: 70px 0;
}

.section-gray {
  background-color: var(--bg-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-title p {
  font-size: 16px;
  color: var(--text-muted);
}

/* Features Grid (3x3) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.08);
  transform: translateY(-3px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Blog / Tutorial Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border-color: #c0deed;
}

.blog-date {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-link {
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.more-wrapper {
  text-align: center;
  margin-top: 36px;
}

/* FAQ Centered Layout */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-question::before {
  content: "Q";
  color: var(--primary);
  font-weight: 800;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 24px;
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 25px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #9cb1c0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #9cb1c0;
  font-size: 14px;
}

.footer-col ul a:hover {
  color: #ffffff;
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  color: #6d7f8f;
}

/* Download Page Specifics */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.download-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.download-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  font-weight: 700;
}

.download-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 42px;
}

.download-web-banner {
  background: linear-gradient(135deg, #229ed9 0%, #1773a5 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.download-web-banner h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.download-web-banner p {
  color: #d1ecf9;
  font-size: 15px;
}

/* Responsiveness */
@media (max-width: 900px) {
  .features-grid, .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-showcase {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .download-web-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .features-grid, .blog-grid, .download-grid {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    gap: 10px;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
}
