.page-products {
  --prod-hero-glow: 0 0 60px rgba(0, 255, 135, 0.12);
  --prod-bar-bg: rgba(255, 255, 255, 0.08);
  --prod-phone-ratio: 9 / 19;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: var(--space-8);
}

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

/* ===== Breadcrumb ===== */
.page-products .breadcrumb {
  padding: var(--space-4) 0 var(--space-2);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}
.page-products .breadcrumb a {
  color: var(--accent-tertiary);
  text-decoration: none;
}
.page-products .breadcrumb-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}
.page-products .breadcrumb-current {
  color: var(--text-primary);
}

/* ===== Hero ===== */
.page-products .prod-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0 var(--space-8);
  overflow: hidden;
}
.page-products .prod-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 45%, rgba(0, 212, 255, 0.06) 50%, transparent 72%);
  pointer-events: none;
  transform: skewX(-8deg);
}
.page-products .prod-hero-copy {
  position: relative;
  z-index: 1;
}
.page-products .prod-eyebrow {
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  letter-spacing: 0.18em;
  color: var(--accent-secondary);
  margin: 0 0 var(--space-3);
}
.page-products .prod-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-4);
}
.page-products .prod-hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 42em;
  margin: 0 0 var(--space-5);
}
.page-products .prod-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.page-products .prod-hero-actions .btn,
.page-products .prod-hero-actions .btn-ghost {
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.page-products .prod-hero-actions .btn {
  background: var(--accent-primary);
  color: #0A192F;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 255, 135, 0.2);
}
.page-products .prod-hero-actions .btn-ghost {
  background: transparent;
  color: var(--accent-tertiary);
  border: 1px solid var(--accent-tertiary);
}
.page-products .prod-hero-actions .btn:hover,
.page-products .prod-hero-actions .btn-ghost:hover {
  transform: translateY(-3px);
}

/* Hero CSS phone */
.page-products .prod-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-5) 0;
}
.page-products .prod-phone-outline {
  width: 230px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  background: var(--bg-card);
  border: 4px solid var(--border-line);
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--prod-hero-glow), inset 0 0 24px rgba(0, 212, 255, 0.04);
  position: relative;
}
.page-products .prod-phone-speaker {
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: var(--border-line);
  margin: 0 auto 8px;
}
.page-products .prod-phone-screen {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: linear-gradient(160deg, var(--bg-card), var(--bg-primary));
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow: hidden;
}
.page-products .prod-phone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(0, 255, 135, 0.12), transparent 60%);
  animation: prod-pulse 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes prod-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}
.page-products .prod-phone-topline {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}
.page-products .prod-phone-topline span:last-child {
  color: var(--accent-secondary);
  font-weight: 700;
}
.page-products .prod-phone-score {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-primary);
  border: 1px solid var(--border-line);
  border-radius: 14px;
  padding: 0.9rem 0.5rem;
  font-family: var(--font-heading);
}
.page-products .prod-phone-score strong {
  font-size: 1.9rem;
  color: var(--accent-primary);
  letter-spacing: 0.02em;
}
.page-products .prod-phone-score span {
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.page-products .prod-phone-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 52px;
  padding: 0 4px;
}
.page-products .prod-phone-bars i {
  flex: 1;
  background: linear-gradient(to top, rgba(0, 255, 135, 0.25), var(--accent-tertiary));
  border-radius: 3px;
  animation: prod-bar-grow 1.6s ease-in-out infinite;
  height: 30%;
}
.page-products .prod-phone-bars i:nth-child(2) { height: 48%; animation-delay: 0.1s; }
.page-products .prod-phone-bars i:nth-child(3) { height: 66%; animation-delay: 0.2s; }
.page-products .prod-phone-bars i:nth-child(4) { height: 40%; animation-delay: 0.3s; }
.page-products .prod-phone-bars i:nth-child(5) { height: 78%; animation-delay: 0.4s; }
.page-products .prod-phone-bars i:nth-child(6) { height: 56%; animation-delay: 0.5s; }
.page-products .prod-phone-bars i:nth-child(7) { height: 36%; animation-delay: 0.6s; }
@keyframes prod-bar-grow {
  0%, 100% { transform: scaleY(0.7); opacity: 0.75; }
  50% { transform: scaleY(1); opacity: 1; }
}
.page-products .prod-phone-tag {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent-primary);
  text-align: center;
  border-top: 1px solid var(--border-line);
  padding-top: 0.5rem;
}

