/* WatchNexus Website - Styles */
/* ===========================================
   This file is easy to edit. Just change the values!
   =========================================== */

/* ============ VARIABLES (Edit these to customize) ============ */
:root {
  /* Main Colors */
  --color-primary: #8B5CF6;         /* Purple - main accent */
  --color-secondary: #EC4899;       /* Pink - secondary accent */
  --color-background: #0a0a0f;      /* Dark background */
  --color-surface: #1a1a2e;         /* Card/surface background */
  --color-surface-light: #262640;   /* Lighter surface */
  
  /* Text Colors */
  --color-text: #ffffff;            /* Main text */
  --color-text-muted: #a0a0b0;      /* Muted/gray text */
  --color-text-dark: #6b6b80;       /* Darker gray text */
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --gradient-dark: linear-gradient(180deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============ UTILITIES ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden { display: none !important; }

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing utilities */
.mt-2 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-8 { margin-top: var(--spacing-xl); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-8 { margin-bottom: var(--spacing-xl); }
.py-4 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-8 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.px-4 { padding-left: var(--spacing-lg); padding-right: var(--spacing-lg); }

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.navbar-logo img {
  width: 32px;
  height: 32px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.navbar-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

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

.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--spacing-sm);
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  background: rgba(139, 92, 246, 0.1);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
}

.btn-ghost:hover {
  color: var(--color-text);
}

/* ============ CARDS ============ */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem var(--spacing-lg) var(--spacing-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--spacing-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============ SECTIONS ============ */
.section {
  padding: var(--spacing-xl) var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--spacing-xl);
}

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  padding: var(--spacing-lg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ============ MODULE PILLS ============ */
.module-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-xl);
}

.module-pill {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.module-pill-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

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

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
  width: 100%;
  padding: var(--spacing-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--spacing-lg);
}

/* ============ DOWNLOAD SECTION ============ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.download-card {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.download-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.download-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.download-version {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-xl) var(--spacing-lg);
  background: rgba(0, 0, 0, 0.3);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section a {
  display: block;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
  transition: color 0.3s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: var(--spacing-xl) auto 0;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  color: var(--color-text-dark);
  font-size: 0.75rem;
}

/* ============ LEGAL PAGES ============ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem var(--spacing-lg) var(--spacing-xl);
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  color: var(--color-primary);
}

.legal-content h3 {
  font-size: 1.25rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.legal-content ul, .legal-content ol {
  color: var(--color-text-muted);
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.legal-content li {
  margin-bottom: var(--spacing-sm);
}

.legal-content a {
  color: var(--color-primary);
}

.legal-date {
  color: var(--color-text-dark);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xl);
}

/* ============ TROUBLESHOOTING ============ */
.troubleshoot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.troubleshoot-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

.troubleshoot-card p {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.troubleshoot-card code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.8125rem;
  color: var(--color-primary);
  overflow-x: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .module-pills {
    flex-direction: column;
    align-items: center;
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}
