:root {
  --bg-color: #0d0d12;
  --titanium-dark: #15151a;
  --matte-metal: #7a7b82;
  --surface-color: rgba(31, 40, 51, 0.6);
  --primary: #66fcf1;
  --primary-glow: rgba(102, 252, 241, 0.4);
  --secondary: #45a29e;
  --text-main: #e8e9ed;
  --text-light: #ffffff;
  --border-color: rgba(102, 252, 241, 0.2);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--titanium-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Dynamic deep space matrix lighting */
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(35, 35, 40, 0.8), transparent 60%),
    radial-gradient(circle at var(--mouse-x, 85%) var(--mouse-y, 30%), rgba(122, 123, 130, 0.15), transparent 40%);
  background-attachment: fixed;
  perspective: 1500px;
}

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

a:hover {
  color: var(--text-light);
  text-shadow: 0 0 8px var(--primary-glow);
}

ul {
  list-style: none;
}

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

/* Glassmorphism & Depth of Field (DoF) Effect */
.glass {
  /* Heavy frosted glass with Morandi Green tint */
  background: rgba(163, 177, 169, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(163, 177, 169, 0.15);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  
  /* Unfocused State - Removed blur for text legibility */
  filter: grayscale(10%);
  opacity: 0.95;
  
  /* Breathing-light speed transition */
  transition: filter 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.2s ease-out, 
              transform 0.1s linear, 
              box-shadow 0.2s ease-out, 
              background 0.1s linear;
  transform-style: preserve-3d;
}

.glass:hover {
  /* Focused State (Sharpened) */
  filter: blur(0) grayscale(0);
  opacity: 1;
  /* background and transform are handled dynamically by JS 3D engine */
  box-shadow: 0 10px 40px rgba(122, 123, 130, 0.3);
  border-color: var(--matte-metal);
  z-index: 10;
}

/* Typography */
h1, h2, h3 {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 16px; }

.text-gradient {
  background: linear-gradient(90deg, var(--text-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px; /* Finger friendly */
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  min-height: 54px; /* Mobile tap target size */
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 252, 241, 0.6);
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #000;
}

/* Header */
header {
  padding: 24px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(11, 12, 16, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.header-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
}

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

.logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: 2px;
}

.logo span {
  color: var(--primary);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-content p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 0 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
}

/* Hero Dynamic Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dynamic-globe {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Override DoF for globe to keep it sharp */
  filter: none;
  background: radial-gradient(circle at center, rgba(163, 177, 169, 0.1), transparent 70%);
  border: 1px solid rgba(163, 177, 169, 0.2);
}

.pulse-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0;
  animation: pulse 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.node-info {
  z-index: 2;
}

.text-green {
  color: #4CAF50;
  font-weight: bold;
}

/* Section Spacing */
section {
  padding: 100px 0;
}

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

.feature-card {
  text-align: center;
}

/* Feature icon adjusted for Morandi theme */
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: rgba(102, 252, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 32px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Streaming & AI */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 24px;
  align-items: center;
  justify-items: center;
  margin-top: 40px;
}

.logo-item {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.7;
  transition: var(--transition);
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  width: 100%;
  text-align: center;
  border: 1px solid transparent;
}

.logo-item:hover {
  opacity: 1;
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(102, 252, 241, 0.15);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: bold;
}

.price {
  font-size: 3rem;
  color: var(--text-light);
  font-weight: bold;
  margin: 24px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: normal;
}

.pricing-features {
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

details {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

summary {
  padding: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.5rem;
  transition: var(--transition);
}

details[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--text-main);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: bold;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  margin-top: 60px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-main);
}

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

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

/* Content Pages (About, Terms, etc.) */
.content-page {
  padding: 140px 0 100px;
}

.content-page h2 {
  text-align: left;
  margin-top: 40px;
  margin-bottom: 24px;
  font-size: 2rem;
}

.content-page p {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 { font-size: 3rem; }
  .features-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Perfect single column display on mobile */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-content p {
    margin: 0 auto 40px;
  }
  
  .hero-btns {
    flex-direction: column;
    width: 100%;
    align-items: center;
  }
  
  .hero-btns .btn {
    width: 100%;
    margin: 0;
  }
  
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.popular {

  .nav-container {
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
  }
  
  .main-nav {
    display: none; /* Hide nav on mobile for simplicity, or use a hamburger */
  }

  .nav-container .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-height: auto;
  }
  
  .header-btns {
    gap: 8px;
  }
  
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .glass {
    padding: 24px;
  }
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0; }
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; opacity: 0; }
.delay-2 { animation-delay: 0.4s; opacity: 0; }
.delay-3 { animation-delay: 0.6s; opacity: 0; }
