/* TruckCraft Studio - Royal Purple Design System */

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
  font-weight: 600;
  font-size: 0.9rem;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

:root {
  /* Colors - Royal Purple & Pink Theme */
  --primary: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  --accent: #ec4899;
  --accent-dark: #db2777;
  --accent-light: #f472b6;
  --secondary: #a855f7;
  --secondary-light: #c084fc;
  --background: #faf5ff;
  --surface: #ffffff;
  --surface-elevated: #faf5ff;
  --surface-hover: #f3e8ff;
  /* Text colors with improved contrast */
  --text-primary: #1e1b4b; /* Darker for better contrast */
  --text-secondary: #4c1d95; /* Improved contrast */
  --text-muted: #4b5563; /* Better readability */
  --border: #e9d5ff;
  --border-light: #f3e8ff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  --gradient-surface: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-colored: 0 10px 25px -5px rgba(107, 70, 193, 0.3);
  
  /* Responsive Spacing - Mobile First */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;
  
  /* Animations */
  --animation-fast: 0.15s ease;
  --animation-normal: 0.3s ease;
  --animation-slow: 0.5s ease;
  --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  /* Fix viewport issues on mobile */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

* {
  margin: 0;
  padding: 0;
}

html {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--background);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  /* Improve touch scrolling on iOS */
  -webkit-overflow-scrolling: touch;
  /* Prevent horizontal scrolling issues */
  max-width: 100vw;
}

/* Global Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Utility Classes */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

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

/* Utility Classes */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
  background-size: 200% auto;
}

.full-width {
  width: 100%;
}

/* Back Link Button */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  transition: transform var(--animation-fast), box-shadow var(--animation-fast), background var(--animation-fast);
}

.back-link:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.back-link:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.back-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Enhanced Navigation - Mobile First */
.navbar {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.9));
  border-bottom: 1.5px solid rgba(124, 58, 237, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: slideIn 0.5s ease-out;
  transition: all var(--animation-normal);
  width: 100%;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

.navbar:hover {
  box-shadow: 0 6px 30px rgba(124, 58, 237, 0.12), inset 0 -1px 0 rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(124, 58, 237, 0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  gap: var(--space-4);
  position: relative;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  animation: fadeInLeft 0.6s ease-out;
  flex-shrink: 0;
  min-width: fit-content;
  text-decoration: none;
  z-index: 70;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  background-size: 200% 200%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all var(--animation-normal);
  animation: gradient-shift 3s ease infinite;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.nav-logo:hover .logo-icon {
  transform: rotate(8deg) scale(1.15);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5), 0 3px 12px rgba(236, 72, 153, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 70;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu-toggle:hover {
  transform: scale(1.1);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
  border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line {
  background-color: var(--primary);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Links - Mobile First */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-2);
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-xl);
  z-index: 60;
  overflow-y: auto;
  touch-action: manipulation;
  -webkit-overflow-scrolling: touch;
}

.nav-links.mobile-open {
  right: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  transition: all var(--animation-normal);
  position: relative;
  overflow: hidden;
  font-size: 1.2rem;
  white-space: nowrap;
  background: rgba(124, 58, 237, 0.1);
  border: 2px solid transparent;
  min-height: 48px;
  min-width: 200px;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(107, 70, 193, 0.1), transparent);
  transition: left var(--animation-normal);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: var(--primary);
  transform: translateY(-2px) scale(1.05);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.nav-link.active {
  background: var(--gradient-primary);
}

.nav-link svg {
  transition: all var(--animation-normal);
}

.nav-link:hover svg {
  transform: scale(1.2) rotate(5deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Mobile menu animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes fadeInStagger {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content - Mobile First */
main {
  flex: 1;
  width: 100%;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  width: 100%;
}

.section {
  padding: var(--space-12) 0;
  width: 100%;
}

/* Hero Section - Mobile First */
.hero-section {
  padding: var(--space-20) 0 var(--space-16);
  background: linear-gradient(180deg, rgba(250, 245, 255, 1) 0%, rgba(255, 255, 255, 1) 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 70% 20%, rgba(124, 58, 237, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 30% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
  pointer-events: none;
  animation: gradient-float 15s ease infinite;
}

@keyframes gradient-float {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--space-4);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  order: 2;
  text-align: center;
  width: 100%;
}

.hero-visual {
  order: 1;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(236, 72, 153, 0.15));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(124, 58, 237, 0.4);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  animation: pulse 2s infinite;
  transition: all var(--animation-normal);
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.hero-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border-color: rgba(124, 58, 237, 0.6);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin: 0 auto;
  max-width: 100%;
  text-shadow: 0 2px 10px rgba(124, 58, 237, 0.1);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 100%;
  line-height: 1.6;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  justify-content: center;
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  width: 100%;
}

.stat-item {
  text-align: center;
  min-width: 100px;
  flex: 1;
  padding: var(--space-5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 255, 0.9));
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 245, 255, 1));
  border-color: rgba(124, 58, 237, 0.3);
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Buttons - Mobile First */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  background-size: 200% 200%;
  color: white;
  border: none;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4), 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 48px;
  width: 100%;
  max-width: 280px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5), 0 4px 15px rgba(236, 72, 153, 0.3);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--primary);
  border: 2px solid rgba(124, 58, 237, 0.3);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  width: 100%;
  max-width: 280px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35), 0 4px 15px rgba(236, 72, 153, 0.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left var(--animation-normal);
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: var(--space-4) var(--space-8);
  font-size: 1.125rem;
  min-height: 56px;
}

/* Hero Visual - Mobile First */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.preview-mockup {
  width: 100%;
  max-width: 300px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-mockup {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  z-index: 1;
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  transition: transform 0.3s ease;
  width: 100%;
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

/* Hero Features Grid */
.hero-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  max-width: 500px;
  margin: 0 auto;
}

.hero-feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.95));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.hero-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.05), transparent);
  transition: left 0.6s ease;
}

.hero-feature-card:hover::before {
  left: 100%;
}

.hero-feature-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.25), 0 10px 20px rgba(236, 72, 153, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 245, 255, 1));
}

.feature-icon-hero {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%);
  background-size: 200% 200%;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
  color: white;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35), 0 4px 10px rgba(236, 72, 153, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradient-shift 3s ease infinite;
  position: relative;
}

.feature-icon-hero::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border-radius: var(--radius-xl);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  filter: blur(10px);
}

.hero-feature-card:hover .feature-icon-hero {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.5), 0 8px 20px rgba(236, 72, 153, 0.3);
}

.hero-feature-card:hover .feature-icon-hero::after {
  opacity: 1;
}

.hero-feature-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.hero-feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.mockup-navbar {
  height: 10px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  width: 80%;
  opacity: 0.8;
}

.mockup-hero {
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  opacity: 0.9;
}

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

.mockup-card {
  height: 30px;
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.mockup-nav {
  height: 10px;
  background: var(--border);
  border-radius: var(--radius-sm);
  width: 60%;
}

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

.mockup-section {
  height: 30px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e1b4b 0%, #6d28d9 40%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 2px;
  opacity: 0.6;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  border-radius: 2px;
  opacity: 0.6;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 500;
}

/* Quick Links Section */
.quick-links-section {
  padding: var(--space-20) 0;
  background: var(--surface);
  position: relative;
}

.quick-links-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.03) 0%, transparent 40%);
  pointer-events: none;
}

/* How It Works Section */
.how-it-works-section {
  padding: var(--space-24) 0;
  background: var(--gradient-surface);
  position: relative;
  overflow: hidden;
}

.how-it-works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.steps-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.step-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--surface-elevated);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-4) auto var(--space-6);
  color: var(--primary);
  transition: all 0.3s ease;
}

.step-card:hover .step-icon {
  transform: scale(1.1);
  background: var(--gradient-primary);
  color: white;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

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

.step-arrow {
  color: var(--primary);
  opacity: 0.3;
  flex-shrink: 0;
}

/* Features Showcase Section */
.features-showcase-section {
  padding: var(--space-24) 0;
  background: var(--surface);
}

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

.showcase-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.showcase-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
  transition: all 0.3s ease;
}

.showcase-card:hover .showcase-icon {
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

.showcase-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.showcase-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
  padding: var(--space-24) 0;
  background: var(--gradient-surface);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.testimonial-rating {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  color: #fbbf24;
}

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

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

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

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

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: var(--space-12);
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.quick-link-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.quick-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.05;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover::before {
  left: 0;
}

.quick-link-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(124, 58, 237, 0.25);
  border-color: var(--primary);
}

.quick-link-card:active {
  transform: translateY(-6px) scale(1.01);
}

.quick-link-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
  transition: transform 0.3s ease;
}

.quick-link-card:hover .quick-link-icon {
  transform: scale(1.1);
}

