:root {
  /* Modern color scheme - using a blue/indigo palette to match new extension UI */
  --primary-color: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-gradient: linear-gradient(135deg, #3b82f6, #2563eb);
  --secondary-color: #f8fafc;
  --text-color: #0f172a;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --background-color: #ffffff;
  --danger-color: #ef4444;
  --success-color: #10b981;

  /* Refined neutrals */
  --neutral-light: #f1f5f9;
  --neutral-medium: #cbd5e1;
  --neutral-dark: #64748b;

  /* Enhanced shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 20px rgba(15, 23, 42, 0.1);
  --shadow-hover: 0 12px 24px rgba(15, 23, 42, 0.15);
  --shadow-popup: 0 14px 30px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;

  /* Subtle inner shadows */
  --shadow-inset-sm: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-inset-md: inset 0 2px 4px rgba(15, 23, 42, 0.06);

  /* Border radii */
  --border-radius-sm: 6px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-popup: 16px;
  --border-radius-full: 9999px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;

  /* Container */
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Screen Reader Only - for SEO hidden text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-full);
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Gradient Text */
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Button Styles - Updated to match new UI with enhanced animations */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  font-size: 1rem;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.button:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-radius: 50%;
}

.button:hover:after {
  transform: scale(2.5);
}

.button:active {
  transform: scale(0.95);
}

.button-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
}

.button-primary:hover {
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-3px) scale(1.03);
  color: white;
}

.button-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-dark);
}

.button-secondary:hover {
  background-color: var(--neutral-light);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.15);
}

.button-outlined {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.button-outlined:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.2);
}

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.logo img {
  height: 32px;
  margin-right: var(--space-xs);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  opacity: 0;
}

.nav-links a:hover:after {
  width: 100%;
  opacity: 1;
}

/* Hero Section */
.hero {
  padding: var(--space-xxl) 0;
  background-color: var(--background-color);
  background-image: radial-gradient(circle at top right, var(--secondary-color), transparent 70%);
  overflow: hidden;
  position: relative;
  z-index: 0; /* Add explicit z-index */
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(67, 97, 238, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(58, 12, 163, 0.1) 0%, transparent 50%);
  z-index: 1; /* Increase z-index */
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2; /* Increase z-index to appear above the background gradient */
  overflow: hidden;
  top: 0;
  left: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.25; /* Increase opacity from 0.1 to 0.25 */
  filter: blur(15px);
  animation: float-around 15s linear infinite;
  box-shadow: 0 0 30px rgba(67, 97, 238, 0.3); /* Add glow effect */
}

.shape1 {
  width: 180px;
  height: 180px;
  top: 10%;
  left: 10%;
  animation-duration: 25s;
}

.shape2 {
  width: 100px;
  height: 100px;
  top: 60%;
  right: 10%;
  animation-duration: 20s;
  animation-delay: 2s;
}

.shape3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 30%;
  animation-duration: 30s;
  animation-delay: 1s;
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(100px, 50px) rotate(90deg);
  }
  50% {
    transform: translate(50px, 100px) rotate(180deg);
  }
  75% {
    transform: translate(-50px, 50px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  z-index: 10; /* Ensure content is above the shapes */
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg);
  transition: var(--transition-slow);
  max-height: 600px;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(-5deg);
}

.feature-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--primary-gradient);
  color: white;
  padding: 10px 20px;
  border-radius: var(--border-radius-full);
  font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Features Section */
.features {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
  border-color: var(--primary-light);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 0;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--neutral-light);
  height: 64px;
  width: 64px;
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--primary-dark);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.feature-card p {
  color: var(--text-light);
  margin-top: auto;
}

