/* ==========================================================================
   SAF.PRIGAG ERP — Corporate Design System
   Modern Glassmorphic Enterprise Styling & Fluid Animations
   ========================================================================== */

:root {
  /* Core Color Palette - Executive Dark Slate & Luminous Sapphire */
  --bg-primary: #070a12;
  --bg-secondary: #0c1220;
  --bg-tertiary: #131c31;
  --bg-elevated: rgba(19, 28, 49, 0.7);
  --bg-card: rgba(22, 33, 58, 0.55);
  --bg-card-hover: rgba(30, 45, 78, 0.75);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #070a12;

  --accent-blue: #2563eb;
  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;
  
  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #2563eb 50%, #6366f1 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.22) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 80%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(56, 189, 248, 0.5);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Mode Overrides */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-elevated: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.14);
  --border-focus: rgba(37, 99, 235, 0.5);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.15);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 80%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image: 
    radial-gradient(at 10% 20%, rgba(37, 99, 235, 0.07) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(6, 182, 212, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 50%, rgba(99, 102, 241, 0.04) 0px, transparent 60%);
  background-attachment: fixed;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-brand);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

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

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

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6.5rem 0;
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-sky);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  max-width: 100%;
  flex-wrap: wrap;
  line-height: 1.4;
}

.badge-tag .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
  color: var(--text-muted);
}

/* ==========================================================================
   Header & Navigation (Compact, Sleek & Pixel-Perfect)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  padding: 0.55rem 0;
  transition: all var(--transition-normal);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.9);
}

.site-header.scrolled {
  padding: 0.45rem 0;
  background: rgba(7, 10, 18, 0.96);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--border-medium);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.logo-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.4);
}

.brand-dot {
  color: var(--accent-sky);
}

.brand-sub {
  font-size: 0.62rem;
  padding: 0.1rem 0.38rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 0.2rem;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.nav-item a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.35rem 0.2rem;
  white-space: nowrap;
  display: inline-block;
}

.nav-item a:hover, .nav-item a.active {
  color: var(--text-main);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

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

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
  transform: translateY(-2px);
}

/* Specialized ERP Login Button */
.btn-erp-portal {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
  padding: 0.45rem 1rem;
  font-size: 0.84rem;
  border-radius: 8px;
  font-weight: 600;
}

.btn-erp-portal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: rotate(25deg);
  animation: shine 4s infinite linear;
}

@keyframes shine {
  0% { transform: translateX(-150%) rotate(25deg); }
  35% { transform: translateX(150%) rotate(25deg); }
  100% { transform: translateX(150%) rotate(25deg); }
}

.btn-erp-portal:hover {
  border-color: var(--accent-sky);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 7rem 0 5rem 0;
  overflow: hidden;
  background: var(--gradient-glow);
}

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

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

