.effect-product-page {
  --effect-a: #8ee6ff;
  --effect-b: #ffd36f;
  --effect-ink: #f4f7ff;
  color: var(--effect-ink);
  background: #050608;
}

.effect-product-page[data-product="motion-doppler"] {
  --effect-a: #ff6d9e;
  --effect-b: #79e8ff;
}

.effect-product-page[data-product="kisspeter"] {
  --effect-a: #72e7c6;
  --effect-b: #b9ccff;
}

.effect-main {
  position: relative;
  z-index: 1;
}

.effect-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.74fr) minmax(0, 1.26fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: 78px max(42px, calc((100vw - 1320px) / 2)) 64px;
  overflow: hidden;
  border-bottom: 1px solid rgba(185, 204, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.97) 0 33%, rgba(5, 6, 8, 0.74) 58%, rgba(5, 6, 8, 0.9)),
    linear-gradient(180deg, rgba(121, 232, 255, 0.04), transparent 42%);
}

.effect-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.064) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.052) 1px, transparent 1px);
  background-size: 100% 56px, 56px 100%;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.18));
  mask-image: radial-gradient(
    ellipse 74% 76% at center,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.46) 68%,
    black 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 74% 76% at center,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 30%,
    rgba(0, 0, 0, 0.46) 68%,
    black 100%
  );
}

.effect-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.07), transparent 19%),
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.055), transparent 19%),
    radial-gradient(circle at 0 100%, rgba(255, 255, 255, 0.055), transparent 19%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.07), transparent 19%);
  opacity: 0.72;
}

.effect-hero-copy,
.effect-hero-visual {
  position: relative;
  z-index: 1;
}

.effect-hero-copy {
  max-width: 560px;
}

.effect-hero-copy .eyebrow {
  color: var(--effect-a);
}

.effect-hero-copy h1 {
  margin: 14px 0 22px;
  font-size: 74px;
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.effect-hero-copy .lead {
  max-width: 540px;
  margin: 0;
  color: rgba(225, 231, 251, 0.8);
  font-size: 19px;
  line-height: 1.72;
}

.effect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.effect-actions .button.primary,
.effect-download-actions .button.primary {
  color: #06080c;
  background: var(--effect-a);
  box-shadow: 0 0 34px color-mix(in srgb, var(--effect-a) 24%, transparent);
}

.effect-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 34px 0 0;
  border-top: 1px solid rgba(185, 204, 255, 0.18);
  border-bottom: 1px solid rgba(185, 204, 255, 0.18);
}

.effect-meta div {
  min-width: 0;
  padding: 15px 14px 15px 0;
}

.effect-meta div + div {
  padding-left: 14px;
  border-left: 1px solid rgba(185, 204, 255, 0.14);
}

.effect-meta dt,
.effect-specs dt {
  color: rgba(185, 204, 255, 0.54);
  font-family: "Geist Pixel Line", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.effect-meta dd,
.effect-specs dd {
  margin: 6px 0 0;
  color: #f4f7ff;
  font-size: 14px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.effect-hero-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  perspective: 1100px;
}

.effect-hero-visual::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 4%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--effect-a), var(--effect-b), transparent);
  box-shadow: 0 0 20px var(--effect-a);
  opacity: 0.72;
  animation: effect-scan 5.2s ease-in-out infinite;
}

.effect-hero-visual img {
  width: min(100%, 860px);
  max-height: 70svh;
  object-fit: contain;
  filter:
    drop-shadow(0 36px 55px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 34px color-mix(in srgb, var(--effect-a) 13%, transparent));
  transform: rotateX(var(--effect-rx, 0deg)) rotateY(var(--effect-ry, 0deg));
  transition: transform 180ms ease-out, filter 180ms ease;
}

.effect-section {
  position: relative;
  width: 100%;
  border-bottom: 1px solid rgba(185, 204, 255, 0.12);
}

.effect-section:nth-of-type(even) {
  background: rgba(11, 14, 24, 0.54);
}

.effect-section-inner {
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 96px 0;
}

.effect-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.44fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.effect-section-heading h2,
.effect-download h2 {
  margin: 12px 0 0;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: 0;
}

