/* ===================================================================
   QUAMM LANDING PAGE STYLES
   A modern, responsive design for collaborative AI product launches
   =================================================================== */

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand Colors */
  --primary-color: #0056D2;
  --primary-hover: #003d99;
  --primary-light: #3379db;
  --accent-color: #FF8C00;
  --accent-light: #FFA726;
  --accent-hover: #e67e00;
  
  /* Neutrals */
  --text-color: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #6b6b6b;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-lighter: #fafbfc;
  --border-color: #e0e0e0;
  --bg-overlay: rgba(0, 0, 0, 0.55);
  
  /* Spacing & Layout */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  --max-width: 1200px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  
  /* Transitions */
  --transition-speed: 0.3s;
  --transition-slow: 0.6s;
}

/* ===== RESET & BASE STYLES ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h2 {
  font-size: 2.5rem;
  color: var(--text-color);
}

h3 {
  font-size: 1.5rem;
  color: var(--text-color);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: all var(--transition-speed) ease;
}

.main-nav.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.12);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  transition: opacity var(--transition-speed) ease;
  display: flex;
  align-items: center;
}

.nav-logo:hover {
  opacity: 0.8;
  color: var(--primary-color);
}

.logo-image {
  height: 45px;
  width: auto;
  display: block;
  transition: opacity var(--transition-speed) ease;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--transition-speed) ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Dropdown Menu Styles */
.nav-item {
  position: relative;
}

.nav-item.has-dropdown {
  display: inline-block;
}

.nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-link.dropdown-toggle::before {
  content: '▼';
  font-size: 0.625rem;
  transition: transform var(--transition-speed) ease;
  display: inline-block;
}

.nav-item.has-dropdown:hover .nav-link.dropdown-toggle::before,
.nav-item.has-dropdown.active .nav-link.dropdown-toggle::before {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 1000;
  margin-top: 0.5rem;
  transform: translateX(-50%) translateY(-10px);
}

.nav-item.has-dropdown:hover .dropdown-menu,
.nav-item.has-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
  white-space: nowrap;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 3px;
  transition: all var(--transition-speed) ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-speed) ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav-link {
    padding: 1rem var(--spacing-md);
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  /* Mobile dropdown styles */
  .nav-item.has-dropdown {
    width: 100%;
  }
  
  .nav-link.dropdown-toggle::before {
    margin-left: auto;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: var(--bg-light);
    border-radius: 0;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height var(--transition-speed) ease;
  }
  
  .nav-item.has-dropdown.active .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-item {
    padding: 0.75rem 2rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== SECTION STYLES ===== */
.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-color);
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
}

.section-description-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.15);
  min-width: 280px;
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(255, 140, 0, 0.4);
  color: var(--bg-white);
}

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

.btn-secondary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(0, 86, 210, 0.4);
  color: var(--bg-white);
}

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

.btn:focus-visible,
a.btn:focus-visible {
  outline: 3px solid #FF8C00;
  outline-offset: 2px;
}

/* ===== SECTION 1: HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 70px; /* Account for fixed nav */
  
  /* Hero background with gradient fallback */
  background:
    linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  overflow: hidden;
}

/* Hero video background */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  /* Enhance video quality and sharpness */
  filter: contrast(1.05) brightness(1.02) saturate(1.1);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; 
  bottom: 0; 
  left: 0; 
  right: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-content {
  position: relative;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-text {
  max-width: 900px;
  margin-bottom: 2rem;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3.2vw + 1rem, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.hero-text p {
  font-size: clamp(1rem, 1vw + 0.8rem, 1.125rem);
  line-height: 1.6;
  color: var(--bg-white);
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-text p .highlight {
  font-weight: 700;
  color: var(--accent-light);
  position: relative;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: center;
}

.hero-icons {
  display: none; /* Hidden per user request */
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.hero-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bg-white);
  font-size: 1rem;
  font-weight: 600;
  min-width: 120px;
  transition: transform var(--transition-speed) ease;
  cursor: default;
}

.hero-icon:hover {
  transform: translateY(-2px);
}

.hero-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent-color);
  flex-shrink: 0;
  transition: fill var(--transition-speed) ease;
}

.hero-icon:hover svg {
  fill: var(--accent-light);
}

/* ===== SECTION 2: THE QUAMM MODEL ===== */
.section-model {
  text-align: center;
}

.model-diagram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.model-card {
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-speed) ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.model-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Design Partner Card - WAS Purple, NOW Blue */
.model-card-design {
  background-image: url('images/optimized/quamm-center-bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
}

.model-card-design::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 86, 210, 0.55) 0%,
    rgba(0, 50, 130, 0.65) 100%
  );
  z-index: 0;
}

