/* Zernote security scene: a quiet, glassy data vault inspired by the reference. */
.security-showcase {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 132px 24px 148px;
  color: #17345f;
  background:
    radial-gradient(72% 90% at 50% 44%, rgba(130, 190, 255, .35), transparent 62%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #edf6ff 100%);
}

/* landing-v2 adds a broad light-surface rule late in the cascade. Keep the
   security scene's white glass treatment without changing any other section. */
#top #security.security-showcase {
  background:
    radial-gradient(72% 90% at 50% 44%, rgba(130, 190, 255, .35), transparent 62%),
    linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #edf6ff 100%) !important;
  color: #17345f !important;
}

.security-showcase::before,
.security-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.security-showcase::before {
  z-index: -2;
  opacity: .8;
  background:
    radial-gradient(40% 44% at 50% 45%, rgba(83, 157, 247, .28), transparent 70%),
    radial-gradient(22% 34% at 16% 55%, rgba(36, 111, 232, .1), transparent 74%),
    radial-gradient(24% 38% at 84% 46%, rgba(109, 203, 255, .1), transparent 74%);
  filter: blur(22px);
  animation: securityAurora 12s ease-in-out infinite alternate;
}

#top #security.security-showcase::before,
#top #security.security-showcase::after {
  display: block !important;
}

#top #security.security-showcase::before {
  background:
    radial-gradient(40% 44% at 50% 45%, rgba(83, 157, 247, .28), transparent 70%),
    radial-gradient(22% 34% at 16% 55%, rgba(36, 111, 232, .1), transparent 74%),
    radial-gradient(24% 38% at 84% 46%, rgba(109, 203, 255, .1), transparent 74%) !important;
}

#top #security.security-showcase::after {
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, .72) 50%, transparent 58%) !important;
}

.security-showcase::after {
  z-index: 3;
  opacity: .42;
  background: linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, .72) 50%, transparent 58%);
  transform: translateX(-110%);
  animation: securitySweep 11s ease-in-out infinite;
}

.security-showcase__aurora {
  position: absolute;
  z-index: -1;
  width: min(68vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, transparent 0 20%, rgba(74, 146, 255, .13), transparent 35% 58%, rgba(58, 127, 255, .1), transparent 74%);
  filter: blur(34px);
  opacity: .78;
  animation: securitySpin 26s linear infinite;
}

.security-showcase__data {
  position: absolute;
  z-index: -1;
  inset: 10% -7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  /* Keep the glyph field flat and fixed; only the individual glyphs pulse. */
  transform: none;
  transform-origin: center;
  mask-image: radial-gradient(ellipse at center, #000 20%, rgba(0, 0, 0, .94) 48%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, rgba(0, 0, 0, .94) 48%, transparent 82%);
}

.security-data-row {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 4vw, 74px);
  white-space: nowrap;
  opacity: .72;
  transform: translateX(var(--shift));
}


/* A shallow oval footprint: the field stays still while only the glyphs glow. */
.security-data-row:nth-child(1),
.security-data-row:nth-child(13) { transform: translateX(var(--shift)) scaleX(.76); }
.security-data-row:nth-child(2),
.security-data-row:nth-child(12) { transform: translateX(var(--shift)) scaleX(.84); }
.security-data-row:nth-child(3),
.security-data-row:nth-child(11) { transform: translateX(var(--shift)) scaleX(.91); }
.security-data-row:nth-child(4),
.security-data-row:nth-child(10) { transform: translateX(var(--shift)) scaleX(.96); }
.security-data-row:nth-child(3n) { opacity: .52; }

.security-data-row span {
  min-width: 92px;
  color: #94b7dd;
  font: 600 11px/1.1 Onest, sans-serif;
  letter-spacing: .08em;
  text-align: center;
  text-shadow: none;
  animation: securityTextWave 8.4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.security-data-row span:nth-child(3n) { color: #8fb3df; }
.security-data-row span:nth-child(4n) { color: #7ca8dd; }

.security-showcase__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, 100%);
  text-align: center;
}

.security-showcase__lock {
  position: relative;
  width: 210px;
  height: 228px;
  margin-bottom: 24px;
  filter: drop-shadow(0 18px 28px rgba(58, 113, 186, .22));
  animation: securityFloat 5.5s ease-in-out infinite;
  transform-style: preserve-3d;
}

.security-lock__halo {
  position: absolute;
  inset: 17px -14px 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 157, 255, .24) 0%, rgba(78, 157, 255, .08) 30%, transparent 69%);
  filter: blur(9px);
  animation: securityPulse 3.8s ease-in-out infinite;
}

.security-lock__orbit {
  position: absolute;
  left: 50%;
  top: 82px;
  width: 216px;
  height: 102px;
  border: 1px solid rgba(78, 145, 222, .36);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-18deg);
  box-shadow: 0 0 18px rgba(80, 158, 255, .22), inset 0 0 12px rgba(95, 172, 255, .1);
}

.security-lock__orbit--two {
  width: 164px;
  height: 206px;
  top: 14px;
  border-color: rgba(98, 164, 228, .25);
  transform: translateX(-50%) rotate(28deg);
  animation: securityOrbit 8s linear infinite;
}