.quick-link-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.quick-link-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--space-20);
  align-items: stretch;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.2), 0 10px 25px rgba(236, 72, 153, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 245, 255, 1));
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  background-size: 200% 200%;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
  transition: all 0.3s ease;
  animation: gradient-shift 3s ease infinite;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45);
}

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

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
  margin: 0;
}

/* Editor Section */
.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.editor-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
margin-left: 100px;
}

.editor-controls {
  display: flex;
  gap: var(--space-3);
  margin-right: 100px;
}

.editor-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-8);
  min-height: 70vh;
}

/* Sidebar */
.editor-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: fit-content;
  position: sticky;
  top: var(--space-20);
}

.sidebar-section {
  margin-bottom: var(--space-8);
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-group input {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group input[type="color"] {
  height: 40px;
  padding: var(--space-1);
  cursor: pointer;
}

/* Editor Main */
.editor-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-tabs {
  display: flex;
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  background: none;
  border: none;
  padding: var(--space-4) var(--space-6);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: var(--surface);
}

.tab-content {
  flex: 1;
  overflow: hidden;
}

.tab-pane {
  display: none;
  height: 100%;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* Preview Container */
.preview-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-toolbar {
  background: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.device-toggle {
  display: flex;
  gap: var(--space-1);
}

.device-btn {
  background: none;
  border: 1px solid var(--border);
  padding: var(--space-2);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.preview-frame {
  flex: 1;
  border: none;
  background: white;
  transition: all 0.3s ease;
}

.preview-frame.desktop {
  width: 100%;
}

.preview-frame.tablet {
  width: 768px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.preview-frame.mobile {
  width: 375px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* Code Editor */
#code-editor {
  width: 100%;
  height: 100%;
  min-height: 500px;
  font-family: 'Fira Code', 'SF Mono', Monaco, monospace;
  font-size: 14px;
  line-height: 1.5;
  border: none;
  background: var(--surface);
  color: var(--text-primary);
  padding: var(--space-6);
  resize: none;
  outline: none;
}

/* Footer */
.footer {
  background: var(--gradient-surface);
  border-top: 1px solid var(--border);
  color: var(--text-primary);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, var(--accent) 0.02, transparent 50%),
              radial-gradient(circle at 80% 20%, var(--primary) 0.02, transparent 50%);
  pointer-events: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-6) var(--space-8);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-16);
  position: relative;
  z-index: 1;
  align-items: start;
}

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

.footer-discord-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.025em;
}

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

.footer-location,
.footer-phone {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-email {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-email:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-start;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all 0.3s ease;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  white-space: nowrap;
  border: 1px solid transparent;
}

.footer-link:hover {
  color: var(--primary);
  background: var(--surface-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.footer-link svg {
  flex-shrink: 0;
}

/* Discord Component */
.footer-discord {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.discord-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 280px;
  box-shadow: var(--shadow-sm);
}

.discord-link:hover {
  background: var(--gradient-accent);
  color: var(--surface);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.discord-link svg {
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.discord-link:hover svg {
  color: var(--surface);
}

.discord-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.discord-title {
  font-weight: 600;
  font-size: 1rem;
  color: inherit;
  line-height: 1.2;
}

.discord-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  background: var(--surface-elevated);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright,
.footer-credit {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* Footer Mobile Responsive */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    padding: var(--space-12) var(--space-4) var(--space-6);
    text-align: center;
  }

  .footer-nav-section,
  .footer-discord-section {
    align-items: center;
  }

  .footer-links {
    justify-content: center;
    gap: var(--space-2);
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }

  .discord-link {
    max-width: 100%;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    padding: var(--space-8) var(--space-3) var(--space-4);
    gap: var(--space-8);
  }

  .footer-title {
    font-size: 1.125rem;
  }

  .footer-links {
    gap: var(--space-1);
    justify-content: center;
  }

  .footer-link {
    font-size: 0.875rem;
    padding: var(--space-1) var(--space-2);
    gap: var(--space-1);
  }

  .footer-link svg {
    width: 14px;
    height: 14px;
  }

  .discord-link {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .discord-title {
    font-size: 0.9rem;
  }

  .discord-subtitle {
    font-size: 0.8rem;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  
  .quick-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .editor-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .editor-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

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

  .steps-container {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    opacity: 0.2;
  }

  .step-card {
    max-width: 100%;
  }

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

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

  .nav-container {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4); /* Reduced gap on mobile */
  }
  
  .nav-links {
    gap: var(--space-2); /* Tighter spacing on mobile */
  }
  
  .nav-link {
    font-size: 0.85rem; /* Even smaller font on mobile */
    padding: var(--space-2); /* Reduced padding on mobile */
  }
  
  .nav-logo {
    font-size: 1rem; /* Smaller logo text on mobile */
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-8);
    transition: right 0.3s ease;
    box-shadow: var(--shadow-xl);
    z-index: 60;
    overflow-y: auto;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .nav-link {
    width: auto;
    justify-content: center;
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-3);
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    font-weight: 600;
    background: rgba(124, 58, 237, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: var(--primary-light);
  }
  
  .nav-link span {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
    position: relative;
    z-index: 70;
  }

  .mobile-menu-toggle.active .hamburger-line {
    background-color: var(--primary);
  }

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  
  /* Hero Section Mobile Improvements */
  .hero-section {
    padding: var(--space-16) 0;
  }

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

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

  .hero-badge {
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-4);
    margin-bottom: var(--space-4);
  }
  
  .hero-title {
    font-size: 2.25rem;
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }
  
  .hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-4);
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    min-height: 48px;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
    margin-top: var(--space-8);
  }

  .stat-item {
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    min-width: 120px;
  }

  .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-1);
  }

  .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
  }
  
  .quick-links-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 var(--space-4);
  }
  
  .templates-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .modern-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .quick-link-card {
    padding: var(--space-6);
    text-align: center;
  }
  
  .quick-link-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-4);
  }

  .quick-link-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
  }

  .quick-link-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .hero-mockup {
    max-width: 90%;
    width: 100%;
    margin-top: var(--space-6);
    transform: scale(0.85);
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-6);
  }

  /* Hero features grid mobile */
  .hero-features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    max-width: 100%;
  }

  .hero-feature-card {
    padding: var(--space-5);
  }

  .feature-icon-hero {
    width: 56px;
    height: 56px;
  }

  .hero-feature-card h4 {
    font-size: 1rem;
  }

  .hero-feature-card p {
    font-size: 0.8rem;
  }
  
  .mockup-content {
    padding: var(--space-4);
    gap: var(--space-3);
  }
  
  .mockup-hero {
    height: 40px;
  }
  
  .mockup-cards {
    gap: var(--space-1);
  }
  
  .mockup-card {
    height: 30px;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }

  .feature-card {
    padding: var(--space-6);
    text-align: center;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-4);
  }

  /* Features Page Specific Mobile Styles */
  .features-header {
    text-align: center;
    padding: 0 var(--space-4);
    margin-bottom: var(--space-8);
  }

  .features-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
  }

  .features-showcase {
    flex-direction: column;
    gap: var(--space-8);
  }

  .feature-highlight {
    flex-direction: column;
    text-align: center;
  }

  .feature-demo {
    max-width: 100%;
    margin-bottom: var(--space-6);
  }

  .feature-info {
    text-align: center;
  }

  .feature-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
  }

  .feature-info p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .feature-benefits {
    text-align: left;
    max-width: 100%;
    padding: 0 var(--space-4);
  }
  
  .editor-header {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-6);
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .cta-features {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }
  
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cta-actions .btn {
    width: 100%;
    max-width: 300px;
  }
}

/* Extra-small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  .hero-section {
    padding: var(--space-12) 0;
  }

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

  .hero-description, .features-subtitle, .pricing-subtitle, .about-subtitle, .templates-subtitle, .contact-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .cta-buttons .btn,
  .btn.btn-primary,
  .btn.btn-outline,
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .quick-links-grid,
  .features-grid,
  .pricing-grid,
  .team-grid,
  .contact-grid,
  .templates-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .hero-mockup {
    transform: scale(0.9);
    transform-origin: top center;
  }

  .mockup-screen {
    max-width: 320px !important;
  }

  .editor-header h2 {
    font-size: 1.125rem;
  }

  .editor-controls .btn-outline {
    padding: var(--space-2) var(--space-3);
  }
}

/* Very small devices */
@media (max-width: 360px) {
  .container {
    padding: 0 var(--space-2);
  }

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

  .hero-badge {
    font-size: 0.8rem;
  }

  .hero-mockup {
    transform: scale(0.8);
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .mockup-content {
    padding: var(--space-4);
  }
  
  .editor-sidebar {
    padding: var(--space-4);
  }
  
  .preview-frame.tablet,
  .preview-frame.mobile {
    width: 100%;
    border: none;
  }
}

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

.feature-card,
.mockup-content > * {
  animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* About Section Styles */
.about-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.about-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.about-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* What We Do Section */
.what-we-do-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl);
}

