.page-products {
  --ring-glow: rgba(57, 255, 20, 0.22);
  --grid-tint: rgba(192, 192, 192, 0.07);
  --cta-grad: linear-gradient(135deg, rgba(57, 255, 20, 0.22), rgba(57, 255, 20, 0.02));
  position: relative;
}

@keyframes page-products-scan {
  0%, 100% { top: 10px; opacity: 0.4; }
  50% { top: calc(100% - 12px); opacity: 1; }
}

@keyframes page-products-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes page-products-screenpan {
  0% { object-position: 50% 0%; }
  100% { object-position: 50% 18%; }
}

@keyframes page-products-step-in {
  from { transform: translateX(14px); }
  to { transform: translateX(0); }
}

.page-products .app-hero {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 40px 0 56px;
  overflow: hidden;
}

.page-products .app-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-tint) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-tint) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  transform: perspective(600px) rotateX(10deg);
  transform-origin: top;
  opacity: 0.7;
  z-index: 0;
}

.page-products .app-hero::after {
  content: "";
  position: absolute;
  left: 10%;
  right: -20%;
  bottom: -40px;
  height: 220px;
  background: var(--cta-grad);
  clip-path: polygon(10% 0, 100% 0, 82% 100%, 0 100%);
  pointer-events: none;
  z-index: 0;
}

.page-products .app-hero__copy,
.page-products .phone-stage {
  position: relative;
  z-index: 1;
}

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

.page-products .app-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0;
}

.page-products .app-hero__lead {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 32em;
  margin: 0;
}

.page-products .app-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.page-products .btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #071126;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.28);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-products .btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(57, 255, 20, 0.46);
}

.page-products .app-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.page-products .phone-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.page-products .phone-stage__tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 6%;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  border: 1px solid rgba(57, 255, 20, 0.5);
  background: rgba(7, 17, 38, 0.72);
  padding: 6px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  animation: page-products-float 5s ease-in-out infinite;
}

.page-products .phone-model {
  position: relative;
  width: min(252px, 66vw);
  aspect-ratio: 9 / 17.6;
  border-radius: 32px;
  padding: 8px;
  background: linear-gradient(140deg, #17264a, #071126 78%);
  border: 1px solid rgba(192, 192, 192, 0.45);
  box-shadow:
    0 36px 70px rgba(0, 0, 0, 0.5),
    0 0 40px var(--ring-glow);
  transform: perspective(1100px) rotateY(-8deg) rotateX(2deg) rotateZ(1deg);
  transition: transform 0.25s ease;
}

.page-products .phone-model:hover {
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) rotateZ(0);
}

.page-products .phone-model__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-products .phone-model__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: page-products-screenpan 14s ease-in-out infinite alternate;
}

.page-products .phone-model__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 9px;
  border-radius: 12px;
  background: rgba(7, 17, 38, 0.82);
  border: 1px solid rgba(192, 192, 192, 0.2);
}

.page-products .section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.page-products .section-head h2 {
  margin: 0;
}

.page-products .section-head p:last-child {
  color: var(--text-secondary);
  margin: 0;
  max-width: 44em;
}

.page-products .download-channels {
  padding: 40px 0 56px;
}

.page-products .channel-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.page-products .channel-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(192, 192, 192, 0.18);
  border-radius: 18px 0 18px 18px;
  padding: 22px;
  display: grid;
  gap: 14px;
}

.page-products .channel-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  background: rgba(57, 255, 20, 0.8);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.page-products .channel-card--ios::before {
  background: rgba(192, 192, 192, 0.6);
}

.page-products .channel-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-products .channel-card__head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.page-products .channel-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-products .qr-placeholder {
  position: relative;
  width: 128px;
  height: 128px;
  margin-top: 4px;
  border-radius: 14px;
  border: 2px solid rgba(57, 255, 20, 0.5);
  background:
    linear-gradient(90deg, rgba(57, 255, 20, 0.14) 50%, transparent 50%),
    linear-gradient(rgba(57, 255, 20, 0.14) 50%, transparent 50%);
  background-size: 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.12);
}

.page-products .qr-placeholder__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(7, 17, 38, 0.78);
  padding: 4px 8px;
  border-radius: 4px;
}

.page-products .qr-scanline {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: page-products-scan 2.2s ease-in-out infinite;
}

.page-products .relogin-guide {
  padding: 56px 0 64px;
}

.page-products .relogin-grid {
  display: grid;
  gap: 32px;
  margin-top: 28px;
}

