.page-products {
  background: var(--black);
  color: var(--cream);
}

.page-products .pd-section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.page-products .pd-section-head {
  position: relative;
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-left: 1rem;
  border-left: 3px solid var(--gold);
}

.page-products .pd-section-head h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--black);
}

.page-products .pd-section-desc {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--gray);
}

.page-products .pd-download .pd-section-head h2,
.page-products .pd-versions .pd-section-head h2 {
  color: var(--black);
}

.page-products .pd-features .pd-section-head h2,
.page-products .pd-ranks .pd-section-head h2,
.page-products .pd-devices .pd-section-head h2 {
  color: #fff;
}

.page-products .pd-section-head-light .pd-section-desc {
  color: rgba(245, 245, 220, 0.66);
}

.page-products img {
  max-width: 100%;
}

/* ==================== HERO ==================== */
.page-products .pd-hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(255, 215, 0, 0.16), transparent 60%),
    linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

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

.page-products .pd-hero-grid {
  display: grid;
  gap: 2.25rem;
  position: relative;
}

.page-products .pd-hero h1 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 900;
}

.page-products .pd-hero-lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(245, 245, 220, 0.8);
}

.page-products .pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-products .pd-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 215, 0, 0.22);
}

.page-products .pd-meta-item {
  display: flex;
  flex-direction: column;
}

.page-products .pd-meta-num {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  font-weight: 900;
  color: var(--gold);
}

.page-products .pd-meta-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(245, 245, 220, 0.55);
}

.page-products .pd-hero-figure {
  margin: 0;
}

.page-products .pd-hero-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4 / 3;
  background: #111;
}

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

.page-products .pd-hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.9;
}

.page-products .pd-hero-corner-tl {
  top: 12px;
  left: 12px;
  border-width: 2px 0 0 2px;
}

.page-products .pd-hero-corner-br {
  bottom: 12px;
  right: 12px;
  border-width: 0 2px 2px 0;
}

.page-products .pd-hero-figcap,
.page-products .pd-download-figure figcaption,
.page-products .pd-features-shot figcaption,
.page-products .pd-ranks-figure figcaption,
.page-products .pd-devices-figure figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-products .pd-features-shot figcaption,
.page-products .pd-ranks-figure figcaption,
.page-products .pd-devices-figure figcaption {
  color: rgba(245, 245, 220, 0.55);
}

/* ==================== DOWNLOAD ==================== */
.page-products .pd-download {
  background:
    linear-gradient(rgba(26, 26, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 26, 26, 0.04) 1px, transparent 1px),
    radial-gradient(1000px 500px at 110% 10%, rgba(220, 20, 60, 0.08), transparent 60%),
    var(--cream);
  background-size: 36px 36px, 36px 36px, auto, auto;
}

.page-products .pd-download-grid {
  display: grid;
  gap: 2.25rem;
}

.page-products .pd-compat {
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(26, 26, 26, 0.06);
}

.page-products .pd-compat summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--black);
}

.page-products .pd-compat summary::-webkit-details-marker {
  display: none;
}

.page-products .pd-compat-extra {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--gray);
}

.page-products .pd-compat summary::after {
  content: "+";
  margin-left: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  transition: transform 0.3s var(--ease);
}

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

.page-products .pd-compat-body {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px dashed rgba(26, 26, 26, 0.16);
}

.page-products .pd-compat-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--black-soft);
}

.page-products .pd-download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-products .pd-download-figure {
  margin: 0;
}

.page-products .pd-phone-frame {
  position: relative;
  max-width: 20rem;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 26, 0.18);
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.18);
  background: #0e0e0e;
}

.page-products .pd-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .pd-phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4.5rem;
  height: 1rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
}

/* ==================== FEATURES ==================== */
.page-products .pd-features {
  background:
    radial-gradient(1100px 420px at 10% 0%, rgba(80, 200, 120, 0.1), transparent 60%),
    linear-gradient(180deg, #171717, #1a1a1a);
}

.page-products .pd-features-layout {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.page-products .pd-features-shot {
  margin: 0;
}

.page-products .pd-shot-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 2;
}

.page-products .pd-shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-products .pd-features-list {
  display: grid;
  gap: 1rem;
}

.page-products .pd-feature-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.25rem 0.875rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.04);
}

.page-products .pd-feature-index {
  grid-row: span 2;
  padding-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--gold);
}

.page-products .pd-feature-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.page-products .pd-feature-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(245, 245, 220, 0.72);
}

/* ==================== RANKS ==================== */
.page-products .pd-ranks {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(255, 215, 0, 0.16), transparent 55%),
    linear-gradient(135deg, #101010, #1a1a1a);
}

