.page-products {
  --products-device-shadow: 0 24px 48px rgba(14, 59, 46, 0.24);
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

.page-products [id] {
  scroll-margin-top: 80px;
}

.page-products .download-hero {
  position: relative;
  background: var(--gradient-live);
  color: var(--text-on-green);
  padding: 28px 0 56px;
  overflow: hidden;
}

.page-products .download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-products .download-hero::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -120px;
  width: 340px;
  height: 220px;
  background: repeating-linear-gradient(-45deg, rgba(232, 184, 69, 0.16) 0 8px, transparent 8px 16px);
  transform: rotate(12deg);
  pointer-events: none;
}

.page-products .hero-breadcrumb {
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}

.page-products .hero-breadcrumb .crumb-link {
  color: rgba(240, 245, 241, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-products .hero-breadcrumb .crumb-link:hover {
  color: var(--gold);
}

.page-products .hero-breadcrumb .crumb-sep {
  color: rgba(240, 245, 241, 0.45);
  margin: 0 10px;
}

.page-products .hero-breadcrumb .crumb-current {
  color: var(--gold);
  font-weight: 700;
}

.page-products .hero-grid {
  display: grid;
  gap: 32px;
  position: relative;
  z-index: 2;
}

.page-products .hero-copy h1 {
  font-family: var(--font-headline);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 14px 0 12px;
  letter-spacing: -0.5px;
}

.page-products .hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(240, 245, 241, 0.85);
  max-width: 460px;
  margin: 0 0 22px;
}

.page-products .download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .download-btn {
  min-width: 148px;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.page-products .btn-ghost {
  background: transparent;
  color: var(--text-on-green);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.page-products .btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-products .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.page-products .meta-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(240, 245, 241, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
}

.page-products .qr-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
}

.page-products .qr-pattern {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: #ffffff;
  padding: 4px;
}

.page-products .qr-tip {
  font-size: 0.8rem;
  color: rgba(240, 245, 241, 0.7);
}

.page-products .device-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12px;
}

.page-products .phone-frame {
  width: 180px;
  border-radius: 28px;
  border: 6px solid #132521;
  background: #ffffff;
  overflow: hidden;
  transform: rotate(-5deg);
  box-shadow: var(--products-device-shadow);
  z-index: 2;
}

.page-products .phone-frame .device-screen {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .tablet-frame {
  position: absolute;
  right: 0;
  top: 64px;
  width: 148px;
  border-radius: 16px;
  border: 6px solid #132521;
  background: #ffffff;
  overflow: hidden;
  transform: rotate(6deg);
  box-shadow: var(--products-device-shadow);
  opacity: 0.96;
  z-index: 1;
}

.page-products .tablet-frame .device-screen {
  display: block;
  width: 100%;
  height: auto;
}

.page-products .chapter-track {
  background: var(--bg-white);
  border-bottom: 1px solid var(--line-soft);
}

.page-products .chapter-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 16px;
}

.page-products .chapter-prefix {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.page-products .track-bg {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--green-deep);
}

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

.page-products .feature-section {
  background: var(--bg-white);
  padding: var(--space-section) 0;
}

.page-products .section-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.page-products .section-index {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-deep);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 10px;
}

.page-products .section-head h2 {
  font-family: var(--font-headline);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: var(--green-deep);
}

.page-products .section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.page-products .feature-tree {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.page-products .tree-node {
  position: relative;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px 22px;
  text-align: center;
  border-top: 4px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.page-products .tree-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(19, 37, 33, 0.1);
  border-top-color: var(--gold);
}

.page-products .tree-node:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  width: 2px;
  height: 24px;
  border-left: 2px dashed var(--line-soft);
}

.page-products .node-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin: 0 auto 14px;
  box-shadow: 0 8px 18px rgba(168, 126, 46, 0.28);
}

.page-products .tree-node h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--green-deep);
}

.page-products .tree-node p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.page-products .data-strip {
  background: var(--bg-light);
  padding: var(--space-section) 0;
}

.page-products .strip-inner {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-products .strip-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 32px rgba(19, 37, 33, 0.12);
}

.page-products .strip-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.page-products .strip-stat {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  border: 1px solid var(--line-soft);
}