.feature-card kbd {
  background: var(--primary-color);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Demo Section */
.demo {
  padding: var(--space-xxl) 0;
  background-color: var(--background-color);
}

.demo-showcase {
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.tab-container {
  display: flex;
  gap: 2px;
  background: var(--neutral-light);
  padding: 4px;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-inset-sm);
  position: relative;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition-normal);
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab i {
  font-size: 1.1rem;
}

.tab:hover {
  color: var(--primary-color);
  background-color: rgba(59, 130, 246, 0.08);
}

.tab.active {
  color: var(--primary-color);
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
  padding: var(--space-lg);
  animation: fadeIn 0.5s ease;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-lg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content.active .tab-screenshot {
  animation: slideInLeft 0.5s ease forwards;
}

.tab-content.active .feature-list {
  animation: slideInRight 0.5s ease forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Disable horizontal animations on mobile for better UX */
@media (max-width: 768px) {
  .tab-content.active .tab-screenshot,
  .tab-content.active .feature-list {
    animation: fadeIn 0.5s ease forwards;
  }
}

.tab-screenshot {
  flex: 1;
  min-width: 280px;
  max-width: 45%;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
  padding-right: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-screenshot::after {
  display: none; /* Hide the arrow completely */
}

.tab-content.active .tab-screenshot::after {
  opacity: 0;
  animation: none;
}

.tab-screenshot img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-content.active .tab-screenshot img {
  animation: subtleScale 0.5s ease forwards;
}

@keyframes subtleScale {
  0% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

.screenshot-caption {
  margin-top: var(--space-sm);
}

.screenshot-caption h3 {
  margin-bottom: var(--space-xs);
}

.screenshot-caption p {
  color: var(--text-light);
}

.feature-list {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  padding-left: var(--space-md);
  border-left: 1px solid var(--border-color);
}

.feature-title {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--text-color);
  position: relative;
  padding-bottom: var(--space-xs);
}

.feature-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-full);
}

.feature-description {
  margin-bottom: var(--space-md);
  color: var(--text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  position: relative;
  padding-left: 15px;
  border-left: 3px solid var(--primary-light);
  font-weight: 400;
  transition: all 0.3s ease-in-out;
  max-width: 95%;
}

.feature-description:hover {
  border-left-color: var(--primary-color);
  color: var(--text-color);
}

.feature-list ul {
  display: grid;
  gap: var(--space-sm);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.feature-list i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* New Demo Section Styles */
.demo-content {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  padding: var(--space-lg);
}

.demo-screenshot {
  flex: 0 0 320px;
  position: relative;
}

.demo-screenshot img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-screenshot:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.demo-features {
  flex: 1;
}

.demo-features .feature-title {
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}

.demo-features .feature-description {
  margin-bottom: var(--space-lg);
  max-width: 100%;
}

.demo-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.demo-feature-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--neutral-light);
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.demo-feature-item:hover {
  transform: translateY(-4px);
  background: white;
  box-shadow: var(--shadow-md);
}

.demo-feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.demo-feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
}

.demo-feature-text p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.demo-feature-text kbd {
  background: var(--primary-color);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Demo Section Responsive */
@media (max-width: 900px) {
  .demo-content {
    flex-direction: column;
    text-align: center;
  }
  
  .demo-screenshot {
    flex: 0 0 auto;
    max-width: 350px;
    margin: 0 auto;
  }

  .demo-features .feature-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .demo-features .feature-description {
    border-left: none;
    padding-left: 0;
    text-align: center;
  }

  .demo-feature-grid {
    grid-template-columns: 1fr;
  }

  .demo-feature-item {
    text-align: left;
  }
}

/* Use Case Section */
.use-case {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

.use-case-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.use-case-card {
  background: white;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: 100%;
}

.use-case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.use-case-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.use-case-card h3 {
  padding: var(--space-md) var(--space-md) var(--space-xs);
}

.use-case-card p {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--text-light);
}

/* Installation Section */
.installation {
  padding: var(--space-xxl) 0;
  background-color: var(--background-color);
}

/* Simplified Chrome Store Installation Styles */
.chrome-store-installation {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.store-note {
  color: var(--text-light);
}

/* NEW: Browser Selector Styles */
.browser-selector {
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  padding: var(--space-md);
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-md);
  text-align: center;
}

.browser-selector p {
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--text-color);
}

.browser-selector .browser-select-btn {
  background-color: white;
  color: var(--text-light);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  margin: 4px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.browser-selector .browser-select-btn:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.05);
  top: 0;
  left: -100%;
  transition: all 0.3s ease;
  z-index: -1;
}

.browser-selector .browser-select-btn:hover {
  background-color: var(--secondary-color);
  border-color: var(--neutral-medium);
  color: var(--primary-dark);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
}

.browser-selector .browser-select-btn:hover:after {
  left: 0;
}

.browser-selector .browser-select-btn.active {
  background: var(--primary-gradient);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}
/* END NEW */

.steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.steps:before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-dark) 100%);
  z-index: 0;
}

