/* Custom colors based on BidScript logo */
:root {
  --md-primary-fg-color: #1e90ff; /* Primary blue */
  --md-primary-fg-color--light: #60a5fa; /* Light blue */
  --md-primary-fg-color--dark: #1e3a8a; /* Navy blue */
  --md-accent-fg-color: #1e90ff; /* Use primary blue for accent too */
  --md-accent-fg-color--transparent: #1e90ff30;

  /* Additional brand colors */
  --bs-gradient-start: #1e90ff;
  --bs-gradient-end: #1e3a8a;
  --bs-success: #10b981;
  --bs-warning: #f59e0b;
  --bs-danger: #ef4444;
  --bs-info: #1e90ff;
  --bs-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --bs-card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--bs-gradient-start) 0%,
    var(--bs-gradient-end) 100%
  );
  color: white;
  padding: 4rem 2rem;
  margin: -1.5rem -1.5rem 3rem -1.5rem;
  border-radius: 0 0 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #ffffff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Modern Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color),
    var(--md-primary-fg-color--dark)
  );
  color: white;
  border-color: var(--md-primary-fg-color);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color--dark),
    var(--md-primary-fg-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 144, 255, 0.4);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(30, 144, 255, 0.1);
  transform: translateY(-2px);
  color: white;
  border-color: var(--md-primary-fg-color--light);
}

/* Architecture Grid */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.arch-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--bs-card-shadow);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.arch-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color),
    var(--md-primary-fg-color--light)
  );
}

.arch-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-card-shadow-hover);
  border-color: var(--md-primary-fg-color--light);
}

.arch-card:hover::before {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--md-primary-fg-color--dark),
    var(--md-primary-fg-color)
  );
}

.arch-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.arch-card h3 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.arch-card p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.arch-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.arch-card li {
  padding: 0.5rem 0;
  color: #6b7280;
  position: relative;
  padding-left: 1.5rem;
}

.arch-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bs-success);
  font-weight: bold;
}

.arch-link {
  color: var(--md-primary-fg-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.arch-link:hover {
  color: var(--md-primary-fg-color--dark);
  transform: translateX(5px);
}

.arch-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.arch-link:hover::after {
  transform: translateX(3px);
}

/* Technology Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-card-shadow);
  border-color: var(--md-primary-fg-color--light);
}

.tech-icon {
  font-size: 2rem;
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color--light),
    var(--md-accent-fg-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.tech-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--md-primary-fg-color--dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.tech-item p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Quick Navigation */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.nav-section {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.nav-section:hover {
  border-color: var(--md-primary-fg-color--light);
  box-shadow: var(--bs-card-shadow);
}

.nav-section h3 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-section li {
  margin-bottom: 0.5rem;
}

.nav-section a {
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin: 0.125rem 0;
  position: relative;
}

.nav-section a:hover {
  color: var(--md-primary-fg-color);
  background: rgba(30, 144, 255, 0.05);
  transform: translateX(5px);
}

.nav-section a::after {
  content: "→";
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.875rem;
}

.nav-section a:hover::after {
  opacity: 1;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: white;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 0.05;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-card-shadow-hover);
  border-color: var(--md-primary-fg-color);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(1);
  transition: filter 0.3s ease;
}

.stat-card:hover .stat-icon {
  filter: grayscale(0);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stat-label {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

/* Footer CTA */
.footer-cta {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color) 0%,
    var(--md-primary-fg-color--dark) 100%
  );
  border-radius: 1rem;
  margin: 3rem 0;
  border: 1px solid var(--md-primary-fg-color);
  color: white;
}

.footer-cta h2 {
  color: white;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-cta .btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.footer-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-cta .btn-primary {
  background: var(--md-primary-fg-color);
  color: white;
  border-color: var(--md-primary-fg-color);
}

.footer-cta .btn-primary:hover {
  background: var(--md-primary-fg-color--dark);
  border-color: var(--md-primary-fg-color--dark);
  color: white;
}

/* Engineering Procedures Styling */
.hero-section.engineering {
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #6366f1 100%);
}

.procedure-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--bs-card-shadow);
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.procedure-header {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.procedure-icon {
  font-size: 2rem;
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.procedure-header h3 {
  margin: 0;
  color: var(--md-primary-fg-color--dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.procedure-content {
  padding: 2rem;
}

.procedure-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(
    135deg,
    var(--md-primary-fg-color),
    var(--md-accent-fg-color)
  );
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--md-primary-fg-color--dark);
  font-size: 1.2rem;
  font-weight: 600;
}

.step-content p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  line-height: 1.6;
}

.code-example {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.code-example code {
  background: none;
  padding: 0;
  color: var(--md-primary-fg-color--dark);
  font-family: "JetBrains Mono", monospace;
}

/* Infrastructure Grid */
.infrastructure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.infra-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  text-align: center;
}

.infra-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--bs-card-shadow-hover);
  border-color: var(--md-primary-fg-color--light);
}

.infra-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.infra-card h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.infra-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.infra-card li {
  padding: 0.5rem 0;
  color: #6b7280;
  position: relative;
  padding-left: 1.5rem;
}

.infra-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--bs-success);
  font-weight: bold;
}

/* Monitoring Section */
.monitoring-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.monitoring-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
}

.monitoring-card h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

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

.metric {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.metric-label {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.metric-target {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--md-primary-fg-color);
}

.alert-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alert-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.alert-level {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert-level.critical {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.alert-level.warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fed7aa;
}

.alert-level.info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Data Operations */
.data-ops-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.procedure-checklist {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
}

.procedure-checklist h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: #374151;
  line-height: 1.5;
}

.checklist-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--bs-success);
  color: white;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Deployment Pipeline */