.wwd-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.lead-text strong {
  color: var(--primary);
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--space-xl);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  flex-grow: 1;
  margin: 0;
}

/* Modern Card Grid - Responsive Feature Cards */
.modern-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.feature-card p {
  color: #6b7280;
  line-height: 1.7;
  font-size: 1rem;
  flex-grow: 1;
  margin: 0;
}

/* Responsive adjustments for modern cards */
@media (max-width: 768px) {
  .modern-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card {
    padding: 2rem;
  }
  
  .feature-card h3 {
    font-size: 1.3rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .modern-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .modern-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Who It's For Section */
.wwd-audience {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xxl);
  text-align: center;
}

.wwd-audience h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.audience-item {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.audience-item:hover {
  background: var(--surface-elevated);
  transform: translateY(-4px);
}

.audience-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.audience-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.audience-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* What We Do CTA */
.wwd-cta {
  text-align: center;
  padding: var(--space-xxl);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.wwd-cta h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.wwd-cta p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.about-story,
.story-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-8);
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  gap: var(--space-6);
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.story-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.story-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.story-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  padding: var(--space-12);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.team-section {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  border: 1px solid var(--border);
}

.team-section h3 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}
.team-section p
{
text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-12);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 200px;
}

.team-member:hover {
  background: var(--surface-elevated);
  transform: translateY(-2px);
}

.member-photo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.team-member h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.team-member p {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.member-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Features Section Styles */
.features-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.features-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.features-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.feature-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  border: 1px solid var(--border);
}

.feature-demo {
  display: flex;
  justify-content: center;
}

.demo-browser {
  width: 500px;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.browser-header {
  background: var(--surface-elevated);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.browser-dots {
  display: flex;
  gap: var(--space-1);
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex: 1;
}

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

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

.demo-nav {
  height: 12px;
  background: var(--border);
  border-radius: var(--radius-sm);
  width: 70%;
}

.demo-hero {
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius);
  opacity: 0.8;
}

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

.demo-section {
  height: 30px;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
}

.feature-info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.feature-info p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.feature-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-benefits li {
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

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

.feature-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.feature-item .feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
}

.feature-item h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Templates Section Styles */
.templates-preview {
  padding: var(--space-24) 0;
  background: var(--surface);
}

.templates-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.templates-header h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.templates-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Template Preview Images */
.template-preview-img {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: all 0.3s ease;
}

.preview-placeholder svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.preview-placeholder span {
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.template-card:hover .preview-placeholder svg {
  transform: scale(1.1);
}

.quick-preview-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-lg);
}

.quick-preview-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.quick-preview-btn svg {
  width: 20px;
  height: 20px;
}

/* Popular Badge */
.popular-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

/* Premium Badge */
.premium-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
}

/* Pro Badge Overlay */
.pro-badge-overlay {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Upgrade Modal */
.upgrade-modal-overlay,
.info-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: var(--space-lg);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.upgrade-modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.upgrade-modal-close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
  z-index: 10;
}

.upgrade-modal-close:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: rotate(90deg);
}

.upgrade-modal-content {
  padding: var(--space-xxl);
  text-align: center;
}

.upgrade-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(124, 58, 237, 0);
  }
}

.upgrade-modal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.upgrade-main-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.upgrade-benefits {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.upgrade-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(124, 58, 237, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 58, 237, 0.1);
}

.upgrade-benefit svg {
  color: var(--primary);
  flex-shrink: 0;
}

.upgrade-benefit span {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.upgrade-pricing {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.price-highlight {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 500;
}

.upgrade-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.upgrade-actions .btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.upgrade-cancel {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color 0.3s ease;
}

.upgrade-cancel:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.pro-note {
  color: var(--primary);
  font-weight: 600;
  margin-top: var(--space-md);
}

/* Pro Button Styling */
.btn-pro {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #ec4899 100%);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-pro::before {
  content: '⭐ PRO';
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 0 8px 0 8px;
  z-index: 1;
}

.btn-pro:hover {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 60%, #db2777 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.4);
}

/* Success Notification */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  animation: slideInRight 0.5s ease, slideOutRight 0.5s ease 2.5s;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.success-content {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  font-weight: 600;
}

.success-content svg {
  flex-shrink: 0;
}

.template-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(124, 58, 237, 0.12);
  border-color: rgba(209, 213, 219, 0.9);
}

.template-card:hover::before {
  opacity: 1;
}

.template-card.featured {
  background: rgba(250, 245, 255, 0.95);
  border-color: rgba(209, 213, 219, 0.8);
}

.template-card.featured::before {
  opacity: 0.6;
}

.template-preview {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  border-radius: 14px 14px 0 0;
}

.template-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.template-card:hover .template-preview img {
  transform: scale(1.03);
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(124, 58, 237, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.template-overlay .btn {
  width: 100%;
  max-width: 200px;
  justify-content: center;
  font-weight: 600;
  transition: all 0.2s ease;
}

.template-overlay .btn-primary {
  background: white;
  color: var(--primary);
  border: none;
}

.template-overlay .btn-primary:hover {
  background: #f3f4f6;
  transform: translateY(-2px);
}

.template-overlay .btn-outline {
  background: transparent;
  color: white;
  border: 1px solid white;
}

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

.template-card:hover .template-overlay {
  opacity: 1;
}

/* Template Actions */
.template-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.btn-block {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
  text-decoration: none;
}

.btn-block:hover {
  background: linear-gradient(135deg, #6d28d9, #7c3aed);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.btn-block:active {
  transform: translateY(0);
}

.btn-text-link {
  color: #7c3aed;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  padding: 0.375rem 0;
  text-align: center;
  display: inline-block;
}

.btn-text-link:hover {
  color: #6d28d9;
  text-decoration: underline;
}

.template-info {
  padding: 1.125rem 1.25rem 1rem;
  position: relative;
  background: transparent;
}

.template-badge {
  position: absolute;
  top: -1.75rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
  padding: 0.3rem 0.75rem;
  border-radius: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.template-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.template-info p {
  color: #6b7280;
  line-height: 1.45;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 400;
}

.template-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.template-cta {
  text-align: center;
  margin-top: var(--space-8);
}

.template-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0.75rem;
}

.template-features span {
  background: transparent;
  color: #374151;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Pricing Section Styles */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: var(--space-20);
  align-items: stretch;
}

.pricing-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.98));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 500px;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #a855f7, #ec4899);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 45px rgba(124, 58, 237, 0.2), 0 10px 25px rgba(236, 72, 153, 0.15);
  border-color: rgba(124, 58, 237, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 245, 255, 1));
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card.featured {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2), 0 8px 20px rgba(236, 72, 153, 0.15);
  transform: scale(1.04);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 245, 255, 1));
}

.pricing-card.featured::before {
  opacity: 1;
  height: 5px;
}

.pricing-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: var(--space-2) var(--space-6);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.pricing-header {
  margin-bottom: var(--space-6);
  padding-top: var(--space-4);
}

.pricing-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: var(--space-1);
}

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

.period {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-left: var(--space-1);
}

.pricing-header p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features {
  margin-bottom: var(--space-8);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.check {
  color: var(--success-color, #22c55e);
  font-weight: 600;
  margin-right: var(--space-3);
  font-size: 1.1rem;
}

.cross {
  color: var(--text-muted, #94a3b8);
  margin-right: var(--space-3);
  font-size: 1.1rem;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.faq-item {
  background: var(--surface-elevated);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.faq-item h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

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

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="white" opacity="0.1"><polygon points="0,100 1000,0 1000,100"/></svg>');
  background-size: cover;
}

.cta-content {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-8);
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

  .cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
  }

  .cta-features {
    display: flex;
    gap: var(--space-8);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-6);
  }

  .feature-highlight {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
  }

  .feature-highlight svg {
    flex-shrink: 0;
    opacity: 0.8;
  }

  .btn-large {
    padding: var(--space-5) var(--space-8);
    font-size: 1.1rem;
    font-weight: 600;
  }.cta-buttons .btn-outline {
  background: transparent;
  border-color: white;
  color: white;
}

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

.cta-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--space-2);
  background: linear-gradient(45deg, #000000, #6a00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Pricing Responsive */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
  
  .pricing-card {
    padding: var(--space-6);
    margin: 0;
  }
  
  .pricing-card.featured {
    transform: none;
    margin: 0;
  }

  .pricing-badge {
    font-size: 0.875rem;
    padding: var(--space-2) var(--space-4);
  }

  .pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
  }

  .pricing-header p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .amount {
    font-size: 2.5rem;
  }

  .pricing-features {
    text-align: left;
  }

  .pricing-features li {
    font-size: 0.95rem;
    padding: var(--space-2) 0;
  }

  /* CTA Section Mobile */
  .cta-content h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--space-4);
  }

  .cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    justify-content: center;
    align-items: center;
  }
  
  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline {
    width: 100%;
    max-width: 300px;
  }
  
  .cta-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}

