:root {
  --bg-main: #0d1017;
  --bg-card: #151922;
  --bg-elevated: #1c2230;
  --border-color: #283042;
  --border-highlight: #3b82f6;
  --text-primary: #f2f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-sky: #0284c7;
  --accent-violet: #7c3aed;
  --accent-green: #10b981;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 16, 23, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

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

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: #3e4a63;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  padding: 76px 0 60px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.16), transparent 60%);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  color: #60a5fa;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero p.lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Interactive Screenshot Showcase */
.showcase-section {
  padding: 20px 0 80px;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.showcase-tab {
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.showcase-tab:hover {
  color: var(--text-primary);
  border-color: #3b465e;
}

.showcase-tab.active {
  background: #263a5c;
  color: #ffffff;
  border-color: var(--border-highlight);
}

.showcase-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.showcase-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.showcase-caption {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 14px;
}

/* Feature Grid */
.features-section {
  padding: 72px 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #3b4861;
}

.feature-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.tag-p2p { background: var(--accent-violet); }
.tag-http { background: var(--accent-sky); }
.tag-hls { background: var(--accent-blue); }

.feature-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* Screenshot Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.gallery-card img:hover {
  opacity: 0.9;
}

.gallery-card-body {
  padding: 18px;
}

.gallery-card-body h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.gallery-card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Inner Pages (Download, Contact, Legal) */
.page-section {
  padding: 64px 0 88px;
  flex: 1;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 840px;
  margin: 0 auto;
}

.content-card h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.content-card h2 {
  font-size: 1.25rem;
  margin: 28px 0 10px;
  color: var(--text-primary);
}

.content-card p,
.content-card li {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 22px;
  margin-bottom: 16px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #60a5fa;
}

.email-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: #0a0c12;
  padding: 42px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .content-card {
    padding: 26px;
  }
}

/* Dual Download Cards & Extension Install Steps */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin: 28px 0 36px;
}

.download-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-box.featured {
  border-color: rgba(59, 130, 246, 0.45);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, var(--bg-elevated) 100%);
}

.download-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.download-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 28px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.step-content h4 {
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 0.85em;
  color: #93c5fd;
}