:root {
  --ms-primary: #2563eb;
  --ms-dark: #0f172a;
  --ms-muted: #64748b;
  --ms-bg: #f8fafc;
  --ms-border: #e5e7eb;
  --ms-radius: 16px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  color: #f8fafc;
  background-image: url("../images/cnc_milling_machine_in_action_with_blue_lighting-DNkYuTC7.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.35), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.25), transparent 40%),
    linear-gradient(135deg, rgba(11, 18, 36, 0.75) 0%, rgba(15, 27, 63, 0.7) 55%, rgba(10, 20, 48, 0.75) 100%);
  z-index: 0;
}

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

.hero .bannercontent h1 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero .bannercontent p {
  color: #cbd5f5;
  max-width: 600px;
}

.aboveheading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.aboveheading p {
  margin: 0;
}

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: ms-pulse 2s infinite;
}

.pulse.red {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
}

@keyframes ms-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.highlight {
  color: #38bdf8;
  font-weight: 700;
  display: inline-block;
  min-width: 140px;
}

.bannerbuttons .btn-outline-secondary {
  color: #4b5563;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.bannerbuttons .btn-outline-secondary:hover {
  color: #1f2937;
  background: #e2e8f0;
  border-color: #cbd5f5;
}

.bannerbuttons .btn-primary {
  background: linear-gradient(135deg, #5b4bff, #6f5dff);
  border: 1px solid #6f5dff;
  color: #fff;
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 0 10px 20px rgba(91, 75, 255, 0.4);
}

.bannerbuttons .btn-primary:hover {
  background: linear-gradient(135deg, #4f3cff, #6250ff);
  border-color: #5f4cff;
  box-shadow: 0 14px 26px rgba(91, 75, 255, 0.5);
  transform: translateY(-1px);
}

/* ===== AI HERO SECTION ===== */
.ms-hero-section {
  padding: 80px 0;
  background: var(--ms-bg);
}

.ms-ai-badge {
  display: inline-block;
  background: #e0edff;
  color: var(--ms-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
}

.ms-feature-card {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.ms-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--ms-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ms-image-card {
  position: relative;
  border-radius: var(--ms-radius);
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.25);
}

.ms-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.ms-front-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(6px);
}

.ms-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #a3b4cd;
  display: block;
}

.ms-status-badge {
  background: #10b981;
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ===== FEATURE CARDS ===== */
.ms-feature-section {
  background: #fff;
}

.ms-info-card {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  padding: 28px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ms-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.ms-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--ms-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ms-card-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.ms-card-text {
  color: var(--ms-muted);
  font-size: 0.95rem;
}

.ms-learn-link {
  color: var(--ms-primary);
  font-weight: 600;
  text-decoration: none;
}

.ms-learn-link span {
  margin-left: 6px;
}

/* ===== CAPABILITIES ===== */
.padding-theme {
  padding: 80px 0;
}

.capabilities .badge {
  background: #e0edff;
  color: var(--ms-primary);
}

.service-card {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 18px 20px 22px;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-content p {
  color: var(--ms-muted);
  font-size: 0.95rem;
}

.card-content ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--ms-muted);
  font-size: 0.9rem;
}

.card-content .icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 18px;
}

.cta {
  color: var(--ms-primary);
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  text-decoration: underline;
}

/* ===== PROBLEM/SOLUTION ===== */
.backgroundblue {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.sideimg {
  width: 100%;
  max-width: 520px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

/* ===== SUPPLY CHAIN ===== */
.supplychain .card {
  border: 1px solid var(--ms-border);
  border-radius: 12px;
}

/* ===== STEPS ===== */
.step-card {
  background: #fff;
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  padding: 24px 18px;
  height: 100%;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 12px;
}

.step-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--ms-muted);
}

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

/* ===== TABLE ===== */
.sop-table-wrapper {
  border: 1px solid var(--ms-border);
  border-radius: var(--ms-radius);
  overflow-x: auto;
  background: #fff;
}

.sop-table {
  margin-bottom: 0;
}

.sop-table thead th {
  background: #f1f5f9;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sop-table td,
.sop-table th {
  padding: 14px 16px;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ms-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill {
  background: #e2e8f0;
  color: #334155;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.animate-row:hover {
  background: #f8fafc;
}

/* ===== UTILITIES ===== */
.font-12 { font-size: 0.75rem; }
.font-14 { font-size: 0.875rem; }
.font-16 { font-size: 1rem; }

@media (max-width: 991px) {
  .hero {
    padding: 90px 0 60px;
    text-align: center;
  }
  .hero .bannercontent h1 {
    text-align: center;
  }
  .highlight {
    min-width: 120px;
  }
}