.deployment-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.pipeline-stage {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
  text-align: center;
  min-width: 200px;
  flex: 1;
}

.stage-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.pipeline-stage h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.pipeline-stage ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.pipeline-stage li {
  padding: 0.25rem 0;
  color: #6b7280;
  font-size: 0.9rem;
}

.pipeline-arrow {
  font-size: 2rem;
  color: var(--md-primary-fg-color);
  font-weight: bold;
  flex-shrink: 0;
}

/* Testing Pyramid */
.testing-pyramid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.test-level {
  border-radius: 0.75rem;
  box-shadow: var(--bs-card-shadow);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.test-level.unit {
  width: 100%;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-color: #10b981;
}

.test-level.integration {
  width: 80%;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #3b82f6;
}

.test-level.e2e {
  width: 60%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: #f59e0b;
}

.test-content {
  padding: 1.5rem;
  text-align: center;
}

.test-level h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.test-level p {
  margin: 0 0 1rem 0;
  color: #6b7280;
  line-height: 1.5;
}

.test-coverage {
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Review Standards */
.review-standards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.standard-category {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
}

.standard-category h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.standard-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.standard-category li {
  padding: 0.5rem 0;
  color: #6b7280;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.standard-category li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--md-primary-fg-color);
  font-size: 0.8rem;
}

/* Incident Workflow */
.incident-workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.incident-phase {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
  position: relative;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.phase-icon {
  font-size: 1.5rem;
}

.incident-phase h4 {
  margin: 0;
  color: var(--md-primary-fg-color--dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.incident-phase ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.incident-phase li {
  padding: 0.25rem 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* On-Call Section */
.oncall-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.oncall-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
}

.oncall-card h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.response-times {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.response-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.severity {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.severity.critical {
  background: #dc2626;
  color: white;
}

.severity.high {
  background: #f59e0b;
  color: white;
}

.severity.medium {
  background: #3b82f6;
  color: white;
}

.severity.low {
  background: #10b981;
  color: white;
}

.time {
  font-weight: 600;
  color: var(--md-primary-fg-color--dark);
}

/* Branch Strategy */
.branch-strategy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: start;
}

.branch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.branch-item {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
  text-align: center;
  width: 100%;
  max-width: 250px;
}

.branch-item.main {
  border-color: var(--bs-success);
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

.branch-item.staging {
  border-color: var(--md-primary-fg-color);
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.branch-item.feature {
  border-color: var(--md-accent-fg-color);
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
}

.branch-name {
  font-family: "JetBrains Mono", monospace;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--md-primary-fg-color--dark);
}

.branch-desc {
  color: #6b7280;
  font-size: 0.9rem;
}

.branch-arrow {
  font-size: 2rem;
  color: var(--md-primary-fg-color);
  font-weight: bold;
}

.branch-maintenance {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: var(--bs-card-shadow);
}

.branch-maintenance h4 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.maintenance-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.maintenance-step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}

.maintenance-step code {
  background: #1f2937;
  color: #e5e7eb;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.maintenance-step span {
  color: #6b7280;
  font-size: 0.9rem;
}

/* Procedures Footer */
.procedures-footer {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-radius: 1rem;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  border: 1px solid #e2e8f0;
}

.procedures-footer h2 {
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.procedures-footer p {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dark mode adjustments */
[data-md-color-scheme="slate"] .arch-card,
[data-md-color-scheme="slate"] .tech-item,
[data-md-color-scheme="slate"] .nav-section,
[data-md_color-scheme="slate"] .stat-card,
[data-md-color-scheme="slate"] .procedure-card,
[data-md_color-scheme="slate"] .infra-card,
[data-md_color-scheme="slate"] .monitoring-card,
[data-md_color-scheme="slate"] .procedure-checklist,
[data-md_color-scheme="slate"] .pipeline-stage,
[data-md_color-scheme="slate"] .standard-category,
[data-md_color-scheme="slate"] .incident-phase,
[data-md_color-scheme="slate"] .oncall-card,
[data-md_color-scheme="slate"] .branch-item,
[data-md_color-scheme="slate"] .branch-maintenance,
[data-md_color-scheme="slate"] .procedures-footer {
  background: var(--md-default-bg-color--light);
  border-color: var(--md-default-fg-color--lighter);
}

[data-md-color-scheme="slate"] .hero-section.engineering {
  background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #6366f1 100%);
}

[data-md-color-scheme="slate"] .procedure-header {
  background: var(--md-default-bg-color--lighter);
  border-color: var(--md-default-fg-color--lighter);
}

/* Existing styles */
.md-nav__item .md-nav__link--active {
  color: var(--md-primary-fg-color);
  font-weight: bold;
}

.md-header {
  background-color: var(--md-primary-fg-color--dark);
}

.md-header__button.md-logo img {
  height: 2rem;
  width: 2rem;
}

.md-typeset .admonition,
.md-typeset details {
  border-left-color: var(--md-primary-fg-color);
}

.md-typeset pre > code {
  border-radius: 0.5rem;
}

.md-search__input {
  background-color: rgba(255, 255, 255, 0.1);
}

.md-footer {
  background-color: var(--md-primary-fg-color--dark);
}

.md-typeset a {
  color: var(--md-primary-fg-color);
}

.md-typeset a:hover {
  color: var(--md-accent-fg-color);
}

.md-tabs {
  background-color: var(--md-primary-fg-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .architecture-grid,
  .tech-grid,
  .quick-nav,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .deployment-pipeline {
    flex-direction: column;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
  }

  .branch-strategy {
    grid-template-columns: 1fr;
  }

  .branch-flow {
    order: 2;
  }

  .branch-maintenance {
    order: 1;
  }

  .footer-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}
