/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg-2: #12121a;
  --bg-3: #1a1a26;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --purple: #c084fc;
  --green: #34d399;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--bg-2); }
.btn-sm  { padding: 8px 16px;  font-size: 14px; }
.btn-lg  { padding: 13px 28px; font-size: 16px; }
.btn-xl  { padding: 16px 40px; font-size: 18px; border-radius: var(--radius); }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 72px;
}

/* ===== Hero Preview Card ===== */
.hero-preview { width: 100%; max-width: 700px; }
.preview-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.preview-dots {
  display: flex;
  gap: 6px;
}
.preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-hover);
}
.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:last-child { background: #28c840; }
.preview-title {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}
.preview-body { padding: 24px; }
.preview-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.preview-stat {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}
.preview-movie-list { display: flex; flex-direction: column; gap: 10px; }
.preview-movie {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.preview-cover {
  width: 52px; height: 36px;
  border-radius: 4px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  flex-shrink: 0;
}
.cover-2 { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.cover-3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.preview-info { flex: 1; min-width: 0; }
.preview-code { font-size: 13px; font-weight: 600; color: var(--text); }
.preview-actress { font-size: 12px; color: var(--text-muted); margin: 2px 0; }
.preview-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.tag-new { background: rgba(99,102,241,0.15); color: var(--primary); border: 1px solid rgba(99,102,241,0.3); }
.tag-magnet { background: rgba(52,211,153,0.12); color: var(--green); border: 1px solid rgba(52,211,153,0.3); }

/* ===== Sections ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-desc { color: var(--text-muted); font-size: 17px; }

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-telegram { background: rgba(29,155,209,0.12); color: #1d9bd1; }
.icon-movie    { background: rgba(244,63,94,0.12);  color: #f43f5e; }
.icon-magnet   { background: rgba(52,211,153,0.12); color: var(--green); }
.icon-search   { background: rgba(251,191,36,0.12); color: #fbbf24; }
.icon-person   { background: rgba(192,132,252,0.12);color: var(--purple); }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.feature-card p  { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== How it works ===== */
.how-it-works { padding: 100px 0; }
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p   { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.step-connector {
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  margin: 0 -4px;
  z-index: 1;
}

/* ===== Notification preview ===== */
.notification-preview {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.notif-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.notif-text h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}
.notif-text p { color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.notif-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.notif-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
}
.notif-features svg { color: var(--green); flex-shrink: 0; }

/* Telegram mock */
.telegram-mock {
  background: #1a1d23;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 340px;
}
.tg-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #212632;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tg-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2ca5e0, #1e8bc3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}
.tg-name { font-size: 14px; font-weight: 600; flex: 1; }
.tg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
}
.tg-message { padding: 16px; }
.tg-img-placeholder {
  width: 100%;
  height: 140px;
  background: var(--bg-3);
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.tg-text { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px; }
.tg-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.tg-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.tg-key { color: var(--text-dim); min-width: 60px; flex-shrink: 0; }
.tg-val { color: var(--text); font-weight: 500; }
.tg-btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.tg-btn {
  flex: 1;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(44,165,224,0.3);
  background: rgba(44,165,224,0.1);
  color: #2ca5e0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.tg-btn:hover { background: rgba(44,165,224,0.2); }

/* ===== Tech ===== */
.tech { padding: 100px 0; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.tech-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}
.tech-item:hover { border-color: var(--border-hover); }
.tech-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(99,102,241,0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
}
.tech-metatube { background: rgba(251,191,36,0.12); color: #fbbf24; }
.tech-react    { background: rgba(6,182,212,0.12);  color: #06b6d4; }
.tech-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.tech-desc { font-size: 12px; color: var(--text-muted); }
.cost-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(52,211,153,0.06);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  max-width: max-content;
  margin: 0 auto;
}
.cost-note svg { color: var(--green); flex-shrink: 0; }

/* ===== CTA ===== */
.cta {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(99,102,241,0.05) 50%, var(--bg) 100%);
}
.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.cta p  { color: var(--text-muted); font-size: 18px; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex: 1;
}
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 13px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 110px 0 60px; }
  .notif-inner { grid-template-columns: 1fr; }
  .telegram-mock { max-width: 100%; margin: 0 auto; }
  .steps {
    flex-direction: column;
    gap: 0;
  }
  .step-connector {
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, var(--primary), var(--purple));
    margin: -4px 0;
  }
  .step { width: 100%; }
}

/* Scroll-reveal initial state — declared in CSS to prevent CLS */
.feature-card,
.step,
.tech-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