.pricing-badge {
  position: absolute;
  top: -var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-header-card {
  text-align: center;
  margin-bottom: var(--space-8);
}

.pricing-header-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: var(--space-3);
}

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

.amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 var(--space-1);
}

.period {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.pricing-header-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-features {
  margin-bottom: var(--space-8);
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-faq {
  margin-top: var(--space-20);
  text-align: center;
}

.pricing-faq h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-8);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
}

.faq-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-project {
  color: var(--text-secondary);
}

.footer-project a {
  color: var(--primary);
  text-decoration: none;
}

.footer-project a:hover {
  font-weight: 600;
}

/* Contact Page Styles */
.contact-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section {
  padding: var(--space-20) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

/* Contact Form */
.contact-form-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.contact-form-header {
  margin-bottom: var(--space-8);
}

.contact-form-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.contact-form-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all var(--animation-normal);
  background: var(--surface);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: var(--space-3);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.contact-info-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.contact-info-card > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

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

.contact-method {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.contact-details p {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.contact-details span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* FAQ Quick Links */
.contact-faq {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.contact-faq h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

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

.faq-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--animation-normal);
}

.faq-link:hover {
  background: var(--surface);
  color: var(--primary);
  transform: translateX(4px);
}

.faq-link svg {
  flex-shrink: 0;
}

/* Office Hours */
.office-hours-section {
  background: var(--surface-elevated);
  padding: var(--space-20) 0;
}

.office-hours {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.office-hours h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-12);
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.hours-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--animation-normal);
}

.hours-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hours-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item span:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.hours-item span:last-child {
  color: var(--text-secondary);
}

/* Contact Page Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding: 0 var(--space-4);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .form-group {
    margin-bottom: var(--space-4);
  }

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: var(--space-2);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: var(--space-3);
    font-size: 1rem;
    min-height: 44px; /* Touch-friendly */
  }

  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .hours-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .contact-hero {
    text-align: center;
    padding: var(--space-8) var(--space-4);
  }

  .contact-hero h1 {
    font-size: 2.25rem;
    margin-bottom: var(--space-4);
  }

  .contact-hero p {
    font-size: 1.1rem;
    line-height: 1.6;
  }
  
  .contact-form-container,
  .contact-info-card,
  .contact-faq {
    padding: var(--space-6);
    margin: 0;
  }

  .contact-form-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
  }

  .contact-form-header p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
  }

  .contact-item {
    padding: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .contact-item-icon {
    width: 40px;
    height: 40px;
    margin-right: var(--space-3);
  }

  .contact-item-content h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-1);
  }

  .contact-item-content p {
    font-size: 0.95rem;
  }
}

/* Editor Layout Styles */
.editor-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-6);
  min-height: 70vh;
  margin-top: var(--space-8);
}

.editor-sidebar {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.sidebar-section {
  padding: var(--space-6);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  font-size: 1.1rem;
  font-weight: 600;
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

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

.template-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-base);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.template-item:hover {
  border-color: var(--primary-color);
}

.template-item.active {
  border-color: var(--primary-color);
  background: var(--primary-color-alpha);
  color: var(--primary-color);
}

.template-preview {
  width: 40px;
  height: 30px;
  background: var(--surface-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.editor-main {
  background: var(--surface-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-tabs {
  display: flex;
  background: var(--surface-primary);
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  padding: var(--space-3) var(--space-6);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.tab-button:hover {
  color: var(--text-primary);
  background: var(--surface-elevated);
}

.tab-button.active {
  color: var(--primary-color);
  background: var(--surface-elevated);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-pane {
  display: none;
  flex: 1;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

.preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.preview-header {
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-primary);
}

.preview-controls {
  display: flex;
  gap: var(--space-2);
}

.device-btn {
  padding: var(--space-2);
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-base);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.preview-frame {
  flex: 1;
  border: none;
  background: white;
  transition: all 0.3s ease;
}

.preview-frame.desktop {
  width: 100%;
  min-height: 500px;
}

.preview-frame.tablet {
  width: 768px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 500px;
}

.preview-frame.mobile {
  width: 375px;
  max-width: 100%;
  margin: 0 auto;
  min-height: 500px;
}

#code-editor {
  flex: 1;
  min-height: 500px;
  padding: var(--space-4);
  background: var(--surface-primary);
  border: none;
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.editor-controls {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* Editor Responsive */
@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
  
  .editor-sidebar {
    order: 2;
  }
  
  .editor-main {
    order: 1;
  }
}

@media (max-width: 768px) {
  .editor-controls {
    flex-direction: column;
  }
  
  .preview-frame.tablet,
  .preview-frame.mobile {
    width: 100%;
  }
  
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   Templates Page Styles
   ======================================== */

.templates-header {
  text-align: center;
  padding: 60px 0;
}

.templates-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Pro Templates Promo Section */
.pro-templates-promo {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.promo-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

.promo-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.promo-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.promo-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

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

.promo-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.promo-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.promo-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.promo-actions .btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.templates-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-tab {
  padding: 12px 24px;
  border: none;
  background: none;
  border-radius: 8px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: #7c3aed;
}

.filter-tab.active {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 60%, #ec4899 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.filter-actions {
  display: flex;
  gap: 12px;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  align-items: stretch;
  padding: 0;
  margin: 0 auto;
  margin-bottom: var(--space-12);
  max-width: 1400px;
}

/* Ensure template cards have consistent spacing */
.templates-section {
  padding: 0 20px;
}

.templates-section .container {
  max-width: 1400px;
  margin: 0 auto;
}

.template-card {
  /* Glass + gradient border */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(236, 72, 153, 0.35)) border-box;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.12);
  border: 1px solid transparent;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 420px;
  width: 100%;
  position: relative;
  backdrop-filter: blur(10px);
}

.template-card:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(236, 72, 153, 0.6)) border-box;
  box-shadow: 0 25px 50px rgba(124, 58, 237, 0.25);
  transform: translateY(-10px) scale(1.01);
}

.template-card:focus-within {
  outline: none;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.8), rgba(236, 72, 153, 0.8)) border-box;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.template-card.coming-soon {
  opacity: 0.7;
}

.template-preview {
  height: 220px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.template-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(124,58,237,0.05) 0, rgba(124,58,237,0.05) 10px, transparent 10px, transparent 20px);
  pointer-events: none;
}

/* Top accent rail */
.template-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  opacity: 0.9;
  z-index: 1;
}

/* Template Hero Design */
.template-hero {
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.1) 0%, 
    rgba(147, 51, 234, 0.15) 50%, 
    rgba(236, 72, 153, 0.1) 100%);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.template-hero .template-icon {
  position: relative;
  z-index: 2;
  color: var(--primary-color);
  opacity: 0.9;
  transition: all 0.3s ease;
}

.template-hero .template-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(139, 69, 19, 0.05) 0%, 
    rgba(147, 51, 234, 0.08) 30%, 
    rgba(236, 72, 153, 0.05) 70%, 
    rgba(59, 130, 246, 0.08) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.template-card:hover .template-hero .template-icon {
  transform: scale(1.1);
  color: var(--accent-color);
}

.template-card:hover .template-hero .template-gradient {
  opacity: 1;
}

.template-card:hover .template-hero {
  background: linear-gradient(135deg, 
    rgba(139, 69, 19, 0.15) 0%, 
    rgba(147, 51, 234, 0.2) 50%, 
    rgba(236, 72, 153, 0.15) 100%);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-mockup .profile-avatar {
  width: 40px;
  height: 40px;
  background: #7c3aed;
  border-radius: 50%;
}

.profile-mockup .profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-mockup .profile-name {
  height: 14px;
  background: #1e293b;
  border-radius: 3px;
  width: 120px;
}

.profile-mockup .profile-role {
  height: 10px;
  background: #64748b;
  border-radius: 3px;
  width: 80px;
}

.profile-mockup .profile-rating {
  display: flex;
  gap: 2px;
  margin-top: 4px;
}

.profile-mockup .star {
  width: 12px;
  height: 12px;
  background: #fbbf24;
  border-radius: 2px;
}

.profile-mockup .mockup-stats {
  height: 50px;
  display: flex;
  padding: 16px;
  gap: 16px;
}

.profile-mockup .profile-stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-mockup .stat-number {
  height: 16px;
  background: #7c3aed;
  border-radius: 3px;
}

.profile-mockup .stat-label {
  height: 10px;
  background: #64748b;
  border-radius: 3px;
}

.profile-mockup .mockup-chart {
  margin: 16px;
  height: calc(100% - 110px - 32px);
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Tracker Mockup */
.tracker-mockup .mockup-header {
  height: 40px;
  background: white;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.tracker-mockup .mockup-logo {
  width: 24px;
  height: 24px;
  background: #7c3aed;
  border-radius: 4px;
}

.tracker-mockup .tracker-controls {
  display: flex;
  gap: 6px;
}

.tracker-mockup .control-btn {
  width: 20px;
  height: 20px;
  background: #e2e8f0;
  border-radius: 4px;
}

.tracker-mockup .mockup-map {
  height: 80px;
  background: #f0f9ff;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tracker-mockup .map-container {
  position: relative;
  width: 80%;
  height: 80%;
}

.tracker-mockup .map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid white;
}

.tracker-mockup .map-pin:nth-child(1) {
  top: 20%;
  left: 30%;
}

.tracker-mockup .map-pin:nth-child(2) {
  top: 60%;
  left: 60%;
}

.tracker-mockup .map-pin:nth-child(3) {
  top: 40%;
  left: 80%;
}

.tracker-mockup .vehicle-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: calc(100% - 120px);
}

.tracker-mockup .vehicle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 6px;
}

.tracker-mockup .vehicle-icon {
  width: 24px;
  height: 16px;
  background: #7c3aed;
  border-radius: 3px;
}

.tracker-mockup .vehicle-info {
  flex: 1;
  height: 12px;
  background: #e2e8f0;
  border-radius: 3px;
}

.tracker-mockup .vehicle-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tracker-mockup .vehicle-status.online {
  background: #10b981;
}

.tracker-mockup .vehicle-status.moving {
  background: #f59e0b;
}

/* Coming Soon Content */
.coming-soon-content {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.coming-soon-icon {
  color: #7c3aed;
  margin-bottom: 16px;
  opacity: 0.6;
}

.coming-soon-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.coming-soon-content p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.template-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.template-badge.popular {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
}

.template-badge.new {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.template-info {
  padding: 28px 32px;
}

.template-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 16px;
}

.template-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.template-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.template-description {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.875rem;
  min-height: 50px; /* increased to ensure consistent space for longer descriptions */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.template-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  min-height: 60px; /* ensure consistent height for feature tags */
  align-content: flex-start;
  min-height: 48px; /* reserve space for 2-3 chips to align actions */
}

.feature-tag {
  font-size: 0.75rem;
  color: #6d28d9; /* darker purple text for contrast */
  background: rgba(124, 58, 237, 0.1);
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.template-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 8px;
}

.template-select-btn {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border: none;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.template-select-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
}

.template-select-btn:active {
  transform: translateY(-1px);
}

.template-select-btn .btn-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 22px;
  color: white;
  position: relative;
  z-index: 2;
}

.template-select-btn .btn-content svg {
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.template-select-btn .btn-text {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.025em;
}

.template-select-btn .btn-subtext {
  font-size: 0.8125rem;
  opacity: 0.9;
  font-weight: 600;
}

.template-secondary-actions {
  display: flex;
  gap: 12px;
}

.template-preview-btn,
.template-info-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
}

.template-preview-btn:focus-visible,
.template-info-btn:focus-visible,
.template-select-btn:focus-visible,
.filter-tab:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.6);
  outline-offset: 2px;
}

