.inhouse-hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0 70px 0;
  background: #ffffff;
  background-image:
    radial-gradient(
      ellipse 75% 45% at 50% -10%,
      rgba(14, 165, 233, 0.09),
      transparent 70%
    ),
    radial-gradient(
      circle at 90% 85%,
      rgba(2, 132, 199, 0.05),
      transparent 45%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(239, 68, 68, 0.03),
      transparent 45%
    ),
    radial-gradient(rgba(1, 43, 67, 0.05) 1.5px, transparent 1.5px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    26px 26px;
  overflow: hidden;
  border-bottom: 1px solid rgba(1, 43, 67, 0.08);
  box-sizing: border-box;
}

.inhouse-hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(2, 132, 199, 0.3),
    transparent
  );
}

.inhouse-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.inhouse-hero-copy .badge {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-weight: 700;
  margin-bottom: 16px;
}

.inhouse-hero-copy .hero-title,
.inhouse-hero-copy .hero-title span {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.18;
  font-weight: 850;
  color: #012b43;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.inhouse-hero-copy .hero-title .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.inhouse-hero-copy .hero-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
  color: #475569;
  margin-bottom: 28px;
}

.inhouse-hero-copy .hero-subtitle strong {
  color: #012b43;
}

.inhouse-hero-copy .hero-subtitle strong.highlight-burn {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 2px 8px;
  border-radius: 6px;
}

.inhouse-hero-copy .hero-subtitle strong.highlight-cycle {
  color: #0284c7;
}

.inhouse-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.inhouse-hero-actions .btn-secondary {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #012b43;
}

.inhouse-hero-actions .btn-secondary:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

.inhouse-hero-console {
  background: #ffffff;
  border: 1px solid rgba(1, 43, 67, 0.12);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.inhouse-hero-console::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #10b981);
}

.console-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 20px;
}

.console-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #012b43;
  text-transform: uppercase;
}

.console-header-title i {
  color: #0284c7;
}

.console-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
}

.console-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.console-metric-tile {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  transition: all 0.3s ease;
}

.console-metric-tile:hover {
  border-color: rgba(2, 132, 199, 0.4);
  background: #f0f9ff;
}

.console-metric-tile.tile-danger {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.7);
}

.console-metric-tile.tile-danger:hover {
  border-color: rgba(239, 68, 68, 0.4);
}

.tile-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.console-metric-tile.tile-danger .tile-label {
  color: #dc2626;
}

.tile-val {
  font-size: 1.65rem;
  font-weight: 800;
  color: #012b43;
  line-height: 1.1;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.tile-val.val-profit {
  color: #059669;
}

.tile-val.val-burn {
  color: #dc2626;
}

.tile-sub {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.console-metric-tile.tile-danger .tile-sub {
  color: #991b1b;
}

.console-audit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.audit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.84rem;
}

.audit-item-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
}

.audit-item-label i {
  width: 16px;
  height: 16px;
  color: #0284c7;
}

.audit-item-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}

.pill-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pill-success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.console-tool-sprawl-box {
  background: #f0f9ff;
  border: 1px dashed rgba(2, 132, 199, 0.35);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.sprawl-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0284c7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sprawl-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.sprawl-tag-cut {
  text-decoration: line-through;
  color: #94a3b8;
  font-size: 0.72rem;
  background: #e2e8f0;
  padding: 3px 8px;
  border-radius: 4px;
}

.sprawl-tag-win {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.72rem;
  background: #0284c7;
  padding: 3px 8px;
  border-radius: 4px;
}

.inhouse-factory-section {
  position: relative;
  padding: 100px 0;
  background: #ffffff;
  color: #012b43;
  overflow: hidden;
  border-top: 1px solid rgba(1, 43, 67, 0.08);
  border-bottom: 1px solid rgba(1, 43, 67, 0.08);
}

.inhouse-factory-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(1, 43, 67, 0.035) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

.inhouse-factory-section .badge {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  color: #0284c7;
  font-weight: 700;
  margin-bottom: 16px;
}

.inhouse-factory-section .section-title,
.inhouse-factory-section .section-title span {
  color: #012b43;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.inhouse-factory-section .section-title .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.inhouse-factory-section .section-subtitle {
  color: #475569;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.7;
  max-width: 820px;
  margin: 16px auto 0 auto;
}

.factory-flow-deck {
  background: #f8fafc;
  border: 1px solid rgba(1, 43, 67, 0.12);
  border-radius: 24px;
  padding: 36px 32px;
  margin: 48px 0 56px 0;

  position: relative;
}

.factory-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.factory-flow-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0284c7;
  text-transform: uppercase;
}