.effect-section-heading > p:last-child,
.effect-download-copy > p {
  margin: 0;
  color: rgba(225, 231, 251, 0.76);
  font-size: 18px;
  line-height: 1.82;
}

.effect-signal-line {
  position: relative;
  height: 72px;
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid rgba(185, 204, 255, 0.18);
  border-bottom: 1px solid rgba(185, 204, 255, 0.18);
}

.effect-signal-line::before,
.effect-signal-line::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
}

.effect-signal-line::before {
  left: 0;
  right: 0;
  background: rgba(185, 204, 255, 0.18);
}

.effect-signal-line::after {
  left: -28%;
  width: 32%;
  background: linear-gradient(90deg, transparent, var(--effect-a), var(--effect-b), transparent);
  box-shadow: 0 0 18px var(--effect-a);
  animation: effect-line-travel 4.8s linear infinite;
}

.effect-control-list {
  margin: 50px 0 0;
}

.effect-control-row {
  display: grid;
  grid-template-columns: 74px minmax(190px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid rgba(185, 204, 255, 0.16);
}

.effect-control-row:last-child {
  border-bottom: 1px solid rgba(185, 204, 255, 0.16);
}

.effect-control-index {
  color: var(--effect-a);
  font-family: "Geist Pixel Square", ui-monospace, monospace;
  font-size: 12px;
}

.effect-control-row h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.effect-control-row p {
  margin: 0;
  color: rgba(210, 218, 244, 0.72);
  line-height: 1.72;
}

.effect-download {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 0.6fr);
  gap: 70px;
  align-items: start;
}

.effect-download-copy {
  min-width: 0;
}

.effect-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.effect-download-note {
  margin-top: 20px !important;
  color: rgba(185, 204, 255, 0.62) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

.effect-download-details {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(185, 204, 255, 0.18);
  color: rgba(225, 231, 251, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.effect-download-details summary {
  width: fit-content;
  color: var(--effect-a);
  cursor: pointer;
  font-weight: 700;
}

.effect-download-details summary:hover,
.effect-download-details summary:focus-visible {
  color: #fff;
}

.effect-download-details p {
  margin: 14px 0 0;
}

.effect-download-details code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.effect-specs {
  margin: 0;
  border-top: 1px solid rgba(185, 204, 255, 0.18);
}

.effect-specs div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(185, 204, 255, 0.14);
}

.effect-specs dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.55;
}

.effect-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.effect-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes effect-scan {
  0%, 100% { transform: scaleX(0.72); opacity: 0.32; }
  50% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes effect-line-travel {
  from { transform: translateX(0); }
  to { transform: translateX(400%); }
}

@media (max-width: 980px) {
  .effect-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 76px 32px 58px;
  }

  .effect-hero-copy {
    max-width: 680px;
  }

  .effect-hero-copy h1 {
    font-size: 58px;
  }

  .effect-hero-visual img {
    max-height: 56svh;
  }

  .effect-section-heading,
  .effect-download {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 680px) {
  .effect-hero {
    padding: 58px 18px 42px;
  }

  .effect-hero-copy h1 {
    font-size: 42px;
    line-height: 1;
  }

  .effect-hero-copy .lead {
    font-size: 16px;
  }

  .effect-meta {
    grid-template-columns: 1fr;
  }

  .effect-meta div,
  .effect-meta div + div {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid rgba(185, 204, 255, 0.12);
  }

  .effect-meta div:first-child {
    border-top: 0;
  }

  .effect-section-inner {
    width: min(100% - 36px, 620px);
    padding: 66px 0;
  }

  .effect-section-heading h2,
  .effect-download h2 {
    font-size: 34px;
  }

  .effect-section-heading > p:last-child,
  .effect-download-copy > p {
    font-size: 16px;
  }

  .effect-control-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px 16px;
  }

  .effect-control-row p {
    grid-column: 2;
  }

  .effect-download-actions .button {
    width: 100%;
  }

  .effect-specs div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .effect-hero-visual::after,
  .effect-signal-line::after {
    animation: none;
  }

  .effect-hero-visual img,
  .effect-reveal {
    transition: none;
  }
}
