/* ============================================================
   StreamVerde Website — Layout
   website/css/layout.css
   ============================================================ */

/* ── Navbar ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,8,4,0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { height: 60px; background: rgba(0,6,3,0.95); box-shadow: 0 4px 40px rgba(0,255,135,0.06); }

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--text); letter-spacing: -0.5px;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--g4), var(--g5)); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  color: #000d07;
  box-shadow: 0 0 20px var(--glow); position: relative; overflow: hidden; z-index: 1;
}
.nav-logo .logo-icon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2)); z-index: 0; pointer-events: none; }
.logo-verde { color: var(--g4); }

.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  padding: 0.45rem 0.9rem; border-radius: var(--radius-sm);
  transition: all 0.2s ease; letter-spacing: 0.01em; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--g4); background: rgba(0,255,135,0.07); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--g4); box-shadow: 0 0 6px var(--g4);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* ── Hamburger ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border-radius: var(--radius-sm); background: none; border: 1px solid var(--border2);
  transition: all 0.2s;
}
.hamburger:hover { background: var(--surface2); border-color: var(--g4); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--g4); border-radius: 2px; transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(0,8,4,0.98); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  z-index: 1000; padding: 1.5rem 1.5rem 2.5rem;
  display: flex; flex-direction: column;
  transform: translateY(-100%); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; visibility: visible; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
.menu-close-btn { background: none; border: 1px solid var(--border2); color: var(--g4); font-size: 1.2rem; cursor: pointer; border-radius: 8px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.mobile-menu .nav-links { flex: 1; display: none; flex-direction: column; gap: 0.5rem; list-style: none; margin-bottom: auto; }
.mobile-menu .nav-actions { display: none; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.mobile-menu .nav-links a { width: 100%; font-size: 1.1rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); border-left: 3px solid transparent; }
.mobile-menu .nav-links a.active, .mobile-menu .nav-links a:hover { background: rgba(0,255,135,0.08); border-left-color: var(--g4); }
.mobile-menu .nav-links a.active::after { display: none; }
.mobile-menu .btn { justify-content: center; width: 100%; padding: 1rem; font-size: 1.05rem; }

/* ── Hero ── */
#home { min-height: 100vh; display: flex; align-items: center; padding-top: 70px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 0;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: 100px;
  padding: 0.35rem 1rem; font-size: 0.78rem; font-weight: 600; color: var(--g5);
  margin-bottom: 1.5rem; font-family: var(--font-mono); letter-spacing: 0.05em;
  animation: pulseBadge 3s ease-in-out infinite;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g4); box-shadow: 0 0 8px var(--g4); animation: blink 1.5s ease-in-out infinite; }

.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; }
.hero-title .line-accent { color: var(--g4); position: relative; display: inline-block; }
.hero-title .line-accent::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--g4), transparent); border-radius: 2px; }

.hero-desc { color: var(--text-dim); font-size: 1rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }

/* ── TV Mockup ── */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.tv-mockup {
  width: 100%; max-width: 520px; aspect-ratio: 16/10;
  background: linear-gradient(145deg, #001a0f, #000d07);
  border: 2px solid var(--border2); border-radius: 18px; overflow: hidden;
  position: relative; box-shadow: 0 0 60px var(--glow), 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: tvGlow 4s ease-in-out infinite;
}
.tv-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.tv-topbar { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: rgba(0,0,0,0.4); border-bottom: 1px solid var(--border); font-size: 0.7rem; font-family: var(--font-mono); color: var(--g5); }
.tv-dots { display: flex; gap: 5px; }
.tv-dot { width: 8px; height: 8px; border-radius: 50%; }
.tv-dot-r { background: #ff5f57; } .tv-dot-y { background: #ffbd2e; } .tv-dot-g { background: #28ca40; }
.tv-content { flex: 1; position: relative; overflow: hidden; }
.tv-grid-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(2,1fr); gap: 4px; padding: 8px; }
.tv-thumb { border-radius: 6px; background: var(--surface2); border: 1px solid var(--border); overflow: hidden; position: relative; animation: thumbShimmer 3s ease-in-out infinite; }
.tv-thumb:nth-child(1){background:linear-gradient(135deg,#001a10,#003520);animation-delay:0s}
.tv-thumb:nth-child(2){background:linear-gradient(135deg,#002010,#004025);animation-delay:.3s}
.tv-thumb:nth-child(3){background:linear-gradient(135deg,#001510,#002a1a);animation-delay:.6s}
.tv-thumb:nth-child(4){background:linear-gradient(135deg,#002515,#00381e);animation-delay:.9s}
.tv-thumb:nth-child(5){background:linear-gradient(135deg,#001a0f,#002e18);animation-delay:1.2s}
.tv-thumb:nth-child(6){background:linear-gradient(135deg,#002010,#003520);animation-delay:1.5s}
.tv-thumb-label { position: absolute; bottom: 4px; left: 6px; font-size: 0.55rem; color: var(--g6); font-family: var(--font-mono); }
.tv-overlay-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.8)); display: flex; align-items: center; justify-content: space-between; }
.tv-play-btn { width: 28px; height: 28px; border-radius: 50%; background: var(--g4); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; color: #000; box-shadow: 0 0 12px var(--g4); animation: playPulse 2s ease-in-out infinite; }
.tv-info-title { font-size: 0.7rem; font-weight: 600; color: var(--text); font-family: var(--font-display); }
.tv-info-sub { font-size: 0.6rem; color: var(--g5); font-family: var(--font-mono); }
.tv-progress-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,0.1); }
.tv-progress-fill { height: 100%; width: 38%; background: linear-gradient(90deg, var(--g4), var(--g5)); box-shadow: 0 0 6px var(--g4); animation: progressAnim 8s linear infinite; }

.float-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; font-size: 0.72rem; display: flex; align-items: center; gap: 0.4rem;
  backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.4); white-space: nowrap;
  font-family: var(--font-mono); animation: floatBadge 6s ease-in-out infinite;
}
.float-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--g4); box-shadow: 0 0 6px var(--g4); }
.fb-1 { top: 15%; right: -20px; animation-delay: 0s; }
.fb-2 { bottom: 20%; left: -15px; animation-delay: -3s; color: var(--g5); }

/* ── Section paddings ── */
#features, #channels, #vod, #pricing, #platforms, #analytics, #tech, #cta { padding: 6rem 0; }

/* ── Features grid ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── Channels layout ── */
.channels-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.channels-list { display: flex; flex-direction: column; gap: 0.75rem; }
.channel-item { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all 0.25s ease; position: relative; overflow: hidden; }
.channel-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--g4); transform: scaleY(0); transition: transform 0.25s ease; border-radius: 0 2px 2px 0; }
.channel-item:hover, .channel-item.active { border-color: var(--border2); background: rgba(0,46,26,0.5); transform: translateX(4px); }
.channel-item:hover::before, .channel-item.active::before { transform: scaleY(1); }
.channel-logo { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.channel-info { flex: 1; min-width: 0; }
.channel-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.1rem; }
.channel-meta { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.channel-live { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 100px; background: rgba(255,60,60,0.15); color: #ff6060; border: 1px solid rgba(255,60,60,0.3); animation: blink 2s ease-in-out infinite; }

/* ── EPG Panel ── */
.epg-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.epg-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.epg-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.epg-date { font-size: 0.75rem; color: var(--text-muted); font-family: var(--font-mono); }
.epg-timeline { padding: 1rem 1.5rem; display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.epg-timeline::-webkit-scrollbar { height: 3px; }
.time-slot { flex-shrink: 0; font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); padding: 0.25rem 0.5rem; border-radius: 4px; cursor: pointer; transition: all 0.2s; }
.time-slot:hover, .time-slot.active { background: rgba(0,255,135,0.1); color: var(--g4); }
.epg-programs { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.program-block { display: flex; gap: 1rem; padding: 0.9rem 1rem; background: rgba(0,0,0,0.2); border-radius: var(--radius-sm); border: 1px solid var(--border); cursor: pointer; transition: all 0.2s ease; align-items: flex-start; }
.program-block:hover { border-color: var(--border2); background: var(--surface2); }
.program-block.now { border-color: rgba(0,255,135,0.3); background: rgba(0,255,135,0.04); }
.prog-time { font-size: 0.72rem; color: var(--g5); font-family: var(--font-mono); flex-shrink: 0; width: 50px; padding-top: 2px; }
.prog-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.prog-genre { font-size: 0.72rem; color: var(--text-muted); }
.prog-badge { font-size: 0.65rem; font-family: var(--font-mono); color: var(--g4); background: rgba(0,255,135,0.08); border: 1px solid var(--border2); padding: 0.15rem 0.4rem; border-radius: 4px; }

/* ── VOD Grid ── */
.vod-filters { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.vod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.25rem; }
.vod-card { cursor: pointer; transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94); }
.vod-card:hover { transform: translateY(-6px) scale(1.02); }
.vod-thumb { aspect-ratio: 2/3; border-radius: var(--radius-sm); overflow: hidden; position: relative; margin-bottom: 0.6rem; border: 1px solid var(--border); }
.vod-thumb-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; transition: transform 0.3s ease; }
.vod-card:hover .vod-thumb-img { transform: scale(1.05); }
.vod-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.9)); opacity: 0; transition: opacity 0.3s ease; display: flex; align-items: center; justify-content: center; }
.vod-card:hover .vod-overlay { opacity: 1; }
.vod-play { width: 32px; height: 32px; border-radius: 50%; background: var(--g4); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; color: #000; margin: auto; box-shadow: 0 0 15px var(--g4); }
.vod-rating { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.7); border-radius: 4px; padding: 0.2rem 0.4rem; font-size: 0.65rem; font-family: var(--font-mono); color: #ffd700; }
.vod-quality { position: absolute; top: 8px; left: 8px; background: rgba(0,255,135,0.2); border: 1px solid rgba(0,255,135,0.4); border-radius: 4px; padding: 0.15rem 0.35rem; font-size: 0.6rem; font-family: var(--font-mono); color: var(--g4); font-weight: 600; }
.vod-title { font-size: 0.825rem; font-weight: 600; margin-bottom: 0.2rem; line-height: 1.3; }
.vod-meta { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ── Pricing grid ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; align-items: stretch; }
.btn-plan { width: 100%; padding: 0.85rem; justify-content: center; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 700; }

/* ── Platforms grid ── */
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }

/* ── Analytics layout ── */
.analytics-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.chart-area { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; grid-column: span 2; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.chart-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.chart-tabs { display: flex; gap: 0.3rem; }
.chart-tab { font-size: 0.72rem; font-family: var(--font-mono); padding: 0.3rem 0.7rem; border-radius: 100px; cursor: pointer; border: 1px solid var(--border); color: var(--text-muted); transition: all 0.2s; background: none; }
.chart-tab:hover, .chart-tab.active { background: rgba(0,255,135,0.08); color: var(--g4); border-color: var(--g4); }
.chart-svg-wrap { height: 120px; position: relative; }
svg.line-chart { width: 100%; height: 100%; }
.chart-line { fill: none; stroke: var(--g4); stroke-width: 2; }
.chart-area-fill { fill: url(#chartGrad); }
.chart-dot { fill: var(--g4); }

/* ── Tech grid ── */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

/* ── CTA ── */
.cta-box { background: linear-gradient(135deg, rgba(0,46,26,0.7), rgba(0,20,12,0.9)); border: 1px solid rgba(0,255,135,0.2); border-radius: 24px; padding: 5rem 3rem; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,255,135,0.08), transparent 60%); pointer-events: none; }
.cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-desc { color: var(--text-dim); max-width: 500px; margin: 0 auto 2.5rem; font-size: 1rem; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2rem; position: relative; z-index: var(--z-base); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 0.5rem; }
.social-btn { width: 34px; height: 34px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.8rem; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.social-btn:hover { border-color: var(--g4); color: var(--g4); background: rgba(0,255,135,0.07); }
.footer-col-title { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--g4); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.78rem; color: var(--text-muted); font-family: var(--font-mono); flex-wrap: wrap; gap: 0.75rem; }
.footer-bottom-right { display: flex; gap: 1.5rem; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--g4); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-desc { margin: 0 auto 2rem; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .tv-mockup { max-width: 420px; }
  .channels-layout { grid-template-columns: 1fr; }
  .analytics-layout { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  nav .nav-links, nav .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu .nav-links { display: flex; }
  .mobile-menu .nav-actions { display: flex; }
  .container { padding: 0 1.25rem; }
  #home { padding-top: 70px; }
  .hero-inner { padding: 3rem 0; }
  .analytics-layout { grid-template-columns: 1fr; }
  .chart-area { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .cta-box { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .vod-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .platforms-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