.template-preview-btn:hover,
.template-info-btn:hover {
  border-color: #7c3aed;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

.template-preview-btn svg,
.template-info-btn svg {
  flex-shrink: 0;
}

/* Enhanced hover effects for template cards (unified with gradient border) */
.template-card {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.25)) border-box;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
  border: 1px solid transparent;
  transition: all 0.4s ease;
  position: relative;
}

.template-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.template-card:hover {
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, rgba(124, 58, 237, 0.6), rgba(236, 72, 153, 0.6)) border-box;
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-6px);
}

.template-card:hover::before {
  opacity: 1;
}

.template-card:hover .template-select-btn {
  box-shadow: 0 8px 25px 0 rgba(124, 58, 237, 0.5);
}

.template-info {
  padding: 32px;
  position: relative;
  z-index: 2;
  background: white;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* Larger screens: make primary button layout horizontal */
@media (min-width: 640px) {
  .template-select-btn .btn-content {
    flex-direction: row;
    justify-content: center;
  }
  .template-select-btn .btn-subtext {
    margin-left: 6px;
  }
}

.cta-section {
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  border-radius: 24px;
  padding: 48px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.cta-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 32px;
}

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

.cta-buttons .btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
}

.cta-buttons .btn-primary {
  background: white;
  color: #7c3aed;
  border-color: white;
}

.cta-buttons .btn-primary:hover {
  background: #f8fafc;
  border-color: #f8fafc;
}

.cta-buttons .btn-outline {
  border-color: white;
  color: white;
}

.cta-buttons .btn-outline:hover {
  background: white;
  color: #7c3aed;
}

.cta-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-stats .stat {
  text-align: center;
}

.cta-stats .stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-stats .stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Notification Styles */
.notification {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  top: auto !important;
  padding: 1rem 1.5rem !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  z-index: 100000 !important;
  animation: slideInRight 0.3s ease !important;
  min-width: 280px !important;
  max-width: 400px !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  transition: opacity 0.3s ease !important;
}

.notification.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: white !important;
  border: none !important;
}

.notification.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: white !important;
  border: none !important;
}

.notification.info {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: white !important;
  border: none !important;
}

.notification.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: white !important;
  border: none !important;
}

.notification-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: inherit;
}

.notification-content svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.notification-content span {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Preview Modal Styles */
.preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100001;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.preview-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.preview-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  width: 95vw;
  max-width: 1400px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

.preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  border-radius: 16px 16px 0 0;
}

.preview-modal-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.preview-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.preview-modal-body {
  flex: 1;
  overflow: hidden;
  background: #f9fafb;
}

.preview-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.preview-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  background: white;
  border-radius: 0 0 16px 16px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Template Modal Styles */
.template-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.template-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 90vw;
  max-height: 90vh;
  width: 600px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.template-modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  color: white;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 24px;
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

.template-modal .preview-container {
  width: 100%;
  height: 400px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #64748b;
}

.template-modal .template-preview-frame {
  width: 100%;
  height: 100%;
  border: none;
}

.preview-actions,
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.template-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
}

.detail-section p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  padding: 8px 0;
}

.feature-list li::before {
  content: '✓';
  color: #059669;
  font-weight: bold;
  font-size: 1rem;
}

.tech-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.spec-label {
  font-weight: 500;
  color: #374151;
}

.spec-value {
  color: #64748b;
  font-weight: 400;
}

