.page-products {
  --phone-w: 280px;
  --card-pad: 24px;
  --cut-cool: 14px;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.page-products .breadcrumbs {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 28px var(--container-pad) 8px;
}

.page-products .product-hero {
  position: relative;
  padding: 18px 0 60px;
  overflow: hidden;
}

.page-products .product-hero-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  gap: 40px;
}

.page-products .hero-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 0 44px;
}

.page-products .hero-bg-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-products .hero-bg-lines i {
  position: absolute;
  display: block;
  height: 1px;
  width: 200px;
  background: rgba(176, 190, 197, 0.32);
  transform-origin: left center;
}

.page-products .hero-bg-lines i:nth-child(1) {
  top: 18%;
  left: -16px;
  transform: rotate(-22deg);
}

.page-products .hero-bg-lines i:nth-child(2) {
  top: 48%;
  right: -36px;
  width: 150px;
  background: rgba(0, 230, 118, 0.5);
  transform: rotate(24deg);
}

.page-products .hero-bg-lines i:nth-child(3) {
  bottom: 12%;
  left: 28%;
  width: 190px;
  background: rgba(255, 109, 0, 0.45);
  transform: rotate(-18deg);
}

.page-products .phone-frame {
  position: relative;
  z-index: 1;
  width: var(--phone-w);
  padding: 12px;
  border-radius: 34px;
  background: #0e1f36;
  border: 1px solid rgba(176, 190, 197, 0.38);
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px var(--bg-panel);
}

.page-products .phone-frame::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.page-products .phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  border-radius: 14px;
  background: var(--bg-deep);
  z-index: 2;
}

.page-products .phone-screen-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #06203b;
  object-fit: cover;
}

.page-products .hero-badge {
  position: absolute;
  left: 2%;
  bottom: 10px;
  z-index: 2;
  background: var(--accent-orange);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 7px 15px;
  text-decoration: none;
  transform: rotate(-4deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  transition: transform var(--speed-fast);
}

.page-products .hero-badge:hover {
  transform: rotate(0deg) translateY(-2px);
}

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

.page-products .version-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border: 1px solid rgba(0, 230, 118, 0.36);
  background: rgba(0, 230, 118, 0.07);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.page-products .version-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
  animation: page-products-pulse 2.6s infinite;
}

.page-products .hero-copy h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  margin: 18px 0 16px;
  letter-spacing: -0.02em;
}

.page-products .hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 46em;
  margin: 0 0 24px;
}

.page-products .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
}

.page-products .hero-fact {
  padding: 12px 18px;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  min-width: 118px;
}

.page-products .fact-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
}

.page-products .fact-label {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.page-products .download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.page-products .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #07111f;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 2px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 230, 118, 0.2);
  transition: transform var(--speed-fast), box-shadow var(--speed-fast);
}

.page-products .btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 230, 118, 0.3);
}

.page-products .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1px solid rgba(176, 190, 197, 0.42);
  color: var(--text-primary);
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color var(--speed-fast), color var(--speed-fast);
}

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

.page-products .login-note {
  color: var(--text-soft);
  font-size: 13px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 14px;
  margin: 0;
}

.page-products .qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  background: rgba(7, 17, 31, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.page-products .qr-modal:target {
  display: flex;
}

.page-products .qr-modal-card {
  position: relative;
  width: min(320px, calc(100% - 32px));
  background: var(--bg-elevated);
  border: 1px solid rgba(176, 190, 197, 0.3);
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.page-products .qr-close {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  line-height: 1;
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--speed-fast);
}

.page-products .qr-close:hover {
  color: var(--accent);
}

.page-products .qr-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  margin: 0 0 16px;
}

.page-products .qr-svg {
  display: block;
  margin: 0 auto 14px;
}

.page-products .qr-hint {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.page-products .function-section {
  position: relative;
  background:
    radial-gradient(130% 90% at 95% 5%, rgba(0, 230, 118, 0.1), transparent 48%),
    var(--bg-panel);
  padding: 72px 0 80px;
  border-block: 1px solid var(--line-subtle);
}

.page-products .function-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%, var(--accent-orange));
}

.page-products .function-heading,
.page-products .changelog-heading,
.page-products .guide-heading {
  position: relative;
  padding-left: 18px;
  margin-bottom: 34px;
}

.page-products .function-heading::before,
.page-products .changelog-heading::before,
.page-products .guide-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 8px;
  background: var(--accent);
  transform: skewX(-14deg);
}

