/* ===== VaultGuard login (colors from theme.css) ===== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--gray-800);
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
}

/* ===== Preloader — future AI neural vault boot ===== */
.dx-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(5, 150, 105, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(52, 211, 153, 0.12) 0%, transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f0faf5 42%, #e6f4ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.dx-intro.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dx-intro-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dx-intro-grid-floor {
  position: absolute;
  left: -50%;
  right: -50%;
  bottom: -8%;
  height: 62%;
  transform-origin: center bottom;
  transform: rotateX(72deg);
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.22) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to top, #000 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent 92%);
  animation: dx-grid-drift 14s linear infinite;
}

@keyframes dx-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 48px, 48px 0; }
}

.dx-intro-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: dx-aurora-float 10s ease-in-out infinite;
}

.dx-intro-aurora--a {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.45), transparent 68%);
}

.dx-intro-aurora--b {
  width: min(440px, 60vw);
  height: min(440px, 60vw);
  bottom: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.35), transparent 70%);
  animation-delay: -4s;
}

@keyframes dx-aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -18px) scale(1.06); }
}

.dx-intro-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  opacity: 0;
  animation: dx-particle-rise 4.5s ease-in-out infinite;
}

.dx-intro-particles span:nth-child(1)  { left: 12%; bottom: 18%; animation-delay: 0s; }
.dx-intro-particles span:nth-child(2)  { left: 22%; bottom: 28%; animation-delay: 0.4s; }
.dx-intro-particles span:nth-child(3)  { left: 34%; bottom: 12%; animation-delay: 0.9s; }
.dx-intro-particles span:nth-child(4)  { left: 48%; bottom: 22%; animation-delay: 1.3s; }
.dx-intro-particles span:nth-child(5)  { left: 58%; bottom: 16%; animation-delay: 0.2s; }
.dx-intro-particles span:nth-child(6)  { left: 68%; bottom: 26%; animation-delay: 1.8s; }
.dx-intro-particles span:nth-child(7)  { left: 78%; bottom: 14%; animation-delay: 0.7s; }
.dx-intro-particles span:nth-child(8)  { left: 88%; bottom: 24%; animation-delay: 2.1s; }
.dx-intro-particles span:nth-child(9)  { left: 18%; bottom: 8%;  animation-delay: 1.1s; }
.dx-intro-particles span:nth-child(10) { left: 42%; bottom: 32%; animation-delay: 2.5s; }
.dx-intro-particles span:nth-child(11) { left: 72%; bottom: 8%;  animation-delay: 1.6s; }
.dx-intro-particles span:nth-child(12) { left: 92%; bottom: 18%; animation-delay: 0.5s; }

@keyframes dx-particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(0.4); }
  20% { opacity: 0.85; }
  80% { opacity: 0.35; }
  100% { opacity: 0; transform: translateY(-140px) scale(1); }
}

.dx-intro-holos {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dx-intro-holo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(5, 150, 105, 0.28);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(6, 95, 70, 0.1);
  animation: dx-holo-float 5.5s ease-in-out infinite;
}

.dx-intro-holo:nth-child(2) { animation-delay: -1.2s; }
.dx-intro-holo:nth-child(3) { animation-delay: -2.6s; }
.dx-intro-holo:nth-child(4) { animation-delay: -3.8s; }

@keyframes dx-holo-float {
  0%, 100% { transform: translateY(0) translateZ(0); opacity: 0.82; }
  50% { transform: translateY(-10px) translateZ(12px); opacity: 1; }
}

.dx-intro-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.dx-intro-neural-paths {
  stroke-dasharray: 8 14;
  animation: dx-neural-dash 12s linear infinite;
}

.dx-intro-neural-nodes circle {
  animation: dx-node-pulse 3.2s ease-in-out infinite;
}

.dx-intro-neural-nodes circle:nth-child(even) { animation-delay: -1.4s; }

@keyframes dx-neural-dash {
  to { stroke-dashoffset: -120; }
}

@keyframes dx-node-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.dx-intro-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: dx-orbit-tilt 8s ease-in-out infinite;
}

@keyframes dx-orbit-tilt {
  0%, 100% { transform: translate(-50%, -58%) rotateX(12deg); }
  50% { transform: translate(-50%, -62%) rotateX(18deg); }
}

.dx-intro-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid rgba(5, 150, 105, 0.35);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(68deg);
}

.dx-intro-ring--1 {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  animation: dx-spin-ring 9s linear infinite;
  box-shadow: 0 0 24px rgba(5, 150, 105, 0.15);
}

.dx-intro-ring--2 {
  width: 290px;
  height: 290px;
  margin: -145px 0 0 -145px;
  border-color: rgba(52, 211, 153, 0.28);
  animation: dx-spin-ring 14s linear infinite reverse;
}

.dx-intro-ring--3 {
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-color: rgba(5, 150, 105, 0.2);
  animation: dx-spin-ring 19s linear infinite;
}

@keyframes dx-spin-ring {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}

.dx-intro-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 45%),
    linear-gradient(155deg, #f0faf5, #d1fae5);
  border: 1px solid rgba(167, 243, 208, 0.9);
  box-shadow:
    0 0 40px rgba(5, 150, 105, 0.35),
    0 20px 50px rgba(6, 95, 70, 0.18),
    inset 0 2px 6px rgba(255, 255, 255, 0.9);
  display: grid;
  place-items: center;
  animation: dx-core-float 3.5s ease-in-out infinite;
}

.dx-intro-core svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 12px rgba(5, 150, 105, 0.35));
}

@keyframes dx-core-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.04); }
}

.dx-intro-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(5, 150, 105, 0.04) 48%,
    rgba(52, 211, 153, 0.12) 50%,
    rgba(5, 150, 105, 0.04) 52%,
    transparent 100%
  );
  background-size: 100% 220%;
  animation: dx-scan-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.65;
}

@keyframes dx-scan-sweep {
  0% { background-position: 0 -120%; }
  100% { background-position: 0 220%; }
}

.dx-intro-corner {
  position: absolute;
  width: 56px;
  height: 56px;
  border-color: rgba(5, 150, 105, 0.45);
  border-style: solid;
  opacity: 0.7;
}

.dx-intro-corner--tl { top: 1.25rem; left: 1.25rem; border-width: 2px 0 0 2px; }
.dx-intro-corner--tr { top: 1.25rem; right: 1.25rem; border-width: 2px 2px 0 0; }
.dx-intro-corner--bl { bottom: 1.25rem; left: 1.25rem; border-width: 0 0 2px 2px; }
.dx-intro-corner--br { bottom: 1.25rem; right: 1.25rem; border-width: 0 2px 2px 0; }