/* Loading Spinner Animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

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

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Templates Page Responsive Design */
@media (max-width: 1200px) {
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
  }
  
  .template-card {
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .templates-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 0 16px;
  }
  
  .filter-tabs {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-tab {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .filter-actions {
    justify-content: center;
  }
  
  .templates-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    padding: 0 16px;
    margin-bottom: var(--space-8);
    justify-items: center;
  }
  
  .template-card {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .template-preview {
    height: 160px;
  }

  .template-info {
    padding: 1rem 1.125rem 0.875rem;
  }

  .template-info h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.3rem;
  }

  .template-info p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .template-features {
    gap: 0;
    margin-bottom: 0.625rem;
  }

  .template-features span {
    font-size: 0.8rem;
  }

  .template-actions {
    gap: 0.4rem;
  }

  .btn-block {
    padding: 0.5625rem 1rem;
    font-size: 0.8125rem;
  }
  
  .btn-text-link {
    font-size: 0.8rem;
    padding: 0.3rem 0;
  }
  
  .preview-modal-content {
    width: 98vw;
    height: 95vh;
    border-radius: 8px;
  }
  
  .preview-modal-header {
    padding: 1rem;
    border-radius: 8px 8px 0 0;
  }
  
  .preview-modal-title {
    font-size: 1rem;
  }
  
  .preview-modal-footer {
    padding: 1rem;
    flex-direction: column-reverse;
    gap: 0.75rem;
  }
  
  .preview-modal-footer .btn {
    width: 100%;
  }
  
  .template-secondary-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .template-preview-btn,
  .template-info-btn {
    flex: none;
  }
  
  .cta-section {
    padding: var(--space-16) var(--space-4);
    text-align: center;
  }

  .cta-content {
    max-width: 100%;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--space-6);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    justify-content: center;
    font-size: 1rem;
    padding: var(--space-4) var(--space-6);
  }
  
  .cta-stats {
    gap: 24px;
  }
  
  .cta-stats .stat-number {
    font-size: 2rem;
  }
  
  .notification {
    right: 16px !important;
    left: 16px !important;
    bottom: 16px !important;
    top: auto !important;
    min-width: auto !important;
    max-width: calc(100vw - 32px) !important;
  }
  
  .modal-content {
    width: 95vw;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px;
  }
  
  .modal-body {
    padding: 20px;
    max-height: calc(95vh - 120px);
  }
  
  .preview-container {
    height: 250px;
  }
  
  .preview-actions,
  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .feature-list {
    grid-template-columns: 1fr;
  }
  
  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }

  /* Hero Section for Small Mobile */
  .hero-section {
    padding: var(--space-12) 0;
  }

  .hero-container {
    gap: var(--space-6);
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: var(--space-2) var(--space-3);
    margin-bottom: var(--space-3);
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.2;
    margin-bottom: var(--space-3);
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--space-5);
    max-width: 95%;
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero-actions .btn {
    width: 100%;
    max-width: none;
    padding: var(--space-3) var(--space-5);
    font-size: 0.95rem;
    min-height: 44px;
  }

  .hero-stats {
    margin-top: var(--space-6);
    gap: var(--space-3);
    flex-direction: column;
  }

  .hero-stat-number {
    font-size: 1.75rem;
  }

  .hero-stat-label {
    font-size: 0.8rem;
  }

  .hero-mockup {
    transform: scale(0.75);
    max-width: 95%;
  }

  .mockup-screen {
    min-height: 220px !important;
  }

  /* Quick Links for Small Mobile */
  .quick-links-grid {
    gap: var(--space-4);
    padding: 0 var(--space-2);
  }

  .quick-link-card {
    padding: var(--space-5);
  }

  .quick-link-icon {
    width: 45px;
    height: 45px;
  }

  .quick-link-title {
    font-size: 1rem;
  }

  .quick-link-description {
    font-size: 0.85rem;
  }

  /* CTA Section for Small Mobile */
  .cta-section {
    padding: var(--space-12) var(--space-2);
  }

  .cta-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-3);
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: var(--space-5);
  }

  .cta-actions {
    gap: var(--space-3);
  }

  .cta-actions .btn {
    padding: var(--space-3) var(--space-4);
    font-size: 0.9rem;
  }

  /* Page Header Improvements */
  .page-header {
    text-align: center;
    margin-bottom: var(--space-8);
    padding: 0 var(--space-2);
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: var(--space-3);
  }

  .page-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .templates-filters {
    padding: 0 8px;
    margin-bottom: var(--space-6);
  }

  .filter-tabs {
    gap: 6px;
  }

  .filter-tab {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 16px;
    min-height: 36px; /* Touch-friendly size */
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .templates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px;
    margin-bottom: var(--space-8);
  }
  
  .template-card {
    border-radius: 16px;
    height: 400px;
    min-height: 400px;
    max-height: 400px;
    margin: 0;
  }
  
  .template-preview {
    height: 180px;
    border-radius: 12px 12px 0 0;
  }
  
  .template-info {
    padding: 18px;
  }

  .template-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
  }

  .template-description {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 14px;
    min-height: 45px;
  }

  .template-features {
    gap: 6px;
    margin-bottom: 14px;
    min-height: 65px;
    flex-wrap: wrap;
  }

  .feature-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
  }

  .template-actions {
    gap: 10px;
    flex-direction: column;
  }

  .btn-preview,
  .btn-use {
    padding: 10px 16px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    min-height: 44px; /* Touch-friendly minimum size */
    touch-action: manipulation;
  }

  /* Mobile navigation improvements */
  .nav-container {
    padding: var(--space-2) var(--space-3);
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .nav-links {
    padding: var(--space-6) var(--space-4);
    gap: var(--space-5);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: var(--space-4) var(--space-5);
    border-radius: 12px;
  }

  /* Features Page for Small Mobile */
  .features-header {
    padding: 0 var(--space-2);
    margin-bottom: var(--space-6);
  }

  .features-subtitle {
    font-size: 1rem;
    max-width: 95%;
  }

  .feature-demo {
    margin-bottom: var(--space-4);
  }

  .feature-info h3 {
    font-size: 1.25rem;
  }

  .feature-info p {
    font-size: 0.95rem;
  }

  /* Pricing Page for Small Mobile */
  .pricing-grid {
    padding: 0 var(--space-2);
    gap: var(--space-4);
  }

  .pricing-card {
    padding: var(--space-5);
  }

  .pricing-header h3 {
    font-size: 1.25rem;
  }

  .amount {
    font-size: 2.25rem;
  }

  .pricing-features li {
    font-size: 0.9rem;
  }

  /* Contact Page for Small Mobile */
  .contact-grid {
    padding: 0 var(--space-2);
    gap: var(--space-6);
  }

  .contact-hero {
    padding: var(--space-6) var(--space-2);
  }

  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-form-container,
  .contact-info-card,
  .contact-faq {
    padding: var(--space-5);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: var(--space-2) var(--space-3);
    font-size: 0.95rem;
  }

  /* About Page for Small Mobile */
  .about-section {
    padding: var(--space-8) 0;
  }

  .about-content {
    text-align: center;
    padding: 0 var(--space-2);
  }

  .about-content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-4);
  }

  .about-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* What We Do Section Mobile */
  .what-we-do-content {
    gap: var(--space-xl);
  }

  .lead-text {
    font-size: 1rem;
    padding: 0 var(--space-2);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card {
    padding: var(--space-lg);
  }

  .service-icon {
    width: 56px;
    height: 56px;
  }

  .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.9rem;
  }

  .wwd-audience {
    padding: var(--space-lg);
  }

  .wwd-audience h3 {
    font-size: 1.5rem;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .audience-icon {
    font-size: 2.5rem;
  }

  .audience-item h4 {
    font-size: 1.1rem;
  }

  .wwd-cta {
    padding: var(--space-lg);
  }

  .wwd-cta h3 {
    font-size: 1.5rem;
  }

  .wwd-cta p {
    font-size: 1rem;
  }

  .wwd-cta .cta-buttons {
    flex-direction: column;
    gap: var(--space-md);
  }

  .wwd-cta .btn {
    width: 100%;
  }

  /* General improvements for all pages */
  .section {
    padding: var(--space-12) 0;
  }

  .btn {
    min-height: 44px;
    font-size: 0.95rem;
    padding: var(--space-3) var(--space-4);
  }

  .btn-primary,
  .btn-secondary {
    border-radius: var(--radius-lg);
  }
}
  
  .template-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .template-title {
    font-size: 1.25rem;
  }
  
  .template-badge {
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    font-size: 0.625rem;
  }
  
  .template-select-btn .btn-content {
    padding: 14px 18px;
  }
  
  .template-select-btn .btn-text {
    font-size: 0.875rem;
  }
  
  .template-select-btn .btn-subtext {
    font-size: 0.75rem;
  }

/* Global Mobile Enhancements */
@media (max-width: 768px) {
  /* Touch-friendly interactive elements */
  button, .btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Improved form elements */
  input, select, textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
  }

  /* Better text readability */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    word-wrap: break-word;
  }

  p, li {
    line-height: 1.6;
    word-wrap: break-word;
  }

  /* Improved spacing for all sections */
  .section {
    padding: var(--space-16) 0;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Better card layouts */
  .card, .feature-card, .pricing-card, .template-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
  }

  /* Improved grid layouts */
  .grid, .features-grid, .templates-grid, .pricing-grid {
    gap: var(--space-6);
  }
}
@media (max-width: 320px) {
  .nav-container {
    padding: var(--space-2);
  }

  .nav-logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .templates-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 12px;
    justify-items: center;
  }

  .template-card {
    height: 380px;
    min-height: 380px;
    max-height: 380px;
    max-width: 100%;
    width: 100%;
  }

  .template-info {
    padding: 16px;
  }

  .template-actions {
    gap: 8px;
  }

  .btn-preview,
  .btn-use {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Simple Footer */
.simple-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: auto;
  padding: var(--space-12) 0 var(--space-6);
}

.simple-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.simple-footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-12);
  align-items: start;
  margin-bottom: var(--space-8);
}

.simple-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.simple-footer-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-end;
}

.simple-footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.simple-footer-logo svg {
  color: var(--primary);
}

.simple-footer-tagline {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

.simple-footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-start;
}

.simple-footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  border: 1px solid transparent;
}

.simple-footer-nav a:hover {
  color: var(--primary);
  background: var(--surface-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.simple-footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 1px;
}

.simple-footer-nav a:hover::after {
  width: 80%;
}

.simple-footer-social {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-start;
}

.simple-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--surface-hover);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.simple-footer-social a:hover {
  background: var(--primary);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.simple-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  gap: var(--space-4);
}

