/* Marketing Pages Shared Styles */
:root {
  --primary-color: #339dff;
  --primary-dark: #2b8ae6;
  --primary-light: #4dabff;
  --secondary-color: #4dffbd;
  --accent-purple: #f497ff;
  --text-primary: #e8ecf2;
  --text-secondary: rgba(232, 236, 242, 0.8);
  --text-light: rgba(232, 236, 242, 0.66);
  --bg-dark: #0b0d10;
  --bg-surface: rgba(22, 28, 34, 0.9);
  --bg-surface-hover: rgba(32, 38, 46, 0.95);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

body.marketing-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(51, 157, 255, 0.15), transparent 35%),
              radial-gradient(circle at 70% 10%, rgba(77, 255, 189, 0.12), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(244, 151, 255, 0.12), transparent 55%),
              #0b0d10;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Navigation */
.marketing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(22, 28, 34, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.marketing-nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(22, 28, 34, 0.98);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-color);
  color: #0a1929;
  box-shadow: 0 2px 8px rgba(51, 157, 255, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(51, 157, 255, 0.4);
}

.btn-secondary {
  background: var(--bg-surface-hover);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--text-primary);
  background: rgba(51, 157, 255, 0.18);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(51, 157, 255, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 24px 0;
  background: linear-gradient(135deg, #f5f8fc 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Container */
.section {
  padding: 80px 24px;
}

.section.alt-bg {
  background: rgba(12, 17, 23, 0.4);
}

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

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(51, 157, 255, 0.4);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-icon-text {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

.feature-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.pricing-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(51, 157, 255, 0.3);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 8px 32px rgba(51, 157, 255, 0.3);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pricing-plan {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.pricing-price sup {
  font-size: 1.5rem;
  font-weight: 600;
  vertical-align: super;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-light);
  margin: 0 0 32px 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  text-align: left;
}

.pricing-features li {
  padding: 12px 0;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.4;
}

.pricing-features li.disabled::before {
  content: '✗';
  color: var(--text-light);
}

/* Social Proof */
.social-proof {
  text-align: center;
  padding: 60px 24px;
  background: transparent;
}

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

.testimonial-card {
  background: rgba(17, 23, 31, 0.7);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0 0 20px 0;
  line-height: 1.6;
}

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

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.testimonial-info p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
}

.cta-section p {
  font-size: 1.2rem;
  margin: 0 0 32px 0;
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: white;
  color: #0a1929;
}

.cta-section .btn-primary:hover {
  background: #f5f8fc;
  transform: translateY(-2px);
}

/* Footer */
.marketing-footer {
  background: rgba(12, 17, 23, 0.8);
  color: rgba(232, 236, 242, 0.7);
  padding: 60px 24px 24px;
  border-top: 1px solid var(--border-color);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: #f5f8fc;
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #f5f8fc 0%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-about p {
  margin: 0 0 20px 0;
  line-height: 1.6;
}

.footer-links h4 {
  color: #f5f8fc;
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(232, 236, 242, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
}

/* Content Pages (Terms, Privacy, Docs) */
.content-page {
  padding: 120px 24px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.content-page h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text-primary);
}

.content-page .last-updated {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0 0 40px 0;
}

.content-page h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 40px 0 16px 0;
  color: var(--text-primary);
}

.content-page h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 32px 0 12px 0;
  color: var(--text-primary);
}

.content-page p {
  margin: 0 0 16px 0;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content-page ul, .content-page ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.content-page li {
  margin-bottom: 8px;
}

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

.content-page a:hover {
  text-decoration: underline;
}

.content-page code {
  background: rgba(17, 23, 31, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
  color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #f5f8fc;
  }

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

  .hero p {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

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

  .section-subtitle {
    font-size: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

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

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Alert/Notification */
.alert {
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-weight: 500;
}

.alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
  background: rgba(255, 95, 95, 0.15);
  color: #ff5f5f;
  border: 1px solid rgba(255, 95, 95, 0.3);
}

.alert-info {
  background: rgba(51, 157, 255, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(51, 157, 255, 0.3);
}

