:root {
  --pd-blue: #159fe6;
  --pd-electric: #2bb8ff;
  --pd-bg: #02060b;
  --pd-panel: #07111c;
  --pd-white: #f4f7fa;
  --pd-muted: rgba(244, 247, 250, 0.58);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.product-page {
  margin: 0;
  background:
    radial-gradient(
      circle at 72% 20%,
      rgba(21, 159, 230, 0.13),
      transparent 30%
    ),
    #02060b;
  color: var(--pd-white);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

.product-page a {
  color: inherit;
  text-decoration: none;
}


/* =========================================================
   HEADER
   ========================================================= */

.product-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;

  height: 78px;

  display: flex;
  align-items: center;

  padding: 0 clamp(20px, 4vw, 70px);

  background: linear-gradient(
    180deg,
    rgba(2, 6, 11, 0.82),
    rgba(2, 6, 11, 0)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.product-header .back-link {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.68);

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.product-header .back-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.product-header-actions {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 22px;
}

.product-header-actions .back-link {
  margin-left: 0;
}


/* =========================================================
   HERO
   ========================================================= */

.product-hero {
  position: relative;

  min-height: 100svh;

  display: grid;
  grid-template-columns:
    minmax(0, 0.86fr)
    minmax(0, 1.14fr);

  align-items: center;
  gap: 4vw;

  padding:
    120px
    clamp(22px, 6vw, 96px)
    70px;
}

.product-hero::after {
  content: "";

  position: absolute;
  left: 6vw;
  right: 6vw;
  bottom: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

.product-copy {
  position: relative;
  z-index: 3;

  max-width: 660px;
}

.product-eyebrow {
  margin: 0 0 22px;

  color: var(--pd-electric);

  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.product-copy h1 {
  margin: 0;

  font-size: clamp(62px, 9vw, 148px);
  line-height: 0.82;
  letter-spacing: -0.07em;

  text-transform: uppercase;
}

/* Keep the i / T / i in GraSiTi separate at large heading sizes. */
.product-copy h1.product-title--grasiti {
  letter-spacing: 0.015em;
  font-kerning: none;
}

.product-copy h2 {
  max-width: 610px;

  margin: 28px 0 0;

  font-size: clamp(23px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.product-description {
  max-width: 620px;

  margin: 28px 0 0;

  color: var(--pd-muted);

  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.72;
}

.product-cta {
  width: max-content;

  margin-top: 38px;

  display: flex;
  align-items: center;
  gap: 28px;

  padding: 14px 18px 14px 22px;

  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.035);

  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.product-cta:hover {
  background: rgba(43, 184, 255, 0.11);
  border-color: rgba(43, 184, 255, 0.45);
  transform: translateY(-2px);
}


/* =========================================================
   PRODUCT VISUAL
   ========================================================= */

.product-visual {
  position: relative;

  min-height: 480px;
  height: min(72vh, 760px);

  display: grid;
  place-items: center;

  isolation: isolate;
}

.product-visual::before {
  content: "";

  position: absolute;

  width: 70%;
  aspect-ratio: 1;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(43, 184, 255, 0.16),
    rgba(21, 159, 230, 0.05) 42%,
    transparent 70%
  );

  filter: blur(8px);
}

model-viewer,
.product-fallback {
  position: relative;
  z-index: 3;

  width: 100%;
  height: 100%;
}

.product-fallback {
  object-fit: contain;

  -webkit-mask-image: radial-gradient(
    ellipse at center,
    #000 52%,
    transparent 76%
  );

  mask-image: radial-gradient(
    ellipse at center,
    #000 52%,
    transparent 76%
  );

  filter:
    saturate(0.84)
    contrast(1.05);
}

.model-note {
  position: absolute;
  z-index: 5;

  bottom: 8%;
  left: 50%;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.46);

  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;

  white-space: nowrap;
}

.visual-orbit {
  position: absolute;
  z-index: 1;

  border: 1px solid rgba(43, 184, 255, 0.16);
  border-radius: 50%;

  animation: pdOrbit 18s linear infinite;
}

.visual-orbit--one {
  width: 78%;
  aspect-ratio: 1;

  transform: rotateX(68deg);
}

.visual-orbit--two {
  width: 58%;
  aspect-ratio: 1;

  transform: rotateY(68deg);

  animation-direction: reverse;
  animation-duration: 23s;
}

@keyframes pdOrbit {
  to {
    rotate: 360deg;
  }
}


/* =========================================================
   STATS
   ========================================================= */

.product-stats {
  margin:
    0
    clamp(22px, 6vw, 96px);

  display: grid;
  grid-template-columns: repeat(3, 1fr);

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.product-stats article {
  padding: 50px 30px 54px;

  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.product-stats article:first-child {
  padding-left: 0;
}

.product-stats article:last-child {
  border-right: 0;
}

.product-stats strong {
  display: block;

  font-size: clamp(30px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
}

.product-stats span {
  display: block;

  margin-top: 12px;

  color: var(--pd-muted);

  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* =========================================================
   DETAIL SECTION
   ========================================================= */

.product-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;

  padding:
    130px
    clamp(22px, 6vw, 96px);
}

.product-detail-grid h3 {
  max-width: 760px;

  margin: 0;

  font-size: clamp(36px, 5vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.product-points {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.product-point {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;

  align-items: start;

  padding: 27px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.product-point span {
  padding-top: 5px;

  color: var(--pd-electric);

  font-size: 10px;
  letter-spacing: 0.15em;
}

.product-point p {
  margin: 0;

  color: rgba(255, 255, 255, 0.76);

  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.45;
}


/* =========================================================
   PATENTS
   ========================================================= */

.product-patents {
  width: 100%;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8vw;

  align-items: start;

  padding:
    20px
    clamp(22px, 6vw, 96px)
    130px;

  margin: 0;
}

.product-patents > div:first-child {
  max-width: 760px;
}

.product-patents h3 {
  max-width: 680px;

  margin: 0;

  color: var(--pd-white);

  font-size: clamp(36px, 5vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.patent-list {
  display: grid;
  gap: 18px;
}

.patent-card {
  position: relative;

  overflow: hidden;

  padding: 28px 30px;

  border: 1px solid rgba(120, 190, 255, 0.18);
  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      rgba(40, 130, 220, 0.1),
      rgba(255, 255, 255, 0.025)
    ),
    rgba(5, 10, 16, 0.68);

  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.28);
}

.patent-card::before {
  content: "";

  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at top right,
    rgba(69, 172, 255, 0.15),
    transparent 44%
  );

  pointer-events: none;
}

.patent-card span {
  position: relative;

  display: inline-flex;

  margin-bottom: 16px;

  color: var(--pd-electric);

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.patent-card h4 {
  position: relative;

  margin: 0 0 12px;

  color: #fff;

  font-size: clamp(21px, 2vw, 32px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.patent-card p {
  position: relative;

  margin: 0;

  color: rgba(225, 235, 244, 0.72);

  font-size: 15px;
  line-height: 1.7;
}

.patent-card em {
  position: relative;

  display: block;

  margin-top: 18px;

  color: rgba(180, 210, 235, 0.58);

  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}


/* =========================================================
   NEXT PRODUCTS
   ========================================================= */

.next-products {
  padding:
    60px
    clamp(22px, 6vw, 96px)
    120px;
}

.next-product-links {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.next-product-links a {
  display: grid;
  grid-template-columns:
    minmax(180px, 0.6fr)
    1fr
    50px;

  align-items: center;
  gap: 20px;

  padding: 28px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  transition:
    padding-left 0.25s ease,
    background 0.25s ease;
}

.next-product-links a:hover {
  padding-left: 12px;

  background: linear-gradient(
    90deg,
    rgba(43, 184, 255, 0.06),
    transparent
  );
}

.next-product-links span {
  color: var(--pd-muted);

  font-size: 9px;
  letter-spacing: 0.15em;
}

.next-product-links strong {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.next-product-links em {
  color: var(--pd-electric);

  font-size: 22px;
  font-style: normal;
}


/* =========================================================
   FOOTER
   ========================================================= */

.product-footer {
  min-height: 220px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding:
    44px
    clamp(22px, 6vw, 96px);

  border-top: 1px solid rgba(255, 255, 255, 0.09);

  background: #010409;
}

.product-footer img {
  width: min(250px, 48vw);
  height: auto;
}

.product-footer p {
  color: rgba(255, 255, 255, 0.42);

  font-size: 11px;
  letter-spacing: 0.06em;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .product-header {
    height: 66px;
    padding: 0 18px;
  }

  .product-header .brand-word {
    display: none;
  }

  .product-hero {
    grid-template-columns: 1fr;

    gap: 20px;

    padding:
      105px
      22px
      48px;
  }

  .product-copy h1 {
    font-size: clamp(52px, 17vw, 94px);
  }

  .product-visual {
    order: -1;

    min-height: 360px;
    height: 48vh;

    margin-top: 20px;
  }

  .product-stats {
    grid-template-columns: 1fr;

    margin: 0 22px;
  }

  .product-stats article,
  .product-stats article:first-child {
    padding: 28px 0;

    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .product-stats article:last-child {
    border-bottom: 0;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;

    gap: 55px;

    padding:
      90px
      22px;
  }

  .product-patents {
    grid-template-columns: 1fr;

    gap: 36px;

    padding:
      10px
      22px
      90px;
  }

  .product-patents h3 {
    max-width: 650px;
  }

  .next-products {
    padding:
      30px
      22px
      80px;
  }

  .next-product-links a {
    grid-template-columns: 1fr 34px;
  }

  .next-product-links span {
    grid-column: 1 / -1;
  }

  .next-product-links em {
    grid-column: 2;
    grid-row: 2;
  }

  .product-footer {
    flex-direction: column;
    align-items: flex-start;

    padding: 42px 22px;
  }

  .model-note {
    font-size: 8px;
  }

  .product-description {
    line-height: 1.58;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 700px) {
  .product-header-actions {
    gap: 12px;
  }

  .product-header-actions .back-link:first-child {
    display: none;
  }

  .product-patents {
    gap: 28px;
  }

  .patent-card {
    padding: 22px;

    border-radius: 18px;
  }

  .patent-card p {
    font-size: 14px;
    line-height: 1.65;
  }
}

/* Product navigation in detail-page header */

.nm-detail-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.nm-detail-nav a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 1px;
  transition: color .2s ease;
}

.nm-detail-nav a:hover {
  color: #69caff;
}

@media (max-width: 768px) {
  .nm-detail-nav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nm-detail-nav a {
    white-space: nowrap;
  }
}
