/* =============================================================================
   Bandwidth Saver Landing Page Styles
   Mobile-first, performant, conversion-optimized

   Breakpoints:
   - Mobile: < 640px (default)
   - Tablet: >= 640px
   - Desktop: >= 1024px
   ============================================================================= */

/* -----------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   ----------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #0033FF;
  --color-primary-dark: #0029CC;
  --color-primary-light: #4D6FFF;
  --color-text: #1a1a2e;
  --color-text-secondary: #4a4a68;
  --color-text-muted: #6b6b8a;
  --color-background: #ffffff;
  --color-background-alt: #f8f9fc;
  --color-border: #e5e7eb;
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Typography - Mobile-first sizes */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Spacing */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 680px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  /* Touch targets - minimum 44px for accessibility */
  --touch-target: 44px;

  /* 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);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* Safe areas for notched devices */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* -----------------------------------------------------------------------------
   Reset & Base Styles
   ----------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Prevent font size inflation on mobile */
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent horizontal scroll */
  overflow-x: hidden;
  /* Account for safe areas */
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  /* Ensure touch targets are large enough */
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text);
  /* Prevent orphans on mobile */
  text-wrap: balance;
}

ul, ol {
  list-style: none;
}

/* Improve text rendering */
p, li {
  text-wrap: pretty;
}

/* -----------------------------------------------------------------------------
   Layout Components
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  /* More generous mobile padding */
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.section-title {
  font-size: var(--font-size-2xl);
  text-align: center;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .section-title {
    font-size: var(--font-size-3xl);
  }

  .section-subtitle {
    font-size: var(--font-size-lg);
  }
}

/* -----------------------------------------------------------------------------
   Button Components
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  /* Ensure minimum touch target height */
  min-height: var(--touch-target);
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  /* Prevent text selection on double-tap */
  user-select: none;
  -webkit-user-select: none;
}

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

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

/* Only add hover effects on devices that support hover */
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-lg {
  min-height: 52px;
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  border-radius: var(--border-radius-lg);
}

@media (min-width: 640px) {
  .btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
  }
}

.btn-full {
  width: 100%;
}

/* -----------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding-top: var(--safe-top);
}

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

@media (min-width: 640px) {
  .header .container {
    height: 64px;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: var(--font-size-base);
  color: var(--color-text);
  text-decoration: none;
  height: 100%;
}

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

.logo svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo span {
  display: inline;
  font-size: var(--font-size-sm);
}

@media (min-width: 640px) {
  .logo svg {
    width: 32px;
    height: 32px;
  }

  .logo span {
    font-size: inherit;
  }

  .logo {
    font-size: var(--font-size-lg);
  }
}

/* Header right side container */
.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
}

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

/* Language switch button */
.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-background);
  text-decoration: none;
  flex-shrink: 0;
}

.lang-switch:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-background);
}

/* -----------------------------------------------------------------------------
   Hero Section
   ----------------------------------------------------------------------------- */
.hero {
  padding: var(--space-8) 0 var(--space-10);
  background: linear-gradient(180deg, var(--color-background-alt) 0%, var(--color-background) 100%);
}

@media (min-width: 640px) {
  .hero {
    padding: var(--space-10) 0 var(--space-12);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: var(--space-16) 0 var(--space-20);
  }
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

/* Hero meta/trust line */
.hero-meta {
  font-size: 11px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-3);
  white-space: nowrap;
}

@media (min-width: 400px) {
  .hero-meta {
    font-size: var(--font-size-xs);
    letter-spacing: 0.05em;
  }
}

@media (min-width: 640px) {
  .hero-meta {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
  }
}

.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: var(--font-size-5xl);
  }
}

.hero-title .highlight {
  color: var(--color-primary);
  /* Display on new line but without hard <br> */
  display: block;
}

@media (min-width: 1024px) {
  .hero-title .highlight {
    display: inline;
  }
}

.hero-subtitle {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: var(--font-size-lg);
  }
}

@media (min-width: 1024px) {
  .hero-subtitle {
    font-size: var(--font-size-xl);
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

/* Hero CTAs container */
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .hero-ctas {
    justify-content: flex-start;
  }
}

/* Hero CTA - Full width on mobile */
.hero-ctas > .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .hero-ctas > .btn {
    width: auto;
  }
}