.hero-headline {
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.hero-stat-item p {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Terminal & Interactive GUI Card */
.hero-visual {
  position: relative;
  z-index: 2;
}

.erp-window-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
}

.erp-window-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent 50%, rgba(99, 102, 241, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.window-header {
  background: var(--bg-tertiary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Interactive T-Code Bar */
.tcode-command-bar {
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tcode-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-sky);
  font-weight: 700;
  text-transform: uppercase;
}

.tcode-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
}

.tcode-prefix {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

.tcode-input {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.tcode-run-btn {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tcode-run-btn:hover {
  background: var(--accent-sky);
  color: #070a12;
}

/* Quick T-Codes Pills */
.quick-tcodes {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.tcode-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tcode-pill:hover, .tcode-pill.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
  color: var(--accent-sky);
}

/* ERP Workspace View */
.window-body {
  padding: 1.25rem;
}

.erp-module-screen {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.screen-meta h4 {
  font-size: 1rem;
  color: var(--text-main);
}

.screen-meta span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.screen-status-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* Metric mini-cards in ERP Screen */
.erp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.erp-mini-card {
  background: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.erp-mini-card span {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
}

.erp-mini-card strong {
  font-size: 0.95rem;
  color: var(--text-main);
  display: block;
  margin-top: 0.2rem;
}

/* ERP Data Table Simulation */
.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.erp-table th {
  text-align: left;
  padding: 0.5rem;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
}

.erp-table td {
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.erp-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
}

.status-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.35rem;
}

.status-indicator.green { background: var(--accent-emerald); }
.status-indicator.blue { background: var(--accent-sky); }
.status-indicator.orange { background: var(--accent-amber); }

/* Direct ERP Quick Launch Card in Hero */
.erp-quick-launch-banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px dashed rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.erp-quick-launch-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.erp-quick-launch-text strong {
  color: var(--text-main);
  display: block;
}

/* ==========================================================================
   Partners & Enterprise Trust Banner
   ========================================================================== */
.trust-banner {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(12, 18, 32, 0.4);
}

.trust-title {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  opacity: 0.75;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ==========================================================================
   Connected Modules Section (Interactive Tabs)
   ========================================================================== */
.modules-section {
  position: relative;
  background: var(--bg-primary);
}

.module-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.module-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-normal);
}

.module-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-medium);
  transform: translateY(-2px);
}

.module-tab-btn.active {
  background: var(--bg-tertiary);
  border-color: var(--accent-sky);
  color: var(--text-main);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.module-content-container {
  min-height: 480px;
}

.module-display-pane {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.module-display-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

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

.module-info-side h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.module-info-side p {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.module-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.module-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.check-icon {
  color: var(--accent-emerald);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.module-preview-side {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* ==========================================================================
   Live Inventory & Party-Based Tracking Matrix
   ========================================================================== */
.inventory-matrix-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.matrix-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  min-width: 280px;
}

.matrix-search-box input {
  background: none;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.matrix-filter-buttons {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.matrix-table-container {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-md);
}

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

.matrix-data-table th {
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.matrix-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-main);
}

.party-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.stock-tag-pill {
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-tag-pill.in-stock {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.stock-tag-pill.low-stock {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
}

.stock-tag-pill.critical {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ==========================================================================
   Deployment Architectures (On-Premise vs Cloud)
   ========================================================================== */
.deployment-section {
  position: relative;
}

.deployment-toggle-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3.5rem;
}

.deployment-toggle-pill {
  background: var(--bg-tertiary);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  border: 1px solid var(--border-medium);
}

.deploy-mode-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.deploy-mode-btn.active {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.deployment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.deploy-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}

.deploy-card.featured {
  border-color: var(--accent-sky);
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.1) 0%, rgba(12, 18, 32, 0.7) 100%);
}

.deploy-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.deploy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.deploy-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Pricing Section & Calculator
   ========================================================================== */
.pricing-section {
  background: var(--bg-secondary);
}

.pricing-calculator-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-md);
}

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

.calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-group label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

.slider-group label span {
  color: var(--accent-sky);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
}

.range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-sky);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-blue);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-estimate-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.estimate-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.estimate-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.5rem 0;
}

.estimate-price small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pricing-card.featured {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.12) 0%, rgba(19, 28, 49, 0.8) 100%);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-glow);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
}

.pricing-plan-name {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 48px;
  margin-bottom: 1.5rem;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.pricing-price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features-list li {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Enterprise Gateway / ERP Access Banner
   ========================================================================== */
.erp-gateway-section {
  position: relative;
  background: linear-gradient(135deg, rgba(7, 10, 18, 0.95) 0%, rgba(12, 18, 32, 0.95) 100%);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
}

.gateway-box {
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(37, 99, 235, 0.15);
}

.gateway-box h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.25rem;
}

.gateway-box p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  color: var(--text-muted);
}

.gateway-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.erp-direct-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-medium);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: var(--accent-sky);
  transition: transform var(--transition-normal);
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 1.5rem;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Contact & Lead Capture Section
   ========================================================================== */
