/* === SmartTVLove Landing CSS === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #080c14;
  --bg2: #0d1420;
  --accent: #e63946;
  --accent2: #ff6b35;
  --gold: #ffd60a;
  --text: #f0f4ff;
  --muted: #7a8599;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --glow: 0 0 40px rgba(230,57,70,0.3);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Montserrat', sans-serif; overflow-x: hidden; }

.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 24px; }
.logo-text { font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 2px; color: var(--text); }
.logo-badge { background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { background: var(--accent); color: #fff !important; padding: 8px 20px; border-radius: 8px; font-weight: 600 !important; transition: background 0.2s !important; }
.btn-nav:hover { background: #c1121f !important; }
.burger { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 18px; }
.mobile-menu { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); z-index: 99; flex-direction: column; padding: 20px; gap: 16px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text); text-decoration: none; font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); }

/* HERO */
.hero {
  min-height: 100vh; padding: 100px 40px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  max-width: 1300px; margin: 0 auto; position: relative;
}
.badge-top {
  display: inline-block; background: rgba(255,214,10,0.1); border: 1px solid rgba(255,214,10,0.3);
  color: var(--gold); padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; margin-bottom: 24px;
}
.hero-title { font-family: 'Bebas Neue', sans-serif; line-height: 0.9; margin-bottom: 24px; }
.line1 { display: block; font-size: clamp(70px,10vw,140px); color: var(--text); letter-spacing: -2px; }
.line2 { display: block; font-size: clamp(70px,10vw,140px); letter-spacing: -2px; }
.line2 em { font-style: normal; color: var(--accent); }
.line3 { display: block; font-size: clamp(40px,6vw,80px); color: var(--muted); letter-spacing: 8px; }
.hero-sub { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 32px; font-weight: 300; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  transition: all 0.2s; box-shadow: var(--glow);
}
.btn-primary:hover { background: #c1121f; transform: translateY(-2px); }
.btn-primary.big { font-size: 18px; padding: 18px 40px; }
.btn-ghost {
  border: 1px solid var(--border); color: var(--text); padding: 14px 28px; border-radius: 10px;
  text-decoration: none; font-weight: 500; font-size: 15px; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text); }
.hero-stats { display: flex; gap: 32px; }
.stat span { display: block; font-family: 'Bebas Neue',sans-serif; font-size: 28px; color: var(--accent2); }
.stat small { color: var(--muted); font-size: 11px; letter-spacing: 1px; }