/* ===== Section head ===== */
.page-products .section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-line);
  padding-bottom: var(--space-3);
}
.page-products .section-index {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-secondary);
  letter-spacing: -0.04em;
}
.page-products .section-head h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

/* ===== Version ===== */
.page-products .prod-version {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-line);
}
.page-products .prod-version-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
.page-products .prod-version-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  overflow: hidden;
}
.page-products .prod-version-card::after {
  content: '';
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 135, 0.12), transparent 70%);
  pointer-events: none;
}
.page-products .prod-version-card h3 {
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--accent-tertiary);
  margin: 0 0 var(--space-1);
}
.page-products .prod-version-num {
  font-family: var(--font-heading);
  font-size: var(--fs-card);
  color: var(--accent-primary);
  margin: 0 0 var(--space-2);
}
.page-products .prod-version-card p:not(.prod-version-num) {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin: 0;
}
.page-products .prod-version-note {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(0, 212, 255, 0.06);
  border-left: 3px solid var(--accent-tertiary);
  color: var(--text-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== Features ===== */
.page-products .prod-features {
  padding: var(--space-6) 0;
}
.page-products .prod-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border-line);
  overflow: hidden;
}
.page-products .prod-feature::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -25%;
  width: 60%;
  height: 120%;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.05), transparent 70%);
  transform: skewX(-14deg);
  pointer-events: none;
  z-index: 0;
}
.page-products .prod-feature-flip::before {
  left: 55%;
  background: linear-gradient(225deg, rgba(0, 212, 255, 0.06), transparent 70%);
  transform: skewX(14deg);
}
.page-products .prod-feature-media,
.page-products .prod-feature-text {
  position: relative;
  z-index: 1;
}
.page-products .prod-feature-text h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 0 0 var(--space-3);
  color: var(--text-primary);
  letter-spacing: -0.015em;
}
.page-products .prod-feature-text p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}
.page-products .prod-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-products .prod-feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.page-products .prod-feature-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 900;
}

/* Feature media frames */
.page-products .prod-feature-media img,
.page-products .prod-qrcode img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-products .prod-tv-frame {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px;
  background: var(--bg-card);
  border: 3px solid var(--border-line);
  border-radius: var(--radius-md);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.1);
}
.page-products .prod-tv-frame::after {
  content: '';
  position: absolute;
  right: 14px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 12px var(--accent-secondary);
}
.page-products .prod-tv-frame img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}
.page-products .prod-phone-frame {
  position: relative;
  max-width: 310px;
  margin: 0 auto;
  padding: 11px;
  background: var(--bg-card);
  border: 3px solid var(--accent-tertiary);
  border-radius: 38px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 34px rgba(0, 212, 255, 0.14);
}
.page-products .prod-phone-frame img {
  border-radius: 24px;
  width: 100%;
  height: auto;
}

