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

/* --- DESIGN SYSTEM SYSTEM TOKENS --- */
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-rgb: 37, 99, 235;
  --secondary: #60A5FA;
  --accent: #3B82F6;
  --background: #FFFFFF;
  --bg-gradient-start: #FFFFFF;
  --bg-gradient-end: #F8FAFC;
  --bg-grid: rgba(37, 99, 235, 0.03);
  --text: #0F172A;
  --text-muted: #475569;
  --border: rgba(226, 232, 240, 0.8);
  --border-focus: rgba(37, 99, 235, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(37, 99, 235, 0.08);
  --glass-border-hover: rgba(37, 99, 235, 0.18);
  --shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.03), 0 1px 3px 0 rgba(15, 23, 42, 0.02);
  --shadow-md: 0 12px 30px -4px rgba(15, 23, 42, 0.04), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 48px -10px rgba(15, 23, 42, 0.06), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 24px 0 rgba(37, 99, 235, 0.12);
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --background-alt: #F8FAFC;
  --primary-light: rgba(37, 99, 235, 0.06);
}

/* --- BASE STYLES & RESET --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--background);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Base body styling with interactive canvas behind */
body {
  position: relative;
  min-height: 100vh;
}

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

p {
  color: var(--text-muted);
}

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

/* --- CANVAS BACKGROUND --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

/* Subtle grid overlay to enhance modern SaaS style */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -9;
  pointer-events: none;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 30%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 60%, transparent 100%);
  opacity: 0.8;
}

/* --- SCROLL PROGRESS BAR --- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  z-index: 1000;
  width: 0;
  transition: width 0.05s linear;
}

/* --- PAGE TRANSITION COVER --- */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background);
  z-index: 9999;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.page-transition-overlay.active {
  transform: scaleY(1);
  transform-origin: bottom;
}

/* --- GLOBAL CONTAINER --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-normal);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--background-alt);
  border-color: var(--text-muted);
}

/* --- GLASSMORPHISM CLASS --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-lg);
}

/* --- STICKY NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--secondary);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 101;
  padding: 0.5rem;
}

.bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  transition: var(--transition-fast);
  background-color: var(--text);
  border-radius: 2px;
}

/* Mobile Nav Overlay Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--background);
  z-index: 99;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  padding: 120px 2.5rem 3rem;
  transition: right 0.5s cubic-bezier(0.85, 0, 0.15, 1);
  border-left: 1px solid var(--border);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: auto;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
  padding-left: 8px;
}

@media (max-width: 900px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: block;
  }
  
  /* Hamburger Active state */
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 180px 0 100px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-ctas {
    justify-content: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.05);
}

.badge-glow {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

@media (max-width: 992px) {
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Floating wireframe box to look premium and techy */
.hero-glow-card {
  width: 100%;
  max-width: 440px;
  height: 380px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.3) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem;
  overflow: hidden;
}

.hero-glow-card::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.glow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.glow-card-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.glow-card-status {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: #E0F2FE;
  color: #0369A1;
  font-size: 0.75rem;
  font-weight: 600;
}

.glow-card-body {
  margin: auto 0;
}

.glow-card-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-bar-track {
  width: 100%;
  height: 6px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 3px;
  width: 0; /* Animated by GSAP */
}

.glow-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  padding-top: 1.25rem;
}

.glow-card-time {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.glow-card-dots {
  display: flex;
  gap: 4px;
}

.glow-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--border);
}

.glow-card-dot.active {
  background-color: var(--primary);
}

/* Floating background nodes behind hero elements */
.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(96, 165, 250, 0.02) 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.fc-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  right: -100px;
}

.fc-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -80px;
}

/* --- COMMON SECTION STYLING --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

/* --- SERVICES PREVIEW (Cards Section) --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.card-item {
  padding: 3rem 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Safety net: ensure cards are visible if GSAP ScrollTrigger fails to fire */
  visibility: visible;
}

.card-icon-container {
  width: 56px;
  height: 56px;
  background-color: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.04);
}

.card-title {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.card-desc {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  border-top: 1px solid rgba(37, 99, 235, 0.05);
  padding-top: 1.5rem;
}

.card-features li {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* --- HOW IT WORKS (Timeline Section) --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Center timeline line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--border);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0; /* Animated with GSAP */
  background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

.timeline-item {
  display: flex;
  margin-bottom: 6rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--background);
  border: 4px solid var(--border);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  transition: var(--transition-normal);
}

.timeline-item.active .timeline-dot {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--secondary);
  background-color: var(--primary);
}

.timeline-content {
  width: 45%;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  padding-left: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
  text-align: right;
  padding-right: 3rem;
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-card {
  padding: 2rem;
  display: inline-block;
  text-align: left;
  width: 100%;
}

.timeline-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  .timeline-dot {
    left: 20px;
    transform: translateX(-50%);
  }
  .timeline-item {
    flex-direction: column;
    margin-bottom: 4rem;
  }
  .timeline-content {
    width: calc(100% - 40px);
    margin-left: 40px !important;
    padding-left: 1.5rem !important;
    padding-right: 0 !important;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
  }
}

