.page-products {
  --pd-primary: var(--color-primary);
  --pd-primary-light: var(--color-primary-light);
  --pd-primary-dark: var(--color-primary-dark);
  --pd-accent: var(--color-accent);
  --pd-border: var(--color-border);
  --pd-text: var(--color-text);
  --pd-text-secondary: var(--color-text-secondary);
  --pd-bg-soft: #EFF6FF;
  background: linear-gradient(180deg, #EFF6FF 0%, var(--color-bg) 500px);
  min-height: 100vh;
}

.page-products .products-shell {
  display: block;
  width: 100%;
}

.page-products .products-sidebar {
  display: none;
}

.page-products .products-main {
  min-width: 0;
}

.page-products .products-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
}

.page-products .breadcrumb-list {
  flex-wrap: wrap;
  padding-top: var(--space-lg);
  margin-bottom: 0;
}

.page-products .products-hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  border-bottom: 1px solid var(--pd-border);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}

.page-products .products-hero::before {
  content: "";
  position: absolute;
  left: 360px;
  bottom: -24px;
  width: 84px;
  height: 84px;
  border: 1px solid rgba(10, 102, 255, 0.14);
  border-radius: 18px;
  transform: rotate(12deg);
  pointer-events: none;
}

.page-products .products-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 102, 255, 0.14), transparent 70%);
  pointer-events: none;
}

.page-products .products-hero .eyebrow {
  margin-bottom: var(--space-md);
}

.page-products .products-hero h1 {
  max-width: 720px;
  margin-bottom: var(--space-md);
}

.page-products .products-hero .lead {
  max-width: 640px;
  color: var(--pd-text-secondary);
  margin-bottom: 0;
}

.page-products .products-section {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--pd-border);
  scroll-margin-top: calc(var(--header-safe) + 24px);
}

.page-products .products-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-products .products-section-alt {
  margin: 0 calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  border-radius: var(--radius-lg);
  border-bottom: none;
  background: linear-gradient(180deg, rgba(10, 102, 255, 0.05), rgba(10, 102, 255, 0.02));
}

.page-products .products-section-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.page-products .products-section-num {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--pd-primary);
  min-width: 72px;
  opacity: 0.9;
}

.page-products .products-section-head h2 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 var(--space-xs);
}

.page-products .products-section-sub {
  font-size: var(--text-base);
  color: var(--pd-text-secondary);
  margin: 0;
}

