:root {
  /* Colors - Heavy Civil Earthworks Palette (SoliEarth Lineage) */
  --primary: #d97706;         /* Earthwork Gold / Precision Amber */
  --primary-dark: #b45309;    /* Deep Amber / Construction Bronze */
  --primary-light: #f59e0b;   /* High-vis Gold */
  --accent-bg: #fffbeb;       /* Soft Amber Tint */
  --accent-blue: #0284c7;     /* SoliEarth Blue Accent */
  
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;      /* Clean Engineering Surface */
  --bg-dark: #0f172a;         /* Deep Slate 900 */
  
  --text-main: #0f172a;       /* Headings & Heavy Text */
  --text-body: #334155;       /* Body Text */
  --text-muted: #64748b;      /* Secondary/Muted */
  
  --border-color: #e2e8f0;
  --border-focus: #fcd34d;
  --transition-speed: 0.25s;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Navbar --- */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text-main) !important;
}

.navbar-brand span.highlight {
  color: var(--primary);
}

.nav-link {
  color: var(--text-body) !important;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 1rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

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

/* --- Hamburger / Toggler --- */
.navbar-toggler {
  border: 1.5px solid var(--primary) !important;
  background-color: #f8fafc !important;
  padding: 0.4rem 0.6rem !important;
  border-radius: 8px !important;
  transition: all var(--transition-speed) ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25) !important;
  outline: none !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d97706' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* --- Buttons --- */
.btn {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.75rem;
  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--text-main); 
  border: none;
  color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  color: #fff;
}

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

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-body);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: var(--bg-surface);
  color: var(--text-main);
  transform: translateY(-1px);
}

.btn-outline-primary {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-1px);
}

/* --- Hero Section --- */
.hero {
  padding: 8.5rem 0 6rem;
  background: radial-gradient(circle at top right, #fff7ed 0%, transparent 50%),
              radial-gradient(circle at bottom left, #f8fafc 0%, transparent 40%);
  border-bottom: 1px solid var(--border-color);
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: #fffbeb;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  border: 1px solid #fef3c7;
}

.pill-tag i {
  color: var(--primary);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* --- Pages General Header --- */
.page-header {
  padding: 7.5rem 0 4rem;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #fffbeb 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

/* --- Section Styling --- */
.section {
  padding: 6rem 0;
}

.section-bg {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* --- Feature Cards (Pillars) --- */
.feature-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
  border-color: var(--primary);
}

.icon-box {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fffbeb;
  color: var(--primary);
  border-radius: 12px;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  border: 1px solid #fef3c7;
}

/* --- App / Module Cards --- */
.app-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  height: 100%;
  transition: all var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.09);
}

.app-card .icon-box {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 10px;
  background: #fffbeb;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  border: 1px solid #fef3c7;
}

.app-card .badge {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
}

.app-card .badge.bg-primary {
  background-color: var(--primary-dark) !important;
  color: white !important;
  border: 1px solid var(--primary-dark) !important;
}

.app-card .badge.bg-primary-subtle {
  background-color: #fffbeb !important;
  color: var(--primary-dark) !important;
  border: 1px solid #fef3c7 !important;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

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

/* --- Interactive Calculator Card --- */
.calc-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.calc-output-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.calc-metric-val {
  font-family: "Outfit", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.calc-metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* --- MachineRhythm State Simulator Timeline --- */
.timeline-track {
  display: flex;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.timeline-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  transition: opacity 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.timeline-segment:hover {
  opacity: 0.9;
}

.seg-off { background-color: #64748b; }
.seg-warmup { background-color: #f59e0b; }
.seg-idle { background-color: #ef4444; }
.seg-work { background-color: #10b981; }
.seg-travel { background-color: #0284c7; }

/* --- Pricing Cards --- */
.pricing-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  height: 100%;
  transition: all var(--transition-speed) ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 35px rgba(217, 119, 6, 0.12);
}

.pricing-card.popular::before {
  content: "Most Popular";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary);
  color: white;
  padding: 0.3rem 1.1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  font-family: "Outfit", sans-serif;
}

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

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.6rem 0;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.pricing-features li i {
  color: var(--primary);
  font-size: 1rem;
}

/* --- Support & FAQs --- */
.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-question {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-answer {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Form Control Styling --- */
.form-group label {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control, .form-select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all var(--transition-speed) ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.12);
  outline: none;
}

/* --- Flywheel Steps --- */
.flywheel-step {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  position: relative;
  height: 100%;
}

.flywheel-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text-main);
  color: white;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-family: "Outfit", sans-serif;
}

.flywheel-step.active .flywheel-num {
  background: var(--primary);
}

/* --- Trust / Doctrine List --- */
.doctrine-list {
  list-style: none;
  padding: 0;
}

.doctrine-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.doctrine-list li:last-child {
  border-bottom: none;
}

.doctrine-list li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 3px;
}

/* --- Footer --- */
.footer {
  background: var(--text-main); 
  color: #94a3b8;
  padding: 4.5rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h5 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

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

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.footer .btn-outline-light {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background-color: transparent !important;
  font-weight: 600 !important;
}

.footer .btn-outline-light:hover {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* --- Equipment Utilization Tabs --- */
.util-tab {
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: center;
}

.util-tab:hover {
  background: #fffbeb;
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.util-tab.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
}

