/* ==========================================
   Twitch Clipper — Landing Page Styles
   Dark Gaming Aesthetic + Neon Accents
   ========================================== */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --border: #1e1e2e;
  --purple: #9146FF;
  --purple-dim: rgba(145, 70, 255, 0.15);
  --green: #00FF88;
  --green-dim: rgba(0, 255, 136, 0.15);
  --text: #e8e8f0;
  --text-dim: #8888a0;
  --text-bright: #ffffff;
  --font-display: 'Clash Display', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-bright);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo .accent {
  color: var(--purple);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-bright);
}

.nav-cta {
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--purple);
  color: var(--text-bright);
  transition: var(--transition);
}

.nav-cta:hover {
  background: #a366ff;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.4);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   Hero
   ========================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(145, 70, 255, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 70% 60%, rgba(0, 255, 136, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(145, 70, 255, 0.08), transparent);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(145, 70, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 70, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(145, 70, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: var(--text-bright);
  box-shadow: 0 4px 24px rgba(145, 70, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(145, 70, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--text-bright);
  background: var(--purple-dim);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* Hero Video */

.hero-video {
  width: 100%;
  max-width: 900px;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.video-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--purple), var(--green));
  opacity: 0.15;
  z-index: 0;
  filter: blur(1px);
}

.video-frame video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg);
}

.video-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.video-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: rgba(145, 70, 255, 0.8);
  color: white;
}

/* ==========================================
   Sections Common
   ========================================== */

.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  border: 1px solid rgba(145, 70, 255, 0.2);
  background: var(--purple-dim);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================
   How It Works
   ========================================== */

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 320px;
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(145, 70, 255, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--purple), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  margin-bottom: 8px;
}

.step-icon {
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.step-connector {
  flex-shrink: 0;
  padding: 0 12px;
}

/* ==========================================
   Features
   ========================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(145, 70, 255, 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-icon.purple {
  background: var(--purple-dim);
  color: var(--purple);
}

.feature-icon.green {
  background: var(--green-dim);
  color: var(--green);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================
   Demo / Screenshots
   ========================================== */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.demo-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-card);
  transition: var(--transition);
}

.demo-frame:hover {
  border-color: rgba(145, 70, 255, 0.3);
  box-shadow: 0 8px 40px rgba(145, 70, 255, 0.1);
}

.frame-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.frame-dots span:first-child { background: #ff5f57; }
.frame-dots span:nth-child(2) { background: #febc2e; }
.frame-dots span:last-child { background: #28c840; }

.frame-title {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.frame-body {
  padding: 24px;
}

.frame-body--video {
  padding: 0;
}

.frame-body--video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Mock Dashboard */
.mock-dashboard {
  display: flex;
  gap: 16px;
  min-height: 280px;
}

.mock-sidebar {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.mock-logo-sm {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--purple), var(--green));
  margin-bottom: 8px;
}

.mock-nav-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.mock-nav-item.active {
  background: var(--purple-dim);
  border: 1px solid rgba(145, 70, 255, 0.3);
}

.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-topbar {
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  width: 60%;
}

.mock-stats {
  display: flex;
  gap: 10px;
}

.mock-stat-card {
  flex: 1;
  padding: 14px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  text-align: center;
}

.mock-stat-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.mock-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.mock-stat-value.purple { color: var(--purple); }
.mock-stat-value.green { color: var(--green); }

.mock-chart {
  flex: 1;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.mock-chart-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.mock-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.mock-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--purple-dim);
  min-height: 8px;
  transition: var(--transition);
}

.mock-bar.hi {
  background: linear-gradient(to top, var(--purple-dim), rgba(145, 70, 255, 0.4));
}

/* Mock Editor */
.mock-editor {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-preview-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.mock-landscape {
  width: 180px;
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e, #2a1a3e);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mock-game-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-game-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: rgba(145, 70, 255, 0.4);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mock-game-text.sm {
  font-size: 0.6rem;
}

.mock-webcam-pip {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2a2a3e, #3a2a4e);
  border: 1px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.mock-arrow {
  font-size: 1.5rem;
  color: var(--green);
  font-weight: 700;
}

.mock-vertical {
  width: 80px;
  height: 140px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a1a2e, #2a1a3e);
  border: 1px solid var(--green);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.mock-game-crop {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-webcam-top {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: linear-gradient(135deg, #2a2a3e, #3a2a4e);
  border: 1px solid var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
}

.mock-subtitles-preview {
  padding: 6px 4px;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
}

.mock-word {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--text-dim);
  font-family: var(--font-display);
}

.mock-word.highlighted {
  color: var(--text);
}

.mock-word.active {
  color: var(--green);
  font-size: 0.55rem;
}

.mock-timeline {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.mock-timeline-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  position: relative;
  margin-bottom: 10px;
}

.mock-timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 45%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--green));
}

.mock-timeline-marker {
  position: absolute;
  left: 45%;
  top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-bright);
  border: 2px solid var(--purple);
  transform: translateX(-50%);
}

.mock-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.mock-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.mock-btn.play {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--text-bright);
  width: 36px;
  height: 36px;
}

/* ==========================================
   Tech Stack
   ========================================== */

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}

.tech-badge:hover {
  border-color: var(--purple);
  background: var(--purple-dim);
  transform: translateY(-2px);
}

.tech-icon {
  font-size: 1.2rem;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-cta {
  text-align: center;
  padding: 64px 0;
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.footer-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================
   Animations
   ========================================== */

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }
.animate-in:nth-child(5) { transition-delay: 0.4s; }

/* Glow effects on feature cards */
.feature-card:hover {
  box-shadow: 0 8px 40px rgba(145, 70, 255, 0.1);
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .section {
    padding: 80px 0;
  }

  .steps-grid {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .step-card {
    max-width: 100%;
    width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .mock-dashboard {
    min-height: 220px;
  }

  .mock-stats {
    flex-direction: column;
  }

  .mock-landscape {
    width: 140px;
    height: 80px;
  }

  .mock-vertical {
    width: 60px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .mock-preview-area {
    gap: 12px;
  }
}