/* --- CASE STUDIES --- */
.case-study-hero {
  border-radius: 32px;
  overflow: hidden;
  padding: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.cs-content {
  display: flex;
  flex-direction: column;
}

.cs-client {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.cs-title {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.cs-desc {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.cs-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.cs-metric-card {
  border-left: 2px solid var(--primary);
  padding-left: 1rem;
}

.cs-metric-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
}

.cs-metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cs-visual {
  width: 100%;
  height: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(96, 165, 250, 0.08) 100%);
  border: 1px dashed rgba(37, 99, 235, 0.15);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-visual-mockup {
  width: 85%;
  height: 80%;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
}

.mockup-dot:nth-child(1) { background-color: #EF4444; }
.mockup-dot:nth-child(2) { background-color: #F59E0B; }
.mockup-dot:nth-child(3) { background-color: #10B981; }

.mockup-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mockup-chat-bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.mockup-chat-bubble.bot {
  background-color: var(--primary-light);
  color: var(--primary);
  border-bottom-left-radius: 4px;
  font-weight: 500;
  align-self: flex-start;
}

.mockup-chat-bubble.user {
  background-color: var(--background-alt);
  color: var(--text);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

@media (max-width: 992px) {
  .case-study-hero {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 3rem;
  }
}

/* --- STATS COUNTERS --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-num-container span.suffix {
  font-size: 2.25rem;
  color: var(--secondary);
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- TEAM (About Page Showcase) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.team-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.team-avatar-container {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
}

.team-name {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.team-bio {
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.team-skills-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.team-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  justify-content: center;
  width: 100%;
}

.team-skills-list li {
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--background-alt);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.team-card:hover .team-skills-list li {
  border-color: var(--primary-light);
  background-color: var(--primary-light);
  color: var(--primary);
}

/* --- SERVICES DETAIL SECTIONS --- */
.service-detail-block {
  margin-bottom: 120px;
}

.service-detail-block:last-child {
  margin-bottom: 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.service-detail-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.service-detail-grid.reverse .service-detail-content {
  order: 2;
}

.service-detail-grid.reverse .service-detail-showcase {
  order: 1;
}

.sd-title {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
}

.sd-desc {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.sd-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.sd-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.sd-features li svg {
  color: var(--primary);
  flex-shrink: 0;
}

.service-detail-showcase {
  width: 100%;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sd-showcase-inner {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: white;
  border-radius: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

/* Specialized showcases for each service */
.voice-waves {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 120px;
  margin: auto;
}

.voice-wave-bar {
  width: 4px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 2px;
  animation: bounceWave 1.2s ease-in-out infinite alternate;
}

.voice-wave-bar:nth-child(odd) {
  animation-duration: 0.8s;
}

.voice-wave-bar:nth-child(3n) {
  animation-duration: 1.4s;
}

@keyframes bounceWave {
  0% { height: 10px; opacity: 0.3; }
  100% { height: 80px; opacity: 1; }
}

.automation-nodes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: auto;
  width: 100%;
  max-width: 280px;
}

.auto-node-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.auto-node-pill {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  background: white;
  box-shadow: var(--shadow-sm);
}

.auto-node-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
}

.auto-node-connector {
  position: absolute;
  height: 2px;
  background-color: var(--primary);
  opacity: 0.3;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .service-detail-grid.reverse .service-detail-content {
    order: 1;
  }
  .service-detail-grid.reverse .service-detail-showcase {
    order: 2;
  }
  .sd-features {
    grid-template-columns: 1fr;
  }
}

/* --- CASE STUDIES PAGE CARDS --- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 3rem;
}

.cs-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cs-card-img {
  height: 220px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.02) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs-card-img svg {
  color: var(--primary);
  opacity: 0.5;
}

.cs-card-info {
  padding: 2.25rem;
}

.cs-card-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.cs-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cs-card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cs-card-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(37, 99, 235, 0.05);
  padding-top: 1.25rem;
}

.cs-card-results li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cs-card-results li svg {
  color: #10B981;
}

/* --- FAQ PAGE ACCORDION --- */
.faq-container {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.faq-header {
  width: 100%;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition-normal);
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: var(--transition-normal);
}

/* Plus line horizontal */
.faq-icon::before {
  width: 12px;
  height: 2px;
}

/* Plus line vertical */
.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content {
  padding: 0 2rem 1.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CONTACT PAGE FORM --- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-card-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

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

.contact-card-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-card-content p {
  font-size: 0.9rem;
}

.contact-form {
  padding: 3rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: var(--background);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

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

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .contact-form {
    padding: 2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.03) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