/* SCREEN MOCKUP */
.hero-screen { display: flex; justify-content: center; align-items: center; }
.screen-mockup {
  width: 100%; max-width: 500px;
  background: #111827; border-radius: 16px; overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(230,57,70,0.15);
}
.screen-top {
  background: #1a2234; padding: 10px 16px; display: flex; gap: 6px; align-items: center;
}
.screen-top span {
  width: 10px; height: 10px; border-radius: 50%; background: #e63946;
}
.screen-top span:nth-child(2) { background: var(--gold); }
.screen-top span:nth-child(3) { background: #4ade80; }
.screen-body { display: grid; grid-template-columns: 3fr 1fr; }
.screen-player {
  background: #0a0e18; min-height: 220px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.play-icon { font-size: 48px; color: rgba(255,255,255,0.8); cursor: pointer; }
.screen-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px 12px 12px;
}
.channel-name { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.progress-bar { height: 3px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.progress-fill { height: 100%; width: 45%; background: var(--accent); border-radius: 2px; animation: progress 4s linear infinite; }
@keyframes progress { 0%{width:20%} 100%{width:80%} }
.screen-sidebar { background: #0f1623; border-left: 1px solid var(--border); overflow: hidden; }
.ch { padding: 10px 8px; font-size: 11px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch.active { background: rgba(230,57,70,0.15); color: var(--accent); border-left: 2px solid var(--accent); }

/* HOW */
.how { padding: 100px 40px; background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 3px; margin-bottom: 12px; }
h2 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(40px,5vw,72px); margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 16px; margin-bottom: 60px; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: start; gap: 20px; margin-bottom: 60px; }
.step-arrow { color: var(--accent); font-size: 32px; padding-top: 60px; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; transition: border-color 0.3s;
}
.step:hover { border-color: rgba(230,57,70,0.4); }
.step-num { font-family: 'Bebas Neue',sans-serif; font-size: 60px; color: rgba(230,57,70,0.15); line-height: 1; margin-bottom: -10px; }
.step-icon { font-size: 36px; margin-bottom: 12px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.code-block {
  background: rgba(0,0,0,0.4); border-radius: 8px; padding: 12px;
  font-size: 11px; border: 1px solid var(--border); position: relative;
}
.code-block code { color: #7dd3fc; word-break: break-all; }
.copy-btn {
  margin-top: 8px; background: var(--accent); color: #fff; border: none;
  padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; font-family: inherit;
}
.mini-ui { margin-top: 8px; }
.mini-select { width: 100%; padding: 8px; background: rgba(0,0,0,0.4); border: 1px solid var(--border); color: var(--text); border-radius: 6px; font-family: inherit; font-size: 13px; }
.quality-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.quality-tags span { background: rgba(255,107,53,0.15); border: 1px solid rgba(255,107,53,0.3); color: var(--accent2); padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }

/* TUTORIAL */
.tutorial-box {
  background: linear-gradient(135deg, rgba(230,57,70,0.08), rgba(255,107,53,0.05));
  border: 1px solid rgba(230,57,70,0.2); border-radius: 20px; padding: 40px;
}
.tutorial-header { margin-bottom: 32px; }
.tut-badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 4px;
  letter-spacing: 1px; margin-bottom: 12px;
}
.tutorial-header h3 { font-size: 24px; font-weight: 700; }
.tutorial-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.tut-step { display: flex; align-items: flex-start; gap: 16px; }
.tut-n {
  min-width: 32px; height: 32px; background: var(--accent); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.tut-text { color: var(--text); font-size: 15px; line-height: 1.5; padding-top: 4px; }
.tut-link { color: var(--accent2); text-decoration: none; word-break: break-all; }
.tut-link:hover { text-decoration: underline; }
.tut-warning {
  background: rgba(255,214,10,0.08); border: 1px solid rgba(255,214,10,0.2);
  border-radius: 10px; padding: 14px 18px; color: var(--gold); font-size: 14px;
}

/* FEATURES */
.features { padding: 100px 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; margin-top: 48px; }
.feat {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: all 0.3s;
}
.feat:hover { border-color: rgba(230,57,70,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.feat-icon { font-size: 32px; margin-bottom: 14px; }
.feat h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* CTA */
.cta { padding: 80px 40px; }
.cta-box {
  background: linear-gradient(135deg, #1a0a0c, #0d1420);
  border: 1px solid rgba(230,57,70,0.3); border-radius: 24px;
  padding: 60px; text-align: center;
  box-shadow: 0 0 80px rgba(230,57,70,0.1);
}
.cta-box h2 { font-family: 'Bebas Neue',sans-serif; font-size: 56px; margin-bottom: 16px; }
.cta-box p { color: var(--muted); font-size: 18px; margin-bottom: 32px; }
.cta-note { margin-top: 16px; color: var(--muted); font-size: 13px; }

/* FOOTER */
.footer { padding: 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.footer-logo { font-family: 'Bebas Neue',sans-serif; font-size: 20px; letter-spacing: 2px; }
.footer-text { color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-text a { color: var(--accent2); text-decoration: none; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { color: rgba(122,133,153,0.5); font-size: 12px; text-align: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-screen { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 600px) {
  .nav { padding: 14px 20px; }
  .hero, .how, .features, .cta, .footer { padding-left: 20px; padding-right: 20px; }
  .cta-box { padding: 32px 20px; }
}
