/* Home — black / white tech HUD */

.page-home {
  --home-glass: rgba(255, 255, 255, 0.05);
  --home-glass-border: rgba(255, 255, 255, 0.14);
  --home-glow: rgba(255, 255, 255, 0.35);
  --home-line: rgba(255, 255, 255, 0.08);
  background: #000;
  color: #fff;
}

/* ——— Atmosphere layers ——— */
.home-atmosphere__rain,
.loading-overlay__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
}

.loading-overlay__rain {
  z-index: 0;
  opacity: 0.35;
}

/* CRT scanlines + center clear for UI */
.home-atmosphere::after,
.loading-overlay--hud::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 3px
    ),
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 42%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 1;
}

.loading-overlay--hud .loading-hud {
  position: relative;
  z-index: 3;
}

.home-atmosphere__grid {
  position: absolute;
  inset: -20%;
  z-index: 1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(51, 255, 102, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 255, 102, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 15%, transparent 72%);
  animation: homeGridDrift 28s linear infinite;
}

.home-atmosphere__scan,
.home-atmosphere__beam,
.home-atmosphere__ring,
.home-atmosphere__particles,
.home-atmosphere__orb {
  z-index: 1;
}

.home-atmosphere__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.015) 2px,
    rgba(255, 255, 255, 0.015) 4px
  );
  opacity: 0.7;
  pointer-events: none;
}

.home-atmosphere__beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  top: -30%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.045) 45%,
    transparent 100%
  );
  animation: homeScanSweep 7.5s ease-in-out infinite;
}

.home-atmosphere__ring {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(28rem, 92vw);
  height: min(28rem, 92vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 60px rgba(255, 255, 255, 0.03);
  animation: homeRingPulse 6s ease-in-out infinite;
}

.home-atmosphere__ring::before,
.home-atmosphere__ring::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.home-atmosphere__ring::after {
  inset: 28%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.07);
  animation: homeRingSpin 40s linear infinite;
}

.home-atmosphere__particles {
  position: absolute;
  inset: 0;
}

.home-atmosphere__dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: homeDotFloat 8s ease-in-out infinite;
}

.home-atmosphere__dot:nth-child(1) { top: 18%; left: 12%; animation-delay: 0s; }
.home-atmosphere__dot:nth-child(2) { top: 28%; left: 78%; animation-delay: -1.4s; width: 3px; height: 3px; }
.home-atmosphere__dot:nth-child(3) { top: 62%; left: 18%; animation-delay: -2.8s; }
.home-atmosphere__dot:nth-child(4) { top: 72%; left: 86%; animation-delay: -4.1s; width: 3px; height: 3px; }
.home-atmosphere__dot:nth-child(5) { top: 44%; left: 8%; animation-delay: -5.5s; }
.home-atmosphere__dot:nth-child(6) { top: 12%; left: 55%; animation-delay: -3.2s; }

.home-atmosphere__orb--c {
  width: 12rem;
  height: 12rem;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(51, 255, 102, 0.1);
  animation-delay: -6s;
  opacity: 0.25;
}

.home-atmosphere__ring,
.home-atmosphere__particles,
.home-atmosphere__beam {
  opacity: 0.25;
}

@keyframes homeGridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 40px, 0); }
}

@keyframes homeScanSweep {
  0% { top: -30%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { top: 105%; opacity: 0; }
}

@keyframes homeRingPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes homeRingSpin {
  to { transform: rotate(360deg); }
}

@keyframes homeDotFloat {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.85; transform: translateY(-10px); }
}

/* ——— Header / brand ——— */
.page-home .home-header {
  padding-bottom: 0.65rem;
}

.page-home .logo {
  font-size: clamp(1.45rem, 5vw, 1.8rem);
  letter-spacing: -0.03em;
  filter: drop-shadow(0 0 22px rgba(51, 255, 102, 0.35));
}

.page-home .logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #33ff66;
  color: #001408;
  font-size: 1.15rem;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(184, 255, 200, 0.45) inset,
    0 0 32px rgba(51, 255, 102, 0.45),
    0 8px 20px rgba(0, 0, 0, 0.45);
  animation: homeLogoPulse 3.6s ease-in-out infinite;
}

.page-home .logo-icon i {
  display: block;
  line-height: 1;
}

@keyframes homeLogoPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(184, 255, 200, 0.4) inset, 0 0 24px rgba(51, 255, 102, 0.3), 0 8px 20px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 0 1px rgba(184, 255, 200, 0.65) inset, 0 0 42px rgba(51, 255, 102, 0.55), 0 8px 20px rgba(0, 0, 0, 0.45); }
}

