/* Home page sections */

.hero {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.hero__title-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__brand {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-text);
}

.hero__headline {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-primary);
}

.hero__desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.68;
  letter-spacing: 0.8px;
  color: var(--color-text);
  opacity: 0.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  /* avoid reveal/transform clipping button borders against adjacent edges */
  padding: 1px 0;
  position: relative;
  z-index: 1;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}

.hero__trust-bar {
  width: 2px;
  height: 16px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.hero__trust-os {
  color: var(--color-primary);
}

.hero__trust-tag {
  color: var(--color-text);
}

.hero__visual {
  width: 452px;
  flex-shrink: 0;
}

.hero__visual img {
  width: 100%;
  height: auto;
}

/* Metrics */
.metrics {
  padding: 40px var(--page-pad-x);
  background: #fff;
}

.metrics__inner {
  display: flex;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.metric-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.metric-card__value {
  margin: 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

.metric-card__value .plus {
  color: var(--color-primary);
}

.metric-card__label {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
}

.metric-divider {
  width: 1px;
  height: 55px;
  background: #e8ebf0;
  flex-shrink: 0;
}

/* Pain points */
.pain {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.pain__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.pain__grid {
  display: flex;
  border: 1px solid var(--color-border-strong);
  background: #fff;
}

.pain-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 24px;
  background: #fff;
}

.pain-card + .pain-card {
  border-left: 1px solid var(--color-border-strong);
}

.pain-card__num {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f3f5;
  border-radius: 8px;
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  transform: skewX(-8deg);
}

.pain-card__title {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: 500;
}

.pain-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* OS Banner */
.os-banner {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.os-banner__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.os-banner__left {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.os-banner__title {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.os-banner__visual {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 520px;
}

.os-banner__visual img {
  width: 100%;
  height: auto;
}

/* Product portfolio */
.products {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.products__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.products__grid {
  display: flex;
  align-items: stretch;
}

.product-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 360px;
  min-width: 0;
  max-width: 100%;
  padding: 32px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
}

.product-card--highlight {
  flex: 1.45 1 0;
  background: #3690fe;
  color: #fff;
}

.product-card__tag {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.6;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.product-card--highlight .product-card__tag {
  background: rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 500;
}

.product-card__body {
  padding-top: 16px;
  border-top: 1px solid var(--color-border-strong);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card--highlight .product-card__body {
  border-top-color: rgba(255, 255, 255, 0.4);
}

.product-card__name {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
}

.product-card__audience {
  margin: 0;
  min-height: 76px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.product-card--highlight .product-card__audience {
  color: #fff;
}

.product-card__desc {
  margin: 0;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.product-card:first-child .product-card__desc {
  white-space: normal;
}

/* Case studies */
.cases {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.cases__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.cases__list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.case-card {
  display: flex;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.case-card__media {
  flex: 1;
  min-width: 0;
  height: 270px;
  overflow: hidden;
}

.case-card__media img {
  width: 100%;
  height: 100%;
}

.case-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 32px;
  background: #fff;
}

.case-card__tag {
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid var(--color-text);
  border-radius: 4px;
  opacity: 0.5;
  font-size: 16px;
}

.case-card__title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 500;
}

.case-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.case-card__metric {
  padding: 8px 12px;
  border-radius: 4px;
  background: #d2e6ff;
  color: var(--color-primary);
  font-size: 14px;
  line-height: 1.2;
}

.case-card__metric strong {
  font-weight: 500;
}

.case-card--reverse {
  flex-direction: row-reverse;
}

/* DRV */
.drv {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.drv__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.drv__top {
  display: flex;
  align-items: center;
  gap: 56px;
}

.drv__visual {
  width: 452px;
  height: 339px;
  flex-shrink: 0;
  background: #f6f7fc;
  overflow: hidden;
}

.drv__visual img {
  width: 100%;
  height: auto;
}

.drv__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.drv__points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.drv-point {
  display: flex;
  align-items: center;
  gap: 16px;
}

.drv-point__dot {
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  flex-shrink: 0;
}

.drv-point__text {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.drv-point-divider {
  width: 1px;
  height: 40px;
  background: #e8ebf0;
}

/* Ecosystem */
.eco {
  background: #fff;
  padding: 100px var(--page-pad-x);
}

.eco__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.eco__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  min-width: 0;
}

.eco__visual {
  width: 452px;
  height: 339px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #f1f4fd 42.74%, #e8effc 83.56%, #d8e7fc 124.38%);
}

.eco__visual img {
  display: block;
  width: 452px;
  height: 339px;
}

/* Bottom CTA */
.bottom-cta {
  background: var(--color-bg-soft);
  padding: 60px var(--page-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.bottom-cta__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 1100px) {
  .hero__inner,
  .os-banner__inner,
  .drv__top,
  .eco__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__visual,
  .os-banner__left,
  .drv__visual,
  .eco__visual {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .drv__visual {
    height: auto;
  }

  .eco__visual {
    height: auto;
    aspect-ratio: 452 / 339;
  }

  .eco__visual img {
    width: 100%;
    height: 100%;
  }

  .os-banner__visual {
    min-width: 0;
    max-width: 100%;
  }

  .pain__grid,
  .products__grid,
  .case-card,
  .case-card--reverse,
  .drv__points {
    flex-direction: column;
  }

  .products__grid {
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .products__grid .product-card,
  .products__grid .product-card--highlight {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 24px;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .products__grid .product-card__tag,
  .products__grid .product-card__desc,
  .products__grid .product-card__audience,
  .products__grid .product-card__name {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .products__grid .product-card__audience {
    min-height: 0;
  }

  .products__grid .product-card__name {
    font-size: 28px;
  }

  .pain-card + .pain-card {
    border-left: none;
    border-top: 1px solid var(--color-border-strong);
  }

  .case-card__media {
    height: 220px;
  }

  .drv-point-divider {
    width: 100%;
    height: 1px;
  }

  .hero__brand,
  .hero__headline {
    font-size: 36px;
  }

  .os-banner__left {
    max-width: 100%;
  }

  .os-banner__title {
    font-size: clamp(22px, 5vw, 36px);
    white-space: normal;
  }

  .product-card__desc {
    white-space: normal;
  }

  .metrics__inner {
    flex-wrap: wrap;
    row-gap: 24px;
  }

  .metric-card {
    flex: 1 1 40%;
    min-width: 140px;
  }

  .metric-divider {
    display: none;
  }

  .hero__actions,
  .bottom-cta__actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero,
  .pain,
  .os-banner,
  .products,
  .cases,
  .drv,
  .eco,
  .bottom-cta {
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
  }

  .products__inner {
    gap: 32px;
  }

  .products__grid .product-card,
  .products__grid .product-card--highlight {
    gap: 16px;
    padding: 20px;
  }

  .products__grid .product-card__name {
    font-size: 24px;
  }

  .products__grid .product-card__body {
    padding-top: 12px;
    gap: 12px;
  }

  .hero__brand,
  .hero__headline {
    font-size: 28px;
  }

  .metric-card__value {
    font-size: 28px;
  }

  .metric-card__label {
    font-size: 12px;
  }
}
