/* HalfOffTelegram - Optimized Styles.css | Mobile-First, Glassmorphism, Dark Mode, Animations */

/* CSS Variables for Consistency & Dark Mode */
:root {
  --bg-primary: linear-gradient(145deg, #f8faff 0%, #f0f3fe 100%);
  --bg-secondary: #eef2ff;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.92);
  --text-primary: #0a1c3a;
  --text-secondary: #2c3e50;
  --text-muted: #5e7a93;
  --accent-primary: linear-gradient(135deg, #0f2b5e, #1e4a8a);
  --accent-gradient: linear-gradient(95deg, #1e96d4, #27b0f0);
  --accent-hover: #1e88c5;
  --success: #1e6f3f;
  --success-hover: #0f5a34;
  --border-light: rgba(0, 32, 64, 0.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.02);
  --shadow-md: 0 12px 26px -8px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 30px -12px rgba(0,0,0,0.1);
  --radius-sm: 20px;
  --radius-lg: 60px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: linear-gradient(145deg, #0a0e1a 0%, #1a1f2e 100%);
  --bg-secondary: #1e2535;
  --bg-card: rgba(26, 31, 46, 0.95);
  --bg-glass: rgba(10, 14, 26, 0.92);
  --text-primary: #e2e8f0;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.08);
}

/* Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; 
  background: var(--bg-primary); 
  color: var(--text-primary); 
  line-height: 1.6; 
  scroll-behavior: smooth; 
  min-height: 100vh;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Animations & Utilities */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; }
.pulse { animation: pulse 2s infinite; }

/* Header */
.header { 
  background: var(--bg-glass); 
  backdrop-filter: blur(12px); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  border-bottom: 1px solid var(--border-light); 
  padding: 16px 0; 
}
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.logo h2 { 
  font-size: clamp(1.5rem, 4vw, 1.8rem); 
  font-weight: 800; 
  background: var(--accent-primary); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent; 
  letter-spacing: -0.3px; 
}
.logo span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); display: block; }

/* CTAs */
.cta-header, .btn-telegram { 
  display: inline-flex; align-items: center; gap: 12px; 
  font-weight: 700; text-decoration: none; 
  border-radius: var(--radius-lg); 
  transition: var(--transition); 
  box-shadow: var(--shadow-md); 
}
.cta-header { 
  background: var(--success); color: white; 
  padding: 10px 20px; 
}
.cta-header:hover { background: var(--success-hover); transform: scale(1.02); }
.btn-telegram { 
  background: var(--accent-gradient); color: white; 
  font-size: 1.3rem; padding: 16px 36px; 
  box-shadow: 0 12px 22px -8px rgba(30,150,212,0.4); 
}
.btn-telegram i { font-size: 1.7rem; }
.btn-telegram:hover { 
  background: var(--accent-hover); 
  transform: translateY(-3px); 
  box-shadow: var(--shadow-lg); 
}

/* Hero */
.hero { padding: 80px 0 60px; text-align: center; }
.hero h1 { 
  font-size: clamp(2.5rem, 8vw, 3.5rem); 
  font-weight: 800; line-height: 1.2; 
  background: linear-gradient(125deg, #0a2540, #1f6392); 
  -webkit-background-clip: text; background-clip: text; 
  color: transparent; margin-bottom: 24px; 
}
.hero p { 
  font-size: 1.2rem; color: var(--text-secondary); 
  max-width: 800px; margin: 0 auto 40px; 
}
.stats-badge { 
  background: var(--bg-card); 
  border-radius: var(--radius-lg); 
  display: inline-flex; gap: 24px; padding: 16px 32px; 
  margin-bottom: 32px; flex-wrap: wrap; 
  box-shadow: var(--shadow-sm); 
  justify-content: center; 
}
.stat-item { display: flex; align-items: center; font-weight: 600; }
.stat-item i { color: #f5b042; margin-right: 8px; }

/* Sections */
.section { padding: 80px 0; }
.section-title { 
  font-size: clamp(1.8rem, 5vw, 2.4rem); 
  font-weight: 700; margin-bottom: 48px; 
  border-left: 5px solid #27a6e5; padding-left: 24px; 
}

/* Grids */
.feature-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 32px; 
}
.feature-card { 
  background: var(--bg-card); 
  padding: 32px 24px; 
  border-radius: var(--radius-sm); 
  box-shadow: var(--shadow-md); 
  text-align: center; 
  transition: var(--transition); 
  backdrop-filter: blur(10px); 
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card i { font-size: 3rem; color: #27a6e5; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 16px; }

/* Reviews */
.reviews-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
  gap: 32px; 
}
.review-card { 
  background: var(--bg-card); 
  border-radius: var(--radius-sm); 
  padding: 28px; 
  transition: var(--transition); 
  box-shadow: var(--shadow-sm); 
  border: 1px solid var(--border-light); 
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.review-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.avatar { 
  background: #d9e8f5; width: 56px; height: 56px; 
  border-radius: 50%; display: flex; align-items: center; 
  justify-content: center; font-size: 1.4rem; font-weight: bold; 
  color: #1f6392; 
}
.reviewer h4 { font-size: 1.1rem; font-weight: 700; }
.reviewer p { font-size: 0.85rem; color: var(--text-muted); }
.stars { color: #ffb83b; margin: 12px 0; letter-spacing: 3px; font-size: 1.2rem; }
.review-text { color: var(--text-primary); line-height: 1.5; }
.verified { color: var(--success); font-size: 0.75rem; font-weight: 600; margin-top: 16px; }

/* FAQ */
.faq-item { 
  background: var(--bg-card); 
  border-radius: var(--radius-sm); 
  padding: 24px 32px; 
  margin-bottom: 20px; 
  box-shadow: var(--shadow-sm); 
  cursor: pointer; 
}
.faq-question { 
  font-weight: 800; font-size: 1.2rem; 
  display: flex; justify-content: space-between; align-items: center; 
}
.faq-answer { display: none; margin-top: 16px; color: var(--text-secondary); }
.faq-question .icon { transition: transform 0.3s ease; font-size: 1rem; }
.faq-question.active .icon { transform: rotate(180deg); }

/* Keyword Cloud */
.keyword-cloud { 
  display: flex; flex-wrap: wrap; gap: 12px; 
  justify-content: center; margin: 48px 0; 
}
.keyword-cloud span { 
  background: var(--bg-secondary); 
  padding: 8px 16px; 
  border-radius: 40px; 
  font-size: 0.8rem; 
  color: #1e4a8a; 
  font-weight: 500; 
}
.keyword-cloud a { color: inherit; text-decoration: none; }

/* Footer */
.footer { 
  background: #0a1929; 
  color: #cbd5e6; 
  padding: 60px 0 30px; 
  margin-top: 80px; 
  text-align: center; 
}
.footer-links { margin-top: 24px; }
.footer a { 
  color: #cbd5e6; text-decoration: none; 
  margin: 0 12px; font-size: 0.95rem; 
}
.footer a:hover { text-decoration: underline; }

/* Dark Mode Toggle */
.dark-toggle { 
  background: none; border: none; 
  color: var(--text-primary); 
  font-size: 1.2rem; cursor: pointer; 
  padding: 8px; border-radius: 50%; 
  transition: var(--transition); 
}
.dark-toggle:hover { background: var(--bg-card); }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .btn-telegram { padding: 14px 28px; font-size: 1.15rem; }
  .section-title { font-size: 1.9rem; text-align: center; border-left: none; padding-left: 0; }
  .stats-badge { flex-direction: column; gap: 12px; align-items: center; }
  .header-inner { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p { font-size: 1.05rem; }
  .section { padding: 60px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card, .review-card { padding: 24px 20px; }
  .faq-item { padding: 20px; }
}

/* Scroll Reveal (IntersectionObserver fallback) */
@keyframes reveal { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; animation: reveal 1s ease-out forwards; }

/* High Perf: Reduce motion for 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; } }

/* Print Styles */
@media print { body { background: white; color: black; } .header, .footer { display: none; } }

/* SEO Hidden Keywords - Crawler visible, user invisible */
.seo-keywords,
.seo-keywords * {
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  font-size: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  top: 0 !important;
  width: 1px !important;
}


