/* CSS Variables for Consistent Theming */
:root {
  --primary-color: #4361ee;
  --primary-dark: #3a0ca3;
  --secondary-color: #f72585;
  --secondary-dark: #b5179e;
  --accent-color: #7209b7;
  --light-bg: #f8fafc;
  --dark-bg: #1e293b;
  --text-color: #333;
  --text-light: #64748b;
  --white: #ffffff;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --whatsapp-green: #25D366;
  --whatsapp-green-dark: #128C7E;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 10px;

  /* Color variables for highlights */
  --primary-red: #D43A2F;
  --accent-blue: #6AB0DE;
  --accent-red: #E87167;
  --accent-yellow: #FFC107;

  /* New color variables for system icons */
  --system-blue: #4361ee;
  --system-purple: #7209b7;
  --system-green: #10b981;
  --system-orange: #f59e0b;
  --system-pink: #f72585;
  --system-teal: #06b6d4;
  --system-indigo: #4f46e5;
  --system-cyan: #22d3ee;

  /* Updated add-on colors */
  --addon-primary: #4361ee;
  --addon-primary-light: rgba(67, 97, 238, 0.1);
  --addon-primary-dark: #3a0ca3;

  /* System badge colors matching Systems section */
  --badge-pos: #4361ee;
  --badge-inventory: #7209b7;
  --badge-hr-payroll: #10b981;
  --badge-hr-attendance: #f59e0b;
  --badge-einvoice: #f72585;
  --badge-sales: #06b6d4;
  --badge-appointments: #4f46e5;
  --badge-membership: #22d3ee;
  --badge-analytics: #4361ee;
  --badge-cloud: #7209b7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html[lang="ms"] body,
html[lang="zh"] body {
  font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  font-display: swap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip to Main Content for Accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1001;
  transition: var(--transition);
}

.skip-to-content:focus {
  top: 0;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

/* Logo样式 */
.logo {
  display: flex;
  align-items: center;
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -1px;
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo-to {
  color: #7dd3fc;
  position: relative;
  transition: var(--transition);
}

.logo-one {
  color: #0f172a;
  position: relative;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover .logo-to {
  text-shadow: 0 2px 8px rgba(125, 211, 252, 0.4);
}

.logo:hover .logo-one {
  text-shadow: 0 2px 8px rgba(30, 41, 59, 0.3);
}

/* Language Switcher - Simplified */
.language-switcher {
  position: relative;
  margin-left: 15px;
}

.language-current {
  background: rgba(67, 97, 238, 0.1);
  border: 1px solid rgba(67, 97, 238, 0.2);
  border-radius: 5px;
  padding: 8px 15px;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  min-width: 80px;
  justify-content: center;
  font-size: 0.9rem;
}

.language-current:hover {
  background: rgba(67, 97, 238, 0.2);
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switcher:hover .language-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-options li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.language-options li:last-child {
  border-bottom: none;
}

.language-options a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.language-options a:hover {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary-color);
}

.language-options a.active {
  background: rgba(67, 97, 238, 0.2);
  color: var(--primary-color);
  font-weight: 600;
}

/* Logo动画关键帧 */
@keyframes logoPulse {

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

  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

.logo.loaded {
  animation: logoPulse 2s ease-in-out;
}

.logo::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.logo:hover::after {
  opacity: 1;
  width: 100px;
  height: 100px;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

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

.nav-login {
  background-color: var(--primary-color);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 5px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.nav-login:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.nav-login::after {
  display: none;
}

.mobile-menu-btn {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  font-size: 24px;
  color: var(--primary-color);
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: var(--transition);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  position: relative;
}

.mobile-menu-btn:hover {
  background-color: rgba(67, 97, 238, 0.1);
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--border-radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--light-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.page-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

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

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

/* Enhanced Hero Section */
.hero {
  padding: 100px 0;
  background:
    linear-gradient(135deg, rgba(67, 97, 238, 0.85) 0%, rgba(58, 12, 163, 0.85) 100%),
    url('https://static.vecteezy.com/system/resources/thumbnails/013/446/116/small_2x/cloud-computing-abstract-background-concept-digital-technology-banner-pink-blue-background-binary-code-abstract-tech-big-data-center-cloud-storage-connect-to-cloud-network-illustration-2d-vector.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::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 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  padding: 40px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 18px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.4s both;
  box-shadow: 0 10px 30px rgba(247, 37, 133, 0.3);
  border: 2px solid transparent;
  min-height: 60px;
  min-width: 200px;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.cta-button:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(247, 37, 133, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-button:hover::after {
  animation: ripple 1s ease-out;
}

a.cta-button {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

a.cta-button:hover {
  text-decoration: none;
}

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

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

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }

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

/* Highlights Section */
.highlights {
  padding: 80px 0;
  background-color: var(--white);
}

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

.highlight-card {
  background: var(--light-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
  will-change: transform;
  contain: layout;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(67, 97, 238, 0.1);
}

.highlight-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

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

/* 更新图标颜色 */
.highlight-card:nth-child(1) .highlight-icon {
  color: var(--primary-red);
}

.highlight-card:nth-child(2) .highlight-icon {
  color: var(--accent-blue);
}

.highlight-card:nth-child(3) .highlight-icon {
  color: var(--accent-red);
}

.highlight-card:nth-child(4) .highlight-icon {
  color: var(--accent-yellow);
}

.highlight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

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

/* Systems Section */
.section-title-container {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 20px auto 0;
}

.systems {
  padding: 80px 0;
  background-color: #f8fafc;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.system-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  will-change: transform;
  contain: layout;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.system-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(67, 97, 238, 0.1);
}

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

.system-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

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

/* Multi-colored system icons - Applied in a rotating pattern */
.system-card:nth-child(12n+1) .system-icon {
  color: var(--system-blue);
}

.system-card:nth-child(12n+2) .system-icon {
  color: var(--system-purple);
}

.system-card:nth-child(12n+3) .system-icon {
  color: var(--system-green);
}

.system-card:nth-child(12n+4) .system-icon {
  color: var(--system-orange);
}

.system-card:nth-child(12n+5) .system-icon {
  color: var(--system-pink);
}

.system-card:nth-child(12n+6) .system-icon {
  color: var(--system-teal);
}

.system-card:nth-child(12n+7) .system-icon {
  color: var(--system-indigo);
}

.system-card:nth-child(12n+8) .system-icon {
  color: var(--system-cyan);
}

.system-card:nth-child(12n+9) .system-icon {
  color: var(--system-blue);
}

.system-card:nth-child(12n+10) .system-icon {
  color: var(--system-purple);
}

.system-card:nth-child(12n+11) .system-icon {
  color: var(--system-green);
}

.system-card:nth-child(12n+12) .system-icon {
  color: var(--system-orange);
}

.system-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

/* Pricing Section */
.pricing-section {
  padding: 80px 0;
  background-color: #f1f5f9;
}

.pricing-header {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-header h2 {
  font-size: 2.2rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.pricing-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.pricing-plan {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 350px;
  padding: 30px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.pricing-plan:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.pricing-plan.popular {
  border: 2px solid var(--primary-color);
}

.popular-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
  text-align: center;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 5px;
  text-align: center;
}

.plan-price span {
  font-size: 1rem;
  color: var(--text-light);
}

.plan-price-note {
  font-size: 0.9rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 15px;
}

.plan-description {
  text-align: center;
  margin-bottom: 25px;
  color: var(--text-light);
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.plan-systems {
  list-style: none;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan-systems li {
  padding: 8px 0;
  color: #475569;
  display: flex;
  align-items: center;
}

.plan-systems li i {
  margin-right: 10px;
  color: var(--success-color);
}

.plan-systems li i.fa-times {
  color: var(--error-color);
}

.plan-button {
  display: block;
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  min-height: 44px;
}

.plan-button:hover {
  background-color: var(--primary-dark);
}

a.plan-button {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

a.plan-button {
  border: none;
  font-family: 'Poppins', sans-serif;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

a.plan-button:hover {
  text-decoration: none;
}

.plan-trial {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--primary-color);
  font-size: 0.9rem;
  text-decoration: none;
}

.plan-trial:hover {
  text-decoration: underline;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--white);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

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

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--primary-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
  min-width: 44px;
  min-height: 44px;
}

.modal-close:hover {
  color: var(--error-color);
}

.modal-body {
  padding: 20px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background-color: var(--white);
  color: var(--text-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-control.error {
  border-color: var(--error-color);
}

.error-message {
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.form-submit {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  min-height: 44px;
}

.form-submit:hover {
  background-color: var(--primary-dark);
}

.form-submit:disabled {
  background-color: var(--text-light);
  cursor: not-allowed;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.active {
  display: block;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 20px;
}

/* All Apps Note - UPDATED: Different colors for each badge */
.all-apps-note {
  margin-top: 40px;
  text-align: center;
  padding: 20px;
  background-color: rgba(125, 211, 252, 0.1);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.all-apps-note h3 {
  color: var(--primary-dark);
  margin-bottom: 15px;
}

.all-apps-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.app-badge {
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  transition: var(--transition);
}

/* Individual badge colors matching Systems section */
.app-badge:nth-child(1) {
  background-color: var(--badge-pos);
}

.app-badge:nth-child(2) {
  background-color: var(--badge-inventory);
}

.app-badge:nth-child(3) {
  background-color: var(--badge-hr-payroll);
}

.app-badge:nth-child(4) {
  background-color: var(--badge-hr-attendance);
}

.app-badge:nth-child(5) {
  background-color: var(--badge-einvoice);
}

.app-badge:nth-child(6) {
  background-color: var(--badge-sales);
}

.app-badge:nth-child(7) {
  background-color: var(--badge-appointments);
}

.app-badge:nth-child(8) {
  background-color: var(--badge-membership);
}

.app-badge:nth-child(9) {
  background-color: var(--badge-analytics);
}

.app-badge:nth-child(10) {
  background-color: var(--badge-cloud);
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* UPDATED: Optional Add-Ons Section with price on right */
.optional-addons {
  margin-top: 40px;
  text-align: center;
  padding: 25px;
  background-color: var(--addon-primary-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--addon-primary);
  box-shadow: var(--shadow-sm);
}

.optional-addons h3 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.optional-addons-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.addon-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.addon-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary-dark);
}

.addon-price {
  color: var(--text-light);
  font-size: 0.9rem;
}

.addon-item i {
  color: var(--addon-primary);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* UPDATED: Footer with Company Info, email, and horizontal links with Quick Links heading */
footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.company-info {
  flex: 1;
  min-width: 300px;
}

.company-info p {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.company-info strong {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
  display: block;
}

.company-info i {
  color: #7dd3fc;
  width: 20px;
  margin-top: 3px;
}

.footer-links-container {
  flex: 1;
  min-width: 300px;
}

/* UPDATED: Quick Links heading */
.footer-links-container h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* UPDATED: Footer links in two rows with smaller font */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.85rem;
  /* Smaller font size */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #60a5fa;
}

/* UPDATED: Centered copyright */
.copyright {
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  background-color: var(--whatsapp-green);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  z-index: 999;
  border: none;
  cursor: pointer;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-green-dark);
  transform: scale(1.1);
  animation: none;
}

.whatsapp-float .whatsapp-text {
  position: absolute;
  right: 70px;
  background: var(--dark-bg);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-text {
  opacity: 1;
  right: 80px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Accessibility Improvements */
:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Screen reader only text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Background Image Fallback */
@supports not (background-blend-mode: multiply) {
  .hero {
    background:
      linear-gradient(135deg, rgba(67, 97, 238, 0.9) 0%, rgba(58, 12, 163, 0.9) 100%),
      url('https://static.vecteezy.com/system/resources/thumbnails/013/446/116/small_2x/cloud-computing-abstract-background-concept-digital-technology-banner-pink-blue-background-binary-code-abstract-tech-big-data-center-cloud-storage-connect-to-cloud-network-illustration-2d-vector.jpg');
  }
}

@media only screen and (min-width: 769px) {
  .mobile-menu-btn {
    display: none !important;
  }

  .nav-links {
    display: flex !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
    /* Show on mobile */
  }

  /* Ensure regular navigation is hidden on mobile when menu is not active */
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1000;
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    margin: 15px 0;
  }

  /* Better touch targets for mobile */
  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
  }

  .language-switcher {
    margin-left: 0;
    margin-top: 10px;
  }

  .language-options {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: var(--shadow-md);
  }

  /* Logo移动设备优化 */
  .logo {
    font-size: 24px;
  }

  .logo::after {
    display: none;
  }

  /* Hero Section Mobile Optimizations */
  .hero {
    padding: 60px 0;
    min-height: 500px;
    background-attachment: scroll;
    background-position: center center;
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .hero .container {
    padding: 20px;
    margin: 0 10px;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-height: 55px;
  }

  /* Highlights移动设备优化 */
  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .pricing-container {
    flex-direction: column;
    align-items: center;
  }

  /* Footer mobile responsiveness */
  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .company-info,
  .footer-links-container {
    min-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-link-row {
    flex-direction: column;
    gap: 10px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .whatsapp-float {
    bottom: 70px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .whatsapp-float .whatsapp-text {
    display: none;
  }

  /* Optional Add-Ons mobile */
  .optional-addons {
    padding: 20px;
  }

  .addon-item {
    flex-direction: column;
    gap: 10px;
    text-align: left;
    align-items: flex-start;
  }

  .addon-item i {
    margin-right: 8px;
  }

  .form-buttons-container {
    flex-direction: column;
  }

  .form-buttons-container button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    min-height: 50px;
  }

  .highlight-card {
    padding: 20px 15px;
  }

  .system-card {
    padding: 20px 15px;
  }

  .plan-price {
    font-size: 2rem;
  }

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

  .hero {
    min-height: 400px;
  }

  .whatsapp-float {
    bottom: 60px;
    right: 15px;
  }

  .company-info p {
    font-size: 0.9rem;
  }

  .all-apps-list {
    gap: 10px;
  }

  .app-badge {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Keyboard navigation styles */
.keyboard-nav .cta-button:focus,
.keyboard-nav .plan-button:focus,
.keyboard-nav .form-control:focus,
.keyboard-nav .mobile-menu-btn:focus,
.keyboard-nav .whatsapp-float:focus,
.keyboard-nav .language-current:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* WhatsApp button styles */
.whatsapp-submit {
  background-color: var(--whatsapp-green) !important;
  border-color: var(--whatsapp-green) !important;
}

.whatsapp-submit:hover {
  background-color: var(--whatsapp-green-dark) !important;
  border-color: var(--whatsapp-green-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit:active {
  transform: translateY(0);
}

.form-buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}