.simple-footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Simple Footer Mobile Responsive */
@media (max-width: 768px) {
  .simple-footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }

  .simple-footer-right {
    align-items: center;
  }

  .simple-footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
  }

  .simple-footer-nav a {
    padding: var(--space-2) var(--space-4);
    background: var(--surface-hover);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9rem;
  }

  .simple-footer-nav a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .simple-footer-nav a::after {
    display: none;
  }

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

  .simple-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-2);
  }
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   Mobile-First Approach with all screen sizes
   ========================================== */

/* Extra Large Screens and Desktop */
@media (min-width: 1200px) {
  .nav-container {
    padding: var(--space-4) var(--space-6);
    gap: var(--space-8);
  }

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

  .logo-icon {
    width: 45px;
    height: 45px;
  }

  .nav-links {
    position: static;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    width: auto;
    height: auto;
    gap: var(--space-6);
    padding: 0;
    box-shadow: none;
    z-index: auto;
    overflow: visible;
  }

  .nav-link {
    font-size: 1rem;
    padding: var(--space-3) var(--space-4);
    background: transparent;
    border: none;
    min-height: auto;
    min-width: auto;
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  .mobile-menu-toggle {
    display: none;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
    text-align: left;
  }

  .hero-content {
    order: 1;
    text-align: left;
  }

  .hero-visual {
    order: 2;
  }

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

  .hero-description {
    font-size: 1.25rem;
    max-width: 500px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    max-width: none;
  }

  .quick-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-mockup {
    max-width: 400px;
  }

  .preview-mockup {
    max-width: 400px;
  }
}

/* Large Screens */
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-container {
    padding: var(--space-4) var(--space-5);
    gap: var(--space-6);
  }

  .nav-links {
    position: static;
    background: transparent;
    backdrop-filter: none;
    flex-direction: row;
    width: auto;
    height: auto;
    gap: var(--space-4);
    padding: 0;
    box-shadow: none;
    z-index: auto;
    overflow: visible;
  }

  .nav-link {
    font-size: 0.95rem;
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: none;
    min-height: auto;
    min-width: auto;
    margin-bottom: 0;
    border-radius: var(--radius-md);
  }

  .mobile-menu-toggle {
    display: none;
  }

  .hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    text-align: left;
  }

  .hero-content {
    order: 1;
    text-align: left;
  }

  .hero-visual {
    order: 2;
  }

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

  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: auto;
    max-width: none;
  }

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

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

  .editor-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* Medium Screens - Tablets */
@media (min-width: 769px) and (max-width: 1023px) {
  .nav-container {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4);
  }

  .nav-links {
    gap: var(--space-3);
  }

  .nav-link {
    font-size: 0.9rem;
    padding: var(--space-2);
  }

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

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

  .quick-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .container {
    padding: 0 var(--space-5);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .hero-section {
    padding: var(--space-20) 0;
  }

  .editor-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .editor-sidebar {
    position: static;
  }

  .editor-header {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .editor-header h2 {
    margin-left: 0;
  }

  .editor-controls {
    margin-right: 0;
  }
}

/* Small Tablets and Large Phones */
@media (max-width: 768px) {
  /* Enhanced touch targets and spacing */
  button, .btn, input[type="submit"], input[type="button"], .nav-link {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Improved form elements */
  input, select, textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
    border-radius: var(--radius-md);
  }

  /* Better text readability */
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    word-wrap: break-word;
    hyphens: auto;
  }

  p, li {
    line-height: 1.6;
    word-wrap: break-word;
  }

  /* Navigation improvements */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .nav-container {
    padding: var(--space-3) var(--space-4);
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  /* Hero section mobile optimization */
  .hero-section {
    padding: var(--space-16) 0;
    min-height: 70vh;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 1.125rem;
    line-height: 1.5;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: var(--space-2) var(--space-3);
  }

  /* Quick links mobile */
  .quick-links-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .quick-link-card {
    padding: var(--space-6);
    text-align: center;
  }

  .quick-link-icon {
    width: 50px;
    height: 50px;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .feature-card {
    padding: var(--space-6);
  }

  /* Editor mobile */
  .editor-layout {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .editor-sidebar {
    position: static;
    order: 2;
  }

  .editor-main {
    order: 1;
  }

  .editor-header {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .editor-header h2 {
    margin-left: 0;
    font-size: 1.75rem;
  }

  .editor-controls {
    margin-right: 0;
    justify-content: center;
  }

  /* General improvements */
  .section {
    padding: var(--space-12) 0;
  }

  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  /* Card layouts */
  .card, .feature-card, .pricing-card, .template-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
  }

  /* Grid layouts */
  .grid, .features-grid, .templates-grid, .pricing-grid {
    gap: var(--space-4);
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  /* Root font size adjustment */
  html {
    font-size: 14px;
  }

  /* Navigation mobile */
  .nav-container {
    padding: var(--space-2) var(--space-3);
  }

  .nav-logo {
    font-size: 1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Hero mobile phone */
  .hero-section {
    padding: var(--space-12) 0;
    min-height: 60vh;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: var(--space-3);
  }

  .hero-stats {
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .stat-item {
    min-width: 70px;
  }

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

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

  /* Buttons mobile phone */
  .btn-primary,
  .btn-secondary {
    padding: var(--space-3) var(--space-5);
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
  }

  /* Quick links mobile phone */
  .quick-link-card {
    padding: var(--space-5);
  }

  .quick-link-icon {
    width: 45px;
    height: 45px;
  }

  .quick-link-card h3 {
    font-size: 1.125rem;
  }

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

  /* Features mobile phone */
  .feature-card {
    padding: var(--space-5);
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

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

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

  /* General mobile phone improvements */
  .section {
    padding: var(--space-10) 0;
  }

  .container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  /* Form improvements */
  .form-group {
    margin-bottom: var(--space-3);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: var(--space-3);
    font-size: 16px;
  }

  /* Typography improvements */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.125rem; }
  h6 { font-size: 1rem; }
}

/* Small Mobile Phones */
@media (max-width: 360px) {
  /* Ultra-compact navigation */
  .nav-container {
    padding: var(--space-2);
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .logo-icon {
    width: 30px;
    height: 30px;
  }

  /* Ultra-compact hero */
  .hero-section {
    padding: var(--space-10) 0;
  }

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

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

  .hero-badge {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
  }

  /* Ultra-compact buttons */
  .btn-primary,
  .btn-secondary {
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem;
  }

  /* Ultra-compact cards */
  .quick-link-card,
  .feature-card {
    padding: var(--space-4);
  }

  .quick-link-icon,
  .feature-icon {
    width: 36px;
    height: 36px;
  }

  /* Ultra-compact sections */
  .section {
    padding: var(--space-8) 0;
  }

  .container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }

  /* Typography for small screens */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: 0.95rem; }

  /* Stats adjustment */
  .hero-stats {
    gap: var(--space-2);
  }

  .stat-item {
    min-width: 60px;
  }

  .stat-number {
    font-size: 1.125rem;
  }

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

/* Very Small Mobile Phones */
@media (max-width: 320px) {
  /* Minimal spacing for very small screens */
  .nav-container {
    padding: var(--space-1) var(--space-2);
  }

  .hero-section {
    padding: var(--space-8) 0;
  }

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

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

  .section {
    padding: var(--space-6) 0;
  }

  .container {
    padding-left: var(--space-1);
    padding-right: var(--space-1);
  }

  /* Minimal cards */
  .quick-link-card,
  .feature-card {
    padding: var(--space-3);
  }

  /* Minimal buttons */
  .btn-primary,
  .btn-secondary {
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
  }

  /* Typography for very small screens */
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.125rem; }
  h4 { font-size: 1rem; }
  h5 { font-size: 0.95rem; }
  h6 { font-size: 0.9rem; }
}

/* High-DPI and Retina Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize for high-DPI screens */
  .logo-icon,
  .quick-link-icon,
  .feature-icon {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  /* Enhance text rendering */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .mobile-menu-toggle,
  .hero-actions,
  .btn,
  button {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .section {
    padding: 1rem 0;
  }

  h1, h2, h3, h4, h5, h6 {
    color: black !important;
    page-break-after: avoid;
  }

  p, li {
    orphans: 3;
    widows: 3;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-fade-in-up,
  .animate-fade-in-left,
  .animate-fade-in-right,
  .animate-pulse,
  .animate-float {
    animation: none;
  }
}

/* Focus Visible for Better Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus-visible,
  .btn:focus-visible,
  button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
  }
}

/* Dark Mode Support (Optional - can be expanded) */
@media (prefers-color-scheme: dark) {
  /* This can be expanded based on user requirements */
  .navbar {
    background: rgba(255, 255, 255, 0);
  }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    min-height: 50vh;
    padding: var(--space-8) 0;
  }

  .nav-links {
    justify-content: flex-start;
    padding: var(--space-4);
  }

  .nav-link {
    padding: var(--space-2) var(--space-4);
    font-size: 1rem;
    margin-bottom: var(--space-2);
  }
}

/* Safe Area Insets for devices with notches */
@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }

  .nav-container {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }

  .container {
    padding-left: max(var(--space-4), env(safe-area-inset-left));
    padding-right: max(var(--space-4), env(safe-area-inset-right));
  }
}

/* Pro Template Badge Styles */
.pro-badge-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

.pro-badge-corner span {
  display: block;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.template-card:hover .pro-badge-corner {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.template-card {
  position: relative;
  overflow: hidden;
}

/* Pro Badge for categories */
.pro-badge {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* Pro feature tags */
.feature-tag.pro {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-weight: 600;
}

.feature-tag.pro:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-1px);
}

/* Pro template buttons */
.btn-pro {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-pro::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-pro:hover::before {
  left: 100%;
}

.btn-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Pro template grid adjustments */
.pro-template {
  border: 1px solid rgba(124, 58, 237, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
}

.pro-template:hover {
  border-color: rgba(124, 58, 237, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(252, 250, 255, 1));
}

/* Ultimate Elite Template Special Styling */
.template-card.featured {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 237, 78, 0.03));
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.15);
  overflow: hidden;
}

.template-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
  animation: ultimate-shine 4s infinite;
  z-index: 1;
}

.template-card.featured:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.08), rgba(255, 237, 78, 0.05));
}

