/* Product detail pages */
.product-detail-page {
  --product-accent: #8a78ff;
  --product-rgb: 138, 120, 255;
  padding-bottom: 0;
}

.product-detail-hero {
  width: min(1440px, calc(100% - 64px));
  min-height: 680px;
  margin: 0 auto;
  border: 1px solid rgba(var(--product-rgb), 0.26);
  border-radius: 38px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f7f8ff;
  background: #060713;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.44),
    inset 0 0 90px rgba(var(--product-rgb), 0.06);
}

.product-detail-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.46;
  background-image:
    linear-gradient(rgba(var(--product-rgb), 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--product-rgb), 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.62), transparent 94%);
}

.product-detail-orb {
  width: min(60%, 780px);
  aspect-ratio: 1;
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -2%;
  object-fit: contain;
  opacity: 0.58;
  mix-blend-mode: screen;
  filter: saturate(1.16) contrast(1.08) drop-shadow(0 0 80px rgba(var(--product-rgb), 0.22));
  transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(circle, #000 0 54%, rgba(0, 0, 0, 0.65) 69%, transparent 84%);
  mask-image: radial-gradient(circle, #000 0 54%, rgba(0, 0, 0, 0.65) 69%, transparent 84%);
}

.product-detail-scan {
  position: absolute;
  z-index: 1;
  top: 18%;
  right: 7%;
  width: 47%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--product-rgb), 0.72), transparent);
  box-shadow: 0 0 18px rgba(var(--product-rgb), 0.44);
  animation: product-scan 7s linear infinite;
}

.product-detail-copy {
  width: min(56%, 710px);
  min-height: 680px;
  padding: 78px 0 70px 74px;
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.product-detail-eyebrow {
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(var(--product-rgb), 0.42);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--product-accent);
  background: rgba(8, 10, 22, 0.62);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0;
}

.product-detail-copy h1 {
  max-width: 680px;
  margin: 26px 0 18px;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 610;
}

.product-detail-statement {
  max-width: 610px;
  margin: 0;
  color: rgba(245, 247, 255, 0.92);
  font-size: 23px;
  line-height: 1.48;
}

.product-detail-description {
  max-width: 580px;
  margin: 18px 0 0;
  color: rgba(223, 227, 244, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.product-detail-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.product-primary-action {
  color: #090b12;
  background: var(--product-accent);
  box-shadow: 0 12px 34px rgba(var(--product-rgb), 0.18);
}

.product-primary-action:hover,
.product-primary-action:focus-visible {
  color: #090b12;
  background: #fff;
}

.product-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(241, 243, 255, 0.72);
  font-size: 12px;
}

.product-secondary-action:hover,
.product-secondary-action:focus-visible {
  color: var(--product-accent);
}

.product-live-console {
  width: min(31vw, 410px);
  min-height: 470px;
  border: 1px solid rgba(var(--product-rgb), 0.26);
  border-radius: 8px;
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 6%;
  overflow: hidden;
  color: rgba(238, 241, 255, 0.78);
  background: rgba(5, 7, 17, 0.74);
  backdrop-filter: blur(16px);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.32),
    inset 0 0 46px rgba(var(--product-rgb), 0.035);
  transform: translateY(-50%);
}

.product-live-head,
.product-live-output {
  min-height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: 0;
}

.product-live-head {
  border-bottom: 1px solid rgba(var(--product-rgb), 0.18);
}

.product-live-head span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--product-accent);
}

.product-live-head i,
.product-system-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: var(--product-accent);
  box-shadow: 0 0 12px rgba(var(--product-rgb), 0.84);
}

.product-live-core {
  height: 210px;
  position: relative;
  display: grid;
  place-items: center;
}

.product-live-ring {
  border: 1px solid rgba(var(--product-rgb), 0.24);
  border-radius: 50%;
  position: absolute;
  animation: product-ring-pulse 5s ease-in-out infinite;
}

.product-live-ring.ring-a { width: 86px; height: 86px; }
.product-live-ring.ring-b { width: 138px; height: 138px; animation-delay: -1.6s; }
.product-live-ring.ring-c { width: 186px; height: 186px; animation-delay: -3.2s; }

