/* ==========================================================================
   SIGRAX CMMS — Enterprise Industrial Design System
   High-Precision B2B Manufacturing Software Showcase
   ========================================================================== */

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

/* --- Design Tokens & CSS Variables --- */
:root {
  /* Surfaces & Backgrounds (Enterprise Crisp Slate & Deep Contrast) */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-dark-hero: #0b1120;
  --bg-dark-surface: #0f172a;
  --bg-dark-card: #1e293b;
  --bg-dark-card-hover: #243248;

  /* Primary Palette & Brand Identifiers */
  --primary: #0f172a;               /* Deep Industrial Navy */
  --primary-hover: #1e293b;
  --primary-light: #334155;

  --accent: #2563eb;                /* Precision Royal Blue */
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.15);

  --accent-amber: #d97706;          /* Industrial Status / Alert Gold */
  --accent-amber-subtle: #fef3c7;
  --accent-green: #059669;          /* Live Status Green */
  --accent-green-subtle: #ecfdf5;

  /* Typography Colors (High Contrast WCAG AAA Compliant) */
  --text-heading: #090d16;          /* Deepest Ink */
  --text-body: #334155;             /* Clear Slate 700 */
  --text-muted: #64748b;            /* Slate 500 */
  --text-dim: #94a3b8;
  --text-white: #ffffff;
  --text-white-dim: #cbd5e1;

  /* Crisp Hairline Borders */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-subtle: #f1f5f9;
  --border-dark: #1e293b;
  --border-dark-subtle: #334155;
  --border-dark-highlight: rgba(255, 255, 255, 0.08);

  /* Shadows (Atmospheric, Tinted & Soft) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lift: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
  --shadow-dark-card: 0 12px 32px -4px rgba(0, 0, 0, 0.35);

  /* Geometry & Radii */
  --container-max: 1240px;
  --nav-height: 80px;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions & Springs */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  selection-background-color: var(--accent-subtle);
  selection-color: var(--accent);
}

::selection {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -80px;
  left: 24px;
  background: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.skip-link:focus {
  top: 20px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Typography Hierarchy --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.tabular-nums {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.section-tight {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-dark {
  background-color: var(--bg-dark-hero);
  color: var(--text-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-white);
}

.section-dark p {
  color: var(--text-white-dim);
}

.section-header {
  max-width: 780px;
  margin-bottom: 56px;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* --- Micro-Status Badges --- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.status-pill-dark {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark-highlight);
  color: #f1f5f9;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(5, 150, 105, 0.4);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- Buttons & Tactile Click Physics --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98) translateY(1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

.btn-dark {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-dark:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-heading);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid var(--border-dark-highlight);
}
.btn-ghost-dark:hover {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Top Navigation (Sticky Glass) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.site-navbar {
  height: var(--nav-height);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

header.scrolled .site-navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 52px;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  border-radius: 2px;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.35rem;
  color: var(--text-heading);
  cursor: pointer;
  padding: 8px;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-heading);
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--bg-subtle);
  color: var(--accent);
}

.dropdown-item i {
  font-size: 1.1rem;
  width: 18px;
  color: var(--accent);
}

/* --- Hero Section Architecture --- */
.hero-section {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 96px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Static Hero Background (Version 1: Crisp & Well-Lit) */
.hero-static-bg {
  background-color: #0b1329;
  background-image: 
    linear-gradient(to right, rgba(11, 19, 41, 0.90) 0%, rgba(11, 19, 41, 0.65) 50%, rgba(11, 19, 41, 0.1) 100%),
    url('../assets/hero.jpeg');
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Fixed Global Canvas Background (Version 2: Animated & Clear) */
.fixed-bg-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background-color: #0b1329;
}

#fixedHeroCanvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
  filter: contrast(1.1) brightness(1.05);
}

.fixed-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 65% 50%, transparent 10%, rgba(11, 19, 41, 0.7) 90%),
    linear-gradient(90deg, rgba(11, 19, 41, 0.88) 0%, rgba(11, 19, 41, 0.4) 50%, rgba(11, 19, 41, 0.6) 100%);
  pointer-events: none;
}

/* Animated Version Hero Special Layout */
.hero-animated-layout {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: transparent;
}

.hero-animated-center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-animated-center h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: #ffffff !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-animated-center .hero-subtitle {
  font-size: 1.25rem;
  margin: 0 auto 36px;
  max-width: 65ch;
  color: #f1f5f9 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.scroll-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-top: 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  animation: floatUpDown 2.5s infinite ease-in-out;
}