.page-home .logo__name {
  background: linear-gradient(110deg, #e8ffe9 0%, #33ff66 40%, #b8ffc8 70%, #1fd954 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: homeNameShimmer 5s linear infinite;
}

@keyframes homeNameShimmer {
  to { background-position: 200% center; }
}

.page-home .home-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  padding: 0.38rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184, 255, 200, 0.85);
  border-radius: 999px;
  border: 1px solid rgba(51, 255, 102, 0.28);
  background: rgba(51, 255, 102, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-variant-numeric: tabular-nums;
}

.page-home .home-tagline__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #33ff66;
  box-shadow: 0 0 10px rgba(51, 255, 102, 0.95);
  animation: homeDotBlink 1.8s ease-in-out infinite;
}

@keyframes homeDotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* ——— Form card ——— */
.page-home .card.card--form.home-form {
  position: relative;
  margin-top: 0.25rem;
  padding: 1.4rem 1.25rem 1.5rem;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, rgba(4, 16, 10, 0.96) 0%, rgba(0, 0, 0, 0.97) 55%, #000 100%);
  backdrop-filter: blur(20px) saturate(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(1.05);
  box-shadow:
    0 0 0 1px rgba(51, 255, 102, 0.22) inset,
    0 28px 56px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(51, 255, 102, 0.1);
  overflow: hidden;
}

.page-home .card.card--form.home-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(51, 255, 102, 0.55) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    rgba(51, 255, 102, 0.25) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.page-home .card.card--form.home-form::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40%;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: homeCardSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes homeCardSweep {
  0%, 40% { transform: translateX(0); opacity: 0; }
  50% { opacity: 1; }
  70%, 100% { transform: translateX(280%); opacity: 0; }
}

.page-home .home-lead {
  position: relative;
  z-index: 1;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-lead__text {
  max-width: 24rem;
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  text-wrap: balance;
}

.page-home .home-features {
  gap: 0.5rem;
  padding: 0.15rem 0;
}

.page-home .home-features__item {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, border-color 0.25s;
}

.page-home .home-features__item:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(255, 255, 255, 0.12);
}

.page-home .home-features__icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--feature-color, #fff) 40%, transparent));
}

.page-home #searchForm {
  position: relative;
  z-index: 1;
}

.page-home .form-group label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.page-home .phone-input-group {
  gap: 0;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.2s, box-shadow 0.25s;
}

.page-home .phone-input-group:focus-within {
  border-color: rgba(51, 255, 102, 0.65);
  box-shadow:
    0 0 0 3px rgba(51, 255, 102, 0.14),
    0 0 0 1px rgba(51, 255, 102, 0.3) inset,
    0 0 24px rgba(51, 255, 102, 0.18);
}

.page-home .country-picker__trigger {
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 0.75rem 0.4rem;
}

.page-home .country-picker__trigger:hover,
.page-home .country-picker.is-open .country-picker__trigger {
  background: rgba(255, 255, 255, 0.06);
}

