/* ========================================
   ISPWatch Landing Page - Main Styles
   Light/Dark Theme with Glassmorphism
======================================== */

/* ========== CSS Variables - Dark Theme (Default) ========== */
:root {
  /* Primary Colors - Network Blue for Light, Indigo for Dark */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --accent-light: #fbbf24;

  /* Theme Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1e293b;
  --bg-elevated: rgba(30, 41, 59, 0.5);
  --border-color: #334155;

  /* Light Colors */
  --light: #f8fafc;
  --light-muted: #e2e8f0;

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-secondary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --gradient-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);

  /* Navbar */
  --navbar-bg: rgba(15, 23, 42, 0.9);
  --navbar-border: #334155;

  /* Cards */
  --card-bg: rgba(30, 41, 59, 0.5);
  --card-bg-hover: rgba(30, 41, 59, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1280px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;
}

/* ========== Light Theme ========== */
[data-theme="light"] {
  /* Primary Colors - Network Blue */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --secondary: #10b981;
  --accent: #f59e0b;

  /* Theme Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --border-color: #e2e8f0;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Gradients - Network Blue */
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
  --gradient-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.1) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.2);

  /* Navbar */
  --navbar-bg: rgba(248, 250, 252, 0.9);
  --navbar-border: #e2e8f0;

  /* Cards */
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-bg-hover: rgba(255, 255, 255, 1);
  --glass-bg: rgba(255, 255, 255, 0.7);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ========== Utility Classes ========== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--card-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
}

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

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

.btn-lg {
  padding: 18px 36px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ========== Cards ========== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(20px);
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}

/* ========== Navigation ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navbar-border);
  padding: 12px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-logo svg {
  width: 40px;
  height: 40px;
}

.nav-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 100%;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.stat-value span {
  color: var(--primary-light);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border: 1px solid var(--dark-border);
}

.hero-image img {
  width: 100%;
  height: auto;
}

.hero-float-card {
  position: absolute;
  background: var(--card-bg-hover);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.hero-float-card.card-1 {
  top: 20%;
  left: -40px;
}

.hero-float-card.card-2 {
  bottom: 20%;
  right: -40px;
  animation-delay: -3s;
}

.float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-icon.green {
  background: rgba(16, 185, 129, 0.2);
  color: var(--secondary);
}

.float-icon.purple {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
}

.float-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.float-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========== Trusted By ========== */
.trusted {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.trusted-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  opacity: 0.6;
}

.trusted-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ========== Features Section ========== */
.features {
  background: var(--gradient-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

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

.feature-icon.blue {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-light);
}

.feature-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--secondary);
}

.feature-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
}

.feature-icon.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.feature-icon.pink {
  background: rgba(236, 72, 153, 0.15);
  color: #ec4899;
}

.feature-icon.orange {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== How It Works ========== */
.how-it-works {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-glow);
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== Pricing Section ========== */
.pricing {
  background: var(--gradient-bg);
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.pricing-toggle span {
  font-size: 1rem;
  color: var(--text-secondary);
}

.pricing-toggle span.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-switch {
  width: 60px;
  height: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: var(--transition-base);
}

.toggle-switch.annual::after {
  left: calc(100% - 28px);
}

.pricing-save {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  transition: var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
  border-color: var(--primary);
  transform: scale(1.05);
  z-index: 1;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-description {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  color: var(--text-muted);
}

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

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

.pricing-features li svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
}

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

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

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

/* ========== Testimonials ========== */
.testimonials {
  background: var(--bg-primary);
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition-base);
}

.testimonial-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

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

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

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

.testimonial-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ========== FAQ Section ========== */
.faq {
  background: var(--gradient-bg);
}

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

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  transition: var(--transition-base);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.faq-icon svg {
  width: 16px;
  height: 16px;
  color: var(--primary-light);
  transition: var(--transition-base);
}

.faq-item.active .faq-icon {
  background: var(--primary);
}

.faq-item.active .faq-icon svg {
  color: white;
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 24px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== CTA Section ========== */
.cta {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(14, 165, 233, 0.05) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.cta-input {
  flex: 1;
  max-width: 400px;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition-base);
}

.cta-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.cta-input::placeholder {
  color: var(--text-muted);
}

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

/* ========== Footer ========== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo svg {
  width: 36px;
  height: 36px;
}

.footer-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.social-link:hover svg {
  color: white;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
}

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

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

/* ========== Theme Toggle ========== */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-base);
}

.theme-toggle .sun-icon {
  display: none;
}

.theme-toggle .moon-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: none;
}

/* Light theme specific adjustments */
[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .section-title {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

[data-theme="light"] .feature-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .pricing-card.featured {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.1) 0%, var(--card-bg) 100%);
}

[data-theme="light"] .btn-primary {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .btn-primary:hover {
  box-shadow: var(--shadow-xl), 0 0 40px rgba(14, 165, 233, 0.3);
}

/* ========== Animations ========== */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ========== Responsive ========== */

/* Large Tablets & Small Laptops (1024px) */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-float-card.card-1 {
    left: 0;
  }

  .hero-float-card.card-2 {
    right: 0;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-container::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
    order: -1;
  }

  .pricing-card.featured:hover {
    transform: translateY(-5px);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }

  /* Features grid responsive */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Trusted logos responsive */
  .trusted-logos {
    gap: 40px;
  }

  .trusted-logo {
    font-size: 1.25rem;
  }
}