.page-products .function-heading h2,
.page-products .changelog-heading h2,
.page-products .guide-heading h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.12;
  margin: 0 0 8px;
}

.page-products .function-heading p,
.page-products .changelog-heading p,
.page-products .guide-heading p {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.page-products .function-grid {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}

.page-products .function-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line-subtle);
  padding: var(--card-pad);
  transition: transform var(--speed-med), border-color var(--speed-med), box-shadow var(--speed-med);
}

.page-products .function-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.page-products .function-card-top {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.page-products .function-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-deep);
  border-radius: 2px 14px 2px 2px;
  transition: transform var(--speed-med);
}

.page-products .function-card:hover .function-icon {
  transform: rotate(-8deg) scale(1.06);
}

.page-products .function-text h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.page-products .function-text p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.page-products .function-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  border-radius: 2px;
  background: #06203b;
  object-fit: cover;
}

.page-products .function-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-products .function-features li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-primary);
}

.page-products .function-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--accent-orange);
}

.page-products .changelog-section {
  padding: 72px 0 80px;
}

.page-products .timeline {
  position: relative;
  margin-top: 18px;
  padding-left: 24px;
}

.page-products .timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-orange));
}

.page-products .timeline-item {
  position: relative;
}

.page-products .timeline-item + .timeline-item {
  margin-top: 14px;
}

.page-products .timeline-item summary {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  cursor: pointer;
  padding: 14px 18px 14px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  border-radius: 2px;
  transition: border-color var(--speed-fast), background var(--speed-fast);
}

.page-products .timeline-item summary::-webkit-details-marker {
  display: none;
}

.page-products .timeline-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.page-products .timeline-item[open] summary::after {
  content: "–";
}

.page-products .timeline-item summary:hover {
  border-color: rgba(0, 230, 118, 0.5);
  background: var(--bg-elevated);
}

.page-products .timeline-marker {
  position: absolute;
  left: -28px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-orange);
  border: 3px solid var(--bg-deep);
  box-sizing: border-box;
}

.page-products .version-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 15px;
  white-space: nowrap;
}

.page-products .version-title {
  font-weight: 600;
  font-size: 15px;
  padding-right: 18px;
}

.page-products .timeline-detail {
  margin: 0;
  padding: 14px 18px 16px 22px;
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.page-products .guide-section {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line-subtle);
  padding: 72px 0 80px;
}

.page-products .guide-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.page-products .guide-step {
  position: relative;
  border-top: 2px solid var(--accent);
  padding: 24px 20px 20px;
  background: var(--bg-deep);
}

.page-products .guide-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.page-products .step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.page-products .guide-step p {
  color: var(--text-soft);
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.page-products .guide-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-products .guide-link-item {
  display: inline-block;
  font-size: 14px;
  color: var(--text-primary);
  padding: 11px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  text-decoration: none;
  transition: color var(--speed-fast), border-color var(--speed-fast);
}

.page-products .guide-link-item:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-products .cta-strip {
  position: relative;
  background:
    linear-gradient(120deg, rgba(0, 230, 118, 0.08), transparent),
    var(--bg-panel);
  padding: 56px 0;
  overflow: hidden;
}

.page-products .cta-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-orange));
}

.page-products .cta-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: center;
}

.page-products .cta-copy h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3.6vw, 32px);
  margin: 0 0 8px;
}

.page-products .cta-copy p {
  color: var(--text-soft);
  margin: 0;
  max-width: 40em;
  font-size: 14px;
  line-height: 1.7;
}

.page-products .btn-cta-download {
  display: inline-flex;
  align-items: center;
  background: var(--accent-orange);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 16px 34px;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(255, 109, 0, 0.25);
  transition: transform var(--speed-fast), box-shadow var(--speed-fast);
}

.page-products .btn-cta-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 109, 0, 0.35);
}

@keyframes page-products-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 230, 118, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

@media (min-width: 760px) {
  .page-products .guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .page-products .cta-strip-inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
}

@media (min-width: 860px) {
  .page-products .function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .page-products .function-card {
    padding: 28px;
  }
}

@media (min-width: 980px) {
  .page-products .product-hero {
    padding: 30px 0 72px;
  }

  .page-products .product-hero-inner {
    grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
    align-items: center;
    gap: 60px;
  }

  .page-products .hero-stage {
    padding: 40px 0 48px;
  }

  .page-products .phone-frame {
    width: 300px;
  }

  .page-products .hero-desc {
    font-size: 17px;
  }
}
