/* ==========================================================================
   AMBIC INFOTECH - MODERN DESIGN SYSTEM & STYLESHEET
   High-Performance Enterprise AI, Automation & Market Research Solutions
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color Palette - Light Mode (Default Enterprise Theme) */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(37, 99, 235, 0.2);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --nav-bg: rgba(255, 255, 255, 0.85);
  --code-bg: #0f172a;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Explicit Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: rgba(15, 23, 42, 0.09);
  --border-glow: rgba(37, 99, 235, 0.2);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --nav-bg: rgba(255, 255, 255, 0.85);
  --code-bg: #0f172a;
  
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.12);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #2563eb;
  --primary-light: #38bdf8;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --nav-bg: rgba(9, 13, 22, 0.82);
  --code-bg: #030712;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.15);
}

/* Universal Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Smooth color transitions active ONLY when toggling theme via button */
html.theme-transitioning,
html.theme-transitioning body,
html.theme-transitioning * {
  transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal) !important;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Background Grids & Ambient Lights */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}
[data-theme="dark"] .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

.ambient-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  max-width: 100%;
}

.ambient-glow {
  position: absolute;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  max-width: 100%;
}
.ambient-blue {
  background: radial-gradient(circle, #2563eb, transparent 70%);
  top: -80px;
  right: 0;
  transform: translateX(20%);
}
.ambient-cyan {
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  top: 40%;
  left: 0;
  transform: translateX(-20%);
}
.ambient-purple {
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  bottom: 10%;
  right: 0;
  transform: translateX(20%);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

/* Company Official Brand Logo */
.company-logo {
  height: 46px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-logo:hover .company-logo {
  transform: scale(1.03);
}

.footer-brand-logo .company-logo {
  height: 48px;
  max-width: 240px;
}

/* Dark vs Light Logo Toggle Rules (Default Light) */
.logo-dark {
  display: none !important;
}
.logo-light {
  display: block !important;
}

[data-theme="dark"] .logo-light {
  display: none !important;
}
[data-theme="dark"] .logo-dark {
  display: block !important;
}

[data-theme="light"] .logo-dark {
  display: none !important;
}
[data-theme="light"] .logo-light {
  display: block !important;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.brand-name {
  display: flex;
  flex-direction: column;
}
.brand-name span.main-name {
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-name span.tagline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  line-height: 1.25;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
[data-theme="light"] .btn-secondary:hover {
  border-color: rgba(15, 23, 42, 0.2);
}

.btn-accent {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-light);
  transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  color: var(--primary-light);
}

/* Mobile Drawer Navigation System */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: flex !important;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.close-drawer-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.close-drawer-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

[data-theme="light"] .mobile-nav-link {
  background: rgba(15, 23, 42, 0.03);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary-light);
  transform: translateX(4px);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Modal Dialog System */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.success-modal.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  display: flex !important;
}

.modal-content-card {
  max-width: 500px;
  width: 100%;
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.success-modal.is-active .modal-content-card {
  transform: scale(1);
}

/* Universal Responsive Grid Systems */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.metrics-strip-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.align-center {
  align-items: center;
}

/* Section Backgrounds & Containers */
.section-alt-bg {
  background: rgba(15, 23, 42, 0.4);
}

[data-theme="light"] .section-alt-bg {
  background: rgba(241, 245, 249, 0.65);
}

.metrics-strip-box {
  background: rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

[data-theme="light"] .metrics-strip-box {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
}

.contact-form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.timeline-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

/* Call To Action Button Group */
.cta-button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Pillar Header Flex Container */
.pillar-header-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.pillar-header-title {
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
}

/* Case Study Responsive Elements */
.case-study-card {
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color var(--transition-normal);
}

.case-study-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

/* Interactive Filter Pills */
.filter-pill-btn {
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.filter-pill-btn.active {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary-light) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(2.35rem, 4vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.75rem;
}

/* Stats Row */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  margin-top: 2rem;
}

.stats-strip > * {
  min-width: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Interactive Terminal & Code Card */
.terminal-card {
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 0.45rem;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }

.terminal-title {
  font-size: 0.775rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 1.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
  max-width: 100%;
  text-align: left;
}

.terminal-body pre {
  overflow-x: auto;
  max-width: 100%;
  white-space: pre;
  word-break: normal;
  text-align: left;
}

/* Infinite Marquee Client Strip */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

.marquee-item svg {
  width: 22px;
  height: 22px;
  color: var(--primary-light);
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Section Common Styling */
.section-py {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* Service Pillar Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.icon-ai {
  background: rgba(37, 99, 235, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.icon-data {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.icon-web {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.service-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.service-feature-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-card-action {
  margin-top: auto;
}

/* Interactive Demo / Playground */
.demo-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.demo-toolbar {
  padding: 1.25rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.demo-tabs {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.demo-tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-tab-btn.active, .demo-tab-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.demo-input-panel {
  padding: 2rem;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.demo-output-panel {
  padding: 1.5rem 2rem;
  background: var(--code-bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.demo-output-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  white-space: pre-wrap;
  overflow-y: auto;
  flex-grow: 1;
}

/* Interactive ROI Calculator */
.calc-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.calc-control-group {
  margin-bottom: 1.75rem;
}

.calc-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-range-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}
[data-theme="light"] .calc-range-slider {
  background: rgba(15, 23, 42, 0.15);
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2563eb;
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

.calc-result-box {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-big-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin: 0.75rem 0;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 1.5rem;
}

.bento-card-lg {
  grid-column: span 2;
}

.bento-card-tall {
  grid-row: span 2;
}

/* Testimonial Cards */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-stars {
  color: #fbbf24;
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.client-profile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.client-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3b82f6;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.client-meta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.client-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question-btn {
  width: 100%;
  text-align: left;
  padding: 1.35rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer-content {
  padding: 0 1.5rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer-content {
  display: block;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform var(--transition-fast);
  color: var(--primary-light);
}

/* Contact & RFQ Form */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-card {
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.contact-channel-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-text h5 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-channel-text p, .contact-channel-text a {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
[data-theme="light"] .form-input, 
[data-theme="light"] .form-textarea, 
[data-theme="light"] .form-select {
  background: #ffffff;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

.footer-social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.15rem;
  align-items: center;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.footer-social-btn.social-linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
  color: #ffffff;
}

.footer-social-btn.social-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
}

.footer-social-btn.social-instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-color: #d6249f;
  color: #ffffff;
}

.footer-social-btn.social-twitter:hover {
  background: #0f172a;
  border-color: #38bdf8;
  color: #ffffff;
}

[data-theme="light"] .footer-social-btn.social-twitter:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}



/* ==========================================================================
   INTERACTIVE ARCHITECTURE PIPELINE EXPLORER
   ========================================================================== */
.pipeline-flow-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.pipeline-step-node {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.pipeline-step-node::after {
  content: '→';
  position: absolute;
  right: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 2;
}

.pipeline-step-node:last-child::after {
  display: none;
}

.pipeline-step-node:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.pipeline-step-node.active {
  border-color: var(--accent-cyan);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.25), rgba(6, 182, 212, 0.15));
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
}

.step-node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.pipeline-step-node.active .step-node-num {
  background: var(--accent-cyan);
  color: #04101d;
}

.step-node-label {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.pipeline-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   PRICING & ENGAGEMENT TIERS
   ========================================================================== */
.pricing-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.pricing-switch-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.switch-toggle-btn {
  position: relative;
  width: 56px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: background var(--transition-fast);
}

.switch-toggle-btn input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle-slider {
  position: absolute;
  inset: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.switch-toggle-btn input:checked + .switch-toggle-slider {
  transform: translateX(26px);
  background: var(--accent-cyan);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.pricing-card.pricing-popular {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.18);
}

.pricing-badge-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #ffffff;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  min-height: 44px;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features-list li svg {
  width: 17px;
  height: 17px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   TIME SLOT PICKER (Discovery Booking)
   ========================================================================== */
.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.time-slot-btn {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.time-slot-btn:hover {
  border-color: var(--primary-light);
  color: var(--text-primary);
}

.time-slot-btn.selected {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   COOKIE CONSENT BANNER & BACK TO TOP
   ========================================================================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 820px;
  margin: 0 auto;
  z-index: 9998;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  animation: slide-up 0.4s ease-out;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.back-to-top-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all var(--transition-normal);
}

.back-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   LEGAL & POLICY PAGES (Privacy, Terms, Trust)
   ========================================================================== */
.legal-container {
  max-width: 920px;
  margin: 0 auto;
}

.legal-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 2.5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-heading {
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-heading-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary-light);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.legal-subheading {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-light);
  margin: 1.25rem 0 0.5rem;
}

.legal-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 1.25rem;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
}

.legal-list li::before {
  content: "•";
  position: absolute;
  left: 0.5rem;
  color: var(--primary-light);
  font-weight: bold;
}

.legal-highlight-box {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.7;
  font-size: 0.925rem;
  color: var(--text-secondary);
}

[data-theme="light"] .legal-highlight-box {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #2563eb;
  color: #1e293b;
}

.legal-nav-strip {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.legal-nav-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.legal-nav-btn:hover,
.legal-nav-btn.active {
  background: var(--primary);
  border-color: var(--primary-light);
  color: #ffffff;
}

/* ==========================================================================
   CONSOLIDATED RESPONSIVE BREAKPOINTS (TV, 4K, Desktop, Laptop, Tablet, Mobile)
   ========================================================================== */

/* 4K Displays, Smart TVs & Ultra-Wide Monitors (>= 2560px) */
@media (min-width: 2560px) {
  html {
    font-size: 19px;
  }
  .container {
    max-width: 1920px;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
  .ambient-glow {
    width: min(850px, 45vw);
    height: min(850px, 45vw);
    filter: blur(160px);
    opacity: 0.25;
  }
  .hero-section {
    padding: 7rem 0 6rem;
  }
  .hero-grid {
    gap: 5rem;
  }
  .hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
  }
  .section-title {
    font-size: 3.5rem;
  }
  .section-py {
    padding: 8rem 0;
  }
  .terminal-card {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }
  .terminal-body {
    max-height: 520px;
    font-size: 1rem;
  }
  .company-logo {
    height: 56px;
    max-width: 280px;
  }
  .nav-container {
    height: 92px;
  }
  .nav-links {
    gap: 2.5rem;
  }
  .nav-link {
    font-size: 1.1rem;
  }
  .btn-lg {
    padding: 1.05rem 2.25rem;
    font-size: 1.15rem;
  }
  .services-grid, .testimonials-grid, .pricing-grid {
    gap: 2.75rem;
  }
  .bento-grid {
    gap: 2rem;
  }
  .calc-card {
    padding: 3.5rem;
    gap: 3.5rem;
  }
  .demo-body {
    min-height: 440px;
  }
}

/* Full HD Smart TVs & Large Desktop Displays (1920px – 2559px) */
@media (min-width: 1920px) and (max-width: 2559px) {
  html {
    font-size: 17.5px;
  }
  .container {
    max-width: 1560px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  .ambient-glow {
    width: min(700px, 40vw);
    height: min(700px, 40vw);
    filter: blur(140px);
  }
  .hero-section {
    padding: 6rem 0 5rem;
  }
  .hero-grid {
    gap: 4rem;
  }
  .hero-title {
    font-size: 3.85rem;
  }
  .section-title {
    font-size: 3.1rem;
  }
  .section-py {
    padding: 7rem 0;
  }
  .terminal-body {
    max-height: 460px;
    font-size: 0.925rem;
  }
  .company-logo {
    height: 50px;
    max-width: 250px;
  }
  .nav-container {
    height: 84px;
  }
  .nav-links {
    gap: 2rem;
  }
  .nav-link {
    font-size: 1.02rem;
  }
  .btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.08rem;
  }
}

/* Intermediate Laptops & Compact Desktops (1081px – 1280px) */
@media (min-width: 1081px) and (max-width: 1280px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-link {
    font-size: 0.825rem;
    padding: 0.2rem 0;
  }
  .company-logo {
    max-width: 175px;
    height: 36px;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.775rem;
    white-space: nowrap;
  }
  .hero-grid {
    gap: 2.5rem;
    align-items: center;
  }
  .hero-title {
    font-size: clamp(2.35rem, 3.5vw, 2.9rem);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .pipeline-flow-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .pipeline-step-node:nth-child(3)::after {
    display: none;
  }
}

/* Tablets & Small Laptops (<= 1080px) */
@media (max-width: 1080px) {
  .nav-links, .nav-actions .btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.75rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
    max-width: 680px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
    margin: 2rem auto 0;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  .terminal-card {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
  }
  .terminal-body, .terminal-body pre {
    text-align: left;
  }
  .services-grid, .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
  .services-grid > :last-child:nth-child(odd),
  .testimonials-grid > :last-child:nth-child(odd) {
    grid-column: span 2;
  }
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .bento-card-lg {
    grid-column: span 2;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .calc-card, .contact-section-grid, .demo-body {
    grid-template-columns: 1fr;
  }
  .demo-input-panel {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .pipeline-flow-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline-step-node:nth-child(3)::after {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    gap: 1.75rem;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Medium Tablets & Two-Column Collapse (<= 860px) */
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 5.5vw, 2.45rem);
    line-height: 1.15;
    word-break: break-word;
  }
  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.2rem);
    word-break: break-word;
  }
  .services-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .services-grid > :last-child:nth-child(odd),
  .testimonials-grid > :last-child:nth-child(odd) {
    grid-column: span 1;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .bento-card-lg, .bento-card-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .pipeline-flow-wrapper {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .pipeline-step-node {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    width: 100%;
  }
  .pipeline-step-node::after {
    display: none !important;
  }
  .pipeline-step-node .step-node-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .pipeline-step-node .step-node-label {
    font-size: 0.925rem;
    line-height: 1.3;
  }
  .demo-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.85rem;
  }
  .demo-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .demo-tab-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.825rem;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    max-width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .footer-bottom-links {
    justify-content: center;
    gap: 0.85rem 1.25rem;
  }
  .pricing-switch-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem;
  }
  .section-py {
    padding: 3.5rem 0;
  }
}

/* Standard Mobile Devices (<= 640px) */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .company-logo {
    height: 38px;
    max-width: 180px;
  }
  .nav-container {
    height: 68px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center;
  }
  .cta-button-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .cta-button-group .btn {
    width: 100% !important;
    justify-content: center;
    text-align: center;
  }
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .metrics-strip-3 {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    padding: 1.15rem 1rem;
    gap: 0.85rem;
  }
  .stat-item {
    align-items: center;
  }
  .timeline-card {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
  }
  .demo-input-panel, .demo-output-panel {
    padding: 1.25rem 1rem;
  }
  .calc-card {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }
  .calc-result-box {
    padding: 1.5rem 1rem;
  }
  .calc-big-value {
    font-size: clamp(2rem, 7vw, 2.75rem);
  }
  .pipeline-detail-card {
    padding: 1.5rem 1rem;
  }
  .contact-form-card {
    padding: 1.5rem 1rem;
  }
  .contact-info-card {
    padding: 1.5rem 1rem;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .cookie-banner-content .btn {
    width: 100%;
  }
  .marquee-wrapper {
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    padding: 1rem 0;
  }
  .marquee-content {
    gap: 2rem;
  }
  .filter-pill-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }
  .terminal-body {
    padding: 0.85rem;
  }
  .terminal-body pre {
    font-size: 0.75rem;
    overflow-x: auto;
    white-space: pre;
    word-break: normal;
  }
  .modal-content-card {
    padding: 1.75rem 1.25rem;
  }
  .pricing-amount {
    font-size: clamp(2.25rem, 7vw, 2.85rem);
  }
  .pricing-card {
    padding: 1.75rem 1.25rem;
  }
  /* Prevent auto-zoom on focus in iOS Safari & ensure touch accessibility */
  .form-input, .form-select, .form-textarea {
    font-size: 16px !important;
    min-height: 44px;
  }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.95rem);
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 0.75rem;
    gap: 0.75rem;
  }
  .stat-number {
    font-size: 1.5rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .contact-form-card {
    padding: 1.25rem 0.85rem;
  }
  .time-slot-grid {
    grid-template-columns: 1fr;
  }
  .terminal-header {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .terminal-title {
    order: 3;
    width: 100%;
    font-size: 0.7rem;
    text-align: center;
  }
  .faq-question-btn {
    padding: 1rem 1.15rem;
    font-size: 0.95rem;
  }
  .footer-social-links {
    justify-content: flex-start;
  }
  .success-modal {
    padding: 1rem;
  }
  .modal-content-card {
    padding: 1.5rem 1rem;
  }
  .cookie-consent-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 1rem;
  }
  .back-to-top-btn {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }
}

/* Compact Mobile Devices (<= 360px) */
@media (max-width: 360px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .company-logo {
    height: 32px;
    max-width: 140px;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .pipeline-step-node {
    padding: 0.75rem 0.85rem;
  }
  .pipeline-step-node .step-node-label {
    font-size: 0.85rem;
  }
  .demo-tabs {
    flex-direction: column;
  }
  .hero-title {
    font-size: 1.65rem;
  }
  .contact-form-card {
    padding: 1rem 0.65rem;
  }
}


/* ==========================================================================
   CAREERS PAGE STYLES (MATCHING REACT NEXTJS COMPONENT ARCHITECTURE)
   ========================================================================== */
.career-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  text-align: left;
}

.career-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.career-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.career-meta-chip svg {
  color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 3-Column Perks Grid */
.career-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

@media (max-width: 900px) {
  .career-perks-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.career-perk-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.career-perk-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.career-perk-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.career-perk-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1rem 0 0.75rem 0;
}

.career-perk-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Open Roles Accordion */
.career-roles-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.career-role-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.career-role-item:hover {
  border-color: var(--border-glow);
}

.career-role-item.is-open {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.12);
}

.career-role-trigger {
  width: 100%;
  padding: 1.5rem 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background var(--transition-fast);
}

.career-role-trigger:hover {
  background: rgba(37, 99, 235, 0.03);
}

.career-role-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.career-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.career-role-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.career-role-chevron {
  width: 22px;
  height: 22px;
  color: var(--text-secondary);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  margin-left: 1rem;
}

.career-role-item.is-open .career-role-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.career-role-content {
  display: none;
  padding: 0 1.75rem 2rem 1.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
  padding-top: 1.5rem;
}

.career-role-item.is-open .career-role-content {
  display: block;
}

.career-role-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.career-role-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.career-role-reqs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.career-role-req-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.career-role-req-item svg {
  width: 17px;
  height: 17px;
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

/* CV Drag and Drop Zone */
.cv-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
  background: var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cv-dropzone:hover,
.cv-dropzone.dragover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
}

.cv-dropzone-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.cv-file-selected {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-emerald);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Career Modal Dialog */
.career-modal {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.career-modal.is-active {
  display: flex !important;
}

.career-modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideUp 0.3s ease;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
}

.career-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.career-modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.career-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--transition-fast);
}

.career-modal-close:hover {
  color: var(--text-primary);
}
