/* ========================================
   EFFEX - Global Stylesheet
   Modern, Interactive, Responsive
   ======================================== */

/* CSS Custom Properties */
:root {
  --primary: #0F172A;
  --secondary-deep: #002060;
  --secondary-slate: #1E3A5F;
  --secondary-bright: #3B82F6;
  --secondary-cyan: #22D3EE;
  --neutral-light: #F8FAFC;
  --neutral-mid: #E2E8F0;
  --neutral-dark: #94A3B8;
  --text-body: #334155;
  --text-heading: #0F172A;
  --white: #FFFFFF;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-glow: 0 0 20px rgba(34, 211, 238, 0.3);

  --container-max: 1200px;
  --section-padding: 80px;
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary-bright);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--secondary-cyan);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-padding-sm {
  padding: 48px 0;
}

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

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid {
  display: grid;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-dark);
  max-width: 600px;
  margin: 0 auto 48px;
}

.accent-text {
  color: var(--secondary-cyan);
  font-weight: 300;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--secondary-cyan);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--secondary-cyan);
  border: 2px solid var(--secondary-cyan);
}

.btn-outline:hover {
  background: var(--secondary-cyan);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: var(--secondary-cyan);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  font-size: 1.2em;
  transition: transform var(--transition-fast);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #F8FAFC;
  border-bottom: 1px solid var(--neutral-mid);
  transition: all var(--transition-base);
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo .logo-dark {
  position: absolute;
  opacity: 0;
}

.navbar.scrolled .logo .logo-light {
  opacity: 0;
}

.navbar.scrolled .logo .logo-dark {
  opacity: 1;
}

/* Chatlyst dropdown logo swap */
.dropdown-menu .chatlyst-logo {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.dropdown-menu .chatlyst-logo img {
  height: 24px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.dropdown-menu .chatlyst-logo .chatlyst-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.navbar.scrolled .dropdown-menu .chatlyst-logo .chatlyst-light {
  opacity: 0;
}

.navbar.scrolled .dropdown-menu .chatlyst-logo .chatlyst-dark {
  opacity: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-bright);
  background: rgba(59, 130, 246, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle::after {
  content: '▼';
  font-size: 0.6rem;
  margin-left: 6px;
  opacity: 0.6;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--neutral-mid);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-body);
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
  color: var(--secondary-bright);
  background: rgba(59, 130, 246, 0.08);
}

/* Navbar scroll transition to dark mode */
.navbar.scrolled {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

.navbar.scrolled .nav-link {
  color: var(--neutral-mid);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.navbar.scrolled .dropdown-menu {
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.navbar.scrolled .dropdown-menu a {
  color: var(--neutral-mid);
}

.navbar.scrolled .dropdown-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  margin-left: 16px;
}

.nav-cta .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

/* Mobile Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

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

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

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

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(30, 58, 95, 0.85) 50%,
    rgba(0, 32, 96, 0.88) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
  color: var(--white);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  color: var(--white);
}

/* Bold accent text inside h1 and h2 */
h1 .accent-text,
h2 .accent-text,
.hero-title .accent-text {
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

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

/* Hero Particle Animation */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--secondary-cyan);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-30px) translateX(20px); opacity: 0.6; }
  50% { transform: translateY(-60px) translateX(-20px); opacity: 0.3; }
  75% { transform: translateY(-30px) translateX(10px); opacity: 0.5; }
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--white);
  cursor: pointer;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(10px); }
  60% { transform: translateX(-50%) translateY(5px); }
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-mid);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-cyan);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary-bright);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.card-link::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.card-link:hover {
  color: var(--secondary-cyan);
  gap: 10px;
}

/* Product Card Variant */
.product-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-mid);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--secondary-cyan);
}

.product-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--secondary-deep), var(--secondary-slate));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

.product-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' 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");
}

.product-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.product-card-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  flex: 1;
}

.product-card-footer {
  padding: 0 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========================================
   IMAGE PLACEHOLDERS
   ======================================== */

.img-placeholder {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, var(--secondary-deep), var(--secondary-slate));
  display: block;
}

.img-placeholder-small {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-cyan));
  display: block;
  flex-shrink: 0;
}

.img-placeholder-icon {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-cyan));
  display: block;
}

/* ========================================
   MARQUEE IMAGES
   ======================================== */

.marquee-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 80px;
  padding: 0 24px;
  flex-shrink: 0;
}

.marquee-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.marquee-img img:hover {
  opacity: 1;
}

/* ========================================
   EXTERNAL LINK BADGE
   ======================================== */

.external-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--secondary-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Team Card Variant */
.team-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-mid);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-cyan);
}

.team-card-image {
  height: 280px;
  background: linear-gradient(135deg, var(--secondary-deep), var(--secondary-slate), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.team-card-image .placeholder-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.3);
}

.team-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

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

.team-card-overlay span {
  color: var(--secondary-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card-body {
  padding: 24px;
}

.team-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 0.875rem;
  color: var(--secondary-bright);
  font-weight: 500;
  margin-bottom: 12px;
}

.team-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--neutral-dark);
}

