.product-hero {
  padding: clamp(7.5rem, 11vw, 10rem) 0 clamp(4rem, 7vw, 6.5rem);
  background: linear-gradient(
    135deg,
    var(--color-primary-strong),
    var(--color-primary),
    var(--color-primary-editorial)
  );
}

.product-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(36rem, 1.22fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.product-hero__copy {
  max-width: 36rem;
}
.product-hero h1 {
  max-width: 12ch;
  margin-top: 1rem;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.product-hero h1,
.product-hero .section-eyebrow {
  color: var(--color-on-primary);
}
.product-hero__support {
  max-width: 33rem;
  margin-top: 1.5rem;
  color: var(--color-on-primary);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.6;
}
.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.product-hero__preview {
  min-width: 0;
}

.product-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(113 37 52 / 0.14);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-product);
}
.product-frame__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--color-border-subtle);
  background: #fbfafb;
}
.product-frame__dots {
  display: flex;
  gap: 0.28rem;
}
.product-frame__dots i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #c7b9bd;
}
.product-frame__dots i:first-child {
  background: #a95a68;
}
.product-frame__dots i:nth-child(2) {
  background: #c59a52;
}
.product-frame__dots i:last-child {
  background: #5d8b73;
}
.product-frame__context {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-badge {
  padding: 0.28rem 0.5rem;
  border: 1px solid #d5e1ec;
  border-radius: 999px;
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}
.product-frame__heading {
  padding: 1.15rem 1.25rem 0;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}
.product-frame__content {
  padding: 1rem 1.25rem 1.25rem;
}
.product-frame--compact .product-frame__content {
  padding: 0.85rem;
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.dashboard-kpi {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: #fbfafb;
}
.dashboard-kpi dt,
.dashboard-kpi span {
  color: var(--color-text-muted);
  font-size: 0.66rem;
  line-height: 1.3;
}
.dashboard-kpi dd {
  margin-top: 0.45rem;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(0.86rem, 1.25vw, 1.1rem);
  font-weight: 800;
  line-height: 1.1;
}
.dashboard-kpi span {
  display: block;
  margin-top: 0.35rem;
  color: var(--color-secondary);
  font-weight: 600;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.dashboard-panel {
  min-width: 0;
  padding: 0.85rem;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}
.dashboard-panel__heading {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}
.dashboard-panel__heading h2 {
  font-size: 0.78rem;
}
.dashboard-panel__heading span {
  color: var(--color-text-muted);
  font-size: 0.6rem;
}
.dashboard-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  align-items: end;
  height: 9.5rem;
  margin-top: 0.8rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 2.3rem,
    var(--color-border-subtle) 2.3rem calc(2.3rem + 1px)
  );
}
.dashboard-chart__bar {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 0.3rem;
}
.dashboard-chart__bar i {
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 1rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: linear-gradient(180deg, #5f83a5, var(--color-secondary));
}
.dashboard-chart__bar small {
  color: var(--color-text-muted);
  font-size: 0.55rem;
  text-align: center;
}
.production-list {
  display: grid;
  gap: 0;
  margin-top: 0.45rem;
  list-style: none;
}
.production-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.production-list li:last-child {
  border-bottom: 0;
}
.production-list li > span {
  min-width: 0;
}
.production-list strong,
.production-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.production-list strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 0.68rem;
}
.production-list small {
  margin-top: 0.16rem;
  color: var(--color-text-muted);
  font-size: 0.6rem;
}
.production-state {
  padding: 0.24rem 0.38rem;
  border-radius: 999px;
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.production-state--running {
  background: var(--color-secondary-soft);
  color: var(--color-secondary-dark);
}
.production-state--waiting {
  background: #f7ecda;
  color: var(--color-warning);
}
.production-state--done {
  background: #e5f1eb;
  color: var(--color-success);
}

.journey {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--color-surface);
}
.journey__intro {
  max-width: 42rem;
}
.journey__intro h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.journey__intro > p:last-child {
  margin-top: 1rem;
  color: var(--color-text-secondary);
  font-size: 1.08rem;
  line-height: 1.6;
}
.journey__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  list-style: none;
}
.journey__steps::before {
  position: absolute;
  top: 2.35rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  content: '';
  transform-origin: left;
}
.motion-ready .journey:not(.is-visible) .journey__steps::before {
  transform: scaleX(0);
}
.motion-ready .journey.is-visible .journey__steps::before {
  animation: journey-line 900ms 250ms ease-out both;
}
.journey__step {
  position: relative;
  min-width: 0;
}
.journey__step a {
  display: flex;
  height: 100%;
  min-height: 15rem;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}
.journey__step a:hover {
  border-color: rgb(47 93 138 / 0.45);
  color: var(--color-text);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}
.journey__topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.journey__icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}
.product-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.journey__order {
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
}
.journey__label {
  margin-top: 1.2rem;
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.journey__step strong {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.journey__description {
  margin-top: 0.7rem;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

@keyframes journey-line {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 1100px) {
  .product-hero__layout {
    grid-template-columns: minmax(0, 0.72fr) minmax(32rem, 1.28fr);
    gap: 2rem;
  }
  .journey__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .journey__steps::before {
    display: none;
  }
}

@media (max-width: 960px) {
  .product-hero__layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-hero__copy {
    max-width: 43rem;
  }
  .product-hero h1 {
    max-width: 13ch;
  }
  .product-hero__preview {
    width: min(100%, 48rem);
  }
}

@media (max-width: 640px) {
  .product-hero {
    padding-top: 6.5rem;
  }
  .product-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-chart {
    height: 8rem;
  }
  .journey__steps {
    grid-template-columns: 1fr;
  }
  .journey__step a {
    min-height: 0;
  }
}

@media (max-width: 380px) {
  .product-frame__chrome {
    grid-template-columns: auto 1fr;
  }
  .product-frame__context {
    display: none;
  }
  .demo-badge {
    justify-self: end;
  }
  .product-frame__heading,
  .product-frame__content {
    padding-inline: 0.8rem;
  }
  .production-state {
    white-space: normal;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey__steps::before {
    transform: none !important;
    animation: none !important;
  }
  .journey__step a {
    transition: none;
  }
}