.security-lock__shackle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 8px;
  width: 96px;
  height: 108px;
  border: 14px solid rgba(123, 186, 245, .74);
  border-bottom: 0;
  border-radius: 48px 48px 0 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(66, 133, 221, .46), rgba(230, 247, 255, .8) 44%, rgba(85, 151, 231, .5));
  box-shadow: inset 5px 0 7px rgba(255, 255, 255, .72), inset -7px 0 9px rgba(19, 68, 155, .28), 0 0 13px rgba(133, 205, 255, .3);
}

.security-lock__shackle span {
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(24, 64, 125, .72);
  transform: translateX(-50%);
}

.security-lock__body {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 0;
  width: 158px;
  height: 134px;
  border: 1px solid rgba(91, 157, 229, .6);
  border-radius: 36px;
  transform: translateX(-50%) perspective(300px) rotateX(8deg);
  background: linear-gradient(145deg, rgba(174, 224, 255, .66) 0%, rgba(81, 151, 236, .6) 42%, rgba(47, 96, 192, .64) 100%);
  box-shadow: inset 10px 10px 20px rgba(255, 255, 255, .42), inset -13px -15px 22px rgba(17, 43, 129, .22), 0 18px 26px rgba(39, 88, 154, .22);
  backdrop-filter: blur(9px) saturate(135%);
  -webkit-backdrop-filter: blur(9px) saturate(135%);
}

.security-lock__body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -8px -9px 10px;
  border-radius: 38px;
  background: linear-gradient(155deg, rgba(103, 178, 249, .46), rgba(27, 70, 161, .64));
  transform: translateZ(-9px) rotateX(-3deg);
  opacity: .78;
}

.security-lock__body::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 35px;
  border: 1px solid rgba(214, 243, 255, .38);
  pointer-events: none;
}

.security-lock__shine {
  position: absolute;
  inset: 8px 12px 48%;
  border-radius: 26px 26px 60% 25%;
  background: linear-gradient(100deg, rgba(255, 255, 255, .55), transparent 70%);
  opacity: .7;
}

.security-lock__keyhole {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 19px;
  height: 31px;
  border-radius: 12px 12px 8px 8px;
  background: rgba(16, 48, 105, .84);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px rgba(172, 220, 255, .15), 0 3px 7px rgba(10, 26, 76, .45);
}

.security-lock__keyhole::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(16, 48, 105, .84);
  transform: translateX(-50%);
}

.security-showcase__copy { max-width: 650px; }
.security-showcase__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(150, 211, 255, .38);
  border-radius: 999px;
  background: rgba(114, 181, 255, .12);
  color: #2773bf;
  font: 600 11px/1 Onest, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .76), 0 8px 24px rgba(52, 112, 177, .14);
}

.security-showcase h2 {
  margin: 20px 0 18px;
  color: #17345f;
  font: 800 clamp(42px, 7vw, 80px)/.98 Manrope, sans-serif;
  letter-spacing: -.075em;
  text-shadow: 0 3px 18px rgba(73, 145, 235, .14);
}

.security-showcase__copy > p {
  max-width: 560px;
  margin: 0 auto;
  color: #5c7391;
  font: 400 clamp(16px, 2vw, 20px)/1.45 Onest, sans-serif;
}

.security-showcase__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.security-showcase__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid rgba(157, 214, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  color: #2a659f;
  font: 500 12px/1 Onest, sans-serif;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 7px 18px rgba(50, 116, 182, .1);
  backdrop-filter: blur(9px);
}

.security-showcase__badges span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #48b7c4;
  box-shadow: 0 0 9px rgba(72, 183, 196, .62);
}

@keyframes securityAurora { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.08); } }
@keyframes securitySweep { 0%, 35% { transform: translateX(-110%); } 65%, 100% { transform: translateX(110%); } }
@keyframes securitySpin { to { transform: rotate(360deg); } }
@keyframes securityTextWave { 0%, 32%, 100% { color: #94b7dd; text-shadow: none; opacity: .58; } 44%, 58% { color: #206bc5; text-shadow: 0 0 7px rgba(58, 143, 236, .55), 0 0 18px rgba(91, 173, 255, .45); opacity: 1; } 70% { color: #6e9fd2; text-shadow: 0 0 4px rgba(73, 151, 240, .24); opacity: .76; } }
@keyframes securityFloat { 0%, 100% { transform: translateY(0) rotateX(0deg); } 50% { transform: translateY(-9px) rotateX(2deg); } }
@keyframes securityFloatMobile { 0%, 100% { transform: translateY(0) scale(.8) rotateX(0deg); } 50% { transform: translateY(-7px) scale(.8) rotateX(2deg); } }
@keyframes securityPulse { 0%, 100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes securityOrbit { to { transform: translateX(-50%) rotate(388deg); } }

@media (max-width: 700px) {
  .security-showcase { min-height: 650px; padding: 108px 20px 118px; }
  .security-showcase__lock { animation-name: securityFloatMobile; margin: -18px 0 -2px; }
  .security-showcase__data { inset: 10% -34%; gap: 16px; }
  .security-data-row { gap: 24px; }
  .security-data-row span { min-width: 78px; font-size: 9px; }
  .security-showcase h2 { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .security-showcase::before, .security-showcase::after, .security-showcase__aurora,
  .security-data-row, .security-showcase__lock, .security-lock__halo, .security-lock__orbit--two { animation: none; }
}
