/* Modern CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;  /* Blue */
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8; /* Darker blue for hover states */
  --secondary-color: #0ea5e9;  /* Complementary blue-teal */
  --secondary-light: #38bdf8;
  --secondary-dark: #0369a1;
  --accent-color: #8b5cf6;  /* Purple for accents */
  --text-color: #1f2937;
  --light-text: #4b5563;
  --background: #ffffff;
  --light-background: #f3f4f6;
  --border-color: #e5e7eb;
  --radius: 10px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-focus: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--background);
}

/* Modern Header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95));
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.modern-header.scrolled {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.navbar {
  padding: 1rem 2rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-diamond {
  width: 24px;
  height: 24px;
  background: var(--primary-color);
  transform: rotate(45deg);
  position: relative;
  transition: transform 0.3s ease;
  animation: logoPulse 3s infinite alternate;
}

@keyframes logoPulse {
  0% {
    transform: rotate(45deg) scale(1);
    box-shadow: 0 0 0 rgba(37, 99, 235, 0);
  }
  100% {
    transform: rotate(45deg) scale(1.05);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
  }
}

.logo-diamond::after {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px solid var(--secondary-color);
  top: -4px;
  left: -4px;
  transform: rotate(0deg);
  transition: all 0.3s ease;
}

.logo:hover .logo-diamond {
  animation-play-state: paused;
  transform: rotate(135deg);
}

.logo:hover .logo-diamond::after {
  transform: rotate(-90deg);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
  opacity: 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  opacity: 1;
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white !important;
  padding: 0.9rem 0.9rem 0.9rem 0.9rem;
  border-radius: var(--radius);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.2);
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  transform: translateX(-100%);
  pointer-events: none;
}

.nav-cta:hover {
  box-shadow: 0 6px 15px rgba(29, 78, 216, 0.3);
}

.nav-cta:hover::before {
  transform: translateX(100%);
  transition: transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta:hover::before {
    transition: none;
  }
}

.nav-cta::after {
  display: none;
}

.lang-selector {
  margin-left: 20px;
  display: flex;
  align-items: center;
  position: relative;
}

.lang-selector select {
  padding: 0.5rem 2.5rem 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--background, #ffffff);
  color: var(--text-color, #1f2937);
  font-size: 0.875rem;
  cursor: pointer;
  appearance: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  min-width: 100px;
}

.lang-selector::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--primary-color);
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.3s ease;
}

.lang-selector:hover::after {
  transform: translateY(-50%) rotate(180deg);
}

.lang-selector select:hover,
.lang-selector select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.2);
  outline: none;
}

/* RTL styles for language selector */
[dir="rtl"] .lang-selector {
  margin-left: 0;
  margin-right: 20px;
}

[dir="rtl"] .lang-selector select {
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
}

[dir="rtl"] .lang-selector::after {
  right: auto;
  left: 0.75rem;
}

/* Enhanced Hero Section */
.hero-modern {
  padding: 8rem 2rem 6rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 40%, #dbeafe 60%, #eff6ff 100%);
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232563eb' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.hero-modern::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
  top: -200px;
  right: -200px;
  z-index: 0;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.highlight {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  -webkit-text-fill-color: var(--primary-color);
  color: var(--primary-color);
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background-color: rgba(37, 99, 235, 0.1);
  z-index: -1;
  transform: skewX(-12deg);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 1rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-kicker,
.section-kicker {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
}

.hero-supporting {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.primary-cta, .secondary-cta {
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: 180px;
  text-align: center;
  letter-spacing: 0.5px;
}

.primary-cta {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  z-index: -1;
  pointer-events: none;
}

.primary-cta:hover {
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.primary-cta:hover::before {
  transform: translateX(100%);
  transition: transform 0.7s ease;
}

@media (prefers-reduced-motion: reduce) {
  .primary-cta:hover::before {
    transition: none;
  }
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(5px);
}

.secondary-cta:hover {
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Floating elements for visual interest */
.hero-floating-element {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  opacity: 0.1;
  z-index: 0;
}

.float-1 {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -100px;
  animation: float 15s ease-in-out infinite;
}

.float-2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 10%;
  animation: float 12s ease-in-out infinite 2s;
}

.float-3 {
  width: 100px;
  height: 100px;
  top: 60%;
  left: 15%;
  animation: float 10s ease-in-out infinite 1s;
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Features Grid */
.features-grid {
  padding: 6rem 2rem;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.features-grid::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
  top: -200px;
  left: -200px;
  z-index: 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--light-text);
  max-width: 700px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.feature-card {
  padding: 2.5rem 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  position: relative;
  background-color: rgba(37, 99, 235, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
  background-color: rgba(37, 99, 235, 0.15);
}

.automation-icon {
  background-color: rgba(37, 99, 235, 0.1);
}

.automation-icon .icon-inner {
  width: 24px;
  height: 24px;
  position: relative;
}

.automation-icon .icon-inner::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-left: 3px solid var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
  transform: rotate(-45deg);
  top: 0;
  left: 4px;
}

.automation-icon .icon-inner::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 3px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 6px;
}

.analytics-icon {
  background-color: rgba(37, 99, 235, 0.1);
}

.analytics-icon .icon-inner {
  width: 24px;
  height: 24px;
  position: relative;
}

.analytics-icon .icon-inner::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 16px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 2px;
}

.analytics-icon .icon-inner::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 12px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 10px;
}

.analytics-icon .icon-inner::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 20px;
  background-color: var(--primary-color);
  bottom: 0;
  left: 18px;
}

.security-icon {
  background-color: rgba(37, 99, 235, 0.1);
}

.security-icon .icon-inner {
  width: 24px;
  height: 24px;
  position: relative;
}

.security-icon .icon-inner::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 12px;
  border: 3px solid var(--primary-color);
  border-radius: 3px;
  bottom: 0;
  left: 4px;
}