.step {
  display: flex;
  margin-bottom: var(--space-lg);
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.step:last-child {
  margin-bottom: 0;
}

.step:hover .step-number {
  transform: scale(1.2) rotate(10deg);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-md);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.step-content h3 {
  margin-bottom: var(--space-xs);
}

.step-content p {
  color: var(--text-light);
}

.step-content code {
  background: var(--neutral-light);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-family: monospace;
}

/* FAQ Section */
.faq {
  padding: var(--space-xxl) 0;
  background-color: var(--neutral-light);
}

.faq-items {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--border-radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-left 0.3s ease;
  border-left: 0px solid var(--primary-color);
}

.faq-item:hover {
  transform: translateX(5px) scale(1.01);
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--primary-light);
}

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--primary-color);
  transform: translateX(5px) scale(1.01);
}

.faq-question {
  padding: var(--space-md);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--secondary-color);
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 500;
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.faq-answer {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.faq-item.active .faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  max-height: 500px;
}

.faq-item.active .faq-question {
  background-color: var(--secondary-color);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg) scale(1.2);
  color: var(--primary-dark);
}

/* CTA Section */
.cta {
  padding: var(--space-xxl) 0;
  background: var(--primary-gradient);
  color: white;
  text-align: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.cta:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  z-index: 0;
  animation: pulse 4s infinite;
}

