/* ==========================================================================
   ReozaIPTV - Master Style Sheet
   Modern Glassmorphic Dark UI, Space Grotesk & Inter Typography
   ========================================================================== */

:root {
  --bg-dark: #070b19;
  --bg-card: rgba(15, 23, 42, 0.7);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --accent: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.4);
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Rendering performance for off-screen sections */
.site-footer, .cta-banner-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-whatsapp-large {
  background: #25d366;
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-whatsapp-large:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
  color: #ffffff;
}

.btn-telegram {
  background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #28a8ea 0%, #0099e6 100%);
  box-shadow: 0 8px 25px rgba(34, 158, 217, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-telegram-large {
  background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-telegram-large:hover {
  background: linear-gradient(135deg, #28a8ea 0%, #0099e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.55);
  color: #ffffff;
}

/* Floating Contact Dock (WhatsApp & Telegram) */
.floating-contact-dock {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9990;
}

.floating-contact-btn {
  border-radius: 999px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.floating-contact-btn.whatsapp {
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-contact-btn.whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.floating-contact-btn.telegram {
  background: linear-gradient(135deg, #229ED9 0%, #0088cc 100%);
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.4);
}

.floating-contact-btn.telegram:hover {
  background: linear-gradient(135deg, #28a8ea 0%, #0099e6 100%);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 25px rgba(34, 158, 217, 0.55);
  color: #ffffff;
}

/* Header & Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(7, 11, 25, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.logo-icon {
  font-size: 1.6rem;
}

.gradient-accent {
  background: linear-gradient(135deg, #60a5fa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-badge-new {
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.mobile-menu-toggle.active {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* CTA Banner Section */
.cta-banner-section {
  padding: 80px 0;
}

.cta-banner-wrapper {
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.3) 0%, rgba(15, 23, 42, 0.95) 70%);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
}

.cta-banner-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 30px;
}

.cta-banner-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Footer */
.site-footer {
  background: #050811;
  border-top: 1px solid var(--border-light);
  padding: 70px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 360px;
  line-height: 1.6;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-nav-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Tablets, Mobiles, Ultra-Small)
   ========================================================================== */

/* Tablet Viewport (<= 992px) */
@media (max-width: 992px) {
  .site-header {
    padding: 14px 0;
  }

  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(7, 11, 25, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    padding: 20px 24px 28px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.mobile-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-link {
    font-size: 1rem;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

/* Mobile Viewport (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 120px 0 50px;
  }

  .hero-main-title {
    font-size: clamp(2rem, 7vw, 2.8rem) !important;
  }

  .hero-lead-text {
    font-size: 1rem !important;
    margin-bottom: 28px !important;
  }

  .hero-cta-group {
    gap: 12px !important;
    margin-bottom: 36px !important;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .hero-stat-card {
    padding: 16px !important;
  }

  .cta-banner-section {
    padding: 50px 0;
  }

  .cta-banner-wrapper {
    padding: 36px 20px;
    border-radius: 18px;
  }

  .cta-banner-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .cta-banner-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .cta-banner-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Ultra-Small Mobile Viewport (<= 480px) */
@media (max-width: 480px) {
  .hero-cta-group .btn,
  .hero-cta-group .btn-whatsapp-large,
  .hero-cta-group .btn-telegram-large {
    width: 100%;
    justify-content: center;
    padding: 13px 18px !important;
    font-size: 0.92rem !important;
  }

  .brand-logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    font-size: 1.35rem;
  }

  .floating-contact-dock {
    bottom: 14px;
    left: 14px;
    gap: 6px;
  }

  .floating-contact-btn {
    padding: 8px 12px;
    font-size: 0.76rem;
    gap: 6px;
  }

  .floating-contact-btn svg {
    width: 16px;
    height: 16px;
  }
}