.security-icon .icon-inner::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 8px;
  border: 3px solid var(--primary-color);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  top: 0;
  left: 7px;
}

/* Benefits Section */
.benefits-section {
  padding: 6rem 2rem;
  background: var(--light-background);
  position: relative;
  overflow: hidden;
}

.benefits-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.benefit-card h3 {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
  margin-left: -1rem;
}

.benefit-card p {
  color: var(--light-text);
}

/* Homepage Business Automation Sections */
.challenge-panel,
.why-panel,
.final-cta {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 980px;
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.challenge-intro,
.challenge-close {
  color: var(--text-color);
  font-size: 1.125rem;
  font-weight: 600;
}

.challenge-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 1.5rem 0;
}

.challenge-list li {
  color: var(--light-text);
  padding-left: 2rem;
  position: relative;
}

.challenge-list li::before {
  color: #dc2626;
  content: "x";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.solutions-grid,
.industry-grid,
.process-grid,
.outcome-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2.5rem auto 0;
  position: relative;
  z-index: 1;
}

.solutions-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.solution-card,
.industry-card,
.process-step {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.solution-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.solution-card h3,
.industry-card h3,
.process-step h3 {
  color: var(--text-color);
  font-size: 1.35rem;
}

.solution-card h4 {
  color: var(--primary-color);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.solution-card ul,
.industry-card ul {
  color: var(--light-text);
  display: grid;
  gap: 0.45rem;
  list-style-position: inside;
}

.solution-lead,
.perfect-for {
  color: var(--text-color);
  font-weight: 700;
}

.brand-card {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  justify-content: center;
}

.brand-card h3,
.brand-card p {
  color: white;
}

.industry-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.why-panel p {
  color: var(--light-text);
  font-size: 1.075rem;
  margin-bottom: 1rem;
}

.why-panel h3 {
  margin: 1.5rem 0 1rem;
}

.outcome-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 1rem;
}

.outcome-grid span {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: center;
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.process-step {
  text-align: center;
}

.process-step span {
  align-items: center;
  background: var(--primary-color);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  height: 2.5rem;
  justify-content: center;
  margin-bottom: 1rem;
  width: 2.5rem;
}

.process-step p {
  color: var(--light-text);
  margin-top: 0.75rem;
}

.final-cta {
  margin-top: 3rem;
  text-align: center;
}

.final-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--light-text);
  margin: 0 auto 1.75rem;
  max-width: 760px;
}

/* Hero refinements */
.hero-tagline {
  color: var(--primary-dark);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-name-meaning {
  color: var(--light-text);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Value strip */
.value-strip {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, var(--background) 100%);
  padding: 4rem 2rem;
}

.value-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.value-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}

.value-card h3 {
  margin: 1rem 0 0.5rem;
}

.value-card p {
  color: var(--light-text);
}

.value-icon {
  background: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: inline-block;
  height: 3rem;
  position: relative;
  width: 3rem;
}