.page-products .feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.page-products .feature-card {
  background: var(--color-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-products .feature-card:hover {
  border-color: var(--pd-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-products .feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 102, 255, 0.1);
  color: var(--pd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.page-products .feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.page-products .feature-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.page-products .feature-card-text {
  font-size: var(--text-sm);
  color: var(--pd-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.page-products .feature-visual {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-surface);
  border: 1px dashed var(--pd-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: 0;
}

.page-products .feature-visual img {
  width: 120px;
  height: 120px;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.page-products .feature-visual figcaption {
  font-size: var(--text-base);
  color: var(--pd-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.page-products .desktop-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.page-products .desktop-showcase-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pd-border);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  padding: var(--space-md);
}

.page-products .desktop-showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, var(--pd-bg-soft), #DBEAFE);
}

.page-products .desktop-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .desktop-points li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--pd-border);
}

.page-products .desktop-points li:last-child {
  border-bottom: none;
}

.page-products .desktop-point-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(10, 102, 255, 0.1);
  color: var(--pd-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-products .desktop-points h3 {
  font-size: var(--text-base);
  font-weight: 700;
  margin: 0 0 4px;
}

.page-products .desktop-points p {
  font-size: var(--text-sm);
  color: var(--pd-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.page-products .mobile-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.page-products .mobile-showcase-media {
  margin: 0 auto;
  max-width: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pd-border);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  padding: var(--space-sm);
}

.page-products .mobile-showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.page-products .mobile-showcase-text h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.page-products .mobile-showcase-text p {
  font-size: var(--text-base);
  color: var(--pd-text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-lg);
}

.page-products .mobile-cert {
  font-size: var(--text-sm);
  color: var(--pd-text-secondary);
  background: rgba(15, 118, 110, 0.08);
  border-left: 3px solid var(--color-jewel-teal);
  padding: var(--space-md) var(--space-lg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-products .version-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.page-products .version-timeline {
  position: relative;
  padding-left: var(--space-md);
}

.page-products .version-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--pd-primary-light), var(--pd-primary), var(--color-jewel-teal));
}

.page-products .version-item {
  position: relative;
  padding: 0 0 var(--space-lg) var(--space-xl);
}

.page-products .version-marker {
  position: absolute;
  left: 0;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pd-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.page-products .version-item-current .version-marker {
  background: var(--pd-accent);
}

.page-products .version-content {
  background: var(--color-surface);
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.page-products .version-content:hover {
  border-color: var(--pd-primary-light);
  box-shadow: var(--shadow-md);
}

.page-products .version-content h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 var(--space-xs);
}

.page-products .version-content p {
  font-size: var(--text-sm);
  color: var(--pd-text-secondary);
  line-height: 1.7;
  margin: 0;
}

.page-products .version-map {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--pd-border);
  background: var(--color-surface);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
}

.page-products .version-map img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
}

.page-products .download-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.page-products .download-card {
  background: linear-gradient(180deg, var(--color-surface), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--pd-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}

.page-products .download-card:hover {
  border-color: var(--pd-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.page-products .download-card-img {
  width: 96px;
  height: 96px;
  max-width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--pd-bg-soft), #DBEAFE);
}

.page-products .download-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(10, 102, 255, 0.1);
  color: var(--pd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.page-products .download-card-icon svg {
  width: 26px;
  height: 26px;
}

.page-products .download-card h3 {
  font-size: var(--text-md);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.page-products .download-card p {
  font-size: var(--text-sm);
  color: var(--pd-text-secondary);
  line-height: 1.7;
  margin: 0 0 var(--space-md);
  flex: 1;
}

.page-products .download-card .btn {
  align-self: flex-start;
}

.page-products .download-note {
  background: rgba(10, 102, 255, 0.06);
  border: 1px solid rgba(10, 102, 255, 0.14);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--pd-text-secondary);
  line-height: 1.8;
}

.page-products .download-note a {
  color: var(--pd-primary);
  text-decoration: none;
  font-weight: 500;
}

.page-products .download-note a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .page-products .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .download-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .page-products .desktop-showcase {
    grid-template-columns: 1.05fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .page-products .mobile-showcase {
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: center;
  }

  .page-products .version-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: start;
  }

  .page-products .download-layout {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-products .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-products .products-shell {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) 0;
    gap: var(--space-2xl);
    align-items: start;
  }

  .page-products .products-sidebar {
    display: block;
    position: sticky;
    top: var(--header-safe);
    z-index: 5;
  }

  .page-products .products-sidebar-inner {
    background: var(--color-bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--pd-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    padding: var(--space-lg);
  }

  .page-products .products-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--pd-border);
  }

  .page-products .products-sidebar-kicker {
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pd-primary);
  }

  .page-products .products-sidebar-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-xs);
    color: var(--pd-text-secondary);
  }

  .page-products .products-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-lg);
  }

  .page-products .products-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--pd-text-secondary);
    text-decoration: none;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  }

  .page-products .products-sidebar-link:hover {
    background: rgba(10, 102, 255, 0.08);
    color: var(--pd-primary);
    transform: translateX(2px);
  }

  .page-products .products-sidebar-index {
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--pd-primary);
    opacity: 0.7;
    min-width: 22px;
  }

  .page-products .products-sidebar-foot {
    padding-top: var(--space-md);
    border-top: 1px solid var(--pd-border);
    font-size: var(--text-sm);
    color: var(--pd-text-secondary);
    line-height: 1.6;
  }

  .page-products .products-sidebar-foot p {
    margin-bottom: var(--space-md);
  }

  .page-products .products-main {
    padding-bottom: var(--space-3xl);
  }

  .page-products .products-content {
    max-width: none;
    padding: 0;
  }

  .page-products .products-section-alt {
    margin-left: 0;
    margin-right: 0;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
  }
}