/* WordPress icon in CTA */
.hero-ctas .wp-icon {
  flex-shrink: 0;
}

/* Secondary CTA link */
.hero-secondary-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
}

.hero-secondary-link:hover {
  color: var(--color-primary);
}

.hero-benefits {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5);
}

@media (min-width: 480px) {
  .hero-benefits {
    gap: var(--space-3) var(--space-5);
  }
}

@media (min-width: 640px) {
  .hero-benefits {
    flex-wrap: nowrap;
    gap: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .hero-benefits {
    justify-content: flex-start;
  }
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.hero-benefits svg {
  color: var(--color-success);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Plugin Screenshot Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  /* Scale down on very small screens */
  transform: scale(0.85);
  transform-origin: top center;
  margin-bottom: calc(var(--space-4) * -1);
}

@media (min-width: 400px) {
  .hero-visual {
    transform: scale(0.9);
    margin-bottom: calc(var(--space-2) * -1);
  }
}

@media (min-width: 480px) {
  .hero-visual {
    transform: scale(1);
    margin-bottom: 0;
  }
}

.browser-frame {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
  .browser-frame {
    max-width: 500px;
    border-radius: var(--border-radius-xl);
  }
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  background: var(--color-background-alt);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .browser-dots {
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
  }
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

@media (min-width: 640px) {
  .browser-dots span {
    width: 12px;
    height: 12px;
  }
}

.browser-dots span:first-child {
  background: #ef4444;
}

.browser-dots span:nth-child(2) {
  background: #f59e0b;
}

.browser-dots span:last-child {
  background: #10b981;
}

.browser-content {
  padding: var(--space-4);
}

@media (min-width: 640px) {
  .browser-content {
    padding: var(--space-6);
  }
}

.speed-comparison {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .speed-comparison {
    gap: var(--space-4);
  }
}

.speed-item {
  display: grid;
  grid-template-columns: 45px 1fr 32px;
  align-items: center;
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .speed-item {
    grid-template-columns: 50px 1fr 40px;
    gap: var(--space-3);
  }
}

.speed-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .speed-label {
    font-size: var(--font-size-sm);
  }
}

.speed-bar {
  height: 20px;
  background: var(--color-background-alt);
  border-radius: var(--border-radius);
  overflow: hidden;
}

@media (min-width: 640px) {
  .speed-bar {
    height: 24px;
  }
}

.speed-fill {
  height: 100%;
  border-radius: var(--border-radius);
}

.speed-before .speed-fill {
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 100%);
}

.speed-after .speed-fill {
  background: linear-gradient(90deg, #10b981 0%, var(--color-primary) 100%);
}

.speed-score {
  font-size: var(--font-size-base);
  font-weight: 700;
  text-align: right;
}

@media (min-width: 640px) {
  .speed-score {
    font-size: var(--font-size-lg);
  }
}

.speed-before .speed-score {
  color: #f59e0b;
}

.speed-after .speed-score {
  color: var(--color-success);
}

.speed-caption {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

@media (min-width: 640px) {
  .speed-caption {
    font-size: var(--font-size-sm);
    margin-top: var(--space-4);
  }
}

/* -----------------------------------------------------------------------------
   Why It Works Section
   ----------------------------------------------------------------------------- */
.why-it-works {
  padding: var(--space-12) 0;
  background: linear-gradient(180deg, white 0%, var(--color-background-alt) 100%);
}

@media (min-width: 640px) {
  .why-it-works {
    padding: var(--space-16) 0;
  }
}

.why-it-works .section-title {
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 560px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 768px) {
  .why-grid {
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    gap: var(--space-6);
  }
}

.why-card {
  padding: var(--space-5);
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
  transition: all var(--transition-base);
}

@media (min-width: 640px) {
  .why-card {
    padding: var(--space-6);
  }
}

@media (hover: hover) {
  .why-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
  }
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

@media (min-width: 640px) {
  .why-icon {
    width: 52px;
    height: 52px;
  }
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

/* Icon color variants */
.why-icon-free {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  color: var(--color-success);
}

.why-icon-easy {
  background: linear-gradient(135deg, rgba(0, 51, 255, 0.12) 0%, rgba(0, 51, 255, 0.04) 100%);
  color: var(--color-primary);
}

.why-icon-safe {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
  color: #8b5cf6;
}

.why-icon-global {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
  color: var(--color-warning);
}

@media (hover: hover) {
  .why-card:hover .why-icon-free {
    background: var(--color-success);
    color: white;
  }

  .why-card:hover .why-icon-easy {
    background: var(--color-primary);
    color: white;
  }

  .why-card:hover .why-icon-safe {
    background: #8b5cf6;
    color: white;
  }

  .why-card:hover .why-icon-global {
    background: var(--color-warning);
    color: white;
  }
}

.why-card h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

@media (min-width: 640px) {
  .why-card h3 {
    font-size: var(--font-size-xl);
  }
}

.why-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

@media (min-width: 640px) {
  .why-card p {
    font-size: var(--font-size-base);
  }
}

/* -----------------------------------------------------------------------------
   How It Works Section
   ----------------------------------------------------------------------------- */
.how-it-works {
  padding: var(--space-12) 0;
  background: var(--color-background-alt);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .how-it-works {
    padding: var(--space-16) 0;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
  }
}

.step {
  flex: 1;
  text-align: center;
  padding: var(--space-6);
  position: relative;
  background: white;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: var(--space-4);
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .step {
    margin-bottom: 0;
    border-radius: 0;
    border-right: none;
  }

  .step:first-child {
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
  }

  .step:last-child {
    border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
    border-right: 1px solid var(--color-border);
  }
}

@media (hover: hover) {
  .step:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    z-index: 1;
  }

  @media (min-width: 768px) {
    .step:hover {
      border-radius: var(--border-radius-lg);
      border-right: 1px solid var(--color-primary);
    }
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-size: var(--font-size-lg);
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: var(--space-4);
  box-shadow: 0 4px 14px rgba(0, 51, 255, 0.3);
}

@media (min-width: 640px) {
  .step-number {
    width: 56px;
    height: 56px;
    font-size: var(--font-size-xl);
  }
}

.step-content h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

@media (min-width: 640px) {
  .step-content h3 {
    font-size: var(--font-size-lg);
  }
}

.step-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-arrow {
  display: none;
  color: var(--color-primary);
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: white;
  border-radius: 50%;
  padding: 4px;
}

@media (min-width: 768px) {
  .step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide the last arrow (before the last step) */
  .step-arrow:last-of-type {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   Social Proof Section
   ----------------------------------------------------------------------------- */
.social-proof {
  padding: var(--space-10) 0;
  background: linear-gradient(180deg, var(--color-background-alt) 0%, white 100%);
  position: relative;
  /* Allow shadow to show, contain orb differently */
  overflow: visible;
}

@media (min-width: 640px) {
  .social-proof {
    padding: var(--space-12) 0;
  }
}

/* Decorative gradient orb - contained within section */
.social-proof::before {
  content: '';
  position: absolute;
  width: 100%;
  max-width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(0, 51, 255, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.proof-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.testimonial {
  font-size: var(--font-size-lg);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .testimonial {
    font-size: var(--font-size-xl);
  }
}

.testimonial p {
  margin-bottom: var(--space-3);
}

.testimonial cite {
  font-size: var(--font-size-sm);
  font-style: normal;
  color: var(--color-text-muted);
}

.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: white;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.powered-by-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.powered-by-logo svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------------
   Pricing Section
   ----------------------------------------------------------------------------- */
.pricing {
  padding: var(--space-12) 0;
  background: white;
}

@media (min-width: 640px) {
  .pricing {
    padding: var(--space-16) 0;
  }
}

.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: white;
  border-radius: var(--border-radius-xl);
  padding: var(--space-6);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .pricing-card {
    padding: var(--space-8);
  }
}

/* Shine effect */
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .pricing-card:hover::before {
    left: 100%;
  }
}

.pricing-card-featured {
  border-color: var(--color-primary);
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  font-size: var(--font-size-xs);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 51, 255, 0.3);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-5);
  padding-top: var(--space-4);
}

@media (min-width: 640px) {
  .pricing-header {
    margin-bottom: var(--space-6);
  }
}

.pricing-name {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .pricing-name {
    font-size: var(--font-size-xl);
  }
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
}

.price-amount {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.price-period {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
}

.pricing-features {
  margin-bottom: var(--space-5);
  background: var(--color-background-alt);
  border-radius: var(--border-radius-lg);
  padding: var(--space-4);
}

@media (min-width: 640px) {
  .pricing-features {
    margin-bottom: var(--space-6);
    padding: var(--space-5);
  }
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  font-size: var(--font-size-sm);
}

.pricing-features li:first-child {
  padding-top: 0;
}

.pricing-features li:last-child {
  padding-bottom: 0;
}

.pricing-features svg {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
}

.pricing-note {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
}

/* -----------------------------------------------------------------------------
   FAQ Section
   ----------------------------------------------------------------------------- */
.faq {
  padding: var(--space-12) 0;
  background: var(--color-background-alt);
}

@media (min-width: 640px) {
  .faq {
    padding: var(--space-16) 0;
  }
}

.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition-base);
}

@media (hover: hover) {
  .faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
  }
}

.faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: var(--font-size-sm);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--touch-target);
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--transition-fast);
}