.template-card.featured .template-info {
  position: relative;
  z-index: 2;
}

.template-card.featured .template-title {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.3rem;
}

.template-card.featured .template-description {
  color: #4a5568;
  font-weight: 500;
  line-height: 1.6;
}

@keyframes ultimate-shine {
  0% { left: -100%; }
  50% { left: -100%; }
  100% { left: 100%; }
}

/* Ultimate badge special animation */
.template-card.featured .pro-badge-corner {
  animation: ultimate-pulse 2s infinite;
}

@keyframes ultimate-pulse {
  0%, 100% { 
    transform: translateY(-2px) scale(1);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
  }
  50% { 
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
  }
}

/* Ultimate button special styling */
.template-card.featured .template-select-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.6);
}

/* Featured template grid priority */
.template-card.featured {
  order: -1; /* Ensures it appears first */
}

/* Elite Template Styling */
.elite-template {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  border: 2px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
  backdrop-filter: blur(10px);
}

.elite-template:hover {
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.25);
  transform: translateY(-8px);
}

.elite-corner {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #fbbf24;
  font-weight: 800;
  border: 1px solid #fbbf24;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.futuristic-corner {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.elite-badge {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #fbbf24;
  border: 1px solid #fbbf24;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.futuristic-badge {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.feature-tag.elite {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(251, 191, 36, 0.3);
}

.feature-tag.futuristic {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
}

.btn-elite {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  border: 2px solid #fbbf24;
  color: #fbbf24;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-elite::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-elite:hover::before {
  left: 100%;
}

.btn-elite:hover {
  background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
  transform: translateY(-2px);
  color: #fde047;
}

.btn-futuristic {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-futuristic::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-futuristic:hover::before {
  left: 100%;
}

.btn-futuristic:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Elite template animations */
@keyframes elite-glow {
  0%, 100% { 
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
  }
  50% { 
    box-shadow: 0 16px 48px rgba(124, 58, 237, 0.25);
  }
}

.elite-template {
  animation: elite-glow 3s ease-in-out infinite;
}

.elite-template:nth-child(2) {
  animation-delay: 0.5s;
}

.elite-template:nth-child(3) {
  animation-delay: 1s;
}

/* Missing Animation Keyframes - Fix for mobile menu */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Ripple animation effect for buttons */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Mobile Responsive Styles for Templates Page */
@media (max-width: 768px) {
  .upgrade-modal {
    margin: var(--space-md);
    max-height: calc(100vh - 2rem);
  }

  .upgrade-modal-content {
    padding: var(--space-xl);
  }

  .upgrade-modal-content h2 {
    font-size: 1.5rem;
  }

  .upgrade-main-text {
    font-size: 1rem;
  }

  .upgrade-icon {
    width: 64px;
    height: 64px;
  }

  .upgrade-icon svg {
    width: 48px;
    height: 48px;
  }

  .price-amount {
    font-size: 2.5rem;
  }

  .upgrade-actions .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

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

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

  .promo-stats {
    gap: 1.5rem;
  }

  .promo-stat-number {
    font-size: 1.25rem;
  }

  .promo-actions {
    flex-direction: column;
    width: 100%;
  }

  .promo-actions .btn {
    width: 100%;
    max-width: 300px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .template-preview-img {
    height: 160px;
  }

  .preview-placeholder svg {
    width: 48px;
    height: 48px;
  }

  .preview-placeholder span {
    font-size: 0.95rem;
  }

  .quick-preview-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
  }

  .popular-badge,
  .premium-badge {
    font-size: 0.75rem;
    padding: 6px var(--space-sm);
  }
  
  .filter-tabs {
    width: 100%;
    justify-content: center;
  }
  
  .filter-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .promo-badge {
    font-size: 0.8rem;
    padding: 6px 16px;
  }

  .promo-title {
    font-size: 1.25rem;
  }

  .promo-description {
    font-size: 0.9rem;
  }

  .promo-stats {
    gap: 1rem;
    flex-direction: column;
  }

  .promo-stat-number {
    font-size: 1.125rem;
  }

  .promo-stat-label {
    font-size: 0.8rem;
  }

  .template-preview-img {
    height: 140px;
  }

  .preview-placeholder svg {
    width: 40px;
    height: 40px;
  }
  
  .filter-tabs {
    padding: 6px;
    gap: 6px;
  }
  
  .filter-tab {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* Enhanced focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Fix for floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Performance optimization - will-change for animated elements */
.fade-in-up, .fade-in-right, .slide-in-left, .slide-in-right, .floating, .elite-template {
  will-change: transform, opacity;
}

/* Optimize font loading - Using Google Fonts with font-display: swap */
/* This is handled by the Google Fonts link in HTML with &display=swap parameter */

/* Preload critical assets */
.hero-mockup, .template-card, .feature-card {
  content-visibility: auto;
  contain-intrinsic-size: 400px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating {
    animation: none;
  }
}

/* ===========================================
   Empty Templates Grid State
   =========================================== */

.empty-templates-state {
  grid-column: 1 / -1;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(236, 72, 153, 0.03));
  border-radius: var(--radius-xl);
  border: 2px dashed rgba(124, 58, 237, 0.2);
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.empty-templates-state::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(124, 58, 237, 0.08), 
    transparent
  );
  animation: shimmer 3s infinite;
}

.empty-state-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  z-index: 1;
  position: relative;
}

.empty-state-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  z-index: 1;
  position: relative;
}

.empty-state-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  z-index: 1;
  position: relative;
}

.empty-state-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
  position: relative;
}

.empty-state-actions .btn {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--animation-normal);
}

.empty-state-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Alternative: When no templates match filter */
.templates-grid.no-results {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.02);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  gap: 1rem;
}

.templates-grid.no-results::before {
  content: '🔍';
  font-size: 4rem;
  opacity: 0.3;
}

.templates-grid.no-results::after {
  content: 'No templates found. Try a different filter.';
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Loading state for templates grid */
.templates-grid.loading {
  min-height: 600px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.templates-grid.loading::before,
.templates-grid.loading::after {
  content: '';
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.05) 0%,
    rgba(124, 58, 237, 0.1) 50%,
    rgba(124, 58, 237, 0.05) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: var(--radius-xl);
  min-height: 450px;
}

/* Skeleton cards for loading state */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.template-skeleton {
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.05) 25%,
    rgba(124, 58, 237, 0.1) 50%,
    rgba(124, 58, 237, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 2s infinite;
  border-radius: var(--radius-xl);
  min-height: 450px;
  border: 1px solid rgba(124, 58, 237, 0.1);
}

/* Enhanced shimmer animation */
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Responsive empty state */
@media (max-width: 768px) {
  .empty-templates-state {
    min-height: 350px;
    padding: 3rem 1.5rem;
  }
  
  .empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
  }
  
  .empty-state-title {
    font-size: 1.5rem;
  }
  
  .empty-state-description {
    font-size: 1rem;
  }
  
  .templates-grid.no-results {
    padding: 2rem 1rem;
  }
  
  .templates-grid.loading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .empty-templates-state {
    min-height: 300px;
    padding: 2rem 1rem;
  }
  
  .empty-state-icon {
    font-size: 3rem;
  }
  
  .empty-state-title {
    font-size: 1.25rem;
  }
  
  .empty-state-description {
    font-size: 0.9375rem;
  }
  
  .empty-state-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .empty-state-actions .btn {
    width: 100%;
    justify-content: center;
  }
}