.page-products .relogin-visual {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(192, 192, 192, 0.22);
  background: var(--bg-card);
}

.page-products .relogin-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-products .relogin-visual figcaption {
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid rgba(192, 192, 192, 0.14);
}

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

.page-products .relogin-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(192, 192, 192, 0.13);
  animation: page-products-step-in 0.4s ease both;
}

.page-products .relogin-step:nth-child(1) { animation-delay: 0.05s; }
.page-products .relogin-step:nth-child(2) { animation-delay: 0.1s; }
.page-products .relogin-step:nth-child(3) { animation-delay: 0.15s; }
.page-products .relogin-step:nth-child(4) { animation-delay: 0.2s; }

.page-products .relogin-step__num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
  text-shadow: 0 0 14px rgba(57, 255, 20, 0.3);
}

.page-products .relogin-step__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.page-products .relogin-step__body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-products .version-timeline {
  position: relative;
  padding: 56px 0 64px;
  margin-top: 8px;
}

.page-products .version-wrap {
  position: relative;
  margin-top: 28px;
}

.page-products .version-timeline__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  border-radius: 18px;
  pointer-events: none;
}

.page-products .version-list {
  position: relative;
  display: grid;
  gap: 0;
  padding: 20px 0;
}

.page-products .version-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 13px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(57, 255, 20, 0.1));
}

.page-products .version-item {
  position: relative;
  padding: 14px 0 14px 44px;
  width: 100%;
}

.page-products .version-item::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.5);
}

.page-products .version-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--text-highlight);
  transition: color var(--transition-fast);
}

.page-products .version-item:hover h3 {
  color: var(--accent);
}

.page-products .version-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-products .member-benefits {
  padding: 56px 0 64px;
}

.page-products .benefit-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.page-products .benefit-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 18px;
  padding: 20px;
  overflow: hidden;
}

.page-products .benefit-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 48px;
  height: 48px;
  background: rgba(57, 255, 20, 0.12);
  border-radius: 12px;
  transform: rotate(12deg);
  pointer-events: none;
}

.page-products .benefit-card > * {
  position: relative;
  z-index: 1;
}

.page-products .benefit-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text-highlight);
}

.page-products .benefit-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.page-products .benefit-card--lead {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.14), rgba(16, 31, 64, 0.9));
  border-color: rgba(57, 255, 20, 0.36);
}

.page-products .benefit-asset {
  margin: 18px 0 0;
}

.page-products .benefit-asset img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(192, 192, 192, 0.2);
}

.page-products .install-faq {
  padding: 40px 0 56px;
  max-width: 840px;
  margin: 0 auto;
}

.page-products .faq-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.page-products .faq-item {
  background: rgba(16, 31, 64, 0.7);
  border: 1px solid rgba(192, 192, 192, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  transition: border-color var(--transition-fast);
}

.page-products .faq-item[open] {
  border-color: rgba(57, 255, 20, 0.4);
}

.page-products .faq-item summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 14px 34px 14px 0;
  font-weight: 600;
  color: var(--text-primary);
}

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

.page-products .faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.page-products .faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.page-products .faq-item p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-products .install-faq__more {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.page-products .install-faq__more a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-products .sync-banner {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 40px 0 56px;
}

.page-products .sync-banner__copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.page-products .sync-banner__copy p {
  color: var(--text-secondary);
}

.page-products .sync-banner__img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(192, 192, 192, 0.2);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

@media (min-width: 48rem) {
  .page-products .app-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    padding: 72px 0 88px;
    align-items: center;
  }

  .page-products .phone-stage {
    min-height: 480px;
  }

  .page-products .channel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .page-products .relogin-visual {
    order: 0;
  }

  .page-products .relogin-steps {
    order: 1;
  }

  .page-products .version-list::before {
    left: 50%;
    transform: translateX(-0.5px);
  }

  .page-products .version-item {
    width: calc(50% - 40px);
    padding-left: 0;
  }

  .page-products .version-item::before {
    left: calc(100% + 34px);
    top: 26px;
  }

  .page-products .version-item:nth-child(even) {
    margin-left: calc(50% + 40px);
  }

  .page-products .version-item:nth-child(even)::before {
    left: -46px;
  }

  .page-products .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .page-products .benefit-card--lead {
    grid-column: span 2;
  }

  .page-products .benefit-asset {
    grid-column: 1 / -1;
    margin: 0;
  }

  .page-products .sync-banner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    padding: 56px 0 72px;
  }
}