/* Tablets (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Navigation Mobile */
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .nav-actions .nav-link {
    display: none;
  }

  /* Navbar container responsive */
  .navbar .container {
    padding: 0 16px;
  }

  /* Hero section responsive */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }

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

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-item {
    text-align: center;
    flex: 1 1 calc(50% - 12px);
    min-width: 120px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .hero-float-card {
    display: none;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  /* Features grid responsive */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px;
  }

  /* Steps responsive */
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
    gap: 20px;
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Trusted section responsive */
  .trusted {
    padding: 40px 0;
  }

  .trusted-logos {
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .trusted-logo {
    font-size: 1.1rem;
    flex: 0 1 auto;
  }

  .trusted-text {
    font-size: 0.75rem;
    margin-bottom: 24px;
  }

  /* Pricing responsive */
  .pricing-toggle {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
  }

  .pricing-save {
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .pricing-card {
    padding: 28px;
  }

  /* Testimonials responsive */
  .testimonial-card {
    padding: 24px;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  /* FAQ responsive */
  .faq-question {
    padding: 20px;
  }

  .faq-question h3 {
    font-size: 1rem;
    flex: 1;
    padding-right: 12px;
  }

  .faq-answer p {
    padding: 0 20px 20px;
    font-size: 0.95rem;
  }

  /* CTA responsive */
  .cta {
    padding: 80px 0;
  }

  .cta-form {
    flex-direction: column;
    gap: 12px;
  }

  .cta-input {
    max-width: 100%;
  }

  .cta-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }

  .cta-note {
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  /* Footer responsive */
  .footer {
    padding-top: 60px;
  }

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

  .footer-brand {
    grid-column: span 1;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-column {
    text-align: center;
  }

  .footer-column h4 {
    margin-bottom: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  /* Section headers responsive */
  .section-header {
    margin-bottom: 40px;
  }

  .section-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

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

  /* Buttons responsive */
  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Mobile Phones (480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 12px;
  }

  .hero-badge::before {
    width: 6px;
    height: 6px;
  }

  /* Stats responsive */
  .hero-stats {
    gap: 16px;
  }

  .stat-item {
    flex: 1 1 100%;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  /* Pricing responsive */
  .pricing-amount {
    font-size: 2.5rem;
  }

  .pricing-currency {
    font-size: 1.25rem;
  }

  .pricing-features li {
    font-size: 0.875rem;
    padding: 10px 0;
  }

  .feature-card,
  .pricing-card,
  .testimonial-card {
    padding: 20px;
  }

  .pricing-card {
    padding: 24px 20px;
  }

  .pricing-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  /* Feature icons responsive */
  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.875rem;
  }

  /* Steps responsive */
  .step-card h3 {
    font-size: 1.1rem;
  }

  .step-card p {
    font-size: 0.875rem;
  }

  /* CTA responsive */
  .cta-title {
    font-size: 1.5rem;
  }

  .cta-description {
    font-size: 1rem;
  }

  /* FAQ responsive */
  .faq-question h3 {
    font-size: 0.95rem;
  }

  .faq-answer p {
    font-size: 0.875rem;
  }

  /* Testimonials responsive */
  .testimonial-text {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }

  .testimonial-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .testimonial-info h4 {
    font-size: 0.95rem;
  }

  .testimonial-info p {
    font-size: 0.75rem;
  }

  /* Trusted section responsive */
  .trusted-logos {
    gap: 20px;
  }

  .trusted-logo {
    font-size: 0.9rem;
  }

  /* Buttons responsive */
  .btn {
    padding: 12px 20px;
    font-size: 0.875rem;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Footer responsive */
  .footer-description {
    font-size: 0.875rem;
  }

  .footer-column h4 {
    font-size: 0.95rem;
  }

  .footer-links a {
    font-size: 0.875rem;
  }

  .footer-copyright {
    font-size: 0.75rem;
  }

  /* Theme toggle responsive */
  .theme-toggle {
    width: 40px;
    height: 40px;
  }

  .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Pricing toggle responsive */
  .toggle-switch {
    width: 50px;
    height: 28px;
  }

  .toggle-switch::after {
    width: 20px;
    height: 20px;
  }

  .toggle-switch.annual::after {
    left: calc(100% - 24px);
  }
}

/* Very Small Screens (360px) */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .hero-title {
    font-size: 1.5rem;
  }

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

  .pricing-amount {
    font-size: 2rem;
  }

  .nav-logo span {
    font-size: 1.25rem;
  }

  .nav-logo svg {
    width: 32px;
    height: 32px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 40px;
  }

  .nav-menu {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px;
    gap: 16px;
    position: fixed;
    height: auto;
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* Print styles */
@media print {

  .navbar,
  .nav-toggle,
  .theme-toggle,
  .cta-form,
  .footer-social,
  .bg-particles {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    page-break-inside: avoid;
  }
}