.dx-intro-inner {
  position: relative;
  z-index: 2;
  width: min(92vw, 460px);
  padding: 1.5rem;
  transform-style: preserve-3d;
  animation: dx-card-enter 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes dx-card-enter {
  from { opacity: 0; transform: translateY(28px) rotateX(14deg) scale(0.96); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); }
}

.dx-intro-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}

.dx-intro-sys {
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.08);
}

.dx-intro-telemetry {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(5, 150, 105, 0.2);
  font-family: var(--mono);
  font-size: 0.62rem;
  overflow: hidden;
}

.dx-intro-telemetry-label {
  flex-shrink: 0;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green-600);
}

.dx-intro-telemetry-stream {
  color: var(--gray-600);
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: dx-telemetry-fade 0.35s ease;
}

@keyframes dx-telemetry-fade {
  from { opacity: 0; transform: translateX(6px); }
  to { opacity: 1; transform: translateX(0); }
}

.dx-intro-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gray-600);
}

.dx-intro-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5);
  animation: dx-live-pulse 1.8s ease infinite;
}

@keyframes dx-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
}

.dx-intro-glass {
  position: relative;
  text-align: center;
  padding: 2rem 1.75rem 1.85rem;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(236, 253, 245, 0.78));
  border: 1px solid rgba(167, 243, 208, 0.75);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 24px 60px -20px rgba(6, 95, 70, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  transform: translateZ(40px);
  overflow: hidden;
}

.dx-intro-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.55), transparent 40%, rgba(5, 150, 105, 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;
}

.dx-intro-metrics {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.85rem 0 1.25rem;
}

.dx-intro-metrics span {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-700);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgba(236, 253, 245, 0.95);
  border: 1px solid rgba(5, 150, 105, 0.22);
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.06);
  animation: dx-metric-in 0.55s ease backwards;
}

.dx-intro-metrics span:nth-child(1) { animation-delay: 0.25s; }
.dx-intro-metrics span:nth-child(2) { animation-delay: 0.45s; }
.dx-intro-metrics span:nth-child(3) { animation-delay: 0.65s; }

@keyframes dx-metric-in {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dx-intro-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 1.15rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.9);
  border: 1px solid rgba(5, 150, 105, 0.22);
  animation: dx-badge-pulse 2s ease infinite;
}

@keyframes dx-badge-pulse {
  0%, 100% { opacity: 0.85; box-shadow: 0 0 0 rgba(5, 150, 105, 0); }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(5, 150, 105, 0.2); }
}

.dx-intro-title {
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-500) 45%, var(--green-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.65rem;
  text-shadow: 0 0 40px rgba(5, 150, 105, 0.15);
  animation: dx-title-glow 2.4s ease-in-out infinite;
}

@keyframes dx-title-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(5, 150, 105, 0.18)); }
  50% { filter: drop-shadow(0 0 22px rgba(5, 150, 105, 0.38)); }
}

.dx-intro-bar {
  width: 100%;
  max-width: 300px;
  height: 6px;
  margin: 0 auto 1rem;
  background: rgba(5, 150, 105, 0.12);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(5, 150, 105, 0.18);
  box-shadow: inset 0 1px 3px rgba(6, 95, 70, 0.08);
}

.dx-intro-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--green-400), var(--green-500));
  background-size: 200% 100%;
  animation: dx-load-bar 2.6s ease forwards, dx-load-shimmer 1.1s linear infinite;
  box-shadow: 0 0 16px rgba(5, 150, 105, 0.65);
}

@keyframes dx-load-bar {
  to { width: 100%; }
}

@keyframes dx-load-shimmer {
  to { background-position: 200% 0; }
}

.dx-intro-text {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray-600);
  letter-spacing: 0.06em;
  min-height: 1.2em;
  transition: opacity 0.25s ease;
}

.dx-intro-boot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.1rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--green-700);
  opacity: 0.85;
}

.dx-intro-boot span {
  opacity: 0;
  transform: translateX(-8px);
  animation: dx-boot-line 0.5s ease forwards;
}

.dx-intro-boot span:nth-child(1) { animation-delay: 0.5s; }
.dx-intro-boot span:nth-child(2) { animation-delay: 1.1s; }
.dx-intro-boot span:nth-child(3) { animation-delay: 1.7s; }

