/* Retro Cinema Widescreen Theme for Telegram Site */
:root {
  --cinema-black: #0c0d12;
  --cinema-dark: #14161f;
  --cinema-card: #1c1f2b;
  --cinema-gold: #e2b04c;
  --cinema-blue: #229ed9;
  --cinema-blue-hover: #1b82b3;
  --cinema-border: #2a2f42;
  --text-primary: #f0f3f7;
  --text-muted: #9aa3b4;
  --text-gold: #f2c766;
  --max-width: 1180px;
  --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-primary);
  background-color: var(--cinema-black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--cinema-blue);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--cinema-gold);
}

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(12, 13, 18, 0.92);
  border-bottom: 1px solid var(--cinema-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--cinema-blue) 0%, #156293 100%);
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 0 12px rgba(34, 158, 217, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  border-radius: 6px;
}

.nav-link:hover, .nav-link.active {
  color: var(--cinema-gold);
  background: rgba(226, 176, 76, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cinema-blue) 0%, #1778aa 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(34, 158, 217, 0.35);
}

.btn-primary:hover {
  background: var(--cinema-blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--cinema-gold) 0%, #b88628 100%);
  color: var(--cinema-black);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(226, 176, 76, 0.3);
}

.btn-gold:hover {
  background: #f2c766;
  color: var(--cinema-black);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(28, 31, 43, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--cinema-border);
}

.btn-outline:hover {
  border-color: var(--cinema-gold);
  color: var(--cinema-gold);
  background: rgba(226, 176, 76, 0.08);
  transform: translateY(-2px);
}

/* Hero Section - Cinema Widescreen Style */
.hero {
  padding: 60px 0 60px;
  background: radial-gradient(circle at 50% 20%, rgba(34, 158, 217, 0.12) 0%, rgba(12, 13, 18, 1) 70%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cinema-gold), transparent);
  opacity: 0.4;
}

.hero::before { top: 0; }
.hero::after { bottom: 0; }

.cinema-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  background: rgba(226, 176, 76, 0.12);
  border: 1px solid rgba(226, 176, 76, 0.3);
  color: var(--cinema-gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  color: var(--cinema-gold);
  background: linear-gradient(135deg, #fce08b 0%, var(--cinema-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

/* 21:9 Widescreen Showcase Frame */
.widescreen-frame {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 12px;
  background: #000000;
  border: 2px solid var(--cinema-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(34, 158, 217, 0.15);
  overflow: hidden;
  position: relative;
}

.widescreen-header {
  height: 28px;
  background: #12141c;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--cinema-border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #e74c3c; }
.dot-yellow { background: #f1c40f; }
.dot-green { background: #2ecc71; }

.widescreen-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: auto;
  letter-spacing: 0.05em;
}

.widescreen-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: #090a0d;
}

.widescreen-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.widescreen-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.widescreen-item:hover img {
  transform: scale(1.04);
}

.widescreen-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.85) 100%);
  font-size: 13px;
  font-weight: 600;
  color: var(--cinema-gold);
  text-align: center;
}

/* Sections */
.section {
  padding: 75px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-dark {
  background-color: var(--cinema-dark);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  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: var(--cinema-card);
  border: 1px solid var(--cinema-border);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--cinema-gold);
  box-shadow: 0 10px 30px rgba(226, 176, 76, 0.12);
  transform: translateY(-4px);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.25);
  color: var(--cinema-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 18px;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  color: #ffffff;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Blog / Tutorial Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--cinema-card);
  border: 1px solid var(--cinema-border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.blog-card:hover {
  border-color: var(--cinema-blue);
  box-shadow: 0 8px 24px rgba(34, 158, 217, 0.15);
}

.blog-date {
  font-size: 13px;
  color: var(--cinema-gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.45;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.blog-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--cinema-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.more-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.faq-container {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: var(--cinema-card);
  border: 1px solid var(--cinema-border);
  border-radius: 10px;
  padding: 22px 26px;
  margin-bottom: 16px;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(226, 176, 76, 0.4);
}

.faq-question {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-question::before {
  content: "Q";
  color: var(--cinema-gold);
  font-size: 19px;
  font-weight: 800;
}

.faq-answer {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 28px;
}

/* Footer */
.footer {
  background-color: #07080a;
  color: var(--text-muted);
  padding: 65px 0 30px;
  border-top: 1px solid var(--cinema-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 45px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col ul a:hover {
  color: var(--cinema-gold);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
  font-size: 13px;
  color: #656d7d;
}

/* Download Page Specifics */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.download-card {
  background: var(--cinema-card);
  border: 1px solid var(--cinema-border);
  border-radius: 14px;
  padding: 34px 24px;
  text-align: center;
}

.download-card-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  background: rgba(34, 158, 217, 0.12);
  border: 1px solid rgba(34, 158, 217, 0.3);
  color: var(--cinema-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 20px;
  font-weight: 700;
}

.download-card h3 {
  font-size: 21px;
  color: #ffffff;
  margin-bottom: 12px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
  min-height: 42px;
}

.download-web-banner {
  background: linear-gradient(135deg, #18202d 0%, #0d1219 100%);
  border: 1px solid var(--cinema-gold);
  border-radius: 14px;
  padding: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.download-web-banner h3 {
  font-size: 22px;
  color: var(--cinema-gold);
  margin-bottom: 8px;
}

.download-web-banner p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Responsiveness */
@media (max-width: 900px) {
  .features-grid, .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .widescreen-body {
    grid-template-columns: 1fr;
  }
  .widescreen-item img {
    height: 180px;
  }
  .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: 14px 0;
    gap: 12px;
  }
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
}