.value-icon::after {
  color: var(--primary-color);
  font-size: 1.35rem;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.value-icon-finance::after { content: "£"; font-weight: 800; }
.value-icon-operations::after { content: "⚙"; }
.value-icon-leadership::after { content: "◆"; font-size: 1rem; }

/* Solution icons */
.solution-icon {
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius);
  display: block;
  height: 2.75rem;
  position: relative;
  width: 2.75rem;
}

.solution-icon::after {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.solution-icon-finance::after { content: "£"; }
.solution-icon-process::after { content: "→"; }
.solution-icon-bi::after { content: "▤"; }
.solution-icon-ai::after { content: "AI"; font-size: 0.75rem; letter-spacing: 0.05em; }
.solution-icon-integration::after { content: "⇄"; }

/* Proof card (replaces brand-card) */
.proof-card {
  background: linear-gradient(135deg, #1e3a8a, var(--primary-color));
  color: white;
}

.proof-card h3,
.proof-card li,
.proof-card .perfect-for {
  color: white;
}

.proof-card ul {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 1rem 0;
}

.proof-card li {
  padding-left: 1.5rem;
  position: relative;
}

.proof-card li::before {
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

/* Capabilities bridge */
.capabilities-section {
  background: var(--background);
  padding: 5rem 2rem;
}

.capabilities-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.capability-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}

.capability-card .secondary-cta {
  align-self: flex-start;
  margin-top: auto;
}

/* Trust outcomes */
.trust-outcomes-section {
  padding: 5rem 2rem;
}

.trust-outcomes-grid,
.trust-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.trust-outcome-card,
.trust-card {
  background: white;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.trust-outcome-card h3,
.trust-card h3 {
  margin-bottom: 0.75rem;
}

.trust-outcome-card p,
.trust-card p {
  color: var(--light-text);
}

/* Process flow with arrows */
.process-flow {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 2.5rem auto 0;
  max-width: 1200px;
  position: relative;
  z-index: 1;
}

.process-flow .process-step {
  position: relative;
}

.process-flow .process-step:not(:last-child)::after {
  color: var(--primary-color);
  content: "→";
  display: none;
  font-size: 1.5rem;
  font-weight: 700;
  position: absolute;
  right: -0.75rem;
  top: 2.5rem;
}

@media (min-width: 900px) {
  .process-flow {
    grid-template-columns: repeat(5, 1fr);
  }

  .process-flow .process-step:not(:last-child)::after {
    display: block;
  }
}

.consultation-panel {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius);
  margin: 2.5rem auto 0;
  max-width: 760px;
  padding: 2rem;
}

.consultation-panel h3 {
  margin-bottom: 1rem;
  text-align: center;
}

.consultation-panel ul {
  color: var(--light-text);
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.consultation-panel li {
  padding-left: 1.75rem;
  position: relative;
}

.consultation-panel li::before {
  color: var(--primary-color);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

/* About page */
.about-page {
  padding: 5rem 2rem 6rem;
}

.about-panel {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2.5rem auto 0;
  max-width: 900px;
  padding: 2.5rem;
}

.about-panel h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.about-panel h2:first-child {
  margin-top: 0;
}

.about-panel p {
  color: var(--light-text);
  line-height: 1.7;
}

.about-process {
  margin-top: 1.5rem;
}

.about-cta {
  border: none;
  box-shadow: none;
  margin-top: 2.5rem;
  padding: 0;
}

.about-snake-bridge {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.about-snake-bridge-cta {
  display: inline-block;
  margin-top: 0.5rem;
  min-width: auto;
  padding: 0.7rem 1.5rem;
}

.about-snake-finhub-line {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--light-text);
}

/* Contact trust list */
.contact-trust-list {
  color: var(--light-text);
  display: grid;
  gap: 0.75rem;
  list-style: none;
  margin: 0 auto 2rem;
  max-width: 640px;
  text-align: left;
}

.contact-trust-list li {
  padding-left: 1.75rem;
  position: relative;
}

.contact-trust-list li::before {
  color: var(--primary-color);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

/* Data Flow Section */
.dataflow-section {
  padding: 6rem 2rem;
  background: var(--background);
}

.mindmap-display {
  max-width: 1100px;
  margin: 0 auto;
}

.mindmap-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 2rem;
  background: var(--background);
  position: relative;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
  top: -100px;
  left: -100px;
}

.faq-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
  bottom: -200px;
  right: -200px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
}

.faq-item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.faq-question {
  padding: 1.5rem;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.faq-item.active .faq-question {
  background-color: rgba(37, 99, 235, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
  padding-left: 2rem;
}

.faq-question h3::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(37, 99, 235, 0.1);
  border-radius: 50%;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: white;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding: 0 1.5rem 1.5rem 3.5rem;
  max-height: 500px;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  background-color: var(--primary-color);
  color: white;
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, var(--light-background), var(--background));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-content {
  flex: 1;
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-color);
  line-height: 1.7;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1rem;
}

.author-info p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--light-text);
}

/* Modern Footer */
.modern-footer {
  background: var(--text-color);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column a {
  color: var(--light-text);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
}

.floating-button {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.floating-button:hover {
  transform: translateY(-2px);
}

/* Chat Widget */
.chat-widget.modern {
  position: fixed;
  bottom: 10.5rem;
  right: 2rem;
  width: 350px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 99;
  display: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.chat-widget.modern.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.chat-widget.modern .chat-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-body {
  height: 400px;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  max-width: 80%;
  word-break: break-word;
}

.message.user {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
}

.message.ai {
  background-color: var(--light-background);
  color: var(--text-color);
  align-self: flex-start;
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.chat-input button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .challenge-panel,
  .why-panel,
  .final-cta,
  .solution-card,
  .industry-card,
  .process-step {
    padding: 1.5rem;
  }

  .solutions-grid,
  .industry-grid,
  .process-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
  }
  
  .nav-links.active {
    display: flex !important; /* Show when active class is applied */
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .nav-links li {
    margin: 0.5rem 2rem;
  }
  
  .mobile-menu-toggle {
    display: flex; /* Show hamburger on mobile */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
  }
  
  .hero-cta-group {
    flex-direction: column;
  }
  
  .chat-widget.modern {
    width: 100%;
    right: 0;
    bottom: 0;
  }
  
  .floating-cta {
    bottom: 2rem;
    right: 1rem;
  }
  
  .chat-toggle {
    bottom: 6rem;
    right: 1rem;
  }
}

/* For larger screens, always show the nav links and hide the hamburger */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important; /* Always visible on desktop */
  }
  
  .mobile-menu-toggle {
    display: none !important; /* Always hidden on desktop */
  }
}

.mobile-menu-toggle {
  display: flex; /* Show hamburger on mobile */
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .nav-links li {
    margin: 0.5rem 2rem;
  }
  
  .nav-right {
    position: relative;
    z-index: 1001;
  }
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--primary-color);
}

/* Contact Section */
.contact-section {
  padding: 10rem 2rem 6rem;
  background: var(--light-background);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0) 70%);
  top: -100px;
  right: -100px;
  z-index: 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.form-container {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  height: 800px;
}