@keyframes dx-boot-line {
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dx-intro-grid-floor,
  .dx-intro-aurora,
  .dx-intro-particles span,
  .dx-intro-holo,
  .dx-intro-neural-paths,
  .dx-intro-neural-nodes circle,
  .dx-intro-ring,
  .dx-intro-core,
  .dx-intro-scanline,
  .dx-intro-inner,
  .dx-intro-badge,
  .dx-intro-title,
  .dx-intro-pulse-dot,
  .dx-intro-metrics span,
  .dx-intro-boot span {
    animation: none !important;
  }
  .dx-intro-fill { width: 100%; }
  .dx-intro-boot span,
  .dx-intro-metrics span { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .dx-intro-glass { padding: 1.5rem 1.15rem 1.35rem; }
  .dx-intro-hud { font-size: 0.6rem; letter-spacing: 0.1em; }
  .dx-intro-holo { display: none; }
  .dx-intro-telemetry { font-size: 0.56rem; }
  .dx-intro-corner { width: 40px; height: 40px; }
  .dx-intro-ring--1 { width: 170px; height: 170px; margin: -85px 0 0 -85px; }
  .dx-intro-ring--2 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .dx-intro-ring--3 { width: 270px; height: 270px; margin: -135px 0 0 -135px; }
  .dx-intro-core { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .dx-intro-core svg { width: 42px; height: 42px; }
}

/* ===== Ambient Background ===== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float-orb 12s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-200), transparent 70%);
  top: -200px; right: -100px;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--green-400), transparent 70%);
  bottom: -150px; left: 30%;
  animation-delay: -4s;
  opacity: 0.3;
}

.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #6ee7b7, transparent 70%);
  top: 40%; left: -100px;
  animation-delay: -8s;
  opacity: 0.25;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== Layout — 74.2% showcase left · 25.8% login right ===== */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74.2fr 25.8fr;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  align-items: stretch;
}

/* ===== Auth Panel (Right 25.8%) ===== */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background:
    radial-gradient(145% 95% at 8% 92%, rgba(255, 181, 132, 0.12) 0%, rgba(255, 181, 132, 0) 42%),
    linear-gradient(165deg, #edf8f2 0%, #f0faf5 48%, #ffffff 100%);
  border-left: 1px solid rgba(148, 168, 158, 0.25);
  box-shadow: none;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.auth-inner {
  width: 92%;
  max-width: 388px;
  margin: auto;
  position: relative;
  max-height: none;
  overflow: visible;
}

.auth-panel .login-card {
  transform: none;
  padding: 2.45rem 1.45rem 2.25rem;
  min-height: min(560px, 82vh);
  width: 100%;
}

.auth-panel .login-card-header {
  margin-bottom: 1.1rem;
}

.auth-panel .login-card-desc {
  font-size: 0.86rem;
  margin-bottom: 1.35rem;
}

.auth-panel .login-card-divider {
  margin-bottom: 1.5rem;
}

.auth-panel .login-card .auth-form {
  gap: 1.25rem;
}

.auth-panel .login-card .field label {
  margin-bottom: 0.5rem;
}

.auth-panel .login-card-switch {
  margin-top: 1.5rem;
}

.auth-panel .login-card-icon {
  width: 46px;
  height: 46px;
}

.auth-panel .login-card-icon svg {
  width: 28px;
  height: 28px;
}

.auth-panel .login-card-title {
  font-size: 1.78rem;
}

.auth-panel .login-card .input-wrap input {
  padding: 12px 40px 12px 38px;
  font-size: 0.92rem;
}

.auth-panel .login-card .btn-signin {
  padding: 14px 18px;
  font-size: 0.98rem;
}

.auth-panel .auth-trust-line {
  margin-top: 1rem;
  text-align: center;
}

/* ===== Login card — 3D elevation on card only ===== */
.login-card {
  background: #ffffff;
  border-radius: 26px;
  padding: 2rem 2rem 1.75rem;
  border: 1px solid rgba(168, 210, 188, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 3px 10px rgba(15, 23, 42, 0.04),
    0 18px 42px -18px rgba(5, 150, 105, 0.2),
    0 40px 80px -34px rgba(15, 23, 42, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: perspective(1200px) rotateX(1deg);
  transform-style: preserve-3d;
}

.login-card--float {
  transform: none;
  padding: 1.85rem 1.55rem 1.65rem;
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    0 8px 32px -4px rgba(5, 150, 105, 0.22),
    0 24px 64px -12px rgba(6, 95, 70, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  max-height: min(500px, 56vh);
  overflow-y: auto;
}

.login-card--float .login-card-title {
  font-size: 1.45rem;
}

.login-card--float .login-card-desc {
  font-size: 0.8rem;
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.login-card--float .login-card-header {
  margin-bottom: 1rem;
  gap: 0.85rem;
}

.login-card--float .login-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.login-card--float .login-card-icon svg {
  width: 26px;
  height: 26px;
}

.login-card--float .auth-form {
  gap: 1.15rem;
}

.login-card--float .login-card-divider {
  margin-bottom: 1.35rem;
}

.login-card--float .field label {
  margin-bottom: 0.5rem;
}

.login-card--float .input-wrap input {
  padding: 9px 34px 9px 32px;
  font-size: 0.82rem;
}

.login-card--float .btn-signin {
  margin-top: 0.5rem;
  padding: 11px 16px;
  font-size: 0.88rem;
}

.login-card--float .login-card-switch {
  margin-top: 1.35rem;
  font-size: 0.78rem;
}

.login-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.login-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 46%),
    linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 58%, var(--green-700) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 18px rgba(5, 150, 105, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -2px 6px rgba(6, 78, 59, 0.3);
}

.login-card-icon svg {
  width: 26px;
  height: 26px;
}

.login-card-heading {
  min-width: 0;
  padding-top: 2px;
}

.login-card-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 0.2rem;
}

.login-card-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1e2923;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.login-card-desc {
  font-size: 0.82rem;
  color: #5a6f64;
  line-height: 1.55;
  margin: 0 0 1.1rem;
}

.login-card-divider {
  border: none;
  height: 1px;
  background: #e2ebe6;
  margin: 0 0 1.25rem;
}

.login-card .field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a5f55;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.field-label-row label {
  margin-bottom: 0 !important;
}

.field-password .field-label-row .link-btn {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-600);
  white-space: nowrap;
}

.field-password .field-label-row .link-btn:hover {
  color: var(--green-700);
}

.login-card .input-wrap input {
  background: rgba(236, 253, 245, 0.92);
  border: 1.5px solid #b8d9c9;
  border-radius: 10px;
  padding: 11px 38px 11px 36px;
  font-size: 0.88rem;
  box-shadow: none;
}

.login-card .input-wrap input:focus {
  border-color: #5ecfaa;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
  background: #ffffff;
}

.login-card .input-icon {
  color: #5f7a6e;
}

.login-card .input-icon-lock {
  color: #7a9488;
}

.login-card .input-wrap:focus-within .input-icon-lock {
  color: var(--green-600);
}

.login-card .toggle-pw {
  color: var(--green-600);
}

.login-card .toggle-pw:hover {
  color: var(--green-700);
}

.login-card .auth-form {
  gap: 1rem;
}

.login-card .btn-primary,
.login-card .btn-signin {
  margin-top: 0.25rem;
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--green-500) 0%, var(--green-600) 100%);
  box-shadow: none;
  transform: none;
}

.login-card .btn-primary::before {
  display: none;
}

.login-card .btn-primary:hover,
.login-card .btn-signin:hover {
  transform: none;
  box-shadow: none;
  background: linear-gradient(90deg, var(--green-600) 0%, var(--green-700) 100%);
  filter: none;
}

.login-card .btn-signin {
  justify-content: flex-start;
  gap: 10px;
}

.login-card .btn-signin span {
  flex: 1;
  text-align: center;
}

.login-card .btn-icon-left,
.login-card .btn-icon-right {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.login-card .btn-icon-right {
  margin-left: 0;
}

.login-card-switch {
  text-align: center;
  margin: 1.25rem 0 0;
  font-size: 0.82rem;
  color: #637a70;
}

.login-card-switch .link-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-600);
  padding: 0;
  margin-left: 0.2rem;
}

.login-card-switch .link-btn:hover {
  color: var(--green-700);
}

.auth-trust-line {
  text-align: center;
  margin-top: 1.35rem;
  font-size: 0.72rem;
  color: #8fa399;
  line-height: 1.45;
}

.login-card .back-btn {
  margin-bottom: 1rem;
}

.login-card .info-card {
  margin-top: 1rem;
  border-radius: 12px;
  background: #f0faf5;
  border: 1px solid #cce8dc;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}

.brand-compact {
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.brand-text {
  min-width: 0;
}

.auth-top-bar,
.showcase-top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: 40px;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  z-index: 5;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.08);
  flex-shrink: 0;
}

