:root {
  --bg-color: #f4f4f5;
  --text-color: #1f2937;
  --text-muted: #6b7280;
  --primary-color: #8b5cf6; /* Electric violet */
  --primary-hover: #7c3aed;
  --secondary-color: #06b6d4; /* Photon cyan */
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --footer-bg: #f8fafc;
  --footer-text: #475569;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-color: #07080b; /* Obsidian black */
  --text-color: #f3f4f6;
  --text-muted: #9ca3af;
  --primary-color: #8b5cf6;
  --primary-hover: #a78bfa;
  --secondary-color: #06b6d4;
  --card-bg: #11131a;
  --border-color: #1f2937;
  --footer-bg: #030406;
  --footer-text: #d1d5db;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
  position: relative;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

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

/* Header */
header {
  padding: 20px 0;
  background-color: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
[data-theme="dark"] header {
  background-color: rgba(7, 8, 11, 0.85);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.theme-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}
[data-theme="dark"] .theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.theme-btn svg {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
/* Light mode (default) */
.theme-icon-moon {
  transform: rotate(0) scale(1);
  opacity: 1;
}
.theme-icon-sun {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}
/* Dark mode */
[data-theme="dark"] .theme-icon-moon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}
[data-theme="dark"] .theme-icon-sun {
  transform: rotate(0) scale(1);
  opacity: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 100px 20px 80px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.2);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Speedometer Widget */
.speedometer-widget {
  max-width: 500px;
  margin: 0 auto 40px;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
[data-theme="dark"] .speedometer-widget {
  box-shadow: 0 5px 20px rgba(0,0,0,0.5), inset 0 0 10px rgba(6, 182, 212, 0.1);
}
.speedometer-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.speed-slider {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  outline: none;
  margin-bottom: 15px;
}
.speed-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-color);
}
.buffer-bar-container {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.buffer-bar-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--secondary-color);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: var(--transition);
  text-align: center;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
[data-theme="dark"] .btn {
  color: #fff;
}

.btn:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}
.btn-outline:hover {
  background-color: rgba(139, 92, 246, 0.1);
  color: var(--primary-hover);
}

/* Section Common */
section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 50px;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cards */
.card {
  background-color: var(--card-bg);
  padding: 40px 30px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 20px rgba(139, 92, 246, 0.05);
}
[data-theme="dark"] .card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(6, 182, 212, 0.1), 0 0 15px rgba(139, 92, 246, 0.3);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card p {
  color: var(--text-muted);
}

/* Media Cards (Streaming & AI) */
.media-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background-color: var(--card-bg);
  border-radius: 12px;
  font-weight: bold;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.media-card:hover {
  transform: translateY(-8px);
  border-color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1), inset 0 0 15px rgba(6, 182, 212, 0.1);
}
[data-theme="dark"] .media-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(139, 92, 246, 0.1), 0 0 15px rgba(6, 182, 212, 0.3);
}
.media-card span {
  margin-top: 15px;
}
.media-icon {
  font-size: 3rem;
  text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 20px 0;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}
.pricing-card ul li {
  margin-bottom: 10px;
  color: var(--text-muted);
}
.pricing-card ul li::before {
  content: "✓";
  color: var(--primary-color);
  margin-right: 10px;
  font-weight: bold;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}
.faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.faq-item p {
  color: var(--text-muted);
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 20px;
  text-align: center;
  transition: var(--transition);
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--footer-text);
  opacity: 0.8;
}
.footer-links a:hover {
  opacity: 1;
}
.copyright {
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    width: 100%;
    padding: 15px 0;
  }
  .footer-links {
    gap: 15px;
    flex-direction: column;
  }
}