.contact-section {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.contact-channels {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.channel-link:hover {
  border-color: var(--accent-sky);
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(4px);
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.channel-details span {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: block;
}

.channel-details strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-sky);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #04060a;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem 0;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

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

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

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

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.social-pill {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: var(--accent-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   Modals (ERP Quick-Login Modal & Demo Modal)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 1.5rem;
}

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

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-sky);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  color: var(--text-main);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120%);
  transition: transform var(--transition-normal);
}

.toast-notice.show {
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* ==========================================================================
   Mobile Slide-Over Drawer & Backdrop
   ========================================================================== */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 310px;
  max-width: 86vw;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-medium);
  z-index: 1060;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 35px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}

.mobile-nav-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  color: #fff;
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.12);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.mobile-drawer-link i {
  width: 20px;
  font-size: 1rem;
  color: var(--accent-sky);
  text-align: center;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.1);
}

.mobile-drawer-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (Phone & Tablet Perfected)
   ========================================================================== */
@media (max-width: 1140px) {
  .nav-links {
    gap: 0.85rem;
  }
  .nav-item a {
    font-size: 0.82rem;
    padding: 0.25rem 0.15rem;
  }
  .brand-logo {
    margin-right: 0.85rem;
    font-size: 1.05rem;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
    margin: 0;
    text-align: left;
  }

  .hero-cta-group {
    justify-content: flex-start;
  }

  .module-display-pane.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Prevent any horizontal screen blowout */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .container {
    padding: 0 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Compact Header on Phone */
  .site-header {
    padding: 0.45rem 0 !important;
  }

  .nav-container {
    padding: 0 1rem !important;
  }

  .nav-links {
    display: none !important;
  }

  /* Hide the bulky ERP button from header bar on mobile so it doesn't crowd or overflow */
  #navErpLoginBtn {
    display: none !important;
  }

  .brand-logo {
    font-size: 1.05rem !important;
    margin-right: 0 !important;
  }

  .brand-sub {
    display: none !important;
  }

  .nav-actions {
    gap: 0.5rem !important;
  }

  .mobile-nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 1rem;
    cursor: pointer;
  }

  .section-padding {
    padding: 3rem 0 !important;
  }

  .section-title {
    font-size: clamp(1.55rem, 5vw, 2.1rem) !important;
    margin-bottom: 0.75rem !important;
  }

  .section-desc {
    font-size: 0.9rem !important;
    margin-bottom: 2rem !important;
  }

  /* Hero Section Phone Alignment */
  .hero-section {
    padding: 4.5rem 0 2.5rem 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .hero-content {
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .badge-tag {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.65rem !important;
    margin-bottom: 0.85rem !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  .hero-headline {
    font-size: clamp(1.7rem, 6.5vw, 2.3rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 0.85rem !important;
    text-align: left !important;
    word-break: break-word !important;
    letter-spacing: -0.02em !important;
  }

  .hero-description {
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
    max-width: 100% !important;
  }

  /* Mobile Full-Width Stacked CTA Buttons */
  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
    margin-bottom: 1.75rem !important;
  }

  .hero-cta-group .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.92rem !important;
  }

  /* Responsive 3-Column Stats without Overflow */
  .hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
    padding-top: 1.25rem !important;
    width: 100% !important;
  }

  .hero-stat-item {
    text-align: center !important;
    padding: 0.4rem 0.15rem !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: var(--radius-sm) !important;
  }

  .hero-stat-item h3 {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
    margin-bottom: 0.1rem !important;
  }

  .hero-stat-item p {
    font-size: 0.58rem !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
  }

  .trust-banner {
    padding: 1.5rem 0 !important;
  }

  .trust-badges {
    gap: 1.25rem !important;
    justify-content: center !important;
  }

  .trust-item {
    font-size: 0.76rem !important;
  }

  /* Simulated Window Mobile Tuning */
  .hero-visual {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .erp-window-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border-radius: var(--radius-md) !important;
  }

  .window-header {
    padding: 0.5rem 0.65rem !important;
  }

  .window-title {
    font-size: 0.68rem !important;
  }

  .window-title span {
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    display: inline-block !important;
  }

  .window-badge {
    font-size: 0.62rem !important;
    padding: 0.1rem 0.35rem !important;
  }

  .tcode-command-bar {
    padding: 0.45rem 0.65rem !important;
    gap: 0.4rem !important;
  }

  .tcode-label {
    font-size: 0.72rem !important;
  }

  .tcode-input-wrapper {
    flex: 1 !important;
    min-width: 0 !important;
  }

  .tcode-input {
    font-size: 0.78rem !important;
    width: 100% !important;
  }

  .tcode-run-btn {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.72rem !important;
  }

  .quick-tcodes {
    padding: 0.4rem 0.65rem !important;
    gap: 0.3rem !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }

  .quick-tcodes::-webkit-scrollbar {
    display: none !important;
  }

  .tcode-pill {
    font-size: 0.66rem !important;
    padding: 0.15rem 0.4rem !important;
    flex-shrink: 0 !important;
  }

  .window-body {
    padding: 0.65rem !important;
  }

  .erp-module-screen {
    padding: 0.65rem 0.5rem !important;
  }

  .screen-meta h4 {
    font-size: 0.85rem !important;
  }

  .screen-meta span {
    font-size: 0.65rem !important;
    word-break: break-all !important;
  }

  .erp-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.35rem !important;
    margin-bottom: 0.65rem !important;
  }

  .erp-mini-card {
    padding: 0.35rem 0.25rem !important;
  }

  .erp-mini-card span {
    font-size: 0.55rem !important;
    line-height: 1.1 !important;
  }

  .erp-mini-card strong {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
  }

  .erp-table {
    min-width: 290px !important;
  }

  .erp-table th, .erp-table td {
    padding: 0.35rem 0.3rem !important;
    font-size: 0.68rem !important;
  }

  .erp-quick-launch-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.65rem !important;
    padding: 0.65rem 0.75rem !important;
  }

  .erp-quick-launch-banner .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Module Tabs Mobile Tuning */
  .module-nav-tabs {
    gap: 0.4rem !important;
    margin-bottom: 1.75rem !important;
  }

  .module-tab-btn {
    font-size: 0.8rem !important;
    padding: 0.45rem 0.75rem !important;
  }

  .module-preview-side {
    padding: 1rem !important;
  }

  /* Live Inventory Mobile Tuning */
  .matrix-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .matrix-search-box {
    min-width: unset !important;
    width: 100% !important;
  }

  .matrix-filter-buttons {
    width: 100% !important;
    display: flex !important;
    gap: 0.35rem !important;
  }

  .filter-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 0.4rem 0.35rem !important;
    font-size: 0.72rem !important;
  }

  .matrix-table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .matrix-data-table {
    min-width: 580px !important;
  }

  .matrix-data-table th,
  .matrix-data-table td {
    padding: 0.65rem 0.75rem !important;
    font-size: 0.78rem !important;
  }

  /* Deployment Cards Mobile */
  .deploy-card {
    padding: 1.5rem 1.15rem !important;
  }

  .deploy-card h3 {
    font-size: 1.2rem !important;
  }

  /* Gateway Box Mobile */
  .gateway-box {
    padding: 2rem 1.15rem !important;
  }

  .gateway-box h2 {
    font-size: 1.5rem !important;
  }

  .gateway-box p {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .gateway-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.65rem !important;
  }

  .gateway-buttons .btn {
    width: 100% !important;
  }

  /* Contact & Form Mobile */
  .contact-info-card,
  .contact-form-card {
    padding: 1.5rem 1.15rem !important;
  }

  .form-control {
    font-size: 16px !important; /* Prevents auto zoom on iOS */
    padding: 0.7rem 0.85rem !important;
  }

  /* Footer Mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 0.65rem !important;
  }
}

@media (max-width: 480px) {
  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.25rem !important;
  }

  .hero-stat-item h3 {
    font-size: 1.1rem !important;
  }

  .hero-stat-item p {
    font-size: 0.55rem !important;
  }
}