@media (min-width: 640px) {
  .faq-item summary {
    padding: var(--space-5) var(--space-6);
    font-size: var(--font-size-base);
  }
}

.faq-item[open] summary {
  background: var(--color-background-alt);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 24px;
  height: 24px;
  background: var(--color-background-alt);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-fast);
}

/* Plus icon using pseudo-elements */
.faq-item summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4a68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.faq-item[open] summary::after {
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  transform: none;
}

.faq-item p {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  margin-top: 0;
  padding-top: var(--space-4);
}

@media (min-width: 640px) {
  .faq-item p {
    padding: 0 var(--space-6) var(--space-5);
    padding-top: var(--space-4);
  }
}

/* Smooth expand animation */
@media (prefers-reduced-motion: no-preference) {
  .faq-item p {
    animation: faq-expand 0.2s ease-out;
  }

  @keyframes faq-expand {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* -----------------------------------------------------------------------------
   Final CTA Section
   ----------------------------------------------------------------------------- */
.final-cta {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .final-cta {
    padding: var(--space-16) 0;
  }
}

@media (min-width: 1024px) {
  .final-cta {
    padding: var(--space-20) 0;
  }
}

/* Decorative gradient orbs */
.final-cta::before,
.final-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.final-cta::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  top: -200px;
  left: -100px;
}

.final-cta::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
}

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