.factory-flow-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
}

.flow-pipeline-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  position: relative;
  align-items: center;
}

.flow-step-node {
  background: #ffffff;
  border: 2px solid rgba(1, 43, 67, 0.1);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.flow-step-node:hover {
  transform: translateY(-4px);
  border-color: #0284c7;
}

.flow-step-node.active {
  border-color: #0284c7;
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
}

.flow-step-node.node-human {
  border-color: #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.flow-step-node.node-human.active {
  border-color: #d97706;
}

.flow-step-node.node-success {
  border-color: #10b981;
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
}

.flow-step-node.node-success.active {
  border-color: #059669;
}

.node-chip {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
  display: block;
}

.node-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  transition: transform 0.3s ease;
}

.flow-step-node.node-human .node-icon-wrap {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.flow-step-node.node-success .node-icon-wrap {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.node-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #012b43;
  line-height: 1.25;
}

.node-action-type {
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 4px;
  color: #0284c7;
}

.flow-step-node.node-human .node-action-type {
  color: #b45309;
}

.flow-step-node.node-success .node-action-type {
  color: #047857;
}

.flow-step-inspector {
  margin-top: 24px;
  background: #ffffff;
  border: 1px solid rgba(1, 43, 67, 0.1);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.inspector-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inspector-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  background: #012b43;
  color: #ffffff;
}

.inspector-text {
  font-size: 0.95rem;
  color: #334155;
  font-weight: 600;
}

.inspector-speed {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.inhouse-factory-section .why-grid-2x2,
.factory-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 48px auto 0 auto;
}

.inhouse-factory-section .why-card {
  background: #ffffff;
  border: 1px solid rgba(1, 43, 67, 0.12);
  padding: 36px 32px;

  text-align: left;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.inhouse-factory-section .why-card-tl {
  border-radius: 44px 14px 14px 14px;
}

.inhouse-factory-section .why-card-tr {
  border-radius: 14px 44px 14px 14px;
}

.inhouse-factory-section .why-card-bl {
  border-radius: 14px 14px 14px 44px;
}

.inhouse-factory-section .why-card-br {
  border-radius: 14px 14px 44px 14px;
}

.inhouse-factory-section .why-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #0284c7;
}

.inhouse-factory-section .why-card-tl:hover {
  border-top-left-radius: 48px;
}

.inhouse-factory-section .why-card-tr:hover {
  border-top-right-radius: 48px;
}

.inhouse-factory-section .why-card-bl:hover {
  border-bottom-left-radius: 48px;
}

.inhouse-factory-section .why-card-br:hover {
  border-bottom-right-radius: 48px;
}

.why-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.why-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.why-card:hover .why-card-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  background: rgba(2, 132, 199, 0.18);
}

.inhouse-factory-section .why-card-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: #012b43;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.inhouse-factory-section .why-card-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}

.factory-time-banner {
  background: linear-gradient(135deg, #012b43 0%, #011e30 100%);
  border-radius: 20px;
  padding: 32px 40px;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: #ffffff;
}

.time-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.time-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.time-banner-text h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.time-banner-text p {
  font-size: 0.94rem;
  color: #94a3b8;
}

.time-comparison-capsule {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-val-before {
  text-align: center;
}

.time-val-before .num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f87171;
  text-decoration: line-through;
}

.time-val-before .lbl {
  font-size: 0.68rem;
  color: #64748b;
  text-transform: uppercase;
}

.time-val-after {
  text-align: center;
}

.time-val-after .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #34d399;
}