/* ========================================
   CAROUSEL
   ======================================== */

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--neutral-mid);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-dot.active {
  background: var(--secondary-cyan);
  border-color: var(--secondary-cyan);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--neutral-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--secondary-bright);
  color: var(--white);
  border-color: var(--secondary-bright);
}

.carousel-arrow.prev { left: -24px; }
.carousel-arrow.next { right: -24px; }

/* ========================================
   TABS
   ======================================== */

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--neutral-dark);
  background: var(--neutral-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tab-btn:hover {
  color: var(--text-heading);
  background: var(--neutral-mid);
}

.tab-btn.active {
  background: var(--secondary-bright);
  color: var(--white);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

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

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--secondary-bright), var(--secondary-cyan));
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  padding-right: 48px;
  text-align: right;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-left: 48px;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--secondary-cyan);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  top: 0;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--white);
  padding: 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-mid);
  cursor: pointer;
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: var(--secondary-cyan);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.timeline-content.expanded .timeline-detail {
  display: block;
}

.timeline-detail {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-mid);
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ========================================
   MARQUEE
   ======================================== */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 48px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-item::before {
  content: '•';
  margin-right: 48px;
  color: var(--secondary-cyan);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   STAT COUNTERS
   ======================================== */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  padding: 32px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--secondary-cyan);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--neutral-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   TESTIMONIAL SLIDER
   ======================================== */

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  min-width: 100%;
  padding: 0 24px;
  text-align: center;
}

.testimonial-quote {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1rem;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--neutral-dark);
}

/* ========================================
   FEATURE GRID / ICON LIST
   ======================================== */

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

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--neutral-light);
  border-radius: var(--border-radius);
  border: 1px solid var(--neutral-mid);
  transition: all var(--transition-base);
}

.feature-item:hover {
  border-color: var(--secondary-cyan);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 0.875rem;
  color: var(--neutral-dark);
}

/* ========================================
   PILL TAGS
   ======================================== */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--neutral-light);
  color: var(--text-body);
  border: 1px solid var(--neutral-mid);
  transition: all var(--transition-fast);
}

.pill:hover {
  background: var(--secondary-bright);
  color: var(--white);
  border-color: var(--secondary-bright);
}

/* ========================================
   CTA BANNER
   ======================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--secondary-deep), var(--primary), var(--secondary-slate));
  padding: 80px 24px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 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='%23ffffff' fill-opacity='0.03'%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");
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.125rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: #F8FAFC;
  color: var(--text-body);
  padding: 64px 0 32px;
  border-top: 1px solid var(--neutral-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand > img {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-brand .logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-bottom: 16px;
}

.footer-brand .logo-box img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 300px;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--secondary-bright);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-mid);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--neutral-dark);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--neutral-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--secondary-bright);
  color: var(--white);
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #F8FAFC;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--neutral-mid);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-link {
    width: 100%;
    padding: 12px 16px;
  }
  
  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--white);
    display: none;
  }
  
  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
  
  .nav-cta {
    margin: 16px 0 0;
    width: 100%;
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 56px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }
  
  .stat-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .card {
    padding: 24px;
  }
  
  .tabs {
    flex-direction: column;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   CHATLYST HERO BANNER
   ======================================== */

.chatlyst-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--primary);
}

.chatlyst-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.chatlyst-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.chatlyst-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(0, 32, 96, 0.82) 50%,
    rgba(30, 58, 95, 0.85) 100%
  );
  z-index: 1;
}

.chatlyst-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
  color: var(--white);
}

.chatlyst-hero-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.chatlyst-hero-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* ========================================
   PRODUCT CARD IMAGE
   ======================================== */

.product-card-image img {
  max-width: 70%;
  max-height: 70%;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* ========================================
   PAGE-SPECIFIC STYLES
   ======================================== */

/* Home - Hero Variant */
.home-hero .hero-particles .particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; width: 6px; height: 6px; }
.home-hero .hero-particles .particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.home-hero .hero-particles .particle:nth-child(3) { top: 40%; left: 50%; animation-delay: 4s; width: 8px; height: 8px; }
.home-hero .hero-particles .particle:nth-child(4) { top: 80%; left: 20%; animation-delay: 6s; }
.home-hero .hero-particles .particle:nth-child(5) { top: 30%; left: 70%; animation-delay: 8s; width: 5px; height: 5px; }
.home-hero .hero-particles .particle:nth-child(6) { top: 70%; left: 60%; animation-delay: 10s; }
.home-hero .hero-particles .particle:nth-child(7) { top: 50%; left: 30%; animation-delay: 12s; width: 7px; height: 7px; }
.home-hero .hero-particles .particle:nth-child(8) { top: 10%; left: 90%; animation-delay: 14s; }

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

/* Value Cards Grid */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

/* Alternate Section Background */
.bg-alt {
  background: var(--neutral-light);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--secondary-cyan);
}

/* Detail Page Header */
.detail-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary-slate));
  padding: 120px 0 60px;
  color: var(--white);
  position: relative;
}