/* Center Quamm Card - WAS Blue, NOW Purple */
.model-card-center {
  background-image: url('images/optimized/design-partner-bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
}

.model-card-center::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(102, 126, 234, 0.55) 0%,
    rgba(75, 85, 150, 0.65) 100%
  );
  z-index: 0;
}

/* Commercial Partner Card - Orange */
.model-card-commercial {
  background-image: url('images/optimized/commercial-partner-bg.webp');
  background-size: cover;
  background-position: center;
  color: var(--bg-white);
}

.model-card-commercial::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 140, 0, 0.55) 0%,
    rgba(180, 80, 0, 0.65) 100%
  );
  z-index: 0;
}

.model-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

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

.model-icon.design {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.4);
}

.model-icon.quamm {
  background: rgba(102, 126, 234, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.model-icon.commercial {
  background: rgba(255, 140, 0, 0.25);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.4);
}

.model-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--bg-white);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.model-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.model-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.model-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

/* Force white text for all background cards */
.model-card-design h3,
.model-card-design p,
.model-card-center h3,
.model-card-center p,
.model-card-commercial h3,
.model-card-commercial p {
  color: var(--bg-white) !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 1px 3px rgba(0, 0, 0, 1);
}

/* ===== SECTIONS 3 & 4: DESIGN & COMMERCIAL PARTNERS ===== */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.section-split-reverse {
  direction: ltr;
}

.section-content {
  padding: var(--spacing-md);
}

.section-image {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 100%;
  min-height: 600px;
}

.main-section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed) ease;
}

.main-section-image:hover {
  transform: scale(1.02);
}

.image-placeholder {
  width: 100%;
  max-width: 500px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 86, 210, 0.2);
}

.design-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.commercial-placeholder {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
}

.image-placeholder svg {
  width: 120px;
  height: 120px;
  fill: rgba(255, 255, 255, 0.3);
}

/* Benefits List */
.benefits-list {
  list-style: none;
  margin: var(--spacing-lg) 0;
}

.benefits-list li {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  align-items: flex-start;
}

.benefit-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: transparent;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  overflow: hidden;
}

.benefits-list li:hover .benefit-icon {
  transform: scale(1.1);
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--bg-white);
}

.benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-speed) ease;
}

.benefits-list li strong {
  display: block;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text-color);
}

.benefits-list li p {
  font-size: 1rem;
  margin: 0;
  color: var(--text-secondary);
}

/* ===== SECTION 5: ABOUT QUAMM ===== */
.section-about {
  position: relative;
  text-align: center;
  background: var(--bg-white);
  overflow: hidden;
}

.section-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/proven-track-record.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.section-about > .container {
  position: relative;
  z-index: 1;
}

.founder-quote {
  max-width: 800px;
  margin: var(--spacing-xl) auto;
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  font-style: italic;
}

.founder-quote p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-color);
  margin: 0;
}

.achievement-highlight {
  max-width: 900px;
  margin: var(--spacing-xl) auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid #fbbf24;
}

.achievement-badge {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.achievement-badge svg {
  width: 48px;
  height: 48px;
}

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

.achievement-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.achievement-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.achievement-link:hover {
  background: var(--primary-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.3);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.pillar {
  text-align: center;
  padding: var(--spacing-lg);
}

.pillar-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-md);
  background: transparent;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease;
  overflow: hidden;
}

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

.pillar-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--bg-white);
}

.pillar-icon img {
  width: 120%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  margin: -10%;
  transition: transform var(--transition-speed) ease;
}

.pillar h3 {
  font-size: 1.375rem;
  margin-bottom: var(--spacing-sm);
}

.pillar p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== CAROUSEL DESIGN ===== */
.carousel-container {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 80px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  min-height: 360px;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-card {
  position: relative;
  width: 600px;
  max-width: 600px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  filter: blur(2px);
}

.carousel-card.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  filter: blur(0);
  z-index: 2;
}

.carousel-card.prev,
.carousel-card.next {
  opacity: 0.6;
  transform: scale(0.88);
  filter: blur(1px);
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: var(--bg-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 2rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--primary-color);
  transform: scale(1.3);
}

.carousel-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.example-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.example-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--bg-light);
  margin-bottom: var(--spacing-md);
}

.example-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.example-icon {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-speed) ease;
  overflow: hidden; /* Add this to clip the image */
}