.time-val-after .lbl {
  font-size: 0.68rem;
  color: #38bdf8;
  text-transform: uppercase;
}

.inhouse-burn-section {
  position: relative;
  padding: 100px 0 110px 0;
  background: #011624;
  color: #ffffff;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inhouse-burn-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      ellipse 60% 40% at 50% 10%,
      rgba(239, 68, 68, 0.08),
      transparent
    ),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size:
    100% 100%,
    28px 28px;
  pointer-events: none;
}

.inhouse-burn-section .badge {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 700;
  margin-bottom: 16px;
}

.inhouse-burn-section .section-title,
.inhouse-burn-section .section-title span {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
}

.inhouse-burn-section .section-title .text-gradient {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.burn-comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  align-items: stretch;
  margin: 48px 0;
}

.burn-card-old {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 24px;
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.burn-card-old:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 16px 36px -10px rgba(239, 68, 68, 0.2);
}

.burn-card-old::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #ef4444;
}

.burn-card-title {
  font-size: 1.35rem;
  font-weight: 850;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.burn-card-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 0;
}

.burn-card-new {
  background: rgba(1, 33, 52, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 24px;
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.burn-card-new:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 16px 36px -10px rgba(2, 132, 199, 0.25);
}

.burn-card-new::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #10b981);
}

.burn-card-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  width: fit-content;
}

.leads-matrix-preview {
  background: #011e30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0 24px 0;
}

.matrix-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
}

.matrix-dots-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 4px;
  margin-bottom: 14px;
}

.matrix-dot {
  aspect-ratio: 1/1;
  border-radius: 2px;
  background: #64748b;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.matrix-dot.dot-red {
  background: #ef4444;
}

.matrix-dot.dot-killed {
  background: #1e293b;
  opacity: 0.25;
  transform: scale(0.6);
}

.matrix-dot.dot-green {
  background: #10b981;
}

.matrix-dot.dot-signed {
  background: #38bdf8;
}

.matrix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.72rem;
  color: #94a3b8;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.btn-kill-red-trigger {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-kill-red-trigger:hover {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  transform: translateY(-2px);
}

.btn-kill-red-trigger.state-killed {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  border-color: rgba(52, 211, 153, 0.4);
}

.burn-savings-banner {
  margin-top: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
}

.burn-savings-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #34d399;
}

.burn-profit-statement {
  margin-top: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 44px 32px;
}

.burn-profit-statement h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 800;
  color: #ffffff;
}

.burn-profit-statement .btn-calc-magnet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 100px;
}

.inhouse-cta-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(180deg, #011e30 0%, #01121c 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  text-align: center;
}

.inhouse-cta-section .badge {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 20px;
}

.inhouse-cta-section .cta-title,
.inhouse-cta-section .cta-title span {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 32px;
}