.cta .container {
  position: relative;
  z-index: 1;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.cta p {
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta .button-primary {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  animation: pulsateButton 2s infinite;
}

@keyframes pulsateButton {
  0% {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
  }
}

.cta .button-primary:hover {
  background: var(--neutral-light);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-3px) scale(1.05);
  animation: none;
}

/* Footer */
footer {
  background-color: var(--text-color);
  color: white;
  padding: var(--space-xl) 0 0;
}

.footer-content {
  margin-bottom: var(--space-lg);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.footer-logo img {
  height: 32px;
  margin-right: var(--space-xs);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.link-group h4 {
  color: white;
  margin-bottom: var(--space-sm);
}

.link-group ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.link-group a {
  color: rgba(255, 255, 255, 0.7);
}

.link-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-md) 0;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .tab-content.active {
    flex-direction: column;
  }

  .tab-screenshot {
    max-width: 100%;
    margin-bottom: var(--space-md);
    padding-right: 0;
  }

  .feature-list {
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
  }

  .feature-title {
    margin-top: 0;
    font-size: 1.4rem;
  }

  .feature-description {
    margin-top: 0;
    padding-left: 12px;
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-number {
    margin-bottom: var(--space-sm);
  }
}

@media (max-width: 480px) {
  header .container {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .use-case-cards {
    grid-template-columns: 1fr;
  }

  .feature-title {
    font-size: 1.3rem;
  }

  .feature-description {
    font-size: 0.95rem;
    padding-left: 10px;
  }

  .tab-screenshot img {
    max-width: 100%;
    box-shadow: var(--shadow-sm);
  }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 1010;
}

.mobile-menu-toggle.active {
  color: var(--primary-color);
}

.mobile-menu-toggle:hover {
  color: var(--primary-color);
}

.mobile-menu {
  display: none; /* Start hidden - keep this only */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh; /* Use viewport height instead of fit-content */
  background-color: rgba(255, 255, 255, 0.98);
  z-index: 1000;
  padding: 60px 20px 40px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  overflow-y: auto;
  /* Removed conflicting display:flex declaration */
}

.mobile-menu.active {
  display: flex; /* Only show as flex when active */
  flex-direction: column;
  justify-content: center;
  opacity: 1;
  transform: none;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md); /* Reduced from --space-xl to --space-md */
  text-align: center;
}

.mobile-menu a {
  font-size: 1.25rem; /* Reduced from 1.5rem */
  font-weight: 500;
  color: var(--text-color);
  display: block;
  padding: var(--space-xs) var(--space-sm); /* Adjusted padding */
  transition: var(--transition-normal);
}

.mobile-menu a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.desktop-only {
  display: inline-flex;
}

body.menu-open {
  overflow: hidden;
}

/* Enhance Browser Selector for Responsiveness */
.browser-selector-container {
  padding: 0 var(--space-sm);
  margin-bottom: var(--space-lg);
}

.browser-buttons-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: var(--space-sm);
}

.browser-buttons-container.mobile-view .browser-select-btn {
  flex: 1 1 calc(50% - 10px);
  min-width: 120px;
}

/* Enhanced Responsive Styles */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links,
  .desktop-only {
    display: none;
  }

  .hero .container {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: var(--space-sm);
  }

  .feature-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .tab-content.active {
    flex-direction: column;
  }

  .step {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-number {
    margin-bottom: var(--space-sm);
  }

  .footer-links {
    gap: var(--space-lg);
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .steps:before {
    left: 15px;
  }

  /* Improve installation steps for mobile */
  .steps:before {
    left: 15px;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-right: var(--space-sm);
  }

  .step-content {
    padding-left: var(--space-xs);
  }
}

@media (max-width: 600px) {
  header .container {
    padding: var(--space-xs) var(--space-sm);
  }

  .hero {
    padding: var(--space-xl) 0;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-image img {
    transform: none !important;
  }

  .tab-screenshot img {
    max-width: 100%;
  }

  .browser-select-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.9rem;
  }

  .cta h2 {
    font-size: 1.8rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .feature-badge {
    position: static;
    margin: var(--space-md) auto 0;
    max-width: 200px;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  /* Further improve installation steps for smaller screens */
  .steps:before {
    left: 12px;
  }

  .step {
    padding-left: 30px; /* Add padding to prevent text overlap with line */
    position: relative;
  }

  .step-number {
    position: absolute;
    left: -5px;
    top: 0;
    margin-right: 0;
  }

  .step-content {
    padding-left: var(--space-sm);
    width: 100%;
  }

  .step-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 1.2rem;
  }

  .logo img {
    height: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons .button {
    width: 100%;
  }

  .section-header h2:after {
    width: 40px;
  }

  .tab-container {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 auto;
    padding: var(--space-sm);
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .section-header h2 {
    font-size: 1.6rem;
  }

  .faq-question h3 {
    font-size: 1rem;
  }

  /* For very small screens, adjust installation steps further */
  .steps:before {
    left: 10px;
  }

  .step {
    padding-left: 25px;
  }

  .step-number {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    left: -2px;
  }

  .step-content code {
    font-size: 0.8rem;
    word-break: break-all; /* Prevent code from overflowing on small screens */
  }

  .mobile-menu {
    padding-top: 50px; /* Further reduced top padding for very small screens */
  }

  .mobile-menu ul {
    gap: var(--space-sm); /* Even smaller gap for very small screens */
  }

  .mobile-menu a {
    font-size: 1.1rem; /* Smaller font for very small screens */
    padding: var(--space-xs);
  }
}

/* Updated off-message styling */
.off-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--neutral-light);
  border-radius: var(--border-radius-lg);
  margin: 0;
  height: 100%;
  min-height: 300px;
  border: 1px dashed var(--neutral-medium);
}

.status-icon {
  font-size: 4rem;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
}

.off-message p {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  max-width: 90%;
}

.off-message p:first-of-type {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
}

/* Edge Store Option */
.edge-store-option {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.store-banner {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  border: 1px solid var(--border-color);
}

.store-banner i.fab.fa-microsoft {
  font-size: 2.5rem;
  color: #0078d7;
  margin-bottom: var(--space-xs);
}

.store-banner h3 {
  font-size: 1.4rem;
  color: var(--text-color);
  margin-bottom: var(--space-xs);
}

.store-banner p {
  color: var(--text-light);
  margin-top: var(--space-xs);
}

/* Direct Install Badge */
.direct-install-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: var(--border-radius-sm);
  background-color: #0078d7;
  color: white;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  top: -1px;
}

/* Make badge more subtle when browser not selected */
.browser-select-btn:not(.active) .direct-install-badge {
  background-color: rgba(0, 120, 215, 0.6);
}

/* Edge Notice */
.edge-notice {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  background-color: rgba(0, 120, 215, 0.1);
  border-radius: var(--border-radius-md);
  padding: 8px 12px;
  margin: 0 auto var(--space-md);
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.3s ease-in-out;
}

.edge-notice i {
  color: #0078d7;
  font-size: 1rem;
}

.edge-notice a {
  color: #0078d7;
  font-weight: 500;
  text-decoration: underline;
}

.edge-notice a:hover {
  color: var(--primary-dark);
}

/* Page-wide Background Animation */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: var(--primary-gradient);
  filter: blur(30px);
  animation: bubbleFloat 20s ease-in-out infinite;
}

.bubble1 {
  width: 150px;
  height: 150px;
  top: 10%;
  right: 10%;
  opacity: 0.03;
  animation-delay: 0s;
  animation-duration: 30s;
}

.bubble2 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 5%;
  opacity: 0.05;
  animation-delay: 5s;
  animation-duration: 25s;
}

.bubble3 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  right: 20%;
  opacity: 0.02;
  animation-delay: 10s;
  animation-duration: 40s;
}