.product-live-icon {
  width: 66px;
  height: 66px;
  border: 1px solid rgba(var(--product-rgb), 0.72);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--product-accent);
  background: rgba(var(--product-rgb), 0.08);
  box-shadow: 0 0 34px rgba(var(--product-rgb), 0.2);
}

.product-live-query {
  min-height: 72px;
  padding: 12px 15px;
  border-top: 1px solid rgba(var(--product-rgb), 0.14);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.product-live-query span,
.product-live-output > span {
  color: rgba(var(--product-rgb), 0.7);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.product-live-query strong,
.product-live-output strong {
  font-size: 11px;
  line-height: 1.55;
  font-weight: 520;
}

.product-live-sources {
  min-height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-live-sources span {
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(var(--product-rgb), 0.2);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.product-live-output {
  border-top: 1px solid rgba(var(--product-rgb), 0.14);
}

.product-live-output strong {
  color: var(--product-accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
}

.product-metrics {
  width: min(1220px, calc(100% - 96px));
  margin: 96px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.product-metrics > div {
  min-height: 126px;
  padding: 28px 34px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.product-metrics > div:last-child {
  border-right: 0;
}

.product-metrics strong {
  color: var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 27px;
  letter-spacing: 0;
}

.product-metrics span {
  color: var(--muted);
  font-size: 12px;
}

.product-feature-section,
.product-system-section,
.product-workflow-section {
  width: min(1220px, calc(100% - 96px));
  margin: 160px auto 0;
}

.product-section-heading {
  margin-bottom: 68px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
}

.product-section-heading > span,
.product-workflow-heading > span {
  padding-top: 8px;
  color: rgba(86, 72, 205, 0.68);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
  letter-spacing: 0;
}

.product-section-heading h2,
.product-workflow-heading h2,
.product-detail-cta h2 {
  margin: 0;
  letter-spacing: 0;
  font-weight: 580;
}

.product-section-heading h2 {
  font-size: 50px;
  line-height: 1.1;
}

.product-section-heading p {
  max-width: 620px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.product-feature-grid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.product-feature-grid article {
  min-height: 330px;
  padding: 34px 34px 38px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

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

.product-feature-grid article > span,
.product-workflow-grid article > span,
.product-capability-list article > span {
  color: rgba(var(--product-rgb), 0.82);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.product-feature-grid small,
.product-workflow-grid small {
  margin-top: auto;
  color: rgba(65, 70, 92, 0.5);
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: 0;
}

.product-feature-grid h3 {
  margin: 12px 0 14px;
  font-size: 26px;
  letter-spacing: 0;
  font-weight: 590;
}

.product-feature-grid p,
.product-capability-list p,
.product-workflow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.product-system-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 0;
}

.product-system-visual {
  min-height: 590px;
  border: 1px solid rgba(var(--product-rgb), 0.25);
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  color: rgba(237, 240, 252, 0.72);
  background: #080a15;
  box-shadow: inset 0 0 68px rgba(var(--product-rgb), 0.04);
}

.product-system-topline,
.product-system-status {
  min-height: 48px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-geist-mono), monospace;
  font-size: 8px;
  letter-spacing: 0;
}

.product-system-topline {
  border-bottom: 1px solid rgba(var(--product-rgb), 0.14);
}

.product-system-field {
  height: 492px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-image:
    linear-gradient(rgba(var(--product-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--product-rgb), 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
}

.system-orbit,
.system-axis,
.system-node,
.product-system-core {
  position: absolute;
}

.system-orbit {
  border: 1px solid rgba(var(--product-rgb), 0.27);
  border-radius: 50%;
  animation: product-orbit-drift 9s ease-in-out infinite;
}

.system-orbit.orbit-one { width: 180px; height: 180px; }
.system-orbit.orbit-two { width: 310px; height: 230px; transform: rotate(28deg); animation-delay: -3s; }
.system-orbit.orbit-three { width: 430px; height: 310px; transform: rotate(-24deg); animation-delay: -6s; }

.system-axis {
  background: rgba(var(--product-rgb), 0.23);
}

.system-axis.axis-x { width: 84%; height: 1px; }
.system-axis.axis-y { width: 1px; height: 84%; }

.product-system-core {
  width: 112px;
  height: 112px;
  border: 1px solid rgba(var(--product-rgb), 0.72);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--product-accent);
  background: rgba(7, 9, 18, 0.94);
  box-shadow:
    0 0 0 28px rgba(var(--product-rgb), 0.035),
    0 0 60px rgba(var(--product-rgb), 0.19);
}

.system-node {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid rgba(var(--product-rgb), 0.22);
  display: inline-flex;
  align-items: center;
  color: rgba(233, 236, 250, 0.56);
  background: rgba(6, 8, 17, 0.76);
  font-family: var(--font-geist-mono), monospace;
  font-size: 7px;
}

.system-node.node-a { top: 16%; left: 10%; }
.system-node.node-b { top: 22%; right: 9%; }
.system-node.node-c { bottom: 18%; left: 12%; }
.system-node.node-d { right: 12%; bottom: 14%; }

.product-system-status {
  border-top: 1px solid rgba(var(--product-rgb), 0.14);
}

.product-system-status span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--product-accent);
}

.product-capability-list {
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.44);
}

.product-capability-list article {
  min-height: 147px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 14px;
}

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

.product-capability-list h3 {
  margin: 0 0 7px;
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 590;
}

.product-capability-list article > svg {
  color: var(--product-accent);
}

.product-workflow-section {
  padding: 68px 0 0;
  border-top: 1px solid var(--line);
}

.product-workflow-heading {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
}

.product-workflow-heading h2 {
  font-size: 48px;
}

.product-workflow-grid {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.product-workflow-grid article {
  min-height: 250px;
  padding: 30px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

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

.product-workflow-grid h3 {
  margin: 10px 0 13px;
  font-size: 24px;
  letter-spacing: 0;
  font-weight: 590;
}

.product-trust-line {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
}

.product-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(38, 43, 62, 0.62);
  font-size: 11px;
}

.product-trust-line svg {
  color: var(--product-accent);
}

.product-detail-cta {
  width: min(1440px, calc(100% - 64px));
  min-height: 460px;
  margin: 150px auto 0;
  padding: 70px 74px;
  border: 1px solid rgba(var(--product-rgb), 0.24);
  border-radius: 34px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 50px;
  color: #f6f7ff;
  background: #090b16;
}

.product-detail-cta::before {
  content: "";
  width: 520px;
  height: 520px;
  border: 1px solid rgba(var(--product-rgb), 0.19);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 9%;
  box-shadow:
    0 0 0 72px rgba(var(--product-rgb), 0.025),
    0 0 90px rgba(var(--product-rgb), 0.08);
  transform: translateY(-50%);
}

.product-detail-cta-copy,
.product-next-link {
  position: relative;
  z-index: 2;
}

.product-detail-cta-copy > span,
.product-next-link > span {
  color: var(--product-accent);
  font-family: var(--font-geist-mono), monospace;
  font-size: 9px;
}

.product-detail-cta h2 {
  max-width: 760px;
  margin: 20px 0 34px;
  font-size: 54px;
  line-height: 1.08;
}

.product-detail-cta-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-next-link {
  min-width: 210px;
  padding: 18px 0 6px;
  border-top: 1px solid rgba(var(--product-rgb), 0.44);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

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

.product-next-link strong {
  font-size: 16px;
  font-weight: 580;
}

.product-next-link:hover,
.product-next-link:focus-visible {
  color: var(--product-accent);
}

.product-site-footer {
  margin-top: 150px;
}

@keyframes product-scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.72; }
  88% { opacity: 0.72; }
  100% { transform: translateY(400px); opacity: 0; }
}

@keyframes product-ring-pulse {
  0%, 100% { opacity: 0.28; transform: scale(0.96); }
  50% { opacity: 0.72; transform: scale(1.04); }
}

@keyframes product-orbit-drift {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.9; }
}

@media (max-width: 1120px) {
  .product-detail-hero,
  .product-detail-cta {
    width: calc(100% - 40px);
  }

  .product-detail-copy {
    width: 58%;
    padding-left: 48px;
  }

  .product-detail-copy h1 {
    font-size: 58px;
  }

  .product-live-console {
    right: 3.5%;
    width: 34vw;
  }

  .product-feature-section,
  .product-system-section,
  .product-workflow-section,
  .product-metrics {
    width: calc(100% - 64px);
  }

  .product-system-layout {
    grid-template-columns: 1fr;
  }

  .product-system-visual {
    border-radius: 8px 8px 0 0;
  }

  .product-capability-list {
    border-left: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-capability-list article:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .product-capability-list article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .product-detail-hero {
    min-height: 800px;
    border-radius: 28px;
  }

  .product-detail-orb {
    width: 92%;
    top: 22%;
    right: -20%;
    opacity: 0.42;
  }

  .product-detail-copy {
    width: auto;
    min-height: 800px;
    padding: 72px 28px 330px;
    justify-content: flex-start;
  }

  .product-detail-copy h1 {
    margin-top: 22px;
    font-size: 49px;
  }

  .product-detail-statement {
    font-size: 19px;
  }

  .product-live-console {
    width: auto;
    min-height: 250px;
    right: 24px;
    bottom: 24px;
    left: 24px;
    top: auto;
    transform: none;
  }

  .product-live-core {
    height: 98px;
  }

  .product-live-ring.ring-a { width: 58px; height: 58px; }
  .product-live-ring.ring-b { width: 86px; height: 86px; }
  .product-live-ring.ring-c { display: none; }

  .product-live-icon {
    width: 50px;
    height: 50px;
  }

  .product-live-query {
    min-height: 62px;
  }

  .product-live-sources {
    display: none;
  }

  .product-metrics {
    margin-top: 68px;
    grid-template-columns: 1fr;
  }

  .product-metrics > div {
    min-height: 96px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-metrics > div:last-child {
    border-bottom: 0;
  }

  .product-feature-section,
  .product-system-section,
  .product-workflow-section {
    margin-top: 110px;
  }

  .product-section-heading,
  .product-workflow-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-section-heading {
    margin-bottom: 46px;
  }

  .product-section-heading h2,
  .product-workflow-heading h2 {
    font-size: 39px;
  }

  .product-feature-grid,
  .product-workflow-grid {
    grid-template-columns: 1fr;
  }

  .product-feature-grid article,
  .product-workflow-grid article {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-feature-grid article:last-child,
  .product-workflow-grid article:last-child {
    border-bottom: 0;
  }

  .product-capability-list {
    grid-template-columns: 1fr;
  }

  .product-capability-list article,
  .product-capability-list article:nth-child(odd),
  .product-capability-list article:nth-last-child(-n + 2) {
    min-height: 130px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .product-system-field {
    height: 410px;
  }

  .product-trust-line {
    min-height: 110px;
    flex-wrap: wrap;
    gap: 18px 30px;
  }

  .product-detail-cta {
    min-height: 540px;
    padding: 52px 30px;
    grid-template-columns: 1fr;
    align-items: end;
  }

  .product-detail-cta h2 {
    font-size: 42px;
  }

  .product-next-link {
    align-self: end;
  }
}

@media (max-width: 560px) {
  .product-detail-hero,
  .product-detail-cta {
    width: calc(100% - 24px);
  }

  .product-feature-section,
  .product-system-section,
  .product-workflow-section,
  .product-metrics {
    width: calc(100% - 32px);
  }

  .product-detail-copy h1 {
    font-size: 42px;
  }

  .product-detail-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-system-field {
    height: 340px;
  }

  .system-orbit.orbit-three {
    width: 330px;
    height: 250px;
  }

  .product-detail-cta h2 {
    font-size: 36px;
  }

  .product-detail-cta-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@supports (content-visibility: auto) {
  .product-feature-section,
  .product-system-section,
  .product-workflow-section,
  .product-detail-cta {
    content-visibility: auto;
    contain-intrinsic-size: auto 820px;
  }
}
