.page-products {
  --p-hero-blue: rgba(29, 111, 242, 0.16);
  --p-hero-red: rgba(230, 57, 70, 0.16);
  overflow: hidden;
}

/* ========== HERO ========== */
.page-products__hero {
  position: relative;
  padding: 116px 0 72px;
  background:
    linear-gradient(115deg, var(--p-hero-red) 0%, transparent 32%),
    linear-gradient(295deg, var(--p-hero-blue) 0%, transparent 48%),
    var(--c-bg);
  overflow: hidden;
}
.page-products__hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(183, 227, 26, 0.06) 100%);
  clip-path: polygon(30% 0, 55% 0, 90% 100%, 60% 100%);
  pointer-events: none;
}
.page-products__hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
.page-products__hero-copy {
  position: relative;
  z-index: 1;
}
.page-products__hero-lead {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--c-green);
  margin: 10px 0 0;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.page-products__hero-desc {
  margin-top: 16px;
  max-width: 520px;
  color: var(--c-silver);
  font-size: 16px;
  line-height: 1.75;
}
.page-products__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.page-products__hero-actions .btn:active {
  transform: scale(0.97);
}
.page-products__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.page-products__hero-meta span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--c-silver);
}

/* ========== HERO DEVICES ========== */
.page-products__hero-devices {
  display: none;
  position: relative;
  min-height: 320px;
}
.page-products__mini-phone {
  position: absolute;
  left: 24px;
  top: 18px;
  width: 96px;
  height: 176px;
  background: linear-gradient(155deg, #16345c 0%, #0a1524 52%, #0d1b2a 100%);
  border: 4px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 10px 7px 14px;
  transform: rotate(-14deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.page-products__mini-status {
  display: block;
  height: 4px;
  width: 40px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin-inline: auto;
  margin-bottom: 8px;
}
.page-products__mini-phone::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(160deg, rgba(29, 111, 242, 0.35), rgba(183, 227, 26, 0.15));
  border-radius: 14px;
}
.page-products__mini-desktop {
  position: absolute;
  right: 0;
  top: 54px;
  width: 190px;
  height: 132px;
  background: linear-gradient(145deg, #1b263b 0%, #0d1b2a 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px 12px 4px 4px;
  padding: 0 10px 10px;
  transform: rotate(5deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.page-products__mini-bar {
  display: block;
  height: 20px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px 4px 0 0;
  margin-bottom: 10px;
}
.page-products__mini-screen {
  display: block;
  height: calc(100% - 30px);
  background: linear-gradient(140deg, rgba(230, 57, 70, 0.28), rgba(29, 111, 242, 0.22) 70%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.page-products__mini-link {
  position: absolute;
  left: 100px;
  top: 88px;
  width: 130px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-green), var(--c-red));
  transform: rotate(-8deg);
  z-index: 3;
}
.page-products__mini-link::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  background: var(--c-green);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ========== SECTION HEAD ========== */
.page-products__section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

/* ========== SYNC SECTION ========== */
.page-products__sync-section {
  scroll-margin-top: 96px;
}
.page-products__sync-layout {
  display: grid;
  gap: 20px;
  align-items: center;
}
.page-products__sync-card {
  padding: 24px;
}
.page-products__sync-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--c-text);
}
.page-products__sync-card p {
  margin: 0;
  color: var(--c-silver);
  font-size: 15px;
  line-height: 1.65;
}
.page-products__sync-figure {
  position: relative;
  margin: 0;
}
.page-products__sync-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-products__sync-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-silver);
}

/* ========== SPLIT SECTIONS ========== */
.page-products__mobile-section {
  position: relative;
  scroll-margin-top: 96px;
  background:
    radial-gradient(circle at 80% 20%, rgba(29, 111, 242, 0.16), transparent 42%),
    linear-gradient(180deg, var(--c-bg) 0%, #101f33 100%);
  overflow: hidden;
}
.page-products__mobile-section::before {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(29, 111, 242, 0.18), rgba(183, 227, 26, 0.1));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30% 100%);
  z-index: 0;
  pointer-events: none;
}
.page-products__mobile-section::after {
  content: "01";
  position: absolute;
  right: -10px;
  bottom: -30px;
  z-index: 0;
  font-family: var(--font-num);
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  transform: skewX(-10deg);
}
.page-products__desktop-section {
  position: relative;
  scroll-margin-top: 96px;
  overflow: hidden;
}
.page-products__desktop-section::after {
  content: "02";
  position: absolute;
  left: -10px;
  bottom: -40px;
  z-index: 0;
  font-family: var(--font-num);
  font-size: 11rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transform: skewX(-10deg);
}
.page-products__split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.page-products__device-col {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.page-products__split-content {
  position: relative;
  z-index: 1;
}
.page-products__split-content p {
  margin-top: 16px;
  color: var(--c-silver);
  line-height: 1.75;
  font-size: 16px;
}
.page-products__split-content ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 12px;
}
.page-products__split-content li {
  position: relative;
  padding-left: 28px;
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.65;
}
.page-products__split-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-green));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.page-products__desktop-section .page-products__split-content li::before {
  background: linear-gradient(135deg, var(--c-red), var(--c-orange));
}