.page-home .phone-input-group .phone-local-input {
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 0.75rem 0.85rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.page-home .phone-input-group .phone-local-input:focus {
  box-shadow: none;
}

.page-home .phone-input-group .country-picker {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-right: 2px;
}

.page-home .home-cta.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.4rem;
  padding: 1.05rem 1.35rem;
  border-radius: 14px;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 255, 200, 0.65);
  background: linear-gradient(135deg, #5dff88 0%, #33ff66 45%, #1fd954 100%);
  color: #001408;
  box-shadow:
    0 0 0 1px rgba(184, 255, 200, 0.25) inset,
    0 0 40px rgba(51, 255, 102, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.page-home .home-cta.btn-primary:hover {
  background: linear-gradient(135deg, #7dff9e 0%, #33ff66 50%, #22e85c 100%);
  box-shadow:
    0 0 0 1px rgba(184, 255, 200, 0.4) inset,
    0 0 56px rgba(51, 255, 102, 0.5),
    0 14px 36px rgba(0, 0, 0, 0.5);
}

.page-home .home-cta.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: homeCtaShine 4.2s ease-in-out infinite;
}

@keyframes homeCtaShine {
  0%, 55% { transform: translateX(-120%); }
  75% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.page-home .home-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.page-home .footer-links {
  margin-top: 1.15rem;
  animation: homeRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.page-home .footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(184, 255, 200, 0.75);
  border-radius: 999px;
  border: 1px solid rgba(51, 255, 102, 0.22);
  background: rgba(51, 255, 102, 0.05);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.page-home .footer-links a:hover {
  color: #b8ffc8;
  background: rgba(51, 255, 102, 0.12);
  border-color: rgba(51, 255, 102, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(51, 255, 102, 0.2);
}

.page-home .footer-links a::after {
  content: '→';
  font-size: 0.9em;
  opacity: 0.7;
  transition: transform 0.2s;
}

.page-home .footer-links a:hover::after {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .logo-icon,
  .page-home .logo__name,
  .page-home .home-tagline__dot,
  .page-home .home-cta.btn-primary::after,
  .page-home .card.card--form.home-form::after,
  .home-atmosphere__grid,
  .home-atmosphere__beam,
  .home-atmosphere__ring,
  .home-atmosphere__ring::after,
  .home-atmosphere__dot {
    animation: none !important;
  }

  .home-atmosphere__rain,
  .loading-overlay__rain {
    display: none !important;
  }

  .page-home .home-features__item:hover {
    transform: none;
  }
}

/* ——— Loading HUD (monochrome tech) ——— */
.loading-overlay--hud {
  background: rgba(0, 0, 0, 0.78);
}

.loading-hud {
  position: relative;
  max-width: 400px;
  padding: 1.2rem 1.15rem 1.15rem;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(165deg, rgba(8, 40, 18, 0.97) 0%, rgba(0, 12, 6, 0.98) 45%, rgba(0, 0, 0, 0.98) 100%);
  border: 1px solid rgba(51, 255, 102, 0.4);
  box-shadow:
    0 0 0 1px rgba(51, 255, 102, 0.14) inset,
    0 28px 64px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(51, 255, 102, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.loading-hud::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(51, 255, 102, 0.65), rgba(255, 255, 255, 0.05) 40%, rgba(51, 255, 102, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.loading-hud__glow {
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 50%;
  background: radial-gradient(circle, rgba(51, 255, 102, 0.22), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.loading-hud__status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.loading-hud__live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #001408;
  background: #33ff66;
  border: 1px solid rgba(184, 255, 200, 0.7);
  box-shadow: 0 0 16px rgba(51, 255, 102, 0.4);
}

.loading-hud__live::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #001408;
  box-shadow: 0 0 8px rgba(0, 20, 8, 0.4);
  animation: loading-hud-pulse 1.2s ease-in-out infinite;
}

.loading-hud__meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}

/* Hacker avatar (replaces radar) */
.hacker-avatar {
  position: relative;
  z-index: 1;
  width: 10.25rem;
  height: 10.25rem;
  margin: 0.35rem auto 1.05rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(51, 255, 102, 0.5);
  box-shadow:
    0 0 0 4px rgba(51, 255, 102, 0.1),
    0 0 32px rgba(51, 255, 102, 0.32),
    inset 0 0 40px rgba(0, 0, 0, 0.65);
  background: #020805;
}

.hacker-avatar__matrix {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0 10px,
      rgba(51, 255, 102, 0.06) 10px 11px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 9px,
      rgba(51, 255, 102, 0.05) 9px 10px
    );
  opacity: 0.85;
  animation: hackerMatrixDrift 4s linear infinite;
}

.hacker-avatar__matrix::before {
  content: '010011010010110100101101001011010010110100101101001011';
  position: absolute;
  inset: -40% 0 auto;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.55rem;
  line-height: 1.15;
  letter-spacing: 0.12em;
  color: rgba(51, 255, 102, 0.35);
  word-break: break-all;
  animation: hackerMatrixFall 6s linear infinite;
}

.hacker-avatar__svg {
  position: absolute;
  inset: 8% 8% 18% 8%;
  width: auto;
  height: auto;
  z-index: 3;
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(51, 255, 102, 0.35));
}

.hacker-avatar__body {
  transform-origin: 80px 100px;
  animation: hackerTypeBob 0.6s ease-in-out infinite;
}

.hacker-avatar__arm-l {
  transform-origin: 50px 100px;
  animation: hackerArmL 0.32s ease-in-out infinite;
}

.hacker-avatar__arm-r {
  transform-origin: 110px 100px;
  animation: hackerArmR 0.32s ease-in-out infinite;
  animation-delay: 0.16s;
}

.hacker-avatar__keys rect {
  animation: hackerKeys 0.28s steps(2, end) infinite;
}

.hacker-avatar__keys rect:nth-child(odd) {
  animation-delay: 0.14s;
}

.hacker-avatar__label {
  position: absolute;
  top: auto;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: max-content;
  max-width: 90%;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: #33ff66;
  text-shadow:
    0 0 8px rgba(51, 255, 102, 0.9),
    2px 0 0 rgba(0, 255, 100, 0.35),
    -2px 0 0 rgba(0, 180, 80, 0.35);
  animation: hackerGlitch 2.8s steps(2, end) infinite;
}

@keyframes hackerMatrixDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 22px, 12px 0; }
}

@keyframes hackerMatrixFall {
  from { transform: translateY(0); }
  to { transform: translateY(45%); }
}

@keyframes hackerGlitch {
  0%, 90%, 100% { transform: translateX(-50%); opacity: 1; }
  92% { transform: translateX(calc(-50% + 2px)); opacity: 0.85; }
  94% { transform: translateX(calc(-50% - 2px)); opacity: 1; }
  96% { transform: translateX(calc(-50% + 1px)); }
}

@keyframes hackerTypeBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(1.5px); }
}

@keyframes hackerArmL {
  0%, 100% { transform: rotate(4deg); }
  50% { transform: rotate(-8deg); }
}

@keyframes hackerArmR {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(8deg); }
}