.detail-header .container {
  position: relative;
  z-index: 2;
}

.detail-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
  opacity: 1;
}

.detail-header .role {
  color: var(--secondary-cyan);
  font-size: 1.125rem;
  font-weight: 500;
  margin-top: 8px;
  opacity: 1;
}

.detail-header .meta {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 1;
}

.detail-header .meta a {
  color: var(--secondary-cyan);
  opacity: 1;
}

/* Related Cards */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Use Case / How it Works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 32px;
  background: var(--white);
  border-radius: var(--border-radius);
  border: 1px solid var(--neutral-mid);
  text-align: center;
  transition: all var(--transition-base);
}

.step:hover {
  border-color: var(--secondary-cyan);
  box-shadow: var(--shadow-md);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-cyan));
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 20px;
}

/* Accordion */
.accordion {
  border: 1px solid var(--neutral-mid);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--neutral-mid);
}

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

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--neutral-light);
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--secondary-bright);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header::after {
  content: '−';
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-content {
  padding: 0 24px 24px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Detail sections */
.detail-section {
  padding: 48px 0;
}

.detail-section h2 {
  margin-bottom: 24px;
}

.detail-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 800px;
}

.detail-text p {
  margin-bottom: 1.25em;
}

/* Numbered badge for value cards */
.number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.number-badge-1 { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.number-badge-2 { background: linear-gradient(135deg, #22D3EE, #0891B2); }
.number-badge-3 { background: linear-gradient(135deg, #002060, #1E3A5F); }
.number-badge-4 { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.number-badge-5 { background: linear-gradient(135deg, #10B981, #047857); }
.number-badge-6 { background: linear-gradient(135deg, #F59E0B, #B45309); }

/* Timeline text alignment — explicit left/right, never centered */
.timeline-item:nth-child(odd) .timeline-content {
  text-align: right !important;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: left !important;
}

/* Timeline step label (colored, no emoji) */
.timeline-step-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.step-dot-1 { background: linear-gradient(135deg, #3B82F6, #22D3EE); }
.step-dot-2 { background: linear-gradient(135deg, #22D3EE, #10B981); }
.step-dot-3 { background: linear-gradient(135deg, #10B981, #8B5CF6); }
.step-dot-4 { background: linear-gradient(135deg, #8B5CF6, #F59E0B); }

/* Accent bar for cards (alternative to icon) */
.accent-bar {
  width: 48px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.accent-bar-1 { background: linear-gradient(90deg, #3B82F6, #22D3EE); }
.accent-bar-2 { background: linear-gradient(90deg, #22D3EE, #10B981); }
.accent-bar-3 { background: linear-gradient(90deg, #10B981, #8B5CF6); }

/* Team portrait styling */
.team-portrait {
  width: 100%;
  max-width: 240px;
  height: auto;
  max-height: 320px;
  border-radius: var(--border-radius-lg);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}

/* Team card images — full face visible */
.team-card-image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-deep), var(--secondary-slate));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Colored card accents for Why Choose Us */
.card-accent-1 { border-top: 4px solid #3B82F6; }
.card-accent-2 { border-top: 4px solid #22D3EE; }
.card-accent-3 { border-top: 4px solid #8B5CF6; }
.card-accent-4 { border-top: 4px solid #10B981; }
.card-accent-5 { border-top: 4px solid #F59E0B; }
.card-accent-6 { border-top: 4px solid #EF4444; }

/* Darker background for timeline section */
.bg-dark-alt {
  background: #1E293B;
}
.bg-dark-alt .section-title,
.bg-dark-alt .section-subtitle,
.bg-dark-alt h2,
.bg-dark-alt p {
  color: var(--white);
}
.bg-dark-alt .section-subtitle {
  color: var(--neutral-dark);
}
.bg-dark-alt .timeline-content {
  background: #0F172A;
  border-color: #334155;
  color: var(--neutral-mid);
}
.bg-dark-alt .timeline-content h4 {
  color: var(--white);
}
.bg-dark-alt .timeline-detail {
  border-color: #334155;
  color: var(--neutral-mid);
}
.bg-dark-alt .timeline::before {
  background: linear-gradient(to bottom, var(--secondary-bright), var(--secondary-cyan));
}
.bg-dark-alt .timeline-dot {
  border-color: #1E293B;
}

/* Detail page two-column layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-layout .detail-text {
  order: 1;
}

.detail-layout .detail-portrait {
  order: 2;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-layout .detail-portrait {
    order: 1;
    margin-bottom: 24px;
  }
  .detail-layout .detail-text {
    order: 2;
  }
}

/* Product feature card colored accents */
.feature-accent-1 { border-top: 4px solid #3B82F6; }
.feature-accent-2 { border-top: 4px solid #22D3EE; }
.feature-accent-3 { border-top: 4px solid #8B5CF6; }
.feature-accent-4 { border-top: 4px solid #10B981; }
.feature-accent-5 { border-top: 4px solid #F59E0B; }
.feature-accent-6 { border-top: 4px solid #EF4444; }
