.page-products,
.page-products *,
.page-products *::before,
.page-products *::after {
  box-sizing: border-box;
}

.page-products {
  --products-section-gap: 3rem;
  --products-accent: #FF6B35;
  --products-green: #39FF14;
  --products-deep: #0B1D3A;
  --products-card: #16181d;
  --products-line: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(900px 480px at 85% -5%, rgba(123, 44, 191, 0.28), transparent 60%),
    linear-gradient(180deg, #111418, #1A1A1A);
  color: var(--color-light-gray);
  font-family: var(--font-body);
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.page-products h1,
.page-products h2,
.page-products h3 {
  font-family: var(--font-headline);
  text-transform: none;
}

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

.page-products__breadcrumb-wrap {
  padding: 1.25rem 0 0;
}

.page-products__breadcrumb-wrap .breadcrumb {
  margin: 0;
}

/* ===== Hero ===== */
.page-products__hero {
  position: relative;
  padding: 2.5rem 0 4rem;
  isolation: isolate;
}

.page-products__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.page-products__hero::after {
  content: "";
  position: absolute;
  left: -15%;
  bottom: -20%;
  width: 1200px;
  height: 380px;
  background: linear-gradient(90deg, rgba(11, 29, 58, 0.65), rgba(255, 107, 53, 0.12));
  transform: rotate(-6deg);
  z-index: -2;
  pointer-events: none;
}

.page-products__hero-inner {
  display: grid;
  gap: 2.2rem;
  grid-template-areas:
    "copy"
    "visual";
  align-items: center;
}

.page-products__hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
}

.page-products__hero-visual {
  grid-area: visual;
  position: relative;
  z-index: 1;
}

.page-products__eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  margin: 0 0 1.1rem;
  background: var(--products-deep);
  border-left: 4px solid var(--products-accent);
  color: var(--color-white);
  font-family: var(--font-headline);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.page-products__title {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  color: var(--color-white);
}

.page-products__lead {
  margin: 0 0 1.8rem;
  max-width: 34rem;
  font-size: 1.05rem;
  color: var(--color-light-gray);
}

.page-products__hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--products-line);
  border-left: 2px solid var(--products-line);
  max-width: 38rem;
}

.page-products__stat {
  padding: 1rem 1.1rem;
  background: rgba(12, 14, 18, 0.72);
  border-right: 2px solid var(--products-line);
  border-bottom: 2px solid var(--products-line);
}

.page-products__stat:first-child {
  background: rgba(255, 107, 53, 0.1);
}

.page-products__stat strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--products-accent);
}

.page-products__stat span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-light-gray);
}

.page-products__hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.page-products__hero-cta .btn {
  padding-left: 1.6rem;
  padding-right: 1.6rem;
}

.page-products__hero-cta .btn:active {
  transform: translateY(2px) scale(0.98);
}

/* ===== Device frame ===== */
.page-products__device {
  max-width: 680px;
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.page-products__device-inner {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: var(--products-card);
  overflow: hidden;
}

.page-products__device-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  background: linear-gradient(180deg, #0b0b0f, #17181c);
  z-index: 3;
}

.page-products__device-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3a40;
}

.page-products__device-dot:first-child {
  background: var(--products-accent);
}

.page-products__device-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.page-products__device-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.page-products__device-base {
  width: 92%;
  height: 16px;
  margin: -2px auto 0;
  position: relative;
  border-radius: 0 0 22px 22px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top: none;
  background: linear-gradient(180deg, #202229, #101114);
}

.page-products__device-base span {
  display: block;
  width: 120px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px auto 0;
}

/* ===== Shared section rhythm ===== */
.page-products__section {
  padding: var(--products-section-gap) 0;
}

.page-products__section h2 {
  margin: 0.9rem 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  color: var(--color-white);
}

.page-products__section .section-label {
  margin: 0;
}

.page-products__section-lead {
  max-width: 48rem;
  margin: 0 0 2rem;
  color: var(--color-light-gray);
}

/* ===== Features ===== */
.page-products__features {
  background: linear-gradient(180deg, rgba(11, 29, 58, 0.4), transparent 72%);
  border-top: 2px solid var(--products-line);
  border-bottom: 2px solid var(--products-line);
}

.page-products__features-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.page-products__feature-card {
  position: relative;
  background: var(--products-card);
  border: 1px solid var(--products-line);
  border-top: 5px solid var(--products-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-products__feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-products__feature-card::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -22px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(123, 44, 191, 0.32), transparent 65%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.page-products__feature-details {
  position: relative;
  z-index: 1;
  padding: 1.3rem 1.35rem 1.1rem;
}

.page-products__feature-details summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  cursor: pointer;
  list-style: none;
}

.page-products__feature-details summary::-webkit-details-marker {
  display: none;
}

.page-products__feature-num {
  font-family: var(--font-headline);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--products-accent);
  flex-shrink: 0;
}

.page-products__feature-heading {
  flex: 1;
}

.page-products__feature-heading strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--color-white);
  margin-bottom: 0.35rem;
}

.page-products__feature-heading small {
  display: block;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-light-gray);
}

.page-products__feature-more {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid var(--products-accent);
  border-radius: 50%;
  color: var(--products-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.page-products__feature-details[open] .page-products__feature-more {
  transform: rotate(45deg);
}

.page-products__feature-details > p {
  margin: 1.1rem 0 0.3rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--products-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(57, 255, 20, 0.07);
  font-size: 0.92rem;
  color: var(--color-light-gray);
}

/* ===== Feature scene ===== */
.page-products__feature-scene {
  display: grid;
  gap: 1.8rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--products-line);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(255, 107, 53, 0.08), transparent 50%),
    rgba(12, 14, 18, 0.62);
}