.bubble4 {
  width: 80px;
  height: 80px;
  top: 40%;
  left: 15%;
  opacity: 0.04;
  animation-delay: 7s;
  animation-duration: 35s;
}

.bubble5 {
  width: 120px;
  height: 120px;
  top: 70%;
  right: 25%;
  opacity: 0.03;
  animation-delay: 3s;
  animation-duration: 28s;
}

.bubble6 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 40%;
  opacity: 0.04;
  animation-delay: 15s;
  animation-duration: 32s;
}

.light-beam {
  position: absolute;
  transform: rotate(-45deg);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.01) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(59, 130, 246, 0.01) 100%);
  height: 200px;
  width: 100%;
  opacity: 0;
  animation: beamMove 40s ease-in-out infinite;
}

.light-beam1 {
  top: 20%;
  animation-delay: 0s;
}

.light-beam2 {
  bottom: 30%;
  animation-delay: 20s;
}

@keyframes bubbleFloat {
  0% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
  20% {
    opacity: var(--opacity, 0.05);
  }
  50% {
    transform: translate(100px, -100px) scale(1);
  }
  80% {
    opacity: var(--opacity, 0.05);
  }
  100% {
    transform: translate(0, 0) scale(0.8);
    opacity: 0;
  }
}

@keyframes beamMove {
  0% {
    transform: translateY(-100%) rotate(-45deg);
    opacity: 0;
  }
  30% {
    opacity: 0.3;
  }
  70% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(200%) rotate(-45deg);
    opacity: 0;
  }
}

/* Add subtle section background effects */
.features,
.demo,
.installation,
.faq {
  position: relative;
  overflow: hidden;
}

.features::before,
.demo::before,
.installation::before,
.faq::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.03;
  filter: blur(40px);
  z-index: 0;
}

.features::before {
  top: -100px;
  right: -100px;
}

.demo::before {
  bottom: -100px;
  left: -100px;
}

.installation::before {
  top: 40%;
  right: -150px;
}

.faq::before {
  bottom: 10%;
  left: -150px;
}

/* Make sure all section content stays above backgrounds */
.features > *,
.demo > *,
.installation > *,
.faq > * {
  position: relative;
  z-index: 1;
}

/* Section Transition Effects */
section {
  position: relative;
  transition: opacity 0.8s ease;
}

section.section-visible {
  animation: sectionFadeIn 0.8s ease forwards;
}

@keyframes sectionFadeIn {
  from {
    opacity: 0.8;
  }
  to {
    opacity: 1;
  }
}

/* Add animated dividers between sections */
section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
  z-index: 10;
}

/* Add subtle glow effect to section headers */
.section-header h2 {
  position: relative;
}

.section-header h2::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0) 70%);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-visible .section-header h2::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2);
}

/* Enhanced feature icons with animated gradient backgrounds */
.feature-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.05), rgba(37, 99, 235, 0.1));
  z-index: -1;
  animation: gradientSlide 6s linear infinite;
}

@keyframes gradientSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Add subtle animation to CTA section background */
.cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.6) 0%, rgba(37, 99, 235, 0) 60%);
  opacity: 0.3;
  mix-blend-mode: overlay;
  animation: pulseCTA 6s ease-in-out infinite;
}

@keyframes pulseCTA {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.1);
  }
}

/* Add floating effect to testimonial cards */
.step {
  animation: floatCard 6s ease-in-out infinite;
  animation-delay: calc(var(--delay, 0) * 1s);
}

.step:nth-child(1) {
  --delay: 0;
}

.step:nth-child(2) {
  --delay: 1;
}

.step:nth-child(3) {
  --delay: 2;
}

.step:nth-child(4) {
  --delay: 3;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .step {
    animation: none; /* Disable floating on mobile for better performance */
  }

  section:not(:last-child)::after {
    left: 10%;
    right: 10%;
  }
}