.brand-icon svg { width: 30px; height: 30px; }

.brand h1 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand p {
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
  line-height: 1.3;
}

/* Views */
.view {
  display: none;
  animation: fadeSlide 0.4s ease;
}

.view.active { display: block; }

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-panel .view h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.03em;
  margin-top: 0;
  margin-bottom: 0.3rem;
  text-align: center;
}

.auth-panel .subtitle {
  color: var(--gray-400);
  font-size: 0.8rem;
  margin-bottom: 1.1rem;
  line-height: 1.45;
  text-align: center;
}

.subtitle {
  color: var(--gray-400);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.subtitle small {
  color: var(--green-600) !important;
  font-size: 0.8rem;
}

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 0.85rem; }

.auth-panel .auth-form { gap: 0.75rem; }

.field label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--gray-400);
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}

.input-icon-lock {
  color: var(--green-600);
}

.input-wrap:focus-within .input-icon-lock {
  color: var(--green-500);
}

.input-wrap input {
  width: 100%;
  padding: 10px 36px 10px 34px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.82rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-wrap input::placeholder {
  color: #b8c4c0;
}

.input-wrap input:focus {
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.input-wrap input:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--green-500); }

.toggle-pw {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 2;
}

.toggle-pw svg {
  width: 18px;
  height: 18px;
  display: block;
}

.toggle-pw .icon-eye-off[hidden],
.toggle-pw .icon-eye[hidden] {
  display: none;
}

.toggle-pw.is-visible .icon-eye { display: none; }
.toggle-pw.is-visible .icon-eye-off { display: block !important; }

.toggle-pw:hover { color: var(--green-600); }

.row-between {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.auth-panel .row-between {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.auth-panel .checkbox {
  font-size: 0.75rem;
  gap: 8px;
}

.auth-panel .checkmark {
  width: 17px;
  height: 17px;
  border-radius: 5px;
}

.auth-panel .link-btn {
  font-size: 0.75rem;
  padding: 0;
}

.auth-panel .input-wrap input {
  padding: 11px 38px 11px 36px;
  font-size: 0.88rem;
}

.auth-panel .btn-primary {
  padding: 12px 18px;
  font-size: 0.9rem;
}

.auth-panel .social-btn {
  flex-direction: row;
  gap: 6px;
  padding: 10px 8px;
  font-size: 0.72rem;
}

.auth-panel .switch-view {
  margin-top: 1.15rem;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  user-select: none;
}

.checkbox input { display: none; }

.checkmark {
  width: 20px; height: 20px;
  border: 2px solid var(--gray-200);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.checkbox input:checked + .checkmark {
  background: var(--green-500);
  border-color: var(--green-500);
}

.checkbox input:checked + .checkmark::after {
  content: '';
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.checkbox a { color: var(--green-600); text-decoration: none; }
.checkbox a:hover { text-decoration: underline; }

.link-btn {
  background: none;
  border: none;
  color: var(--green-600);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.link-btn:hover { color: var(--green-700); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-green);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px -12px rgba(5, 150, 105, 0.45);
}

.btn-primary:hover::before { transform: translateX(100%); }

.btn-primary svg { width: 16px; height: 16px; }

.auth-panel .divider {
  margin: 1rem 0;
  font-size: 0.72rem;
  gap: 10px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 1.5rem 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.auth-panel .social-row {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-panel .social-btn {
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 0.62rem;
  font-weight: 600;
}

.auth-panel .social-btn svg {
  width: 18px;
  height: 18px;
}

.social-label {
  line-height: 1;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.social-btn:hover {
  border-color: var(--green-200);
  background: var(--green-50);
  transform: translateY(-1px);
}

.social-btn svg { width: 20px; height: 20px; }

.switch-view {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--gray-400);
}

/* Strength bar */
.strength-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
  background: var(--gray-400);
}

.strength-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 4px;
  display: block;
}

.auth-panel .back-btn {
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}

.auth-panel .info-card {
  font-size: 0.72rem;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--gray-400);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  padding: 0;
  transition: color 0.2s;
}

.back-btn:hover { color: var(--green-600); }
.back-btn svg { width: 18px; height: 18px; }

.info-card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  margin-top: 1.5rem;
}

.info-card svg {
  width: 20px; height: 20px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.info-card p {
  font-size: 0.85rem;
  color: var(--green-800);
  line-height: 1.5;
}

/* Toast */
.toast {
  position: fixed;
  top: 1.35rem;
  right: 1.35rem;
  left: auto;
  bottom: auto;
  width: min(340px, calc(100vw - 2rem));
  max-width: min(340px, calc(100vw - 2rem));
  transform: translateX(calc(100% + 1.75rem));
  background: #ecfdf5;
  color: #047857;
  padding: 0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  z-index: 400;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid #a7f3d0;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.15rem 1.25rem;
  min-height: 4.25rem;
}

.toast-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 16%, transparent);
  position: relative;
}

.toast-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
}

.toast-message {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
}

.toast-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: -0.15rem -0.2rem 0 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}

.toast-close svg {
  width: 1rem;
  height: 1rem;
}

.toast-close:hover,
.toast-close:focus-visible {
  opacity: 1;
  background: color-mix(in srgb, currentColor 12%, transparent);
  outline: none;
}

.toast-progress {
  height: 4px;
  background: rgba(15, 23, 42, 0.08);
}

.toast-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left center;
  background: currentColor;
  opacity: 0.55;
}

@keyframes toast-progress-shrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.toast--success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.toast--warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.toast--danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.toast--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

/* ===== Showcase Panel (Left 70%) ===== */
.showcase-panel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 2.25rem 1rem 2.5rem;
  background:
    radial-gradient(140% 90% at 0% 100%, rgba(255, 188, 148, 0.18) 0%, rgba(255, 188, 148, 0) 35%),
    linear-gradient(165deg, #e2f3ea 0%, #ebf6f0 42%, #f2faf6 76%, #f8fcfa 100%);
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  isolation: isolate;
}

.showcase-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 82% 60% at 40% 50%, rgba(52, 168, 120, 0.14), transparent 72%),
    radial-gradient(ellipse 54% 42% at 77% 43%, rgba(110, 200, 160, 0.10), transparent 66%),
    radial-gradient(ellipse 38% 28% at 85% 84%, rgba(255, 183, 137, 0.18), transparent 74%);
  pointer-events: none;
  z-index: 0;
}