.page-products .strip-stat .stat-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-deep);
  line-height: 1.1;
}

.page-products .strip-stat .stat-number--gold {
  color: var(--gold-deep);
}

.page-products .strip-stat .stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.page-products .version-section {
  background: var(--gradient-live);
  color: var(--text-on-green);
  padding: var(--space-section) 0;
}

.page-products .section-head-light h2 {
  color: var(--text-on-green);
}

.page-products .section-head-light .section-subtitle {
  color: rgba(240, 245, 241, 0.72);
}

.page-products .section-head-light .section-index {
  color: var(--gold);
}

.page-products .version-list {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.page-products .version-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(4px);
  color: var(--text-on-green);
}

.page-products .version-card summary {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 20px 22px;
  cursor: pointer;
}

.page-products .version-card summary::-webkit-details-marker {
  display: none;
}

.page-products .version-card summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}

.page-products .version-card[open] summary::after {
  transform: rotate(45deg);
}

.page-products .version-code {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.page-products .version-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.page-products .version-body {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 22px 22px;
}

.page-products .version-meta {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--gold);
  border: 1px solid rgba(232, 184, 69, 0.4);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.page-products .version-summary {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: rgba(240, 245, 241, 0.8);
  line-height: 1.6;
}

.page-products .version-body ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(240, 245, 241, 0.9);
}

.page-products .install-section {
  background: var(--bg-white);
  padding: var(--space-section) 0;
}

.page-products .install-grid {
  display: grid;
  gap: 32px;
  margin-top: 36px;
}

.page-products .install-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .step-item {
  position: relative;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold);
  padding: 18px 18px 18px 64px;
  transition: background 0.2s ease;
}

.page-products .step-item:hover {
  background: #eef1ee;
}

.page-products .step-num {
  position: absolute;
  left: 18px;
  top: 18px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-deep);
}

.page-products .step-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--green-deep);
}

.page-products .step-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-products .install-visual {
  display: grid;
  gap: 18px;
  align-content: start;
}

.page-products .install-visual img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(14, 59, 46, 0.14);
}

.page-products .permission-note {
  background: var(--bg-light);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.page-products .permission-note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-deep);
}

.page-products .permission-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.page-products .permission-note a {
  color: var(--green-mid);
  font-weight: 700;
  text-decoration: none;
}

.page-products .page-links {
  background: var(--bg-light);
  padding: 44px 0 60px;
}

.page-products .link-row {
  display: grid;
  gap: 14px;
}

.page-products .link-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-products .link-block:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(19, 37, 33, 0.08);
}

.page-products .link-block-title {
  font-weight: 800;
  color: var(--green-deep);
}

.page-products .link-block-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .page-products .hero-copy h1 {
    font-size: 2.8rem;
  }

  .page-products .track-bg {
    height: 320px;
  }

  .page-products .strip-inner {
    grid-template-columns: 340px 1fr;
    align-items: center;
  }

  .page-products .install-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

  .page-products .link-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1024px) {
  .page-products .download-hero {
    padding: 40px 0 80px;
  }

  .page-products .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .page-products .device-stage {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
    min-height: auto;
    padding-top: 16px;
  }

  .page-products .phone-frame {
    width: 240px;
    border-radius: 36px;
    border: 8px solid #132521;
    transform: rotate(-5deg);
  }

  .page-products .tablet-frame {
    position: static;
    width: 330px;
    border-radius: 22px;
    border: 8px solid #132521;
    transform: rotate(3deg) translateY(22px);
    opacity: 1;
  }

  .page-products .feature-tree {
    flex-direction: row;
    gap: 0;
    padding-top: 32px;
    margin-top: 42px;
  }

  .page-products .feature-tree::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 6%;
    right: 6%;
    height: 2px;
    border-top: 2px dashed var(--line-soft);
  }

  .page-products .tree-node {
    flex: 1;
    margin: 0 10px;
    padding: 28px 22px 24px;
  }

  .page-products .tree-node::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 50%;
    width: 2px;
    height: 20px;
    border-left: 2px dashed var(--line-soft);
  }

  .page-products .tree-node:not(:last-child)::after {
    display: none;
  }

  .page-products .version-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
  }
}
