:root {
  --primary: #ff6b35;
  --primary-dark: #e85a2c;
  --secondary: #4ecdc4;
  --bg-dark: #0a0e27;
  --bg-darker: #050813;
  --bg-card: #12162e;
  --text-primary: #ffffff;
  --text-secondary: #a8b2d1;
  --text-muted: #6b7b9e;
  --border: #1e2644;
  --gradient-1: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  --gradient-2: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
  --gradient-3: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(255, 107, 53, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 39, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.github-link {
  padding: 8px 16px;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.github-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  padding: 160px 0 120px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      ellipse at top,
      rgba(255, 107, 53, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at bottom right,
      rgba(78, 205, 196, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
}

.btn {
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-dark);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 36px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Features */
.features {
  padding: 80px 0;
  background: var(--bg-dark);
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* API Section */
.api {
  padding: 80px 0;
}

.api-grid {
  display: grid;
  gap: 32px;
}

.api-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.api-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.api-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.api-method {
  padding: 4px 12px;
  background: var(--gradient-2);
  color: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.api-endpoint {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 16px;
  color: var(--primary);
  background: rgba(255, 107, 53, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  flex: 1;
}

.api-view-btn {
  padding: 6px 16px;
  background: var(--gradient-1);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.api-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

.api-description {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.code-block {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.copy-btn {
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.copy-btn.copied {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
}

pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
}

code {
  font-family: "Monaco", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Examples */
.examples {
  padding: 80px 0;
  background: var(--bg-dark);
}

.examples-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: var(--bg-darker);
  color: var(--text-primary);
}

.tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Videos */
.videos {
  padding: 80px 0;
}

.video-categories {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.category-btn {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-btn:hover {
  background: var(--bg-darker);
  color: var(--text-primary);
}

.category-btn.active {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--bg-darker);
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.video-duration,
.video-fps {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Professional Streaming Section */
.stream {
  padding: 80px 0;
  background: var(--bg-dark);
}

.stream-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.stream-player {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.player-wrapper {
  position: relative;
  background: var(--bg-darker);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  max-height: 600px;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.player-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-overlay-content {
  text-align: center;
}

.play-icon {
  font-size: 64px;
  color: var(--primary);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(255, 107, 53, 0.5));
}

.player-message {
  color: var(--text-secondary);
  font-size: 16px;
}

.player-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.player-info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-info-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-info-value {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
}

.stream-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stream-subtitle {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.video-select {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.video-select:hover {
  border-color: var(--primary);
}

.video-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.url-display {
  display: flex;
  gap: 8px;
}

.url-input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: "Monaco", "Courier New", monospace;
}

.url-input:focus {
  outline: none;
  border-color: var(--primary);
}

.url-copy-btn {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.url-copy-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.code-embed {
  position: relative;
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  gap: 8px;
}

.embed-code-pre {
  flex: 1;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.embed-code-pre code {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.stream-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  font-size: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.3));
}

.stat-details {
  flex: 1;
}

.stat-item .stat-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.stat-item .stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-text {
  color: var(--text-secondary);
  font-size: 15px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-description {
    font-size: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .examples-tabs {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }
}
