.page-products {
  --products-gap: 2rem;
  --products-radius: 1.25rem;
  background: var(--color-offwhite);
  color: var(--color-ink);
}

.page-products .page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-deep) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.page-products .page-hero__inner {
  position: relative;
  z-index: 1;
}

.page-products__hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -4rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.55), transparent 65%);
  z-index: 0;
}

.page-products__hero-desc {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 1rem 0 0;
  opacity: 0.92;
}

.page-products__hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-products__stat {
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--color-orange);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.page-products__stat .statistical-number {
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
}

.page-products__stat-label {
  font-size: 0.875rem;
  opacity: 0.8;
}

.page-products__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-products .page-hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--color-white);
}

.page-products__section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.page-products__eyebrow {
  color: var(--color-orange);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}

.page-products__h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0;
}

.page-products__section-intro {
  color: var(--color-ink);
  opacity: 0.85;
  max-width: 36rem;
  margin: 0;
}

.page-products__inline-link {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 700;
  justify-self: start;
}

.page-products__feature-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.page-products__feature-cards {
  display: grid;
  gap: 1.5rem;
}

.page-products__feature-card {
  background: var(--color-white);
  border: 1px solid rgba(10, 31, 68, 0.06);
  border-radius: var(--products-radius);
  box-shadow: 0 12px 30px rgba(10, 31, 68, 0.08);
  padding: 1.5rem;
  position: relative;
}

.page-products__feature-card--offset {
  margin-left: 1.25rem;
}

.page-products__card-index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-orange);
  font-size: 0.875rem;
  background: rgba(255, 107, 53, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.page-products__feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--color-navy);
}

.page-products__feature-card p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--color-ink);
}

.page-products__devices {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 0 1.5rem;
}

.page-products__device {
  width: min(300px, 82vw);
  background: var(--color-navy-deep);
  border-radius: 3rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(10, 31, 68, 0.3);
  position: relative;
}

.page-products__device-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: rgba(10, 31, 68, 0.9);
  border-radius: 999px;
  z-index: 3;
}

.page-products__device-screen {
  border-radius: 2.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  scroll-snap-type: x mandatory;
  aspect-ratio: 1 / 2;
  background: var(--color-offwhite);
  scrollbar-width: none;
}

.page-products__device-screen::-webkit-scrollbar {
  display: none;
}

.page-products__screen-item {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-width: 100%;
}

.page-products__screen-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-products__device-caption {
  color: var(--color-white);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.75rem 0.25rem 0.25rem;
}

.page-products__history {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.page-products__history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-gold), var(--color-orange));
}

.page-products__history .page-products__eyebrow {
  color: var(--color-gold);
}

.page-products__history .page-products__h2 {
  color: var(--color-white);
}

.page-products__timeline {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.page-products__timeline-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  border-left: 4px solid var(--color-gold);
}

.page-products__timeline-node {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-gold);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.5rem;
}

.page-products__timeline-year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-orange);
  background: rgba(255, 107, 53, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
}

.page-products__timeline-item p {
  margin: 0;
  line-height: 1.55;
  opacity: 0.85;
  font-size: 0.9375rem;
}

.page-products__download {
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, transparent 40%),
    var(--color-white);
  position: relative;
}

.page-products__download::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, var(--color-orange), var(--color-gold));
}

.page-products__download-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-products__download-copy p {
  line-height: 1.7;
  margin: 1rem 0 1.5rem;
  max-width: 36rem;
}

.page-products__download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-products__btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--color-orange), #ff8a50);
  color: var(--color-white);
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-products__btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(255, 107, 53, 0.4);
}

.page-products__btn-download::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.page-products__btn-download:active::after {
  transform: scale(2);
  opacity: 1;
}

.page-products__qr {
  background: var(--color-offwhite);
  border-radius: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed rgba(10, 31, 68, 0.15);
}

.page-products__qr img {
  width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(10, 31, 68, 0.12);
}

.page-products__qr p {
  font-size: 0.875rem;
  margin: 0;
}

.page-products__sync {
  background: var(--color-offwhite);
  padding: 4rem 0;
}

.page-products__sync-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-products__sync-image {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 1.5rem;
  box-shadow: 0 16px 32px rgba(10, 31, 68, 0.12);
}

.page-products__sync-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.page-products__sync-list li {
  position: relative;
  padding-left: 1.75rem;
  line-height: 1.6;
}

.page-products__sync-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-orange);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

@media (min-width: 64rem) {
  .page-products .page-hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .page-products__hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .page-products__section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .page-products__inline-link {
    justify-self: end;
  }

  .page-products__feature-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 3rem;
  }

  .page-products__feature-card--offset {
    margin-top: 2rem;
    margin-left: 2.5rem;
  }

  .page-products__devices {
    position: sticky;
    top: 2rem;
    padding-top: 2rem;
  }

  .page-products__device {
    width: 320px;
    transform: rotate(1.5deg);
  }

  .page-products__timeline {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .page-products__timeline-item {
    flex: 0 0 220px;
    scroll-snap-align: center;
    border-left: 0;
    border-top: 4px solid var(--color-gold);
  }

  .page-products__download-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .page-products__sync-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