.inhouse-cta-section .cta-title .text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.inhouse-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 1200px) {
  .inhouse-hero-grid {
    gap: 36px;
  }
  .burn-comparison-grid {
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .inhouse-hero-section {
    padding: 50px 0 60px 0;
    min-height: auto;
  }

  .inhouse-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .inhouse-hero-console {
    max-width: 620px;
    margin: 0 auto;
    width: 100%;
  }

  .flow-pipeline-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .factory-pillars-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    max-width: 650px;
  }

  .burn-comparison-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .inhouse-hero-section {
    padding: 38px 0 40px 0;
  }

  .inhouse-hero-copy .badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .inhouse-hero-copy .hero-title,
  .inhouse-hero-copy .hero-title span,
  .inhouse-hero-copy .hero-title .text-gradient {
    font-size: clamp(1.75rem, 6.2vw, 2.3rem);
    line-height: 1.18;
    margin-bottom: 16px;
  }

  .inhouse-hero-copy .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
  }

  .inhouse-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 20px;
  }

  .inhouse-hero-actions .btn,
  .inhouse-hero-actions a.btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
    font-size: 0.92rem;
  }

  .inhouse-hero-console {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .console-header-bar {
    padding-bottom: 14px;
    margin-bottom: 16px;
  }

  .console-header-title {
    font-size: 0.78rem;
  }

  .console-status-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .console-metrics-grid {
    gap: 12px;
    margin-bottom: 16px;
  }

  .console-metric-tile {
    padding: 14px 12px;
  }

  .tile-val {
    font-size: 1.45rem;
  }

  .audit-item {
    padding: 9px 12px;
    font-size: 0.8rem;
  }

  .audit-item-pill {
    font-size: 0.7rem;
    padding: 2px 8px;
  }

  .inhouse-factory-section {
    padding: 60px 0;
  }

  .inhouse-factory-section .section-title,
  .inhouse-factory-section .section-title span,
  .inhouse-factory-section .section-title .text-gradient {
    font-size: clamp(1.65rem, 5.8vw, 2.2rem);
  }

  .inhouse-factory-section .section-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 12px;
  }

  .factory-flow-deck {
    padding: 24px 18px;
    border-radius: 20px;
    margin: 32px 0 40px 0;
  }

  .factory-flow-header {
    margin-bottom: 20px;
  }

  .factory-flow-title {
    font-size: 0.78rem;
  }

  .factory-flow-status {
    font-size: 0.74rem;
    padding: 3px 10px;
  }

  .flow-pipeline-track {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .flow-step-node {
    padding: 16px 10px;
    border-radius: 14px;
  }

  .node-chip {
    font-size: 0.64rem;
  }

  .node-icon-wrap {
    width: 34px;
    height: 34px;
    margin-bottom: 8px;
  }

  .node-title {
    font-size: 0.82rem;
  }

  .node-action-type {
    font-size: 0.68rem;
  }

  .flow-step-inspector {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    margin-top: 18px;
  }

  .inspector-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .inspector-badge {
    font-size: 0.72rem;
    padding: 4px 10px;
  }

  .inspector-text {
    font-size: 0.9rem;
  }

  .inspector-speed {
    font-size: 0.78rem;
  }

  .inhouse-factory-section .why-card {
    padding: 28px 24px;
    border-radius: 20px;
  }

  .inhouse-factory-section .why-card-title {
    font-size: 1.18rem;
  }

  .inhouse-factory-section .why-card-desc {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .factory-time-banner {
    flex-direction: column;
    text-align: center;
    padding: 26px 20px;
    border-radius: 18px;
    gap: 20px;
  }

  .time-banner-left {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .time-banner-text h3 {
    font-size: 1.15rem;
  }

  .time-banner-text p {
    font-size: 0.88rem;
  }

  .time-comparison-capsule {
    padding: 10px 20px;
    gap: 14px;
  }

  .time-val-before .num {
    font-size: 1.15rem;
  }

  .time-val-after .num {
    font-size: 1.35rem;
  }

  .inhouse-burn-section {
    padding: 60px 0;
  }

  .burn-card-old,
  .burn-card-new {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .burn-card-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
  }

  .burn-card-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 18px;
  }

  .burn-profit-statement {
    padding: 32px 20px;
    margin-top: 40px;
    border-radius: 18px;
  }

  .burn-profit-statement h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .burn-profit-statement .btn-calc-magnet {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.92rem;
  }

  .inhouse-cta-section {
    padding: 60px 0;
  }

  .inhouse-cta-section .cta-title {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
    margin-bottom: 24px;
  }

  .inhouse-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .inhouse-cta-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 0.92rem;
  }
}

