.page-products {
  --p-hero-skew: 8deg;
  --p-card-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --p-cut-size: 28px;
  background: linear-gradient(180deg, var(--color-deep-navy) 0%, #0b1428 50%, var(--color-deep-navy) 100%);
  color: var(--color-white);
  overflow-x: hidden;
}

/* ===== HERO ===== */
.p-hero {
  position: relative;
  padding: 48px 0 72px;
  isolation: isolate;
}

.p-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 70%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-flame) 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.14;
  z-index: -1;
}

.p-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -12%;
  width: 55%;
  height: 16%;
  background: var(--color-gold);
  clip-path: polygon(0 45%, 100% 0, 92% 100%, 0 100%);
  opacity: 0.08;
  z-index: -1;
}

.p-hero__layout {
  display: grid;
  gap: 48px;
  align-items: center;
}

.p-hero__copy {
  order: 2;
}

.p-hero__visual {
  order: 1;
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 32px;
}

.p-hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 16px 0 10px;
}

.p-hero__copy h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--color-white);
  position: relative;
  display: inline-block;
}

.p-hero__copy h1::after {
  content: "";
  display: block;
  width: 72%;
  height: 6px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: 4px;
}

.p-hero__lead {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  max-width: 600px;
  margin-bottom: 32px;
}

.p-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.p-stat {
  background: var(--color-ink-blue);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 132px;
  flex: 1 1 140px;
}

.p-stat__num {
  font-family: var(--font-headline);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--color-primary);
}

.p-stat__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.04em;
}

.p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.p-hero__actions .btn {
  padding: 14px 30px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

/* Device frame */
.p-device {
  position: relative;
  background: var(--color-ink-blue);
  border: 4px solid #2c3e63;
  border-radius: 30px;
  padding: 12px;
  max-width: 300px;
  width: 72%;
  box-shadow: var(--p-card-shadow), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: perspective(900px) rotateY(-4deg) rotate(1.5deg);
  transition: transform 0.5s ease;
}

.p-device:hover {
  transform: perspective(900px) rotateY(0deg) rotate(0deg);
}

.p-device__camera {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0a0f1e;
  border: 2px solid #2c3e63;
  transform: translateX(-50%);
  z-index: 2;
}

.p-device__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: var(--color-ink-blue);
  object-fit: cover;
  aspect-ratio: 2 / 3;
}

.p-device__badge {
  position: absolute;
  top: 18px;
  right: 0;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px 0 0 20px;
  letter-spacing: 0.08em;
  box-shadow: 0 6px 18px rgba(255, 106, 0, 0.4);
  z-index: 3;
}

.p-hero__qr {
  position: absolute;
  bottom: -6px;
  left: 2%;
  background: var(--color-paper);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  max-width: 256px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 5;
}

.p-hero__qr:hover {
  transform: scale(1.06) rotate(-1deg);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.65);
}

.p-qr__svg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
}

.p-qr__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-deep-navy);
  line-height: 1.5;
  white-space: nowrap;
}

/* ===== FEATURES ===== */
.p-features {
  padding: 72px 0;
  position: relative;
}

.p-features::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(255, 106, 0, 0.05), transparent);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.p-features__grid {
  display: grid;
  gap: 20px;
  margin: 40px 0 48px;
}

.p-feature-card {
  background: var(--color-ink-blue);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.p-feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary), var(--color-flame));
  border-radius: 0 4px 4px 0;
}

.p-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 0, 0.35);
}

.p-feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 106, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.p-feature-card__icon svg {
  width: 36px;
  height: 36px;
}

.p-feature-card__title {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.p-feature-card__desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Showcase */
.p-features__showcase {
  display: grid;
  gap: 28px;
}

.p-showcase__item {
  display: grid;
  gap: 18px;
  background: rgba(27, 42, 74, 0.65);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.p-showcase__img {
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-deep-navy);
}

.p-showcase__img img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.p-showcase__body {
  padding: 8px 4px 6px;
}

.p-showcase__body h3 {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  margin: 0 0 10px;
  color: var(--color-white);
}

.p-showcase__body p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 14px;
}

.p-showcase__body ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p-showcase__body li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-primary-soft);
  background: rgba(255, 106, 0, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 106, 0, 0.2);
}

/* ===== VERSIONS ===== */
.p-versions {
  padding: 72px 0;
  background:
    linear-gradient(180deg, transparent, rgba(27, 42, 74, 0.4) 20%, rgba(27, 42, 74, 0.6) 80%, transparent),
    linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.04), transparent);
}

.p-versions__layout {
  display: grid;
  gap: 40px;
  margin-top: 42px;
}

.p-timeline {
  position: relative;
  padding-left: 24px;
}

.p-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-gold), transparent);
  opacity: 0.5;
}

.p-timeline__item {
  display: grid;
  grid-template-columns: 84px 24px 1fr;
  gap: 12px;
  margin-bottom: 32px;
  position: relative;
}

.p-timeline__item:last-child {
  margin-bottom: 0;
}

.p-timeline__year {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-gold);
  padding-top: 4px;
  letter-spacing: 0.06em;
}

.p-timeline__track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-deep-navy);
  box-shadow: 0 0 0 2px var(--color-primary);
  margin-top: 6px;
  flex-shrink: 0;
}

.p-timeline__item:last-child .p-timeline__dot {
  background: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold);
}

.p-timeline__bar {
  width: 2px;
  flex: 1;
  min-height: 24px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-ink-blue));
  opacity: 0.3;
}