.final-cta h2 {
  font-size: var(--font-size-2xl);
  color: white;
  margin-bottom: var(--space-3);
}

@media (min-width: 640px) {
  .final-cta h2 {
    font-size: var(--font-size-3xl);
  }
}

@media (min-width: 1024px) {
  .final-cta h2 {
    font-size: var(--font-size-4xl);
  }
}

.final-cta > .container > p {
  font-size: var(--font-size-base);
  opacity: 0.9;
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .final-cta > .container > p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
  }
}

/* Full width CTA on mobile */
.final-cta .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .final-cta .btn {
    width: auto;
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-lg);
  }
}

.final-cta .btn-primary {
  background: white;
  color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
  .final-cta .btn-primary:hover {
    background: var(--color-background-alt);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  }
}

.final-cta-note {
  font-size: var(--font-size-xs);
  opacity: 0.75;
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-1) var(--space-3);
  line-height: 1.6;
}

@media (min-width: 480px) {
  .final-cta-note {
    font-size: var(--font-size-sm);
    gap: var(--space-2);
    flex-wrap: nowrap;
  }
}

.final-cta-note svg {
  width: 14px;
  height: 14px;
  opacity: 0.9;
  flex-shrink: 0;
}

@media (min-width: 480px) {
  .final-cta-note svg {
    width: 16px;
    height: 16px;
  }
}

/* -----------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------------- */
.footer {
  padding: var(--space-10) 0 var(--space-6);
  padding-bottom: calc(var(--space-6) + var(--safe-bottom));
  background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
}

@media (min-width: 640px) {
  .footer {
    padding: var(--space-12) 0 var(--space-8);
    padding-bottom: calc(var(--space-8) + var(--safe-bottom));
  }
}

/* Subtle top gradient line */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 51, 255, 0.5), transparent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: var(--space-8);
  }

  .footer-brand {
    flex: 1 1 100%;
    margin-bottom: var(--space-4);
  }
}

@media (min-width: 768px) {
  .footer-content {
    flex-wrap: nowrap;
  }

  .footer-brand {
    flex: 0 1 auto;
    margin-bottom: 0;
  }
}

.footer-brand .logo {
  color: white;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-base);
}

