.page-products {
  position: relative;
  overflow: hidden;
  color: var(--silver);
  background:
    radial-gradient(ellipse 80% 55% at 82% -5%, rgba(155, 93, 229, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 8% 90%, rgba(255, 107, 53, 0.14) 0%, transparent 55%),
    var(--space-blue);
}

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

.page-products .section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.page-products .section-heading .section-label {
  margin-bottom: 0.4rem;
}

.page-products .section-heading .section-title {
  margin: 0.5rem 0 0.6rem;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-products .section-heading .section-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(224, 225, 221, 0.82);
}

.page-products .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(224, 225, 221, 0.62);
}

.page-products .breadcrumbs a {
  color: var(--violet);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-products .breadcrumbs a:hover {
  color: var(--orange);
}

.page-products .btn--primary {
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}

.page-products .btn--primary:active {
  transform: scale(0.97);
  box-shadow: 0 0 38px rgba(255, 107, 53, 0.45);
}

.product-hero {
  position: relative;
  padding: 1.75rem 0 var(--section-space);
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(224, 225, 221, 0.24) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.45;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}

.product-hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-hero-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(46px);
  opacity: 0.55;
}

.product-hero-orbs .orb--violet {
  width: 280px;
  height: 280px;
  top: -90px;
  right: 8%;
}

.product-hero-orbs .orb--orange {
  width: 160px;
  height: 160px;
  bottom: 8%;
  left: -50px;
}

.product-hero-orbs .orb--teal {
  width: 120px;
  height: 120px;
  top: 46%;
  left: 48%;
  opacity: 0.4;
}

.product-hero-inner {
  display: grid;
  gap: 2.75rem;
}

.product-hero-copy {
  max-width: 660px;
}

.product-hero-copy .section-label {
  color: var(--orange);
}

.product-hero-copy h1 {
  margin: 0.65rem 0 0.9rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(224, 225, 221, 0.85);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin: 1.75rem 0;
}

.hero-stat {
  padding: 0.9rem 0.85rem;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-num);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--orange);
}

.hero-stat span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: rgba(224, 225, 221, 0.68);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.product-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}

.phone-stage {
  position: relative;
  width: 240px;
}

.phone-halo {
  position: absolute;
  inset: -24px;
  z-index: 0;
  border-radius: 56px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 107, 53, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(155, 93, 229, 0.22) 0%, transparent 55%);
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 480px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.42),
    inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.phone-viewport {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: 32px;
}

.phone-viewport::-webkit-scrollbar {
  display: none;
}

.phone-viewport img {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  scroll-snap-align: center;
  border-radius: 32px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 3;
  width: 80px;
  height: 20px;
  border-radius: 20px;
  background: rgba(10, 14, 39, 0.92);
  border: 1px solid rgba(224, 225, 221, 0.1);
  transform: translateX(-50%);
}

.phone-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.pager-dot {
  width: 6px;
  height: 6px;
  border-radius: 10px;
  background: rgba(224, 225, 221, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
}

.pager-dot.is-active {
  width: 18px;
  background: var(--orange);
}

.swipe-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 0.75rem;
  color: rgba(224, 225, 221, 0.68);
  background: rgba(255, 255, 255, 0.04);
}

.phone-stage::before,
.phone-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.phone-stage::before {
  width: 330px;
  height: 330px;
  top: -30px;
  left: -48px;
  border: 1px dashed rgba(155, 93, 229, 0.24);
}

.phone-stage::after {
  width: 190px;
  height: 190px;
  bottom: -30px;
  right: -40px;
  border: 1px solid rgba(255, 107, 53, 0.2);
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 53, 0.12) 0%, transparent 60%);
}

.feature-section {
  position: relative;
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 35% at 20% 8%, rgba(155, 93, 229, 0.14) 0%, transparent 55%),
    var(--space-blue);
}

.feature-section .section-heading .section-label {
  color: var(--teal);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--violet));
  opacity: 0.75;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.4);
  background: var(--glass-strong);
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.feature-num {
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 50px;
  font-family: var(--font-num);
  font-size: 0.82rem;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.12);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(155, 93, 229, 0.24);
  border-radius: 14px;
  color: var(--violet);
  background: linear-gradient(135deg, rgba(155, 93, 229, 0.22), rgba(255, 107, 53, 0.14));
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--paper);
}

.feature-card p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(224, 225, 221, 0.78);
}

.feature-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.feature-more:hover {
  border-bottom-color: var(--teal);
}

.version-section {
  position: relative;
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 75% 40% at 90% 15%, rgba(255, 107, 53, 0.12) 0%, transparent 55%),
    var(--space-blue);
}

.version-section .section-heading .section-label {
  color: var(--violet);
}

.version-layout {
  display: grid;
  gap: 3rem;
}

.version-timeline {
  position: relative;
  padding-left: 26px;
}

.version-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--orange), var(--violet), rgba(155, 93, 229, 0.15));
}

.version-node {
  position: relative;
  margin-bottom: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.version-node::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--space-blue);
  background: var(--orange);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.28);
}

.version-node[open] {
  border-color: rgba(155, 93, 229, 0.35);
  background: rgba(155, 93, 229, 0.08);
}

.version-node summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.version-node summary::-webkit-details-marker {
  display: none;
}

.version-badge {
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 107, 53, 0.24);
  border-radius: 50px;
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.13);
}

.version-title {
  font-size: 0.92rem;
  color: var(--paper);
}

.version-arrow {
  font-family: var(--font-num);
  font-size: 1.1rem;
  color: rgba(224, 225, 221, 0.6);
  transition: transform 0.25s ease;
}

.version-node[open] .version-arrow {
  transform: rotate(45deg);
}

.version-detail {
  padding: 0.1rem 1.1rem 1rem;
  font-size: 0.83rem;
  line-height: 1.7;
  color: rgba(224, 225, 221, 0.72);
}

.version-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.version-caption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: rgba(224, 225, 221, 0.62);
}

.download-section {
  position: relative;
  padding: var(--section-space) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(255, 107, 53, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 90%, rgba(155, 93, 229, 0.18) 0%, transparent 55%),
    var(--space-blue);
}

.download-layout {
  display: grid;
  gap: 3rem;
}

.download-qr {
  display: flex;
  justify-content: center;
}

.qr-frame {
  width: 240px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.qr-frame p {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink);
}

.download-info .section-label {
  color: var(--orange);
}

.download-info .section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
}

.download-info > p {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(224, 225, 221, 0.8);
}

.platform-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.platform-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--glass);
}

.platform-row svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--violet);
}

.platform-row strong {
  display: block;
  font-size: 0.95rem;
  color: var(--paper);
}

.platform-row span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: rgba(224, 225, 221, 0.62);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

@media (min-width: 900px) {
  .product-hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 4rem;
    min-height: 640px;
  }

  .product-hero-copy {
    padding-top: 2rem;
  }

  .product-hero-visual {
    min-height: auto;
  }

  .version-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .download-layout {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .feature-card,
  .page-products .btn--primary,
  .page-products .feature-more,
  .page-products .version-arrow,
  .page-products .qr-frame {
    transition: none;
  }
}