.scroll-indicator-pill i {
  color: var(--accent);
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Translucent Glass Cards for Animated Mode */
.body-animated-mode .bento-cell,
.body-animated-mode .module-item-card,
.body-animated-mode .service-flow-card,
.body-animated-mode .faq-accordion-item,
.body-animated-mode .comparison-table-wrapper {
  background: rgba(15, 23, 42, 0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9;
}

.body-animated-mode .section-header h2,
.body-animated-mode .bento-cell h3,
.body-animated-mode .module-item-body h3,
.body-animated-mode .service-flow-card h3 {
  color: #ffffff !important;
}

.body-animated-mode .section-header p,
.body-animated-mode .bento-cell p,
.body-animated-mode .module-item-body p,
.body-animated-mode .service-flow-card p {
  color: #94a3b8 !important;
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  z-index: 3;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: #ffffff !important;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #e2e8f0 !important;
  margin-bottom: 36px;
  max-width: 60ch;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stat-item h4 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-stat-item p {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  margin-bottom: 4px;
}

.stat-citation {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.3;
}

/* Screenshot Mockup Window Frame */
.mockup-frame {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-dark-card), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

.mockup-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-header-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mockup-header-dot:nth-child(1) { background-color: #ef4444; }
.mockup-header-dot:nth-child(2) { background-color: #f59e0b; }
.mockup-header-dot:nth-child(3) { background-color: #10b981; }

.mockup-header-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.mockup-body {
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
}

.mockup-body img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-smooth);
}

.mockup-frame:hover .mockup-body img {
  transform: scale(1.02);
}

.hero-visual-human-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero-photo-card {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.hero-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 24px 48px -6px rgba(0, 0, 0, 0.6);
}

.hero-photo-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-photo-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-photo-card-title i {
  color: var(--accent);
}

.hero-photo-body {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-photo-body img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.hero-photo-card:hover .hero-photo-body img {
  transform: scale(1.03);
}

.hero-photo-card-footer {
  padding: 10px 16px;
  background: #0f172a;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-citation {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
  font-family: 'Inter', sans-serif;
  opacity: 0.85;
}

.image-zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
}

.mockup-frame:hover .image-zoom-hint,
.module-item-preview:hover .image-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* --- Client Logos Section --- */
.clients-section {
  padding: 48px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.clients-title {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-bottom: 28px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.client-card {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
  position: relative;
}

.client-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.client-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(2.2);
  filter: none;
  opacity: 1;
  transition: transform var(--transition-fast);
}

.client-card:hover img {
  transform: scale(2.35);
}

/* --- Gapless Bento Grid System (Capabilities Showcase) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-cell {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.bento-cell:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.bento-col-8 { grid-column: span 8; }
.bento-col-4 { grid-column: span 4; }
.bento-col-6 { grid-column: span 6; }
.bento-col-12 { grid-column: span 12; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.bento-cell h3 {
  margin-bottom: 12px;
}

.bento-cell p {
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.6;
}

.bento-cell-preview {
  margin-top: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.bento-cell-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Interactive Tabbed Feature Showcase --- */
.tabs-container {
  margin-top: 40px;
}

.tab-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: #ffffff;
  background: var(--primary);
}

.tab-panel {
  display: none;
  padding-top: 36px;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

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

.tab-content h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.tab-content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--text-body);
}

.feature-checklist li i {
  color: var(--accent);
  margin-top: 4px;
  font-size: 1rem;
}

/* --- Comparison Matrix Section --- */
.comparison-table-wrapper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  margin-top: 32px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.comparison-table th {
  background: var(--bg-subtle);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--text-heading);
}

.comparison-table th.highlight-col,
.comparison-table td.highlight-col {
  background: #eff6ff;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.comparison-table th.highlight-col {
  color: var(--accent);
  font-size: 1.05rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .badge-check {
  color: #059669;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comparison-table .badge-cross {
  color: #dc2626;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- Features Filterable Catalog (features.html) --- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-body);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.module-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.module-item-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.module-item-preview {
  position: relative;
  background: #0f172a;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
}

.module-item-preview img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-smooth);
}

.module-item-preview:hover img {
  transform: scale(1.03);
}

.module-item-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.module-category-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 12px;
  width: fit-content;
}

.module-item-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-item-body p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.module-points-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-points-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.module-points-list li i {
  color: #059669;
  margin-top: 3px;
}

/* --- Services Roadmap & Process Timeline (services.html) --- */
.services-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-flow-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: all var(--transition-normal);
}

.service-flow-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.step-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 16px;
}

.service-flow-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-flow-card p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* --- FAQ Accordion System --- */
.faq-accordion-list {
  max-width: 820px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-accordion-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-accordion-item.open {
  border-color: var(--accent);
}

.faq-toggle-btn {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
}

.faq-toggle-btn i {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform var(--transition-fast);
}

.faq-accordion-item.open .faq-toggle-btn i {
  transform: rotate(180deg);
}

.faq-accordion-content {
  display: none;
  padding: 0 24px 24px;
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.faq-accordion-item.open .faq-accordion-content {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* --- Global CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25), transparent 70%);
  pointer-events: none;
}

.cta-banner-content h2 {
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner-content p {
  color: var(--text-white-dim);
  font-size: 1.1rem;
  max-width: 55ch;
}

/* --- Footer Architecture --- */
.site-footer {
  background-color: #0b1120;
  color: var(--text-white-dim);
  padding-top: 80px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border-dark);
}

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

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 34ch;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* --- Lightbox Modal Window --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 24px;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-container {
  background: #0f172a;
  border: 1px solid var(--border-dark-highlight);
  border-radius: var(--radius-md);
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1e293b;
  border-bottom: 1px solid var(--border-dark-highlight);
}

.lightbox-title-wrap h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.lightbox-title-wrap p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.lightbox-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-content {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow-dark-card);
}

/* --- Scroll Reveal & Micro Animation Utilities --- */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .bento-col-8,
  .bento-col-4,
  .bento-col-6 {
    grid-column: span 12;
  }

  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-flow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    margin-top: 8px;
    width: 100%;
  }

  .hero-stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .tab-panel.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .modules-grid {
    grid-template-columns: 1fr;
  }

  .services-flow-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
  }

  .hero-stats-strip {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-animated-center h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero-animated-center .hero-subtitle {
    font-size: 1.05rem;
  }

  .scroll-indicator-pill {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .lightbox-modal {
    padding: 12px;
  }

  .lightbox-content img {
    max-height: 60vh;
  }
}
