/* =========================================
   Global Variables & Reset (Quantum Tide Waves)
   ========================================= */
:root {
  /* Morandi Palette */
  --bg-color: #3f4e4f;       /* Deep Morandi Cyan-Gray */
  --bg-card: rgba(74, 92, 94, 0.4);
  --bg-card-hover: rgba(90, 110, 112, 0.6);
  --text-primary: #f2efe9;   /* Off-white */
  --text-secondary: #bdc5c5;
  --accent-color: #dfd3c3;   /* Morandi Pale Yellow */
  --accent-gradient: linear-gradient(135deg, #f0e5d8, #dfd3c3);
  --border-color: rgba(223, 211, 195, 0.15);
  
  --btn-radius: 8px;
  --card-radius: 16px;
  --transition-speed: 0.3s;
  
  /* Dynamic Variables for JS */
  --mouse-x: 50vw;
  --mouse-y: 50vh;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}

/* Liquid Ripple Background (Mouse Track) */
.tide-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(223, 211, 195, 0.15) 0%, transparent 25%),
    radial-gradient(circle at calc(100vw - var(--mouse-x)) calc(100vh - var(--mouse-y)), rgba(63, 78, 79, 0.8) 0%, transparent 40%);
  filter: blur(10px) contrast(1.2);
  transition: background 0.1s ease-out;
}

/* Base Morandi Color Blocks for depth */
.tide-bg::before {
  content: '';
  position: absolute;
  top: -20%; left: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(140, 156, 156, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatBlobs 20s ease-in-out infinite alternate;
}

.tide-bg::after {
  content: '';
  position: absolute;
  bottom: -10%; right: -10%;
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(223, 211, 195, 0.1) 0%, transparent 60%);
  border-radius: 50%;
  animation: floatBlobs 25s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

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

/* =========================================
   Typography & Utilities
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-color);
}

.section {
  padding: 6rem 0;
}

/* =========================================
   Buttons (Touch Friendly & Ripple Trigger)
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 52px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--btn-radius);
  transition: all var(--transition-speed) ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.btn-primary {
  background: rgba(223, 211, 195, 0.9);
  color: #2c3637;
  box-shadow: 0 4px 20px rgba(223, 211, 195, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f0e5d8;
  box-shadow: 0 6px 25px rgba(223, 211, 195, 0.4);
}

.btn-outline {
  background: rgba(63, 78, 79, 0.5);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: rgba(223, 211, 195, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Gravitational Wave Animation Element */
.gravitational-wave {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1; /* Behind content, over background */
  border: 2px solid rgba(223, 211, 195, 0.8);
  box-shadow: 0 0 40px rgba(223, 211, 195, 0.6), inset 0 0 20px rgba(223, 211, 195, 0.3);
  backdrop-filter: blur(15px) brightness(1.5) contrast(1.5);
  animation: gravWave 1s cubic-bezier(0.1, 0.8, 0.1, 1.2) forwards;
  transform: translate(-50%, -50%);
}

@keyframes gravWave {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
    border-width: 8px;
  }
  100% {
    width: 250vw;
    height: 250vw;
    opacity: 0;
    border-width: 0px;
  }
}

/* =========================================
   Header & Navbar
   ========================================= */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(63, 78, 79, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

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

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-weight: 600;
  transition: color var(--transition-speed);
}

.desktop-nav a:hover {
  color: var(--accent-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 12rem 0 8rem;
  text-align: center;
  position: relative;
}

.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  text-align: left;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.dynamic-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  animation: floatCard 6s ease-in-out infinite;
}

.card-glass {
  position: absolute;
  inset: 10%;
  background: rgba(223, 211, 195, 0.05);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(223, 211, 195, 0.2);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pulse-line {
  height: 8px;
  background: linear-gradient(90deg, rgba(223, 211, 195, 0.1), rgba(223, 211, 195, 0.5), rgba(223, 211, 195, 0.1));
  background-size: 200% 100%;
  border-radius: 4px;
  animation: pulseLine 2s linear infinite;
}

.pulse-line.short {
  width: 60%;
}

.status-badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: auto;
  align-self: flex-start;
}

.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(223, 211, 195, 0.2) 0%, transparent 60%);
  animation: pulseOrb 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulseLine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes pulseOrb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* =========================================
   Features (Core Advantages)
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2.5rem 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(223, 211, 195, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

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

/* =========================================
   Streaming & AI Support
   ========================================= */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.support-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--card-radius);
  padding: 3rem;
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-speed);
}

.support-card:hover {
  border-color: var(--accent-color);
}

.support-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  color: var(--accent-color);
}

.support-card p {
  color: var(--text-secondary);
  position: relative;
  z-index: 2;
}

/* =========================================
   Pricing Table
   ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--card-radius);
  padding: 3rem 2rem;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.pricing-card.popular {
  border-color: var(--accent-color);
  position: relative;
  transform: scale(1.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  background: rgba(85, 107, 110, 0.7);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #2c3637;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 800;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
  color: var(--accent-color);
}

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

.features-list {
  list-style: none;
  margin: 2rem 0;
  flex-grow: 1;
}

.features-list li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: '✓';
  color: var(--accent-color);
  margin-right: 10px;
  font-weight: bold;
}

.pricing-card .btn {
  width: 100%;
}

/* =========================================
   Reviews
   ========================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-color);
}

.stars {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.review-card p {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.user-info {
  font-weight: 600;
}

/* =========================================
   FAQ
   ========================================= */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  padding: 1.5rem;
}

.faq-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.faq-item p {
  color: var(--text-secondary);
}

/* =========================================
   Footer & Subpages
   ========================================= */
footer {
  background: rgba(38, 48, 49, 0.8);
  backdrop-filter: blur(10px);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-speed);
}

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

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Page content for subpages */
.page-content {
  padding: 10rem 0 6rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-content h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--accent-color);
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.page-content ul {
  color: var(--text-secondary);
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* =========================================
   Responsive Design (Mobile First Focus)
   ========================================= */
@media (max-width: 1024px) {
  .pricing-card.popular {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .features-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
    justify-content: center;
  }
  
  .desktop-nav {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }

  .features-grid,
  .support-grid,
  .pricing-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-group .btn {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }
  
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .hero-split {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content .cta-group {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

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

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