.page-products .pd-ranks-layout {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

.page-products .pd-ranks-ladder {
  display: grid;
  gap: 0.7rem;
}

.page-products .pd-rank-row {
  --pd-rank-fill: 14%;
  --pd-rank-color: #cd7f32;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem 0.9rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 215, 0, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .pd-rank-row:hover,
.page-products .pd-rank-row:focus-within {
  background: rgba(255, 215, 0, 0.07);
  border-color: var(--pd-rank-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.page-products .pd-rank-silver {
  --pd-rank-fill: 28%;
  --pd-rank-color: #c0c0c0;
}

.page-products .pd-rank-gold {
  --pd-rank-fill: 42%;
  --pd-rank-color: #ffd700;
}

.page-products .pd-rank-platinum {
  --pd-rank-fill: 57%;
  --pd-rank-color: #b9f2ff;
}

.page-products .pd-rank-diamond {
  --pd-rank-fill: 71%;
  --pd-rank-color: #4fc3f7;
}

.page-products .pd-rank-master {
  --pd-rank-fill: 85%;
  --pd-rank-color: #7e57c2;
}

.page-products .pd-rank-grandmaster {
  --pd-rank-fill: 100%;
  --pd-rank-color: #ff3d68;
}

.page-products .pd-rank-meta {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.page-products .pd-rank-level {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.page-products .pd-rank-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
}

.page-products .pd-rank-en {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--pd-rank-color);
}

.page-products .pd-rank-meter {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  height: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.page-products .pd-rank-fill {
  display: block;
  width: var(--pd-rank-fill);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pd-rank-color), var(--gold));
  transition: width 0.5s var(--ease);
}

.page-products .pd-rank-note {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245, 245, 220, 0.6);
}

.page-products .pd-rank-row:hover .pd-rank-note {
  color: rgba(245, 245, 220, 0.92);
}

.page-products .pd-ranks-figure {
  margin: 0;
}

.page-products .pd-ranks-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: #111;
  display: block;
}

/* ==================== VERSIONS ==================== */
.page-products .pd-versions {
  background:
    radial-gradient(1000px 400px at 0% 100%, rgba(220, 20, 60, 0.08), transparent 60%),
    var(--cream);
}

.page-products .pd-versions-grid {
  display: grid;
  gap: 1.25rem;
}

.page-products .pd-version-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .pd-version-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(26, 26, 26, 0.12);
}

.page-products .pd-version-current {
  background: linear-gradient(160deg, #fff8e1, #ffffff);
  border-color: rgba(255, 215, 0, 0.55);
}

.page-products .pd-version-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
}

.page-products .pd-version-card p {
  flex: 1;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--black-soft);
}

.page-products .pd-version-card .btn {
  align-self: flex-start;
}

/* ==================== DEVICES ==================== */
.page-products .pd-devices {
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(80, 200, 120, 0.1), transparent 55%),
    linear-gradient(180deg, #171717, #101010);
}

.page-products .pd-devices-layout {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.page-products .pd-device-block {
  margin-top: 1.25rem;
}

.page-products .pd-device-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--gold);
}

.page-products .pd-device-list {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.page-products .pd-device-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(245, 245, 220, 0.75);
}

.page-products .pd-device-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(80, 200, 120, 0.5);
}

.page-products .pd-device-tip {
  font-size: 0.88rem;
  color: rgba(245, 245, 220, 0.6);
}

.page-products .pd-device-tip a {
  color: var(--gold);
}

.page-products .pd-devices-figure {
  margin: 0;
}

.page-products .pd-devices-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 1 / 1;
}

.page-products .pd-devices-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==================== CTA ==================== */
.page-products .pd-cta {
  background:
    radial-gradient(1200px 500px at 100% 30%, rgba(255, 215, 0, 0.16), transparent 60%),
    linear-gradient(120deg, #9b0e2d, #dc143c);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  color: #fff;
}

.page-products .pd-cta-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.page-products .pd-cta-copy h2 {
  margin: 0.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  color: #fff;
}

.page-products .pd-cta-copy p {
  margin: 0;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.page-products .pd-cta-copy a {
  color: #ffe66d;
  text-decoration: underline;
}

.page-products .pd-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-products .pd-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-products .pd-cta-link-primary {
  background: var(--gold);
  color: #111;
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.32);
}

.page-products .pd-cta-link-primary:hover {
  background: var(--gold-light);
}

.page-products .pd-cta-link-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}

.page-products .pd-cta-link-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ==================== MEDIA QUERIES ==================== */
@media (min-width: 640px) {
  .page-products .pd-features-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-products .pd-hero-meta {
    gap: 2.25rem 3rem;
  }
}

@media (min-width: 980px) {
  .page-products .pd-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-products .pd-download-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-products .pd-features-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }

  .page-products .pd-ranks-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-products .pd-ranks-figure {
    position: sticky;
    top: 6rem;
  }

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

  .page-products .pd-devices-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-products .pd-cta-layout {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
