:root {
  /* --- Industrial SaaS Palette (Engineering First) --- */
  --primary-dark: #0f172a; /* Slate 900 */
  --primary-deep: #020617; /* Slate 950 */
  --secondary-dark: #1e293b; /* Slate 800 */
  --accent-primary: #6366f1; /* Indigo 500 */
  --accent-secondary: #0ea5e9; /* Sky 500 */
  --accent-soft: #818cf8; /* Indigo 400 */

  --text-white: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b; /* Slate 500 */
  --text-muted-dark: #475569; /* Slate 600 */

  --bg-light: #ffffff;
  --bg-slate: #f1f5f9; /* Slate 100 */

  --border-light: #e2e8f0; /* Slate 200 */
  --border-dark: #334155; /* Slate 700 */

  --card-radius: 12px; /* Tighter, more industrial radius */
  --section-padding: 120px 0;
  --header-height: 100px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: var(--header-height);
}

h1,
h2,
h3,
h4,
.futuristic-font {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- FIXED: White Header Styling --- */
.navbar {
  background: white !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  color: var(--text-dark) !important;
}

.navbar-logo {
  height: 70px;
  width: auto;
  vertical-align: middle;
}

.footer-logo {
  height: 120px;
  width: auto;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  opacity: 0.8;
  margin: 0 10px;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  color: var(--accent-purple) !important;
}

/* --- Global Section Spacing --- */
.section-padding {
  padding: var(--section-padding);
}

.bg-alt-section {
  background: var(--bg-slate);
}

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

/* --- Readability Helpers --- */
.text-muted-dark {
  color: var(--text-muted-dark);
}

.text-white .text-muted-dark {
  color: rgba(248, 250, 252, 0.7);
}

/* --- Gradients --- */
.grad-text {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.grad-btn {
  background: var(--accent-primary);
  border: none;
  color: white !important;
  padding: 12px 32px;
  border-radius: 6px; /* Professional semi-rounded */
  font-weight: 500;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
  display: inline-block;
  text-decoration: none;
}

.grad-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.outline-btn {
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  padding: 11px 31px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition-smooth);
  text-decoration: none;
  background: white;
}

.outline-btn:hover {
  background: var(--bg-slate);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* --- Components --- */
.white-card {
  background: white;
  padding: 32px;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-light);
  transition: var(--transition-smooth);
  height: 100%;
}

.white-card:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.img-frame {
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.hero-section {
  min-height: 90vh;
  background: var(--primary-deep);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0;
}

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

.hero-sub {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 24px;
}

.hero-arch-layer {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 60%;
  height: 80%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
  border-radius: 60px;
  transform: rotate(-10deg);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateY(-5px);
}

.stat-card h4 {
  color: var(--accent-secondary);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-card p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 1;
  pointer-events: none;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Professional Footer --- */
.pro-footer {
  background: var(--primary-deep);
  color: var(--text-white);
  padding: 100px 0 40px;
  position: relative;
  border-top: 1px solid var(--border-dark);
}

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

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

/* --- Utilities --- */
.relative {
  position: relative;
}

.mb-5-enterprise {
  margin-bottom: 80px;
}

.text-muted-light {
  color: #94a3b8;
}

.outcome-box {
  border-left: 4px solid var(--accent-primary);
  background: var(--bg-slate);
  padding: 32px;
  border-radius: 0 8px 8px 0;
  border: 1px solid var(--border-light);
  border-left-width: 4px;
}

/* --- Process Section --- */
.process-step {
  padding: 40px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  transition: var(--transition-smooth);
  position: relative;
  height: 100%;
}

.process-step:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.step-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.1;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* --- Testimonials --- */
.testimony-card {
  padding: 40px;
  background: var(--bg-slate);
  border-radius: var(--card-radius);
  border-top: 4px solid var(--accent-primary);
}

.testimony-text {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 24px;
}

/* --- Image Optimization --- */
.hero-img-frame {
  max-height: 450px;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-dark);
  background: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.img-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--card-radius);
  border: 1px solid var(--border-light);
  background: var(--bg-slate);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.img-frame:hover img {
  transform: scale(1.05);
}

/* --- New Enterprise Styling --- */
.feature-icon-small {
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  color: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.transition-hover {
  transition: var(--transition-smooth);
}

.transition-hover:hover {
  border-color: var(--accent-primary) !important;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.05);
}

.credibility-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

/* Fix for dark section text contrast */
.bg-dark-section .text-muted {
  color: #94a3b8 !important;
}

.max-w-800 {
  max-width: 800px;
}

/* --- Product Page Specific --- */
.inner-hero {
  padding: 160px 0 100px;
  background: var(--primary-deep);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.inner-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(99, 102, 241, 0.08),
    transparent 70%
  );
  z-index: 1;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.deployment-card {
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: 16px;
  transition: var(--transition-smooth);
  height: 100%;
}

.deployment-card:hover {
  border-color: var(--accent-primary);
  background: var(--bg-slate);
}

.spec-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-slate);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  color: var(--text-muted-dark);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1199.98px) {
  .hero-title {
    font-size: clamp(3rem, 7vw, 4rem);
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .navbar-nav .grad-btn {
    border-bottom: none !important;
    margin-top: 15px;
    padding: 12px 24px !important;
    text-align: center;
    display: block;
    width: 100%;
  }

  .hero-section {
    min-height: auto;
    padding: 140px 0 100px;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(2.5rem, 9vw, 3.5rem);
    margin-bottom: 20px;
  }

  .hero-sub {
    margin: 0 auto 30px;
    font-size: 1.1rem;
  }

  .hero-arch-layer {
    width: 120%;
    right: -10%;
    top: 40%;
    opacity: 0.2;
    transform: rotate(5deg);
  }

  .d-flex.flex-wrap.gap-3 {
    justify-content: center;
  }

  .credibility-strip span {
    font-size: 0.7rem;
    line-height: 1.8;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .section-padding {
    padding: 80px 0;
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }
}