.showcase-ai-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ===== AI network — full panel mesh, canvas animated ===== */
.ai-dot-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(5, 150, 105, 0.18) 0.85px, transparent 0.95px),
    radial-gradient(circle, rgba(5, 150, 105, 0.08) 0.85px, transparent 0.95px);
  background-size: 34px 34px, 68px 68px;
  opacity: 0.42;
  animation: dot-grid-drift 20s linear infinite;
}

@keyframes dot-grid-drift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 28px 28px, 56px 56px; }
}

.ai-mesh-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 46% at 38% 48%, rgba(52, 168, 120, 0.16), transparent 70%),
    radial-gradient(ellipse 42% 36% at 72% 55%, rgba(110, 200, 160, 0.12), transparent 65%),
    radial-gradient(ellipse 30% 25% at 20% 70%, rgba(5, 150, 105, 0.08), transparent 62%);
  pointer-events: none;
  animation: mesh-breathe 8s ease-in-out infinite;
}

@keyframes mesh-breathe {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.ai-scan-beam {
  position: absolute;
  top: 0;
  left: -20%;
  width: 34%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(5, 150, 105, 0.02) 42%,
    rgba(52, 211, 153, 0.08) 50%,
    rgba(5, 150, 105, 0.02) 58%,
    transparent 100%
  );
  animation: ai-scan-sweep 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ai-scan-sweep {
  0% { transform: translateX(-30%) skewX(-8deg); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(280%) skewX(-8deg); opacity: 0; }
}

.ai-pulse-rings {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ai-pulse-rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border: 1.5px solid rgba(5, 150, 105, 0.2);
  border-radius: 50%;
  animation: ai-ring-pulse 4s ease-out infinite;
}

.ai-pulse-rings span:nth-child(2) { animation-delay: 1.3s; }
.ai-pulse-rings span:nth-child(3) { animation-delay: 2.6s; }

@keyframes ai-ring-pulse {
  0% { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(2.8); opacity: 0; }
}

.ai-horizon-glow {
  position: absolute;
  left: 0;
  right: 28%;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(5, 150, 105, 0.08), transparent 75%);
  pointer-events: none;
}

.ai-neural-lines {
  position: absolute;
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
}

.ai-neural-lines svg {
  width: 100%;
  height: 100%;
}

.neural-paths {
  animation: none;
  stroke-dasharray: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neural-nodes circle {
  animation: neural-pulse 4.6s ease-in-out infinite;
}

.neural-nodes circle:nth-child(odd) { animation-delay: -1.2s; }

@keyframes neural-dash {
  to { stroke-dashoffset: -120; }
}

@keyframes neural-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* ===== Vault locker background (left showcase only) ===== */
.vault-locker-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Shared frame — exact image aspect ratio so labels land on locker doors */
.locker-scene {
  position: absolute;
  right: -2%;
  top: 50%;
  height: min(88%, 560px);
  aspect-ratio: 578 / 744;
  width: auto;
  max-width: 78%;
  transform: translateY(-50%) perspective(900px) rotateY(-4deg);
  transform-style: preserve-3d;
}

.locker-photo-layer {
  position: absolute;
  inset: 0;
  background: url('/static/images/locker-vault-bg.png') center / 100% 100% no-repeat;
  opacity: 1;
  filter: saturate(1.08) contrast(1.04);
  mask-image: linear-gradient(to left, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 72%, transparent 100%);
}

.showcase-inner {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3rem;
  overflow: hidden;
  padding: 0.5rem 0 0.25rem;
}

.ai-protect-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green-700);
  margin: 0;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.06);
  flex-shrink: 0;
  align-self: flex-start;
}

.showcase-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.45rem;
  flex-shrink: 0;
}

.showcase-video-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 14px;
  border: 1px solid rgba(5, 150, 105, 0.28);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-700);
  font: 500 0.78rem/1.2 var(--font);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 16px rgba(6, 95, 70, 0.05);
}

.showcase-video-link:hover {
  border-color: rgba(5, 150, 105, 0.45);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(6, 95, 70, 0.1);
}

.showcase-video-link[aria-expanded="true"] {
  border-color: rgba(5, 150, 105, 0.55);
  background: rgba(236, 253, 245, 0.95);
  color: var(--green-800);
}

.showcase-video-play {
  flex-shrink: 0;
  color: var(--green-600);
}

.showcase-video-duration {
  color: var(--gray-500);
  font-weight: 500;
}

.showcase-video-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 0 0.75rem;
  flex-shrink: 0;
  animation: showcaseVideoIn 0.35s ease;
}

.showcase-video-panel[hidden] {
  display: none !important;
}

.showcase-video-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #0f172a;
  box-shadow:
    0 18px 48px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.showcase-video-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f172a;
}

.showcase-panel.showcase-panel--video-open {
  background: linear-gradient(180deg, #eef8f3 0%, #e8f3ef 42%, #dfece7 100%);
}

.showcase-inner.showcase-inner--video-open .encryption-scene,
.showcase-inner.showcase-inner--video-open .scene-3d {
  display: none;
}

@keyframes showcaseVideoIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-protect-line svg {
  flex-shrink: 0;
  color: var(--green-500);
}

.badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-card);
  margin-bottom: 0;
}

.pulse {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(5, 150, 105, 0); }
}

.showcase-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--gray-800);
  margin-bottom: 0;
}