@keyframes hackerKeys {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes loading-hud-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}

.loading-hud__title[hidden],
.loading-hud__sub[hidden] {
  display: none !important;
}

.loading-hud__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.loading-hud__sub {
  position: relative;
  z-index: 1;
  margin: 0.35rem 0 1.05rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.loading-identity {
  position: relative;
  z-index: 1;
  margin: -0.35rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  text-align: left;
  border: 1px solid rgba(51, 255, 102, 0.28);
  background: linear-gradient(135deg, rgba(51, 255, 102, 0.12), rgba(0, 0, 0, 0.25));
  animation: homeRise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loading-identity.is-missing {
  border-color: rgba(51, 255, 102, 0.14);
  background: rgba(51, 255, 102, 0.04);
}

.loading-identity__kicker {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(51, 255, 102, 0.85);
}

.loading-identity__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: capitalize;
}

.loading-identity__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.loading-overlay--hud .step-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.loading-overlay--hud .step-lookup-name {
  display: none;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
}

.loading-overlay--hud .loading-capture-row.has-lookup .step-lookup-name {
  display: block;
}

.loading-overlay--hud .loading-capture {
  position: relative;
  z-index: 1;
}

.loading-capture__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding: 0 0.1rem;
}

.loading-overlay--hud .loading-capture__label {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.loading-capture__count {
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.loading-overlay--hud .loading-capture__viewport {
  --capture-row-h: 2.85rem;
  height: calc(var(--capture-row-h) * 3);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.loading-overlay--hud .loading-capture__viewport::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  animation-duration: 2.2s;
}

.loading-overlay--hud .loading-capture-row {
  min-height: var(--capture-row-h, 2.85rem);
  padding: 0.4rem 0.75rem;
  opacity: 0.28;
  color: rgba(255, 255, 255, 0.5);
}

.loading-overlay--hud .loading-capture-row .step-icon-wrap {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 8px;
}

.loading-overlay--hud .loading-capture-row .step-label--capture {
  font-size: 0.86rem;
  letter-spacing: 0.05em;
}

.loading-overlay--hud .loading-capture-row.active {
  opacity: 1;
  color: #e8ffe9;
  background: linear-gradient(90deg, rgba(51, 255, 102, 0.16), transparent 80%);
}

.loading-overlay--hud .loading-capture-row.done {
  opacity: 0.42;
}

.loading-hud__progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.95rem;
}

.loading-overlay--hud .loading-progress-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.loading-overlay--hud .loading-progress-bar {
  width: 0%;
  background: linear-gradient(90deg, #0a7a2e, #33ff66, #b8ffc8);
  box-shadow: 0 0 14px rgba(51, 255, 102, 0.45);
}

.loading-overlay--hud .loading-percent {
  font-size: 0.75rem;
  min-width: 2.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .hacker-avatar__matrix,
  .hacker-avatar__matrix::before,
  .hacker-avatar__label,
  .hacker-avatar__body,
  .hacker-avatar__arm-l,
  .hacker-avatar__arm-r,
  .hacker-avatar__keys rect,
  .loading-hud__live::before,
  .loading-overlay--hud .loading-capture__viewport::after {
    animation: none !important;
  }
}