.form-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* RTL Support */
[dir="rtl"] .logo-container {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-right {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
  text-align: right;
}

[dir="rtl"] .hero-container .hero-content {
  text-align: right;
}

@media (max-width: 960px) {
  [dir="rtl"] .hero-container .hero-content {
    text-align: center;
  }
}

[dir="rtl"] .footer-content {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .chat-toggle {
  left: 20px;
  right: auto;
}

[dir="rtl"] .floating-cta {
  left: 2rem;
  right: auto;
}

[dir="rtl"] .message.user {
  align-self: flex-start;
}

[dir="rtl"] .message.ai {
  align-self: flex-end;
}

[dir="rtl"] .faq-question {
  flex-direction: row-reverse;
}

[dir="rtl"] .faq-question h3 {
  padding-left: 0;
  padding-right: 2rem;
}

[dir="rtl"] .faq-question h3::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .testimonial-author {
  flex-direction: row-reverse;
}

/* Add styles for language selector in mobile view */
@media (max-width: 768px) {
  .lang-selector {
    margin-right: 10px;
  }
  
  .lang-selector select {
    font-size: 0.8rem;
    padding: 0.3rem 1.5rem 0.3rem 0.5rem;
    min-width: 80px; /* Smaller minimum width for mobile */
  }
  
  [dir="rtl"] .lang-selector {
    margin-left: 10px;
    margin-right: 0;
  }
  
  [dir="rtl"] .lang-selector select {
    padding: 0.3rem 0.5rem 0.3rem 1.5rem;
  }
  
  [dir="rtl"] .lang-selector::after {
    right: auto;
    left: 0.75rem;
  }
  
  /* RTL mobile menu toggle styles */
  [dir="rtl"] .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(-45deg);
  }
  
  [dir="rtl"] .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(45deg);
  }
}

[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 0;
  text-align: right;
}

/* Chat Toggle Button */
.chat-toggle {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

.chat-toggle:hover {
  transform: translateY(-2px);
  background-color: var(--secondary-color);
}