.page-products__scene-copy h3 {
  color: var(--color-white);
  font-size: 1.75rem;
  margin: 0 0 0.9rem;
}

.page-products__scene-copy p {
  color: var(--color-light-gray);
  font-size: 0.97rem;
  max-width: 42rem;
}

.page-products__scene-copy p + p {
  margin-top: 0.75rem;
}

.page-products__feature-scene img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--products-line);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

/* ===== Download ===== */
.page-products__download {
  background: linear-gradient(180deg, transparent, rgba(11, 29, 58, 0.32));
}

.page-products__download-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 980px;
}

.page-products__platform-card {
  position: relative;
  padding: 1.8rem 1.8rem 1.4rem 2rem;
  background: linear-gradient(145deg, #10141b, #2E2E2E);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-products__platform-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--products-accent), var(--products-green));
}

.page-products__platform-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.page-products__platform-card h3 {
  margin: 0 0 0.5rem;
  color: var(--color-white);
  font-size: 1.65rem;
}

.page-products__platform-card > p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-light-gray);
}

.page-products__platform-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.page-products__platform-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--products-accent);
  font-weight: 700;
}

.page-products__platform-details summary::-webkit-details-marker {
  display: none;
}

.page-products__platform-details summary::before {
  content: "▸ ";
  color: var(--products-green);
}

.page-products__platform-details[open] summary::before {
  content: "▾ ";
}

.page-products__platform-details p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--color-light-gray);
  line-height: 1.75;
}

/* ===== System ===== */
.page-products__system {
  background: rgba(16, 18, 22, 0.72);
  border-top: 2px solid var(--products-line);
  border-bottom: 2px solid var(--products-line);
}

.page-products__system-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--products-line);
  background: var(--products-line);
}

.page-products__system-item {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: #15171b;
}

.page-products__system-item dt {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  color: var(--products-accent);
  margin-bottom: 0.35rem;
}

.page-products__system-item dd {
  margin: 0;
  font-size: 0.94rem;
  color: var(--color-light-gray);
}

/* ===== Timeline ===== */
.page-products__timeline {
  border-top: 2px solid var(--products-line);
}

.page-products__timeline-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.page-products__timeline-rail {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
}

.page-products__timeline-item {
  position: relative;
  padding: 0 0 1.6rem 1.8rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
}

.page-products__timeline-item:last-child {
  padding-bottom: 0;
}

.page-products__timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--products-green);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.15);
}

.page-products__timeline-dot {
  display: none;
}

.page-products__timeline-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
}

.page-products__timeline-card summary::-webkit-details-marker {
  display: none;
}

.page-products__timeline-card summary strong {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  color: var(--color-white);
}

.page-products__timeline-card summary span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--products-line);
  color: var(--color-light-gray);
  background: rgba(255, 255, 255, 0.04);
}

.page-products__timeline-card summary::after {
  content: "+";
  margin-left: auto;
  color: var(--products-accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.page-products__timeline-card[open] summary::after {
  content: "–";
}

.page-products__timeline-card p {
  margin: 0.8rem 0 0;
  max-width: 34rem;
  font-size: 0.93rem;
  color: var(--color-light-gray);
}

.page-products__timeline-visual {
  position: relative;
}

.page-products__timeline-visual img {
  display: block;
  width: 100%;
  max-width: 640px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.page-products__timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(11, 29, 58, 0.85);
  border: 1px solid rgba(57, 255, 20, 0.45);
  color: var(--color-white);
  font-size: 0.86rem;
  font-weight: 700;
}

.page-products__timeline-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--products-green);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.6);
  animation: page-products-pulse 2s infinite;
}

@keyframes page-products-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

/* ===== CTA trust ===== */
.page-products__cta {
  background: linear-gradient(180deg, rgba(123, 44, 191, 0.18), rgba(11, 29, 58, 0.36));
}

.page-products__trust {
  max-width: 56rem;
  margin: 0 0 2rem;
  padding: 0.9rem 1.3rem;
  border-left: 4px solid var(--color-purple);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(123, 44, 191, 0.15);
  font-size: 0.92rem;
  color: var(--color-light-gray);
}

.page-products__cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-products__cta-links .btn {
  background: rgba(20, 22, 27, 0.8);
  border-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 420px) {
  .page-products__hero-stats {
    grid-template-columns: 1fr;
  }

  .page-products__hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 680px) {
  .page-products {
    --products-section-gap: 4rem;
  }

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

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

  .page-products__timeline-item {
    padding-left: 2.2rem;
  }

  .page-products__feature-scene {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .page-products__hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products__device {
    max-width: 720px;
  }
}

@media (min-width: 960px) {
  .page-products {
    --products-section-gap: 5rem;
  }

  .page-products__hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas: "visual copy";
    gap: 3.5rem;
  }

  .page-products__hero {
    padding: 3rem 0 5rem;
  }

  .page-products__features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-products__download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

  .page-products__timeline-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 4rem;
  }

  .page-products__timeline-visual {
    position: sticky;
    top: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products__feature-card,
  .page-products__hero-cta .btn,
  .page-products__feature-more {
    transition: none;
  }

  .page-products__timeline-badge-dot {
    animation: none;
  }
}
