.scan-form {
  background:
    linear-gradient(157deg, rgba(214, 232, 255, .17), rgba(10, 12, 17, .12) 45%, rgba(241, 174, 193, .13)),
    rgba(9, 13, 19, .36);
}

.protection-panels,
.faq-item,
.blog-tile,
.pricing-dialog {
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

.protection-panels {
  position: relative;
  background:
    url("./assets/surface-grain.png"),
    radial-gradient(ellipse at 90% 0%, rgba(126, 155, 206, .14), transparent 65%),
    linear-gradient(143deg, rgba(204, 226, 255, .065), transparent 45%, rgba(120, 98, 158, .07)),
    rgba(9, 13, 19, .43);
  border-color: rgba(200, 216, 239, .25);
  box-shadow: inset 0 1px 1px #e4efff25, inset 0 -1px #d4e2fc09, 0 16px 40px -16px #000b;
}

.protection-tab {
  position: relative;
  background:
    url("./assets/surface-grain.png"),
    linear-gradient(135deg, rgba(176, 203, 240, .09), transparent 85%),
    rgba(11, 15, 22, .42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 1px #d9e9ff19, inset 0 -1px #c0d4f008, 0 5px 14px #0003;
}

.protection-tab[aria-selected="true"] {
  background-color: rgba(25, 40, 57, .65);
}

.faq-item,
.pricing-dialog {
  background:
    url("./assets/surface-grain.png"),
    radial-gradient(ellipse at 10% 0%, rgba(204, 226, 255, .13), transparent 57%),
    linear-gradient(152deg, rgba(179, 205, 248, .07), transparent 47%, rgba(229, 153, 182, .075)),
    rgba(9, 13, 19, .54);
}

.blog-tile {
  background:
    url("./assets/surface-grain.png"),
    radial-gradient(ellipse at 70% 5%, rgba(var(--tile-tint), .31), transparent 65%),
    linear-gradient(150deg, rgba(26, 32, 43, .65), rgba(12, 16, 24, .55));
}

/* Small specular reflections follow the existing curved surface. */
.scan-form,
.protection-tab,
.protection-panels,
.pricing-card {
  --reflection-x: 23%;
  --reflection-y: 0%;
}

.scan-form::before,
.protection-tab::before,
.protection-panels::before,
.pricing-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(ellipse 30% 80% at var(--reflection-x) var(--reflection-y), #e8f2ff9e, transparent),
    linear-gradient(120deg, #d4e6ff3d, transparent 23% 65%, #e9c9dc25);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  pointer-events: none;
}

.scan-form::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border-bottom: 1px solid #e4efff1f;
  border-top: 1px solid #0004;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .protection-tab:hover { background-color: rgba(20, 29, 42, .62); }
  .protection-tab[aria-selected="true"]:hover { background-color: rgba(34, 53, 75, .72); }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .scan-form, .protection-tab, .protection-panels, .faq-item, .blog-tile, .pricing-dialog { background-color: #0c111a; }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .scan-form, .protection-tab, .protection-panels, .faq-item, .blog-tile, .pricing-dialog {
    background-color: #0c111a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-color: #c8d8ef70;
  }
}