.showcase-head-block {
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.showcase-head-topline {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
  width: 100%;
}

/* ===== Encryption display — status bar above vault scene ===== */
.encryption-scene {
  position: relative;
  margin: 0 0 0.65rem;
  z-index: 2;
  flex-shrink: 0;
  align-self: flex-start;
}

.encryption-display {
  background: linear-gradient(160deg, #064e3b, #065f46);
  border: 1.5px solid #047857;
  border-radius: 10px;
  padding: 0 14px;
  width: 280px;
  max-width: 100%;
  height: 44px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #a7f3d0;
  box-shadow: 0 8px 24px rgba(6, 78, 59, 0.22);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.showcase-title-lead {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--gray-800);
  margin: 0 0 0.1rem;
}

.showcase-title-sub {
  margin-top: 0.1rem;
  margin-bottom: 0;
}

.showcase-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.showcase-head-row .showcase-title {
  flex: 1;
  min-width: 0;
}

.gradient-text {
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-desc {
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  color: var(--gray-600);
  line-height: 1.45;
  max-width: 540px;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

/* ===== 3D Scene ===== */
.scene-3d {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  height: auto;
  max-height: min(440px, 50vh);
  --cred-cx: 40%;
  --cred-cy: 46%;
  perspective: 1400px;
  margin: 0.15rem 0;
  transform-style: preserve-3d;
  overflow: visible;
  transition: transform 0.2s ease-out;
}

/* AI volumetric FX inside scene */
.ai-scene-fx {
  position: absolute;
  inset: -8% -4%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.ai-grid-floor {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 140%;
  height: 55%;
  transform: translateX(-50%) rotateX(72deg);
  transform-origin: center bottom;
  background:
    linear-gradient(rgba(5, 150, 105, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.2) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 100%, #000 20%, transparent 75%);
  animation: grid-floor-pulse 6s ease-in-out infinite;
}

.ai-core-bloom {
  position: absolute;
  top: var(--cred-cy, 46%);
  left: var(--cred-cx, 40%);
  width: min(420px, 70%);
  height: min(420px, 70%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(5, 150, 105, 0.32) 0%, rgba(52, 211, 153, 0.12) 40%, transparent 68%);
  filter: blur(8px);
  animation: core-bloom 4s ease-in-out infinite;
}

.ai-holo-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(48, 95, 132, 0.92);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(101, 152, 192, 0.3);
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.12);
  animation: holo-float 5s ease-in-out infinite;
}

.ai-holo-tag:nth-child(3) { animation-delay: -1.5s; }
.ai-holo-tag:nth-child(4) { animation-delay: -2.8s; }
.ai-holo-tag:nth-child(5) { animation-delay: -0.8s; }
.ai-holo-tag:nth-child(6) { animation-delay: -3.6s; }

@keyframes grid-floor-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.95; }
}

@keyframes core-bloom {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes holo-float {
  0%, 100% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-6px); opacity: 1; }
}

/* Credential cards — dual ring, 60° spacing, slow float */
.credential-field {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  --cred-cx: 40%;
}

.cred-ring {
  position: absolute;
  top: var(--cred-cy, 46%);
  left: var(--cred-cx);
  width: 0;
  height: 0;
}

.cred-ring-inner .credential-slot { --r: clamp(128px, 23vw, 168px); }
.cred-ring-outer .credential-slot { --r: clamp(192px, 34vw, 238px); }

.credential-slot {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateX(var(--r));
  pointer-events: auto;
  z-index: 5;
}

.credential-slot .float-card {
  position: relative;
  top: auto;
  left: auto;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  animation: cred-float var(--float-dur, 11s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
  will-change: transform;
}

.cred-ring-inner .credential-slot:nth-child(1) .float-card { --float-dur: 11s; --float-delay: 0s; }
.cred-ring-inner .credential-slot:nth-child(2) .float-card { --float-dur: 12s; --float-delay: -2s; }
.cred-ring-inner .credential-slot:nth-child(3) .float-card { --float-dur: 10.5s; --float-delay: -4s; }
.cred-ring-inner .credential-slot:nth-child(4) .float-card { --float-dur: 11.5s; --float-delay: -5.5s; }
.cred-ring-inner .credential-slot:nth-child(5) .float-card { --float-dur: 12.5s; --float-delay: -7s; }
.cred-ring-inner .credential-slot:nth-child(6) .float-card { --float-dur: 10s; --float-delay: -8.5s; }

.cred-ring-outer .credential-slot:nth-child(1) .float-card { --float-dur: 12s; --float-delay: -1s; }
.cred-ring-outer .credential-slot:nth-child(2) .float-card { --float-dur: 11s; --float-delay: -3s; }
.cred-ring-outer .credential-slot:nth-child(3) .float-card { --float-dur: 13s; --float-delay: -4.5s; }
.cred-ring-outer .credential-slot:nth-child(4) .float-card { --float-dur: 10.5s; --float-delay: -6s; }
.cred-ring-outer .credential-slot:nth-child(5) .float-card { --float-dur: 12.5s; --float-delay: -7.5s; }
.cred-ring-outer .credential-slot:nth-child(6) .float-card { --float-dur: 11.5s; --float-delay: -9s; }

@keyframes cred-float {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))) translateY(-7px);
  }
}

.credential-slot:hover {
  z-index: 20;
}

.credential-slot .float-card:hover {
  z-index: 20;
  box-shadow: 0 16px 48px rgba(6, 95, 70, 0.22);
  border-color: var(--green-200);
}

.vault-core {
  position: absolute;
  top: var(--cred-cy, 46%);
  left: var(--cred-cx, 40%);
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  z-index: 12;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 18px 36px rgba(5, 150, 105, 0.18));
}

.vault-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--green-600);
  border-radius: 50%;
  opacity: 0.42;
  animation: spin-ring 8s linear infinite;
}

.ring-1 { animation-duration: 8s; }
.ring-2 {
  inset: -15px;
  border-color: var(--green-500);
  animation-duration: 12s;
  animation-direction: reverse;
  opacity: 0.31;
}
.ring-3 {
  inset: -30px;
  border-color: var(--green-400);
  animation-duration: 16s;
  opacity: 0.22;
}

@keyframes spin-ring {
  from { transform: rotateZ(0deg) rotateX(70deg); }
  to { transform: rotateZ(360deg) rotateX(70deg); }
}

.vault-center {
  position: absolute;
  inset: 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 42%),
    linear-gradient(155deg, #f0faf5, #e8f5ee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(168, 210, 188, 0.72);
  box-shadow:
    0 0 36px rgba(52, 168, 120, 0.24),
    inset 0 2px 5px rgba(255,255,255,0.92),
    inset 0 -3px 8px rgba(110, 200, 160, 0.16),
    0 16px 32px rgba(6, 95, 70, 0.16);
  animation: vault-glow 3s ease-in-out infinite;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.vault-center svg,
.vault-lock-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  pointer-events: none;
  overflow: visible;
  display: block;
}

/* Body + fixed left post — never move */
.lock-body {
  transform: none;
}

/* Only the arc + right leg swing — pivot at left hinge (26, 24) */
.lock-shackle-swing {
  transform-box: view-box;
  transform-origin: 26px 24px;
  animation: shackle-open-close 5s ease-in-out infinite;
  will-change: transform;
}

/*
  Open: right side lifts up (left hinge fixed)
  Close: swings back — no downward dip, no 180° spin
*/
@keyframes shackle-open-close {
  0%, 15% {
    transform: rotate(0deg);
  }
  35%, 55% {
    transform: rotate(-78deg);
  }
  75%, 100% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock-shackle-swing {
    animation: none;
  }
}