/* ===== Updates ===== */
.page-products .prod-updates {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-line);
}
.page-products .prod-timeline {
  border-left: 2px solid var(--accent-tertiary);
  margin-left: 0.75rem;
  padding-left: var(--space-4);
}
.page-products .prod-update-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.page-products .prod-update-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-4) - 7px);
  top: 1.2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(0, 255, 135, 0.14);
}
.page-products .prod-update-item[open] {
  border-color: rgba(0, 255, 135, 0.35);
  box-shadow: 0 0 30px rgba(0, 255, 135, 0.06);
}
.page-products .prod-update-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) 0;
}
.page-products .prod-update-item summary::-webkit-details-marker {
  display: none;
}
.page-products .prod-update-version {
  font-family: var(--font-heading);
  color: var(--accent-tertiary);
  font-size: var(--fs-small);
  font-weight: 900;
}
.page-products .prod-update-tag {
  font-size: 0.75rem;
  padding: 2px 10px;
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  border-radius: 20px;
  line-height: 1.5;
}
.page-products .prod-update-title {
  width: 100%;
  color: var(--text-primary);
  font-weight: 700;
}
.page-products .prod-update-body {
  padding: var(--space-3) var(--space-5) var(--space-4);
  color: var(--text-secondary);
  font-size: var(--fs-small);
}
.page-products .prod-update-body p {
  margin: 0;
}
.page-products .prod-updates-more {
  margin-top: var(--space-5);
  color: var(--text-secondary);
}
.page-products .prod-updates-more a,
.page-products .prod-download-list a,
.page-products .prod-help a {
  color: var(--accent-tertiary);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

/* ===== Download ===== */
.page-products .prod-download {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-line);
}
.page-products .prod-download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.page-products .prod-qrcode {
  display: grid;
  place-items: center;
  position: relative;
}
.page-products .prod-qrcode img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, 0.4), 0 0 24px rgba(0, 255, 135, 0.18);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.page-products .prod-qrcode:hover img {
  transform: scale(1.04) rotate(2deg);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, 0.75), 0 0 44px rgba(0, 255, 135, 0.35);
}
.page-products .prod-download-info h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-section);
  margin: 0 0 var(--space-3);
  color: var(--accent-primary);
  letter-spacing: -0.02em;
}
.page-products .prod-download-info p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}
.page-products .prod-download-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}
.page-products .prod-download-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}
.page-products .prod-download-list li::before {
  content: '∨';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: 900;
}
.page-products .prod-download-note {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-line);
  padding-top: var(--space-3);
}

/* ===== Requirements ===== */
.page-products .prod-requirements {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-line);
}
.page-products .req-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.page-products .req-filter > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-products .req-filter label {
  flex: 1 1 90px;
  max-width: 160px;
  display: block;
  padding: 0.75rem 1rem;
  text-align: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  color: var(--text-secondary);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.page-products .req-filter input:checked + label {
  background: rgba(0, 255, 135, 0.12);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 18px rgba(0, 255, 135, 0.12);
}
.page-products .req-panel {
  display: none;
  flex-basis: 100%;
  margin-top: var(--space-3);
  background: var(--bg-primary);
  border: 1px solid var(--border-line);
  border-radius: var(--radius-md);
  padding: var(--space-5);
}
.page-products #req-ios:checked ~ #req-panel-ios,
.page-products #req-android:checked ~ #req-panel-android,
.page-products #req-tv:checked ~ #req-panel-tv {
  display: block;
}
.page-products .req-panel-inner h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-card);
  margin: 0 0 var(--space-2);
  color: var(--accent-tertiary);
}
.page-products .req-os-version {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 0 var(--space-2);
}
.page-products .req-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-products .req-panel li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.page-products .req-panel li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-tertiary);
}

/* ===== Help box ===== */
.page-products .prod-help {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: rgba(255, 75, 75, 0.06);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
}
.page-products .prod-help p {
  margin: 0;
}

/* ===== Media queries ===== */
@media (min-width: 768px) {
  .page-products .prod-hero h1 {
    font-size: 3rem;
  }
  .page-products .prod-version-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-products .prod-feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
  }
  .page-products .prod-feature-flip .prod-feature-media {
    order: 2;
  }
  .page-products .prod-feature-flip .prod-feature-text {
    order: 1;
  }
  .page-products .prod-feature-media {
    transform: translateY(8px);
  }
  .page-products .prod-feature-flip .prod-feature-media {
    transform: translateY(-8px);
  }
  .page-products .prod-download-grid {
    grid-template-columns: 260px 1fr;
  }
  .page-products .prod-update-title {
    width: auto;
    flex: 1 1 200px;
  }
}

@media (min-width: 992px) {
  .page-products .prod-hero {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 520px;
    padding: var(--space-8) 0;
  }
  .page-products .prod-hero h1 {
    font-size: var(--fs-hero);
  }
  .page-products .prod-section {
    padding: var(--space-8) 0;
  }
  .page-products .prod-version,
  .page-products .prod-features,
  .page-products .prod-updates,
  .page-products .prod-download,
  .page-products .prod-requirements {
    padding: var(--space-8) 0;
  }
  .page-products .section-head h2 {
    font-size: var(--fs-section);
  }
  .page-products .prod-feature {
    padding: var(--space-7) 0;
    gap: var(--space-7);
  }
}