/* Show logo text in footer on all sizes */
.footer-brand .logo span {
  display: inline;
}

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

.footer-brand .logo svg rect {
  fill: white;
}

.footer-brand .logo svg path {
  stroke: var(--color-primary);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  max-width: 280px;
  line-height: 1.6;
}

/* Social links in footer */
.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .footer-nav {
    flex-direction: row;
    gap: var(--space-12);
  }
}

.footer-nav-group h4 {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  min-height: var(--touch-target);
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
  position: relative;
}

.footer-links a:hover {
  color: white;
}

/* Underline effect on hover */
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: var(--font-size-sm);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-4);
}

.footer-bottom-links a {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: white;
}

/* -----------------------------------------------------------------------------
   Utility Classes
   ----------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -----------------------------------------------------------------------------
   Animations - Only on devices that support them
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .speed-fill {
    animation: grow 1.5s ease-out forwards;
  }

  @keyframes grow {
    from { width: 0; }
  }
}

/* Remove float animation - it's distracting on mobile and uses battery */

/* -----------------------------------------------------------------------------
   Hero Badge
   ----------------------------------------------------------------------------- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(0, 51, 255, 0.08);
  border: 1px solid rgba(0, 51, 255, 0.15);
  border-radius: 20px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-warning);
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: var(--font-size-sm);
    padding: var(--space-2) var(--space-4);
  }

  .hero-badge svg {
    width: 16px;
    height: 16px;
  }
}

/* -----------------------------------------------------------------------------
   Plugin Screenshot
   ----------------------------------------------------------------------------- */
.plugin-screenshot {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  background: #f3f4f6;
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.12),
    -8px -8px 20px rgba(255, 255, 255, 0.9),
    0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.plugin-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 1024px) {
  .plugin-screenshot {
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
  }

  .plugin-screenshot:hover {
    transform: perspective(1000px) rotateY(0deg);
  }
}

/* -----------------------------------------------------------------------------
   Stats Bar
   ----------------------------------------------------------------------------- */
.stats-bar {
  padding: var(--space-5) 0;
  background: var(--color-primary);
  color: white;
}

@media (min-width: 400px) {
  .stats-bar {
    padding: var(--space-6) 0;
  }
}

@media (min-width: 640px) {
  .stats-bar {
    padding: var(--space-8) 0;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

@media (min-width: 400px) {
  .stats-grid {
    gap: var(--space-3);
  }
}

@media (min-width: 640px) {
  .stats-grid {
    gap: var(--space-6);
  }
}

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

.stat-number {
  display: block;
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-1);
}

@media (min-width: 640px) {
  .stat-number {
    font-size: var(--font-size-3xl);
  }
}

@media (min-width: 1024px) {
  .stat-number {
    font-size: var(--font-size-4xl);
  }
}

.stat-label {
  font-size: 9px;
  opacity: 0.85;
  letter-spacing: 0.01em;
  line-height: 1.3;
  /* Ensure text doesn't overflow on tiny screens */
  word-break: break-word;
  hyphens: auto;
}

@media (min-width: 360px) {
  .stat-label {
    font-size: 10px;
  }
}

@media (min-width: 400px) {
  .stat-label {
    font-size: var(--font-size-xs);
    word-break: normal;
    hyphens: none;
  }
}

@media (min-width: 640px) {
  .stat-label {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}

/* -----------------------------------------------------------------------------
   Compatibility Section
   ----------------------------------------------------------------------------- */
.compatibility {
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 640px) {
  .compatibility {
    padding: var(--space-10) 0;
  }
}

.compatibility-label {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compatibility-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .compatibility-logos {
    gap: var(--space-8);
  }
}

.compat-logo {
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.compat-logo:hover {
  opacity: 1;
}

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

@media (min-width: 640px) {
  .compat-logo svg {
    width: 44px;
    height: 44px;
  }
}

/* -----------------------------------------------------------------------------
   Social Proof Highlight
   ----------------------------------------------------------------------------- */
.proof-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .proof-highlight {
    flex-direction: row;
    justify-content: center;
  }
}

.proof-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

@media (min-width: 640px) {
  .proof-number {
    font-size: var(--font-size-5xl);
  }
}

.proof-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
}

@media (min-width: 640px) {
  .proof-text {
    font-size: var(--font-size-xl);
  }
}

.proof-description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}