@keyframes vault-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(5, 150, 105, 0.3), inset 0 2px 4px rgba(255,255,255,0.8), 0 8px 24px rgba(6, 95, 70, 0.15); }
  50% { box-shadow: 0 0 60px rgba(5, 150, 105, 0.5), inset 0 2px 4px rgba(255,255,255,0.8), 0 12px 32px rgba(6, 95, 70, 0.2); }
}

/* Floating / orbital cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow:
    0 8px 32px rgba(6, 95, 70, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(5, 150, 105, 0.06);
  min-width: min(168px, 30vw);
  max-width: min(200px, 34vw);
  cursor: default;
  z-index: 5;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.credential-slot:hover,
.credential-slot .float-card:hover {
  z-index: 20;
}

.float-card:hover {
  box-shadow: 0 16px 48px rgba(6, 95, 70, 0.22);
  border-color: var(--green-200);
}

.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg { width: 22px; height: 22px; }

.card-icon.gmail  { background: #fef2f2; }
.card-icon.server { background: var(--green-50); color: var(--green-700); }
.card-icon.bank   { background: var(--green-50); color: var(--green-600); }
.card-icon.social { background: var(--green-50); color: var(--green-700); }
.card-icon.wifi   { background: var(--green-50); color: var(--green-600); }
.card-icon.api    { background: #fff7ed; color: #ea580c; }
.card-icon.db     { background: #ecfdf5; color: #0d9488; }
.card-icon.github { background: #f1f5f9; color: #1e293b; }
.card-icon.vpn    { background: var(--green-50); color: var(--green-600); }
.card-icon.stripe { background: #eef2ff; color: #6366f1; }
.card-icon.docker { background: var(--green-100); color: var(--green-700); }
.card-icon.slack  { background: #fdf4ff; color: #a855f7; }

.card-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }

.card-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
}

.card-value {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gray-800);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-status {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.card-status.secure { background: var(--green-100); color: var(--green-700); }
.card-status.warn   { background: #fef3c7; color: #b45309; }

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--green-400);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: particle-rise 4s ease-in-out infinite;
}

@keyframes particle-rise {
  0% { opacity: 0; transform: translateY(0) scale(0); }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}

.screen-line {
  display: flex;
  align-items: center;
  line-height: 1.35;
  position: absolute;
  inset: 0;
  padding: 0 14px;
  white-space: nowrap;
}

.screen-search {
  color: #fbbf24;
  animation: screen-search-cycle 10s ease-in-out infinite;
}

.screen-encrypted {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: screen-encrypted-cycle 10s ease-in-out infinite;
}

.screen-pass {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.screen-encrypted em {
  color: #34d399;
  letter-spacing: 0.03em;
  font-style: normal;
}

.screen-ai-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--green-600);
  letter-spacing: 0.02em;
}

@keyframes screen-search-cycle {
  0%, 34% { opacity: 1; }
  38%, 58% { opacity: 0; }
  62%, 76% { opacity: 1; }
  80%, 100% { opacity: 0; }
}

@keyframes screen-encrypted-cycle {
  0%, 34% { opacity: 0; }
  38%, 58% { opacity: 1; }
  62%, 76% { opacity: 0; }
  80%, 100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .screen-search,
  .screen-encrypted {
    animation: none;
  }
  .screen-encrypted { opacity: 1; position: static; }
  .screen-search { display: none; }
}

@media (max-width: 900px) {
  .encryption-display {
    width: 100%;
    max-width: 280px;
  }
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  flex-shrink: 0;
  margin-top: auto;
  margin-bottom: 0.75rem;
}

.stat-card {
  padding: 12px 10px;
  background:
    linear-gradient(165deg, #f6fcf9 0%, #ecf7f1 48%, #e4f2eb 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(168, 210, 188, 0.75);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  text-align: center;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(152, 200, 176, 0.25) inset,
    0 8px 20px -6px rgba(5, 150, 105, 0.16),
    0 16px 36px -14px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 -1px 0 rgba(152, 200, 176, 0.2) inset,
    0 14px 28px -8px rgba(5, 150, 105, 0.2),
    0 22px 44px -16px rgba(15, 23, 42, 0.14);
}

.stat-num {
  display: block;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  color: var(--gray-400);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: color 0.35s ease;
}

.stat-num.is-waiting {
  color: var(--gray-400);
}

.stat-num.is-counting {
  color: #ea580c;
  transition: color 0.25s ease, transform 0.15s ease-out;
}

.stat-num.is-done {
  color: var(--green-600);
  animation: stat-pop 0.45s ease-out;
}

@keyframes stat-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.stat-label {
  font-size: 0.68rem;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

/* Short viewports — tighten further, no scroll */
@media (prefers-reduced-motion: reduce) {
  .credential-slot .float-card,
  .vault-ring,
  .ai-grid-floor,
  .ai-core-bloom,
  .ai-holo-tag,
  .neural-paths,
  .neural-nodes circle,
  .ai-dot-grid,
  .ai-mesh-glow,
  .ai-scan-beam,
  .ai-pulse-rings span {
    animation: none !important;
  }
}