.p-timeline__body {
  background: var(--color-ink-blue);
  border-radius: 14px;
  padding: 16px 18px;
  border-left: 3px solid var(--color-primary);
}

.p-timeline__item:last-child .p-timeline__body {
  border-left-color: var(--color-gold);
}

.p-timeline__body h3 {
  font-family: var(--font-headline);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.p-timeline__body p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.p-versions__visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.p-versions__card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-ink-blue);
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow: var(--p-card-shadow);
  position: relative;
}

.p-versions__card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.p-versions__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 18px;
}

.p-versions__ver {
  font-family: var(--font-headline);
  font-size: 2rem;
  color: var(--color-gold);
  line-height: 1;
}

.p-versions__status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 4px 12px;
  margin-left: auto;
}

.p-versions__note {
  font-size: 0.84rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
  background: rgba(10, 15, 30, 0.5);
  border-radius: 12px;
  padding: 14px 18px;
  border-left: 3px solid var(--color-gold);
  margin: 0;
}

/* ===== SUBSCRIBE ===== */
.p-subscribe {
  padding: 72px 0;
  position: relative;
}

.p-subscribe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 106, 0, 0.08), transparent 60%);
  pointer-events: none;
}

.p-subscribe__card {
  position: relative;
  background: linear-gradient(135deg, #14203a 0%, var(--color-ink-blue) 60%, #1c2d50 100%);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  gap: 0;
  clip-path: polygon(0 0, calc(100% - var(--p-cut-size)) 0, 100% var(--p-cut-size), 100% 100%, 0 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.p-subscribe__visual {
  position: relative;
  min-height: 260px;
}

.p-subscribe__visual img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.p-subscribe__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--color-gold), #b8860b);
  color: var(--color-deep-navy);
  border-radius: 12px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.3);
}

.p-subscribe__badge-title {
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.p-subscribe__badge-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.p-subscribe__content {
  padding: 36px 24px 40px;
}

.p-subscribe__content .section-index {
  color: var(--color-gold);
}

.p-subscribe__content h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.02em;
  margin: 12px 0 14px;
}

.p-subscribe__lead {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 26px;
}

.p-subscribe__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.p-subscribe__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.p-subscribe__item:hover {
  background: rgba(255, 215, 0, 0.06);
  border-color: rgba(255, 215, 0, 0.2);
}

.p-subscribe__item svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.p-subscribe__item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--color-white);
  margin-bottom: 4px;
}

.p-subscribe__item span {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

.p-subscribe__content .btn-gold {
  display: inline-block;
  padding: 13px 30px;
  text-decoration: none;
  font-weight: 700;
}

/* ===== DOWNLOAD ===== */
.p-download {
  padding: 72px 0 90px;
  position: relative;
}

.p-download::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255, 106, 0, 0.05));
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.p-download__grid {
  display: grid;
  gap: 24px;
  margin: 40px 0 32px;
}

.p-download__card {
  background: var(--color-ink-blue);
  border-radius: 18px;
  padding: 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-download__card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 106, 0, 0.1);
  pointer-events: none;
}

.p-download__card:hover {
  transform: translateY(-5px);
  box-shadow: var(--p-card-shadow);
}

.p-download__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(255, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.p-download__icon svg {
  width: 40px;
  height: 40px;
}

.p-download__card h3 {
  font-family: var(--font-headline);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.p-download__card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.p-download__note {
  display: flex;
  gap: 18px;
  align-items: center;
  background: rgba(27, 42, 74, 0.7);
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  margin-bottom: 36px;
}

.p-download__note svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.p-download__note strong {
  display: block;
  font-size: 0.96rem;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.p-download__note p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

.p-download__help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
}

.p-download__help p {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.p-download__help .btn {
  padding: 11px 26px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 640px) {
  .p-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .p-showcase__item {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 24px;
  }

  .p-showcase__item--reverse {
    grid-template-columns: 1fr 1.2fr;
  }

  .p-showcase__item--reverse .p-showcase__img {
    order: 2;
  }

  .p-subscribe__visual img,
  .p-subscribe__visual {
    min-height: 320px;
  }

  .p-download__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .p-hero {
    padding: 64px 0 96px;
  }

  .p-hero__layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }

  .p-hero__copy {
    order: 1;
  }

  .p-hero__visual {
    order: 2;
  }

  .p-hero__copy h1 {
    font-size: 4.6rem;
  }

  .p-device {
    max-width: 360px;
    width: 80%;
  }

  .p-hero__qr {
    left: -18px;
    bottom: 12px;
  }

  .p-features,
  .p-versions,
  .p-subscribe,
  .p-download {
    padding: 96px 0;
  }

  .p-versions__layout {
    grid-template-columns: 1fr 0.85fr;
    gap: 60px;
    align-items: start;
  }

  .p-subscribe__card {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .p-subscribe__visual img,
  .p-subscribe__visual {
    min-height: 100%;
    height: 100%;
  }

  .p-subscribe__content {
    padding: 46px 44px 48px;
  }

  .p-subscribe__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-download__card {
    padding: 36px 32px;
  }

  .p-download__note {
    padding: 24px 28px;
  }
}

@media (min-width: 1280px) {
  .p-hero__copy h1 {
    font-size: 5.6rem;
  }

  .p-device {
    max-width: 390px;
  }

  .p-features__showcase {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .p-showcase__item,
  .p-showcase__item--reverse {
    grid-template-columns: 1fr;
  }

  .p-showcase__item--reverse .p-showcase__img {
    order: unset;
  }
}