.example-icon img { /* Add this to style the image */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-icon.medical {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.example-icon.insurance {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.example-icon.collections {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.example-icon svg {
  width: 36px;
  height: 36px;
  fill: var(--bg-white);
}

.example-header h4 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.1;
  font-weight: 700;
}

.example-tagline {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.3;
}

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

.example-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.example-content p:last-of-type {
  margin-bottom: var(--spacing-md);
}

.example-partner strong {
  color: var(--primary-color);
}

.example-results strong {
  color: #059669;
}

.example-description {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.example-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
  padding: var(--spacing-sm) 0;
}

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

/* ===== TRACTION CARDS (Commercial Partners) ===== */
.traction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.traction-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: var(--spacing-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.traction-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--bg-light);
  margin-bottom: var(--spacing-md);
}

.traction-header > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.traction-header h4 {
  font-size: 1.75rem;
  color: var(--text-color);
  margin: 0;
  font-weight: 700;
}

.traction-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.metric {
  text-align: center;
  padding: var(--spacing-sm);
  background: var(--bg-light);
  border-radius: 8px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-light);
  line-height: 1.2;
  font-weight: 500;
}

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

.traction-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.customer-quote {
  background: var(--bg-light);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  font-style: italic;
  color: var(--text-secondary);
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  line-height: 1.5;
}

.traction-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--spacing-sm) 0;
  transition: all var(--transition-speed) ease;
}

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

.traction-card.split-layout {
  flex-direction: row;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}

/* ===== SECTION 6: CONTACT FORM ===== */
.section-contact {
  background: var(--bg-light);
  text-align: center;
}

.contact-form {
  max-width: 700px;
  margin: var(--spacing-xl) auto;
  background: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}

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

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
  font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: border-color var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid #FF8C00;
  outline-offset: 2px;
  border-color: var(--primary-color);
}

a:focus-visible,
.social-link:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid #FF8C00;
  outline-offset: 2px;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: var(--spacing-sm);
}

/* Contact Links */
.contact-links {
  margin-top: var(--spacing-xl);
  text-align: center;
}

.contact-links p {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-white);
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  font-weight: 600;
  color: var(--text-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: var(--primary-color);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-color);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-color);
  color: var(--bg-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.footer-brand h3 {
  font-size: 1.5rem;
  color: var(--bg-white);
  margin-bottom: 0.5rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
}

.footer-nav a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-privacy-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-privacy-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-privacy-links a:hover {
  color: var(--accent-light);
}

/* ===== FADE-IN ANIMATION ON SCROLL ===== */
[data-fade] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow) ease, transform var(--transition-slow) ease;
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet */
@media (max-width: 968px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.75rem;
  }
  
  .section-split {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .section-split-reverse .section-image {
    order: -1;
  }
  
  .model-diagram {
    grid-template-columns: 1fr;
  }
  
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  .hero-text h1 {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-text p {
    font-size: 1.0625rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 400px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .achievement-highlight {
    padding: 1.5rem;
  }
  
  .achievement-title {
    font-size: 1.5rem;
  }
  
  .achievement-description {
    font-size: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-nav {
    justify-content: center;
  }
  
  .btn {
    min-width: auto;
  }
  
  .image-placeholder {
    height: 300px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.875rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .benefits-list li {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .model-card,
  .pillar {
    padding: var(--spacing-md);
  }
  
  .examples-grid {
    grid-template-columns: 1fr;
  }
  
  .example-card {
    padding: var(--spacing-md);
  }
  
  .example-header {
    height: 220px;
  }
  
  .example-icon {
    width: 64px;
    height: 64px;
  }
  
  .example-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .example-header h4 {
    font-size: 1.5rem;
  }
  
  .example-tagline {
    font-size: 0.875rem;
  }
  
  .example-content p {
    font-size: 0.875rem;
  }
  
  /* Carousel mobile styles */
  .carousel-container {
    padding: 0 50px;
  }
  
  .carousel-card {
    width: 85%;
    max-width: 85%;
    min-width: 280px;
  }
  
  .carousel-card.prev,
  .carousel-card.next {
    opacity: 0;
    pointer-events: none;
  }
  
  .carousel-track {
    gap: 1rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .example-card,
  .traction-card {
    min-height: auto;
    padding: var(--spacing-md);
  }
  
  .example-header h4,
  .traction-header h4 {
    font-size: 1.5rem;
  }
  
  .traction-metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
  }
  
  .traction-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .traction-card {
    padding: var(--spacing-lg);
  }
  
  .metric {
    padding: 0.5rem;
  }
  
  .metric-value {
    font-size: 1.25rem;
  }
  
  .metric-label {
    font-size: 0.65rem;
  }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== RTL SUPPORT (for future Hebrew version) ===== */
:root:dir(rtl) .hero-icons {
  flex-direction: row-reverse;
}