/* ========== DEVICE MODELS ========== */
.page-products__phone,
.page-products__browser {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.page-products__phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 280px;
  max-width: 85%;
  margin-inline: auto;
  padding: 14px 8px 20px;
  background: #0a1524;
  border: 8px solid #2a3a52;
  border-radius: 42px;
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(-3deg);
}
.page-products__phone-speaker {
  display: block;
  width: 90px;
  height: 6px;
  background: #2a3a52;
  border-radius: 3px;
}
.page-products__phone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--c-bg);
}
.page-products__browser {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--c-surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.page-products__browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(13, 27, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-products__browser-bar > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-red);
}
.page-products__browser-bar > span:nth-child(2) {
  background: var(--c-orange);
}
.page-products__browser-bar > span:nth-child(3) {
  background: var(--c-green);
}
.page-products__browser-url {
  margin-left: 6px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--c-silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.page-products__browser-screen {
  display: block;
  width: 100%;
  height: auto;
}

/* ========== STAT STRIP ========== */
.page-products__stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.page-products__stat-strip .stat-num {
  font-family: var(--font-num);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
  color: var(--c-green);
  display: block;
}
.page-products__stat-strip .stat-num em {
  font-style: normal;
  font-size: 0.55em;
  font-family: var(--font-ui);
  color: var(--c-silver);
  margin-left: 4px;
}
.page-products__stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--c-silver);
}
.page-products__desktop-section .page-products__stat-strip .stat-num {
  color: var(--c-orange);
}

/* ========== FEATURES ========== */
.page-products__features-section {
  scroll-margin-top: 96px;
}
.page-products__features-grid {
  display: grid;
  gap: 18px;
}
.page-products__feature-card {
  position: relative;
  padding: 24px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.page-products__feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}
.page-products__feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: var(--c-silver);
}
.page-products__feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--c-text);
}
.page-products__feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-silver);
  margin: 0;
}
.page-products__feature-card--wide {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-products__features-deco {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(29, 111, 242, 0.14), rgba(183, 227, 26, 0.12) 80%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.page-products__features-deco img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}
.page-products__features-deco figcaption {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.5;
}

/* ========== DOWNLOAD ========== */
.page-products__download-section {
  scroll-margin-top: 96px;
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
}
.page-products__download-card {
  display: grid;
  gap: 32px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(29, 111, 242, 0.09), transparent 45%),
    rgba(13, 27, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.page-products__download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-red), var(--c-blue), var(--c-green));
}
.page-products__download-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-products__qr-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 0 0 4px rgba(230, 57, 70, 0.25),
    0 12px 32px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.page-products__download-qr:hover .page-products__qr-img,
.page-products__download-qr:focus-within .page-products__qr-img {
  transform: scale(1.06);
  box-shadow:
    0 0 0 6px rgba(183, 227, 26, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.55);
}
.page-products__download-info p {
  margin-top: 14px;
  color: var(--c-silver);
  line-height: 1.75;
  max-width: 480px;
}
.page-products__store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.page-products__store-row .btn {
  cursor: default;
  transition: transform var(--transition-fast);
}
.page-products__store-row .btn:active {
  transform: scale(0.97);
}
.page-products__download-notes {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.page-products__download-notes li {
  position: relative;
  padding-left: 26px;
  color: var(--c-silver);
  font-size: 14px;
}
.page-products__download-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-green);
  font-weight: 700;
}
.page-products__download-tips {
  margin-top: 28px;
  text-align: center;
  font-size: 15px;
  color: var(--c-silver);
}
.page-products__download-tips a {
  color: var(--c-blue);
  text-decoration: underline;
}

/* ========== HOVER DECORATION ========== */
@media (hover: hover) {
  .page-products__phone:hover {
    transform: rotate(0deg) translateY(-4px);
  }
  .page-products__browser:hover {
    transform: rotate(0deg) translateY(-6px);
  }
}

/* ========== TABLET (768px) ========== */
@media (min-width: 768px) {
  .page-products__hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .page-products__hero-devices {
    display: block;
  }
  .page-products__sync-layout {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 20px;
  }
  .page-products__split {
    grid-template-columns: 5fr 7fr;
    gap: 48px;
  }
  .page-products__split--reverse .page-products__device-col {
    order: 2;
  }
  .page-products__split--reverse .page-products__split-content {
    order: 1;
  }
  .page-products__features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-products__features-grid .page-products__feature-card--wide,
  .page-products__features-grid .page-products__features-deco {
    grid-column: span 2;
  }
  .page-products__features-deco {
    flex-direction: row;
    text-align: left;
  }
  .page-products__download-card {
    grid-template-columns: auto 1fr;
    gap: 40px;
    padding: 44px;
  }
}

/* ========== DESKTOP (1024px) ========== */
@media (min-width: 1024px) {
  .page-products__hero {
    padding-top: 140px;
  }
  .page-products__hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }
  .page-products__sync-layout {
    grid-template-columns: 0.9fr 1.4fr 0.9fr;
    gap: 24px;
  }
  .page-products__sync-figure figcaption {
    text-align: center;
  }
  .page-products__features-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .page-products__features-grid .page-products__feature-card:nth-child(1) {
    grid-column: span 5;
  }
  .page-products__features-grid .page-products__feature-card:nth-child(2) {
    grid-column: span 7;
  }
  .page-products__features-grid .page-products__feature-card:nth-child(3) {
    grid-column: span 7;
  }
  .page-products__features-grid .page-products__feature-card:nth-child(4) {
    grid-column: span 5;
  }
  .page-products__features-grid .page-products__features-deco {
    grid-column: span 5;
  }
  .page-products__features-grid .page-products__feature-card--wide {
    grid-column: span 7;
  }
  .page-products__download-card {
    grid-template-columns: 300px 1fr;
    gap: 48px;
    padding: 52px;
  }
}