@media (max-height: 860px) {
  .showcase-panel { padding: 0.75rem 1.75rem 0.65rem; }
  .showcase-top-bar { min-height: 34px; margin-bottom: 0.35rem; }
  .showcase-head-block { margin-bottom: 0.3rem; }
  .showcase-desc { margin-bottom: 0.35rem; font-size: 0.85rem; }
  .ai-protect-line { margin-bottom: 0; padding: 4px 10px; font-size: 0.72rem; }
  .showcase-cta-row { margin-bottom: 0.35rem; gap: 0.45rem; }
  .showcase-video-link { font-size: 0.72rem; padding: 4px 10px; }
  .showcase-video-panel { max-width: 100%; margin-bottom: 0.5rem; }
  .scene-3d { max-height: min(300px, 38vh); margin-bottom: 0.5rem; }
  .float-card { min-width: 150px; max-width: 180px; padding: 8px 10px; }
  .intruder-scene { width: 270px; height: 124px; margin-left: auto; transform: translateX(1rem); }
  .intruder-figure, .intruder-svg { width: 88px; }
  .intruder-laptop { width: 175px; }
  .stat-card { padding: 10px 8px; }
  .auth-panel { padding: 1rem 1.75rem; }
  .auth-top-bar { min-height: 36px; margin-bottom: 0.5rem; }
  .view h2 { font-size: 1.55rem; }
  .subtitle { margin-bottom: 1rem; font-size: 0.84rem; }
  .auth-form { gap: 0.95rem; }
  .brand-icon { width: 44px; height: 44px; }
  .brand h1 { font-size: 1.3rem; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  html,
  body {
    height: auto;
    max-height: none;
    overflow-x: clip;
    overflow-y: auto;
  }

  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .showcase-panel {
    order: 1;
    padding: 1.5rem 1.5rem 2rem;
    height: auto;
    min-height: auto;
  }

  .showcase-inner {
    height: auto;
    overflow: visible;
  }

  .scene-3d {
    flex: none;
    height: 320px;
    max-height: none;
  }

  .auth-panel {
    order: 2;
    border-left: none;
    border-top: 1px solid rgba(148, 168, 158, 0.22);
    padding: 1.75rem 1.25rem;
    background: linear-gradient(180deg, #f0faf5 0%, #ffffff 100%);
    height: auto;
    min-height: auto;
    overflow: visible;
    align-items: center;
    box-shadow: none;
  }

  .auth-inner {
    max-width: 388px;
    width: 92%;
    margin: 0 auto;
    max-height: none;
    overflow: visible;
  }

  .login-card {
    padding: 1.65rem 1.5rem 1.5rem;
    border-radius: 22px;
    transform: none;
  }

  .login-card-title {
    font-size: 1.45rem;
  }

  .brand-compact {
    flex-direction: row;
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
  }

  .auth-panel .view h2 {
    font-size: 1.55rem;
  }

  .auth-panel .subtitle {
    font-size: 0.84rem;
  }

  .auth-panel .row-between {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .scene-3d { height: 360px; max-height: 360px; }

  .scene-3d { --cred-cy: 44%; }
  .cred-ring-outer .credential-slot { --r: clamp(168px, 31vw, 208px); }
  .cred-ring-inner .credential-slot { --r: clamp(110px, 20vw, 140px); }
  .float-card { min-width: 155px; padding: 9px 11px; }
}

@media (max-width: 1024px) {
  .locker-scene {
    height: min(75%, 440px);
    max-width: 78%;
  }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .social-row { grid-template-columns: 1fr; }
  .cred-ring-outer { display: none; }
  .cred-ring-inner .credential-slot { --r: clamp(115px, 28vw, 155px); }
  .ai-holo-tag { display: none; }
  .showcase-title { font-size: 1.75rem; }
  .showcase-title-lead { font-size: 1.75rem; }
  .locker-scene { display: none; }
  .showcase-panel { padding: 1.25rem 1rem 1.5rem; }
  .showcase-desc { font-size: 0.88rem; max-width: none; }
  .scene-3d { height: 280px; max-height: 280px; }
  .auth-panel { padding: 1.25rem 1rem max(1.5rem, env(safe-area-inset-bottom)); }
  .auth-panel .login-card { min-height: auto; padding: 1.5rem 1.15rem 1.35rem; }
  .auth-inner { width: 100%; max-width: none; }
  .login-card .btn-signin,
  .login-card .btn-primary { min-height: 48px; }
  .login-card .input-wrap input { min-height: 44px; font-size: 16px; }
}

@media (max-width: 480px) {
  .dx-intro-inner { width: min(94vw, 400px); padding: 1rem; }
  .dx-intro-glass { padding: 1.35rem 1rem 1.2rem; border-radius: 20px; }
  .dx-intro-title { font-size: 2rem; margin-bottom: 1.25rem; }
  .dx-intro-metrics { gap: 0.35rem; }
  .dx-intro-metrics span { font-size: 0.52rem; }
  .dx-intro-hud { flex-direction: column; align-items: stretch; gap: 0.45rem; }
  .dx-intro-telemetry { font-size: 0.54rem; }
  .showcase-head-topline { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .encryption-display { width: 100%; height: auto; min-height: 44px; padding: 8px 12px; }
  .float-card { min-width: 140px; max-width: 168px; }
  .vg-page-hero h2 { font-size: 1.2rem; }
}

@media (max-width: 380px) {
  .dx-intro-sys,
  .dx-intro-live { font-size: 0.55rem; letter-spacing: 0.08em; }
  .dx-intro-boot { font-size: 0.62rem; }
  .login-card-title { font-size: 1.35rem !important; }
  .stats-row { gap: 8px; }
}

.email-check-status {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted, #6b7280);
}

.email-check-status--ok {
  color: #059669;
}

.email-check-status--taken {
  color: #b42318;
  font-weight: 600;
}

.email-check-status--checking {
  color: var(--muted, #6b7280);
}

.auth-form .input-wrap input.input-invalid,
.auth-form input.input-invalid {
  border-color: #b42318;
  outline-color: #b42318;
}

/* Login card — demo video link (opens in new tab) */
.demo-video-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(5, 150, 105, 0.28);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.95) 0%, rgba(255, 255, 255, 0.98) 55%);
  box-shadow: 0 6px 18px rgba(6, 95, 70, 0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.demo-video-link:hover,
.demo-video-link:focus-visible {
  transform: translateY(-1px);
  border-color: #34d399;
  box-shadow: 0 10px 24px rgba(6, 95, 70, 0.14);
  outline: none;
}

.demo-video-link-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.28);
}

.demo-video-link-icon svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

.demo-video-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.demo-video-link-text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #064e3b;
}

.demo-video-link-text small {
  font-size: 0.75rem;
  line-height: 1.35;
  color: #5a6f64;
}

.demo-video-link-arrow {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
}

.demo-video-link-arrow svg {
  width: 14px;
  height: 14px;
}

.demo-video-link:hover .demo-video-link-arrow {
  background: rgba(5, 150, 105, 0.2);
}

.vg-totp-qr {
  width: 180px;
  max-width: 100%;
  margin: 0.75rem 0;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
}

.vg-totp-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.vg-totp-secret {
  display: inline-block;
  word-break: break-all;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 6px;
}

.vg-muted {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.legal-modal[hidden] {
  display: none !important;
}

.legal-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.legal-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.legal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.legal-modal__header h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.legal-modal__close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.legal-modal__close:hover {
  color: #0f172a;
}

.legal-modal__body {
  padding: 1rem 1.25rem 1.35rem;
  overflow-y: auto;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.55;
}

.legal-modal__body h3 {
  margin: 1rem 0 0.35rem;
  font-size: 0.98rem;
  color: #0f172a;
}

.legal-modal__body p {
  margin: 0 0 0.55rem;
}

.checkbox a[data-legal] {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .legal-modal {
    padding: 0.75rem;
    align-items: flex-end;
  }
  .legal-modal__panel {
    width: 100%;
    max-height: min(88vh, 640px);
    border-radius: 16px 16px 0 0;
  }
  .legal-modal__header,
  .legal-modal__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