@media (max-width: 640px) {
  .flow-pipeline-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .matrix-dots-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
  }

  .btn-kill-red-trigger {
    padding: 13px 14px;
    font-size: 0.82rem;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .inhouse-hero-section {
    padding: 28px 0 32px 0;
  }

  .inhouse-hero-copy .hero-title,
  .inhouse-hero-copy .hero-title span,
  .inhouse-hero-copy .hero-title .text-gradient {
    font-size: clamp(1.48rem, 7.2vw, 1.85rem);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .inhouse-hero-copy .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .inhouse-hero-actions .btn,
  .inhouse-hero-actions a.btn {
    padding: 12px 14px;
    font-size: 0.86rem;
  }

  .inhouse-hero-console {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .console-header-bar {
    padding-bottom: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .console-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .console-metric-tile {
    padding: 10px 8px;
    border-radius: 10px;
  }

  .tile-label {
    font-size: 0.66rem;
  }

  .tile-val {
    font-size: 1.25rem;
  }

  .tile-sub {
    font-size: 0.68rem;
  }

  .console-audit-list {
    gap: 8px;
    margin-bottom: 14px;
  }

  .audit-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
  }

  .audit-item-label {
    font-size: 0.76rem;
  }

  .audit-item-pill {
    align-self: flex-start;
    font-size: 0.68rem;
  }

  .sprawl-label {
    font-size: 0.7rem;
  }

  .sprawl-tag-cut,
  .sprawl-tag-win {
    font-size: 0.66rem;
    padding: 2px 6px;
  }

  .factory-flow-deck {
    padding: 18px 12px;
    border-radius: 16px;
    margin: 24px 0 28px 0;
  }

  .flow-step-node {
    padding: 12px 6px;
    border-radius: 10px;
  }

  .node-icon-wrap {
    width: 30px;
    height: 30px;
    margin-bottom: 6px;
  }

  .node-icon-wrap i {
    width: 16px;
    height: 16px;
  }

  .node-chip {
    font-size: 0.6rem;
  }

  .node-title {
    font-size: 0.74rem;
  }

  .node-action-type {
    font-size: 0.62rem;
  }

  .inhouse-factory-section .why-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .inhouse-factory-section .why-card-title {
    font-size: 1.08rem;
  }

  .inhouse-factory-section .why-card-desc {
    font-size: 0.88rem;
  }

  .factory-time-banner {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .time-icon-circle {
    width: 44px;
    height: 44px;
  }

  .time-banner-text h3 {
    font-size: 1.02rem;
  }

  .time-banner-text p {
    font-size: 0.82rem;
  }

  .time-comparison-capsule {
    padding: 8px 14px;
    gap: 10px;
  }

  .time-val-before .num {
    font-size: 1.05rem;
  }

  .time-val-after .num {
    font-size: 1.18rem;
  }

  .burn-card-old,
  .burn-card-new {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .burn-stat-callout-old {
    padding: 12px 14px;
  }

  .burn-stat-row {
    font-size: 0.8rem;
  }

  .stat-burn-total {
    font-size: 1.1rem;
  }

  .leads-matrix-preview {
    padding: 14px 10px;
  }

  .matrix-dots-grid {
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
  }

  .matrix-status-header {
    font-size: 0.72rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .matrix-legend {
    font-size: 0.66rem;
    gap: 8px;
  }

  .btn-kill-red-trigger {
    padding: 11px 12px;
    font-size: 0.78rem;
    border-radius: 10px;
  }

  .burn-savings-banner {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .burn-savings-val {
    font-size: 1.1rem;
  }

  .burn-profit-statement {
    padding: 24px 14px;
    border-radius: 14px;
  }

  .burn-profit-statement h3 {
    font-size: 1.12rem;
  }

  .burn-profit-statement .btn-calc-magnet {
    padding: 12px 18px;
    font-size: 0.86rem;
  }

  .inhouse-cta-buttons .btn {
    padding: 12px 14px;
    font-size: 0.86rem;
  }
}

@media (max-width: 360px) {
  .console-metric-tile {
    padding: 8px 6px;
  }

  .tile-val {
    font-size: 1.1rem;
  }

  .flow-step-node {
    padding: 10px 4px;
  }

  .node-title {
    font-size: 0.7rem;
  }

  .node-action-type {
    font-size: 0.58rem;
  }

  .matrix-dots-grid {
    gap: 2px;
  }

  .btn-kill-red-trigger {
    font-size: 0.72rem;
    padding: 10px 8px;
  }
}
