:root {
  --ink-950: #081221;
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: rgba(148, 163, 184, 0.3);
  --surface: rgba(248, 250, 252, 0.98);
  --primary: #1d4ed8;
  --primary-2: #0f766e;
  --azyan-amber: #f59e0b;
  --azyan-amber-deep: #d97706;
  --azyan-taiga: #064e3b;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 12% 12%, rgba(30, 64, 175, 0.32), transparent 35%),
    radial-gradient(circle at 82% 86%, rgba(15, 118, 110, 0.22), transparent 34%),
    linear-gradient(155deg, #070f1f, #0b1220 45%, #0a1222);
}

.ai-swarm-global {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: screen;
  contain: strict;
  transform: translateZ(0);
}

.login-shell {
  position: relative;
  z-index: 6;
  min-height: 100vh;
  width: min(1400px, 96vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
  padding: 20px 0;
  align-items: stretch;
}

.hero-panel {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 26px;
  padding: clamp(10px, 1.5vw, 16px);
  background:
    radial-gradient(circle at 18% 12%, rgba(29, 78, 216, 0.24), transparent 34%),
    radial-gradient(circle at 84% 86%, rgba(15, 118, 110, 0.2), transparent 36%),
    linear-gradient(145deg, rgba(7, 19, 34, 0.94), rgba(14, 26, 45, 0.94));
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.46);
  overflow: hidden;
}

.hero-visual {
  position: relative;
  border-radius: 22px;
  min-height: clamp(560px, 88vh, 940px);
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.24);
  box-shadow: 0 20px 50px rgba(8, 25, 48, 0.48);
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  display: block;
  transform: scale(1.11) translate3d(0, 0, 0) rotate(0deg);
  transform-origin: 52% 46%;
  filter: saturate(1.08) contrast(1.06) brightness(0.98);
  animation:
    hero-image-drift 12s cubic-bezier(0.38, 0.08, 0.2, 1) infinite alternate,
    hero-image-pulse 5.4s ease-in-out infinite;
  will-change: transform, filter;
}

.hero-visual picture {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 20, 35, 0.02), rgba(9, 20, 35, 0.44)),
    radial-gradient(circle at 75% 18%, rgba(16, 185, 129, 0.24), transparent 32%);
  animation: hero-overlay-shift 10.5s ease-in-out infinite alternate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 18%, rgba(125, 211, 252, 0.16), transparent 30%),
    radial-gradient(circle at 82% 74%, rgba(34, 197, 94, 0.14), transparent 34%);
  animation: hero-aura-flow 14s ease-in-out infinite alternate;
}

.ai-swarm {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.ai-nest {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(125, 211, 252, 0.36), rgba(34, 197, 94, 0.1) 52%, transparent 76%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.32), transparent 72%);
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.12),
    inset 0 0 8px rgba(125, 211, 252, 0.12);
  opacity: 0.12;
  animation: ai-nest-pulse 4.4s ease-in-out infinite alternate;
}

.ai-nest::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  border: 1px dashed rgba(148, 231, 255, 0.34);
  opacity: 0.54;
}

.ai-nest.ai-nest-right-main,
.ai-nest.ai-nest-right-top {
  background:
    radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.28), rgba(56, 189, 248, 0.14) 56%, transparent 78%),
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.22), transparent 72%);
}

.ai-field-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.74;
}

.ai-bug {
  position: absolute;
  z-index: 2;
  width: var(--size, 12px);
  height: calc(var(--size, 12px) * var(--aspect, 0.55));
  border-radius: var(--radius, 999px);
  opacity: 0;
  transform: rotate(calc(var(--rot, 0deg) + var(--tilt, 0deg)));
  transform-origin: center center;
  background:
    radial-gradient(circle at 35% 42%, rgba(255, 255, 255, 0.92), transparent 46%),
    radial-gradient(circle at 62% 52%, hsla(var(--hue, 195), 92%, 65%, 0.95), transparent 64%);
  box-shadow:
    0 0 10px hsla(var(--hue, 195), 94%, 64%, 0.55),
    0 0 24px hsla(var(--hue, 195), 94%, 64%, 0.2);
  animation: ai-bug-flicker var(--flicker, 3.2s) ease-in-out infinite;
  will-change: transform, opacity, filter;
  transition: opacity 400ms linear, filter 600ms ease;
  backface-visibility: hidden;
  contain: layout paint style;
}

.ai-bug.mode-attract {
  box-shadow:
    0 0 12px hsla(var(--hue, 195), 96%, 68%, 0.64),
    0 0 24px hsla(var(--hue, 195), 92%, 66%, 0.28);
}

.ai-bug.mode-repel {
  box-shadow:
    0 0 9px hsla(var(--hue, 180), 92%, 62%, 0.5),
    0 0 18px hsla(var(--hue, 180), 88%, 58%, 0.2);
}

.ai-bug.mode-neutral {
  opacity: calc(var(--alpha, 0.35) * 0.9);
}

.ai-bug.social-repel {
  mix-blend-mode: plus-lighter;
}

.ai-bug.social-fuse {
  box-shadow:
    0 0 8px hsla(var(--hue, 195), 96%, 66%, 0.48),
    0 0 14px hsla(var(--hue, 195), 96%, 66%, 0.16);
}

.ai-bug.is-alive {
  opacity: var(--alpha, 0.35);
}

.ai-bug.is-dying {
  opacity: 0;
  filter: blur(2px) saturate(0.7);
}

.ai-bug.is-fusing {
  box-shadow:
    0 0 10px hsla(var(--hue, 195), 98%, 72%, 0.62),
    0 0 18px hsla(var(--hue, 195), 98%, 68%, 0.2);
}

.ai-bug::before,
.ai-bug::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 40%;
  height: 62%;
  border-radius: 100%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(148, 231, 255, 0.82), rgba(56, 189, 248, 0.12) 70%);
  opacity: 0.7;
}

.ai-bug::before {
  left: -24%;
}

.ai-bug::after {
  right: -24%;
}

.ai-bug.variant-ring {
  height: var(--size, 12px);
  border: 1px solid hsla(var(--hue, 185), 90%, 70%, 0.7);
  background: transparent;
}

.ai-bug.variant-ring::before,
.ai-bug.variant-ring::after {
  width: 26%;
  height: 26%;
  border-radius: 999px;
  background: hsla(var(--hue, 180), 95%, 74%, 0.95);
  top: 50%;
}

.ai-bug.variant-ring::before {
  left: 16%;
}

.ai-bug.variant-ring::after {
  right: 16%;
}

.ai-bug.variant-dart {
  clip-path: polygon(0 50%, 26% 12%, 72% 12%, 100% 50%, 72% 88%, 26% 88%);
}

.ai-bug.variant-glider::before,
.ai-bug.variant-glider::after {
  width: 52%;
  height: 52%;
  opacity: 0.54;
}

.ai-bug.variant-orb {
  height: var(--size, 12px);
  border-radius: 999px;
}

.ai-bug.variant-orb::before,
.ai-bug.variant-orb::after {
  width: 30%;
  height: 30%;
  opacity: 0.75;
}

.ai-bug.variant-needle {
  clip-path: polygon(0 50%, 12% 34%, 92% 16%, 100% 50%, 92% 84%, 12% 66%);
  border-radius: 4px;
}

.ai-bug.variant-needle::before,
.ai-bug.variant-needle::after {
  width: 24%;
  height: 44%;
  opacity: 0.62;
}

.ai-bug.variant-fragment {
  clip-path: polygon(8% 10%, 72% 0, 100% 42%, 92% 100%, 30% 90%, 0 56%);
  border-radius: 3px;
}

.ai-bug.variant-fragment::before,
.ai-bug.variant-fragment::after {
  width: 34%;
  height: 38%;
  opacity: 0.58;
}

@keyframes ai-bug-flicker {
  0%,
  100% {
    filter: saturate(0.95) brightness(0.96);
  }
  30% {
    filter: saturate(1.25) brightness(1.15);
  }
  60% {
    filter: saturate(0.88) brightness(0.9);
  }
}

@keyframes ai-nest-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.96);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
  }
}

.ai-swarm-global.low-fx .ai-bug {
  animation: none;
  box-shadow: 0 0 8px hsla(var(--hue, 195), 88%, 62%, 0.28);
}

.ai-swarm-global.low-fx .ai-bug.is-fusing {
  box-shadow: 0 0 8px hsla(var(--hue, 195), 88%, 62%, 0.28);
}

.ai-swarm-global.low-fx .ai-field-canvas {
  opacity: 0.38;
}

.ai-swarm-global.low-fx .ai-nest {
  animation: none;
  box-shadow: none;
}

.hero-brand {
  position: absolute;
  top: clamp(18px, 2.2vw, 28px);
  left: clamp(18px, 2.2vw, 28px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(8, 15, 28, 0.46);
  backdrop-filter: blur(6px);
}

.hero-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: linear-gradient(145deg, #1d4ed8, #0f766e);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.5);
}

.hero-brand-copy {
  display: grid;
  gap: 3px;
}

.hero-kicker {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  color: rgba(191, 219, 254, 0.94);
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(239, 246, 255, 0.98);
}

.hero-phase {
  margin: 2px 0 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(186, 230, 253, 0.36);
  background: rgba(8, 24, 42, 0.58);
  color: rgba(186, 230, 253, 0.94);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(3px);
}

.hero-phase[data-phase="explore"] {
  border-color: rgba(125, 211, 252, 0.44);
  color: rgba(186, 230, 253, 0.96);
}

.hero-phase[data-phase="reason"] {
  border-color: rgba(147, 197, 253, 0.46);
  color: rgba(191, 219, 254, 0.98);
}

.hero-phase[data-phase="experiment"] {
  border-color: rgba(110, 231, 183, 0.44);
  color: rgba(167, 243, 208, 0.98);
}

.hero-phase[data-phase="converge"] {
  border-color: rgba(251, 191, 36, 0.4);
  color: rgba(253, 230, 138, 0.98);
}

.form-panel {
  display: grid;
  align-items: center;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: 0 24px 64px rgba(2, 6, 23, 0.38);
  padding: clamp(22px, 3vw, 34px);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-500);
}

.form-card h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.subtitle {
  margin: 6px 0 0;
  color: var(--ink-700);
}

.login-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.login-form label {
  font-size: 0.9rem;
  color: var(--ink-800);
  font-weight: 600;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink-900);
}

.login-form input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.28);
  outline-offset: 1px;
}

.remember {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-700);
  font-size: 0.86rem;
  font-weight: 500;
}

.remember input {
  accent-color: var(--primary);
}

#login-btn {
  margin-top: 4px;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary), var(--ink-800));
  color: #f8fafc;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(29, 78, 216, 0.26);
}

#login-btn:disabled {
  opacity: 0.72;
  cursor: wait;
}

.error {
  margin: 4px 0 0;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
}

.hint-box {
  margin-top: 14px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.82);
  color: var(--ink-700);
  padding: 10px 12px;
  font-size: 0.82rem;
}

.hidden {
  display: none !important;
}

@keyframes hero-image-drift {
  0% {
    transform: scale(1.1) translate3d(0.5%, 0.4%, 0) rotate(-0.35deg);
  }
  35% {
    transform: scale(1.13) translate3d(-1.2%, -0.9%, 0) rotate(0.22deg);
  }
  70% {
    transform: scale(1.145) translate3d(0.9%, -1.4%, 0) rotate(-0.26deg);
  }
  100% {
    transform: scale(1.16) translate3d(-1.7%, -0.6%, 0) rotate(0.28deg);
  }
}

@keyframes hero-image-pulse {
  0%,
  100% {
    filter: saturate(1.02) contrast(1.04) brightness(0.96);
  }
  30% {
    filter: saturate(1.16) contrast(1.1) brightness(1.03);
  }
  60% {
    filter: saturate(1.09) contrast(1.06) brightness(0.99);
  }
}

@keyframes hero-overlay-shift {
  0% {
    opacity: 0.82;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0.98;
    transform: translate3d(-1.2%, 1%, 0) scale(1.03);
  }
}

@keyframes hero-aura-flow {
  0% {
    opacity: 0.72;
    transform: translate3d(0.8%, -0.4%, 0) scale(1);
  }
  100% {
    opacity: 0.96;
    transform: translate3d(-1.1%, 0.9%, 0) scale(1.04);
  }
}

@media (max-width: 1120px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    width: min(100vw - 20px, 980px);
    padding: 12px 0 18px;
  }

  .hero-panel {
    padding: 10px;
  }

  .hero-visual {
    min-height: clamp(320px, 54vh, 520px);
  }
}

@media (max-width: 720px) {
  .hero-panel,
  .form-card {
    border-radius: 20px;
  }

  .hero-logo {
    width: 52px;
    height: 52px;
    font-size: 1.05rem;
  }

  .hero-brand {
    left: 12px;
    top: 12px;
    padding: 8px 10px 8px 8px;
    border-radius: 14px;
  }

  .hero-kicker {
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: 0.98rem;
  }

  .hero-visual img {
    object-position: center 40%;
    animation:
      hero-image-drift 14s cubic-bezier(0.38, 0.08, 0.2, 1) infinite alternate,
      hero-image-pulse 5.8s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-swarm,
  .ai-swarm-global {
    display: none;
  }

  .hero-visual img {
    animation: none;
    transform: scale(1.04);
  }
}

/* ==========================================================================
   UX v3 - Login Redesign Override
   ========================================================================== */

:root {
  --ux-bg-a: #050d22;
  --ux-bg-b: #0a1737;
  --ux-bg-c: #0d2146;
  --ux-frost: rgba(244, 249, 255, 0.95);
  --ux-frost-2: rgba(236, 244, 255, 0.92);
  --ux-line-soft: rgba(99, 131, 182, 0.28);
  --ux-line-strong: rgba(99, 131, 182, 0.44);
  --ux-text-main: #0f1d3d;
  --ux-text-muted: #61759b;
  --ux-accent: #3a5bff;
  --ux-accent-2: #2f76f2;
  --ux-shadow-lg: 0 28px 56px rgba(5, 15, 39, 0.48);
  --ux-shadow-md: 0 14px 30px rgba(8, 23, 56, 0.24);
}

body {
  background:
    radial-gradient(1000px 520px at 8% -6%, rgba(58, 91, 255, 0.3), transparent 64%),
    radial-gradient(900px 580px at 88% 102%, rgba(20, 158, 212, 0.22), transparent 66%),
    linear-gradient(155deg, var(--ux-bg-a), var(--ux-bg-b) 48%, var(--ux-bg-c));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(90deg, rgba(159, 181, 214, 0.09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(159, 181, 214, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at center, #000 18%, transparent 94%);
}

.ai-swarm-global {
  z-index: 8;
}

.login-shell {
  width: min(1580px, 96vw);
  gap: 18px;
  padding: 16px 0;
  align-items: center;
}

.hero-panel {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(110, 141, 191, 0.36);
  background:
    radial-gradient(circle at 8% 10%, rgba(65, 103, 240, 0.32), transparent 42%),
    linear-gradient(145deg, rgba(8, 19, 43, 0.94), rgba(9, 22, 45, 0.9));
  box-shadow: var(--ux-shadow-lg);
  padding: clamp(10px, 1.4vw, 16px);
}

.hero-visual {
  border-radius: 24px;
  border: 1px solid rgba(171, 194, 233, 0.3);
  box-shadow:
    inset 0 0 0 1px rgba(196, 214, 243, 0.22),
    0 22px 44px rgba(7, 19, 45, 0.42);
}

.hero-visual img {
  transform: scale(1.08) translate3d(0, 0, 0) rotate(0deg);
  filter: saturate(1.08) contrast(1.07) brightness(0.98);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 11, 28, 0.1), rgba(4, 11, 28, 0.46)),
    radial-gradient(circle at 84% 18%, rgba(74, 222, 128, 0.18), transparent 36%),
    radial-gradient(circle at 18% 82%, rgba(56, 189, 248, 0.14), transparent 34%);
}

.hero-brand {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background:
    linear-gradient(145deg, rgba(8, 20, 43, 0.86), rgba(8, 19, 37, 0.66)),
    radial-gradient(circle at 18% 16%, rgba(245, 158, 11, 0.14), transparent 42%);
  box-shadow: 0 18px 34px rgba(2, 8, 23, 0.36);
  border-radius: 18px;
  padding: 10px 14px 10px 10px;
}

.hero-logo {
  width: 60px;
  height: 60px;
  border-radius: 17px;
  font-size: 1.28rem;
  color: #fff8ea;
  letter-spacing: 0.15em;
  background:
    radial-gradient(circle at 24% 22%, rgba(245, 158, 11, 0.38), transparent 48%),
    linear-gradient(145deg, #3858ff, #0c5f51);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.hero-kicker {
  color: rgba(253, 230, 138, 0.98);
  letter-spacing: 0.12em;
}

.hero-title {
  font-size: clamp(1.2rem, 1.68vw, 1.46rem);
  letter-spacing: 0.01em;
}

.hero-phase {
  border-color: rgba(245, 158, 11, 0.26);
  background: rgba(8, 25, 47, 0.7);
  color: rgba(253, 230, 138, 0.98);
}

.hero-ops {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-ops-item {
  border: 1px solid rgba(133, 165, 212, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(16, 35, 68, 0.78), rgba(11, 29, 57, 0.7));
  padding: 9px 10px;
  box-shadow: 0 10px 20px rgba(4, 12, 31, 0.22);
}

.hero-ops-item p {
  margin: 0;
  color: rgba(171, 196, 236, 0.88);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero-ops-item strong {
  display: block;
  margin-top: 4px;
  color: #e4f0ff;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.form-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 12px;
  padding: 8px 0;
  min-height: 100%;
}

.form-panel::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 14%, rgba(56, 189, 248, 0.12), transparent 34%),
    radial-gradient(circle at 86% 84%, rgba(16, 185, 129, 0.1), transparent 32%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.form-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  width: min(760px, 100%);
  max-height: clamp(360px, 58vh, 620px);
  border-radius: 26px;
  border: 1px solid var(--ux-line-soft);
  background:
    radial-gradient(circle at 90% 10%, rgba(57, 89, 232, 0.08), transparent 34%),
    linear-gradient(155deg, var(--ux-frost), var(--ux-frost-2));
  color: var(--ux-text-main);
  box-shadow: var(--ux-shadow-lg);
  padding: clamp(22px, 2.6vw, 34px);
  overflow: auto;
  z-index: 1;
}

.form-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #3758ff, #2e79f2, #14b8a6);
}

.security-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.security-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(121, 147, 188, 0.36);
  background: rgba(243, 248, 255, 0.84);
  color: #4d6289;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 5px 10px;
}

.eyebrow {
  color: var(--ux-text-muted);
}

.form-card h2 {
  margin: 2px 0 0;
  font-size: clamp(1.9rem, 2.4vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 2px 0 4px;
  color: #556b92;
  font-size: 1.01rem;
  line-height: 1.35;
  max-width: 64ch;
}

.login-form {
  gap: 9px;
}

.login-form label {
  color: #253a62;
  font-weight: 700;
  font-size: 0.93rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(121, 147, 188, 0.38);
  background: rgba(255, 255, 255, 0.9);
  color: #16294d;
  font-size: 1.02rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(58, 91, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(58, 91, 255, 0.16);
  background: rgba(255, 255, 255, 0.98);
}

.remember {
  margin-top: 2px;
  color: #2e446c;
  font-size: 0.86rem;
  font-weight: 600;
}

.remember input {
  width: 16px;
  height: 16px;
}

#login-btn {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(121, 149, 245, 0.34);
  background:
    radial-gradient(circle at 16% 10%, rgba(144, 170, 255, 0.24), transparent 48%),
    linear-gradient(145deg, #3758ff, #2848c7);
  color: #f2f6ff;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 28px rgba(47, 82, 206, 0.3);
}

#login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 32px rgba(42, 79, 201, 0.34);
}

#login-btn:active {
  transform: translateY(0);
}

#login-btn:disabled {
  opacity: 0.74;
}

.error {
  border: 1px solid rgba(214, 105, 122, 0.34);
  border-radius: 10px;
  background: rgba(255, 239, 242, 0.8);
  padding: 8px 10px;
  color: #a3203d;
}

.form-meta {
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(126, 152, 191, 0.34);
  background: rgba(244, 249, 255, 0.84);
  color: #4e648e;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hint-box {
  margin-top: 2px;
  border: 1px solid rgba(122, 149, 190, 0.32);
  border-radius: 12px;
  background: rgba(244, 249, 255, 0.86);
  color: #415b86;
  padding: 10px 12px;
  font-size: 0.8rem;
}

.hint-box:empty {
  display: none;
}

.build-tag {
  margin: 2px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.69rem;
  letter-spacing: 0.04em;
  color: #647ba2;
}

.lead-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(133, 165, 212, 0.28);
  background:
    linear-gradient(150deg, rgba(14, 27, 52, 0.82), rgba(13, 24, 44, 0.76)),
    radial-gradient(circle at 12% 12%, rgba(56, 189, 248, 0.16), transparent 44%);
  box-shadow: 0 14px 30px rgba(6, 17, 40, 0.28);
  padding: 12px 14px;
  color: #d9e7ff;
}

.lead-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lead-kicker {
  margin: 0;
  color: #98b4de;
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.lead-panel h3 {
  margin: 3px 0 0;
  color: #f3f8ff;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.lead-toggle-btn {
  appearance: none;
  border: 1px solid rgba(145, 174, 224, 0.42);
  border-radius: 999px;
  background: rgba(16, 35, 69, 0.54);
  color: #c7dafb;
  font: inherit;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 6px 10px;
  cursor: pointer;
}

.lead-toggle-btn:hover {
  border-color: rgba(176, 201, 241, 0.55);
  background: rgba(20, 42, 82, 0.62);
}

.lead-panel-body {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.lead-intro {
  margin: 0;
  color: #bfcef0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.lead-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lead-card {
  border: 1px solid rgba(145, 174, 224, 0.26);
  border-radius: 12px;
  background: rgba(11, 26, 52, 0.56);
  padding: 8px;
}

.lead-card h4 {
  margin: 0;
  color: #f3f8ff;
  font-size: 0.78rem;
}

.lead-card p {
  margin: 5px 0 0;
  color: #aac0e4;
  font-size: 0.74rem;
  line-height: 1.35;
}

.lead-flow {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  list-style: none;
}

.lead-flow li {
  color: #c7d8f5;
  font-size: 0.77rem;
  line-height: 1.35;
}

.lead-flow strong {
  color: #f5fbff;
}

.lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lead-primary-btn,
.lead-secondary-btn {
  appearance: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
  padding: 8px 12px;
}

.lead-primary-btn {
  border: 1px solid rgba(112, 151, 233, 0.46);
  background: linear-gradient(145deg, #2d4fda, #213a9a);
  color: #ecf4ff;
}

.lead-secondary-btn {
  border: 1px solid rgba(145, 174, 224, 0.4);
  background: rgba(16, 35, 69, 0.54);
  color: #c7dafb;
}

.lead-more {
  border-top: 1px dashed rgba(145, 174, 224, 0.28);
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.lead-more p {
  margin: 0;
  font-size: 0.76rem;
  color: #b6cbed;
}

.lead-panel.is-collapsed .lead-panel-body {
  display: none;
}

@media (max-width: 1120px) {
  .login-shell {
    width: min(100vw - 16px, 1040px);
    gap: 12px;
    padding: 10px 0 16px;
  }

  .hero-panel {
    border-radius: 22px;
    padding: 8px;
  }

  .hero-visual {
    min-height: clamp(300px, 52vh, 500px);
    border-radius: 18px;
  }

  .hero-ops {
    grid-template-columns: 1fr;
  }

  .form-card {
    border-radius: 22px;
    max-height: none;
    width: 100%;
  }

  .lead-panel {
    width: 100%;
  }

  .lead-grid {
    grid-template-columns: 1fr;
  }

  .form-panel::before {
    inset: 6% 2%;
    filter: blur(10px);
  }
}

@media (max-width: 720px) {
  .login-shell {
    width: calc(100vw - 12px);
    gap: 10px;
    padding: 8px 0 12px;
  }

  .hero-panel,
  .form-card {
    border-radius: 18px;
  }

  .hero-visual {
    min-height: clamp(240px, 42vh, 380px);
    border-radius: 16px;
  }

  .hero-brand {
    left: 10px;
    top: 10px;
    gap: 8px;
    padding: 8px 10px 8px 8px;
  }

  .hero-logo {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    font-size: 1.03rem;
  }

  .hero-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .hero-title {
    font-size: 0.96rem;
  }

  .hero-phase {
    font-size: 0.58rem;
    padding: 2px 8px;
  }

  .hero-ops {
    margin-top: 8px;
    gap: 6px;
  }

  .hero-ops-item {
    border-radius: 12px;
    padding: 8px 9px;
  }

  .hero-ops-item p {
    font-size: 0.62rem;
  }

  .hero-ops-item strong {
    font-size: 0.78rem;
  }

  .form-card {
    padding: 16px 14px;
    gap: 9px;
    max-height: none;
  }

  .lead-panel {
    border-radius: 16px;
    padding: 10px 11px;
  }

  .lead-panel h3 {
    font-size: 0.96rem;
  }

  .lead-intro,
  .lead-flow li,
  .lead-more p {
    font-size: 0.72rem;
  }

  .lead-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lead-primary-btn,
  .lead-secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .security-strip {
    gap: 6px;
  }

  .security-pill {
    min-height: 24px;
    font-size: 0.64rem;
    padding: 4px 8px;
  }

  .form-card h2 {
    font-size: clamp(1.55rem, 7.5vw, 1.94rem);
  }

  .subtitle {
    font-size: 0.92rem;
  }

  .login-form label {
    font-size: 0.86rem;
  }

  .login-form input[type="text"],
  .login-form input[type="password"] {
    min-height: 42px;
    font-size: 0.95rem;
  }

  .remember {
    font-size: 0.8rem;
  }

  #login-btn {
    min-height: 44px;
    font-size: 0.94rem;
  }

  .form-meta,
  .hint-box {
    margin-top: 0;
  }

  .meta-pill {
    min-height: 24px;
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  .hint-box {
    padding: 8px 10px;
    font-size: 0.74rem;
  }
}

@media (max-width: 420px) {
  .hero-ops {
    display: none;
  }

  .security-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .security-pill {
    width: 100%;
    justify-content: center;
  }

  .form-meta {
    flex-direction: column;
    gap: 6px;
  }

  .meta-pill {
    width: 100%;
    justify-content: center;
  }
}

@media (max-height: 860px) {
  .security-strip,
  .form-meta {
    display: none;
  }

  .lead-panel {
    display: none;
  }
}

/* ==========================================================================
   UX v4 - Landing + Auth alignment
   ========================================================================== */

.login-shell {
  min-height: calc(100vh - 28px);
  align-items: stretch;
}

.hero-panel,
.form-panel {
  min-height: clamp(620px, 86vh, 920px);
}

.hero-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.hero-visual {
  min-height: 100%;
  height: 100%;
}

.form-panel {
  display: grid;
  align-items: stretch;
  padding: 0;
}

.form-card {
  width: 100%;
  max-height: none;
  height: 100%;
  overflow: visible;
  display: grid;
  align-content: center;
}

.form-story-btn {
  margin-top: 4px;
  min-height: 42px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.landing-story-wrap {
  position: relative;
  z-index: 7;
  width: min(1580px, 96vw);
  margin: 10px auto 36px;
}

.lead-panel {
  width: 100%;
  border-radius: 28px;
  border: 1px solid rgba(133, 165, 212, 0.36);
  background:
    linear-gradient(150deg, rgba(9, 23, 49, 0.88), rgba(7, 19, 41, 0.84)),
    radial-gradient(circle at 10% 8%, rgba(64, 123, 255, 0.18), transparent 38%);
  padding: clamp(20px, 2vw, 30px);
  box-shadow: 0 26px 50px rgba(4, 12, 31, 0.34);
}

.lead-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 19, 40, 0.12), rgba(8, 19, 40, 0.44)),
    radial-gradient(circle at 76% 30%, rgba(56, 189, 248, 0.12), transparent 30%);
  opacity: 0.9;
}

.lead-panel > * {
  position: relative;
  z-index: 1;
}

.lead-panel-head {
  gap: 14px;
}

.lead-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lead-sales-btn {
  appearance: none;
  border: 1px solid rgba(116, 227, 172, 0.48);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(15, 131, 98, 0.8), rgba(8, 92, 77, 0.82));
  color: #dcfff0;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 7px 14px;
  letter-spacing: 0.02em;
}

.lead-sales-btn:hover {
  border-color: rgba(116, 227, 172, 0.64);
  box-shadow: 0 10px 22px rgba(12, 104, 78, 0.28);
}

.lead-panel h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.1rem);
}

.lead-panel-body {
  margin-top: 18px;
  gap: 18px;
}

.lead-hero-band {
  border: 1px solid rgba(147, 176, 224, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(15, 36, 74, 0.76), rgba(12, 30, 62, 0.72)),
    radial-gradient(circle at 12% 12%, rgba(62, 97, 238, 0.18), transparent 36%);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.lead-hero-kicker {
  margin: 0 0 6px;
  color: #9ec2f3;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
}

.lead-hero-band h4 {
  margin: 0;
  color: #f3f8ff;
  font-size: clamp(1.18rem, 1.8vw, 1.54rem);
  line-height: 1.2;
}

.lead-hero-band p {
  margin: 6px 0 0;
  color: #c1d6fa;
  line-height: 1.45;
  font-size: 0.92rem;
  max-width: 76ch;
}

.lead-hero-cta {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.lead-sales-btn-strong {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-width: 1px;
  font-size: 0.84rem;
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(12, 104, 78, 0.3);
}

.lead-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lead-kpi-card {
  border: 1px solid rgba(145, 174, 224, 0.28);
  border-radius: 14px;
  background: linear-gradient(155deg, rgba(11, 29, 58, 0.72), rgba(9, 24, 50, 0.68));
  padding: 10px 12px;
  min-height: 106px;
  display: grid;
  align-content: space-between;
  gap: 4px;
}

.lead-kpi-card p {
  margin: 0;
  color: #94b7e6;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.lead-kpi-card strong {
  color: #f3f8ff;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.lead-kpi-card span {
  color: #b7cceb;
  font-size: 0.78rem;
  line-height: 1.34;
}

.lead-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138, 171, 223, 0.32);
  background: rgba(13, 33, 67, 0.56);
  color: #c6d8f7;
  font-size: 0.74rem;
  font-weight: 600;
}

.lead-intro {
  max-width: 96ch;
  font-size: 1rem;
}

.lead-blog-block {
  border: 1px solid rgba(145, 174, 224, 0.3);
  border-radius: 16px;
  background: rgba(10, 28, 57, 0.56);
  padding: 14px 16px;
}

.lead-blog-block h4 {
  margin: 0 0 10px;
  color: #f4f9ff;
  font-size: 1.06rem;
}

.lead-blog-block p {
  margin: 0;
  color: #c5d7f6;
  line-height: 1.5;
}

.lead-eval-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.lead-eval-grid article {
  border: 1px solid rgba(144, 173, 223, 0.28);
  border-radius: 12px;
  background: rgba(8, 23, 48, 0.56);
  padding: 10px;
}

.lead-eval-grid h5 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: #eff7ff;
}

.lead-eval-grid p {
  margin: 0;
  font-size: 0.79rem;
  color: #b8ceef;
  line-height: 1.35;
}

.lead-flow {
  gap: 8px;
}

.lead-flow li {
  font-size: 0.95rem;
  line-height: 1.45;
}

.lead-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lead-product-card {
  border: 1px solid rgba(145, 174, 224, 0.28);
  border-radius: 14px;
  background: rgba(8, 22, 47, 0.62);
  padding: 12px;
}

.lead-product-kicker {
  margin: 0;
  color: #98b7e8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
}

.lead-product-card h5 {
  margin: 6px 0 4px;
  color: #f3f8ff;
  font-size: 1rem;
}

.lead-product-card p {
  margin: 0;
  font-size: 0.84rem;
  color: #b7cced;
  line-height: 1.4;
}

.lead-actions {
  margin-top: 2px;
}

.lead-primary-btn,
.lead-secondary-btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.lead-more {
  padding-top: 12px;
}

.lead-more p {
  font-size: 0.9rem;
}

.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  top: auto;
  transform: none;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid rgba(116, 227, 172, 0.52);
  background: linear-gradient(145deg, rgba(14, 143, 104, 0.94), rgba(8, 96, 77, 0.96));
  box-shadow: 0 16px 32px rgba(7, 95, 74, 0.36);
  color: #ecfff7;
  text-decoration: none;
  padding: 10px 14px 10px 11px;
}

.whatsapp-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(7, 95, 74, 0.42);
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(6, 79, 63, 0.42);
  border: 1px solid rgba(180, 245, 220, 0.42);
  color: #d5ffef;
}

.whatsapp-icon svg {
  width: 20px;
  height: 20px;
}

.whatsapp-copy {
  display: grid;
}

.whatsapp-copy strong {
  font-size: 0.82rem;
  line-height: 1.1;
}

.whatsapp-copy small {
  font-size: 0.7rem;
  opacity: 0.92;
}

@media (max-width: 1120px) {
  .login-shell {
    min-height: auto;
  }

  .hero-panel,
  .form-panel {
    min-height: auto;
  }

  .form-card {
    height: auto;
  }

  .landing-story-wrap {
    width: min(100vw - 16px, 1040px);
    margin-top: 8px;
  }

  .lead-products-grid {
    grid-template-columns: 1fr;
  }

  .lead-kpi-grid,
  .lead-eval-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-hero-band {
    grid-template-columns: 1fr;
  }

  .lead-hero-cta {
    justify-items: start;
    grid-auto-flow: column;
    gap: 8px;
  }

  .whatsapp-fab {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .whatsapp-fab:hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 720px) {
  .lead-panel {
    border-radius: 18px;
    padding: 14px 12px;
  }

  .lead-panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .lead-head-actions {
    justify-content: flex-start;
  }

  .lead-panel h3 {
    font-size: 1.22rem;
  }

  .lead-kpi-grid,
  .lead-eval-grid {
    grid-template-columns: 1fr;
  }

  .lead-hero-band h4 {
    font-size: 1.04rem;
  }

  .lead-intro {
    font-size: 0.9rem;
  }

  .lead-blog-block {
    border-radius: 12px;
    padding: 11px 10px;
  }

  .lead-flow li,
  .lead-more p {
    font-size: 0.83rem;
  }

  .whatsapp-fab {
    right: 10px;
    left: 10px;
    justify-content: center;
    border-radius: 14px;
    padding: 10px 12px;
  }

  .whatsapp-copy small {
    display: none;
  }

  .lead-hero-cta {
    grid-auto-flow: row;
    width: 100%;
  }

  .lead-sales-btn-strong,
  #focus-login-btn-top {
    width: 100%;
    justify-content: center;
  }
}

/* Cancel old rule that hid the landing for low-height screens. */
@media (max-height: 860px) {
  .lead-panel {
    display: block;
  }
}

/* ==========================================================================
   UX v5 - Legibilidad comercial + contenido extendido
   ========================================================================== */

body {
  background:
    radial-gradient(1200px 620px at -8% -12%, rgba(64, 102, 229, 0.18), transparent 66%),
    radial-gradient(1100px 640px at 110% 108%, rgba(11, 176, 184, 0.14), transparent 68%),
    linear-gradient(150deg, #eef3fc, #f4f8ff 48%, #edf4ff);
  color: #11274a;
}

body::before {
  opacity: 0.08;
}

.ai-swarm-global {
  z-index: 2;
  opacity: 0.2;
}

.login-shell,
.landing-story-wrap {
  position: relative;
  z-index: 8;
}

.form-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98));
  border: 1px solid rgba(168, 186, 217, 0.48);
  box-shadow:
    0 24px 54px rgba(41, 63, 105, 0.18),
    inset 0 0 0 1px rgba(206, 220, 244, 0.28);
}

.form-card h2 {
  color: #172b52;
}

.subtitle {
  color: #4f678f;
}

.security-pill,
.meta-pill {
  background: #f4f8ff;
  border-color: rgba(132, 156, 198, 0.44);
  color: #47618d;
}

.hint-box {
  background: #f4f8ff;
  border-color: rgba(126, 149, 190, 0.4);
  color: #3f5b87;
}

.landing-story-wrap {
  margin-top: 12px;
  margin-bottom: 44px;
}

.lead-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 255, 0.98));
  border: 1px solid rgba(165, 188, 224, 0.46);
  box-shadow:
    0 26px 54px rgba(31, 57, 99, 0.18),
    inset 0 0 0 1px rgba(214, 228, 248, 0.34);
  color: #142b52;
}

.lead-panel::before {
  display: none;
}

.lead-kicker {
  color: var(--azyan-amber-deep);
}

.lead-panel h3 {
  color: #132e59;
}

.lead-intro {
  color: #3d5784;
}

.lead-toggle-btn {
  background: #edf4ff;
  border-color: rgba(130, 155, 198, 0.48);
  color: #365484;
}

.lead-toggle-btn:hover {
  background: #e5eeff;
  border-color: rgba(113, 141, 191, 0.6);
}

.lead-sales-btn {
  border-color: rgba(32, 157, 112, 0.46);
  background: linear-gradient(145deg, #1f9f70, #157f5c);
  color: #ebfff5;
}

.lead-hero-band {
  border-color: rgba(142, 167, 208, 0.5);
  background:
    radial-gradient(circle at 6% 8%, rgba(66, 104, 228, 0.08), transparent 40%),
    linear-gradient(160deg, #f4f8ff, #ecf3ff);
}

.lead-hero-kicker {
  color: var(--azyan-amber-deep);
}

.lead-hero-band h4 {
  color: #17325f;
}

.lead-hero-band p {
  color: #425c88;
}

.lead-kpi-card {
  border-color: rgba(145, 170, 210, 0.5);
  background: linear-gradient(160deg, #f7faff, #eef5ff);
}

.lead-kpi-card p {
  color: #4c6ea2;
}

.lead-kpi-card strong {
  color: #17345f;
}

.lead-kpi-card span {
  color: #486389;
}

.lead-proof-strip span {
  border-color: rgba(133, 159, 202, 0.46);
  background: #eff5ff;
  color: #3f5b86;
}

.lead-card {
  border-color: rgba(145, 171, 210, 0.5);
  background: linear-gradient(160deg, #f9fbff, #eef5ff);
}

.lead-card h4 {
  color: #17335f;
}

.lead-card p {
  color: #405d89;
}

.lead-blog-block {
  border-color: rgba(145, 171, 210, 0.5);
  background: linear-gradient(160deg, #f8fbff, #edf4ff);
}

.lead-blog-block h4 {
  color: #17345f;
}

.lead-blog-block p,
.lead-flow li {
  color: #35507c;
}

.lead-flow strong {
  color: #15315d;
}

.lead-eval-grid article,
.lead-product-card,
.lead-case-metric,
.lead-persona-card,
.lead-faq-item {
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f1f6ff);
  border-radius: 12px;
  padding: 11px;
}

.lead-eval-grid h5,
.lead-product-card h5,
.lead-persona-card h5,
.lead-faq-item h5 {
  color: #16325e;
}

.lead-eval-grid p,
.lead-product-card p,
.lead-persona-card p,
.lead-faq-item p {
  color: #3f5d88;
}

.lead-product-kicker {
  color: #5674a9;
}

.lead-evidence-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 8px;
}

.lead-evidence-list li {
  color: #35507c;
  line-height: 1.45;
  font-size: 0.92rem;
}

.lead-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.lead-case-metrics {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lead-case-metric p {
  margin: 0;
  color: #506d9c;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.lead-case-metric strong {
  margin-top: 6px;
  display: block;
  color: #183561;
  font-size: 0.95rem;
}

.lead-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lead-primary-btn {
  border-color: rgba(63, 95, 212, 0.48);
  background: linear-gradient(145deg, #2f56dd, #2743a7);
  color: #f0f6ff;
}

.lead-secondary-btn {
  border-color: rgba(129, 155, 199, 0.52);
  background: #eef4ff;
  color: #3c5987;
}

.lead-secondary-btn:hover {
  background: #e8f0ff;
}

@media (max-width: 1120px) {
  .lead-persona-grid,
  .lead-case-metrics,
  .lead-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lead-persona-grid,
  .lead-case-metrics,
  .lead-faq-grid {
    grid-template-columns: 1fr;
  }

  .lead-evidence-list li {
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   UX v6 - Dark stage + white blog readability
   ========================================================================== */

body {
  color: #f8fafc;
  background:
    radial-gradient(1000px 520px at 8% -6%, rgba(58, 91, 255, 0.3), transparent 64%),
    radial-gradient(900px 580px at 88% 102%, rgba(20, 158, 212, 0.22), transparent 66%),
    linear-gradient(155deg, #050d22, #0a1737 48%, #0d2146);
}

body::before {
  opacity: 0.24;
}

.ai-swarm-global {
  z-index: 8;
  opacity: 1;
}

.lead-panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 255, 0.98));
  border: 1px solid rgba(165, 188, 224, 0.46);
  box-shadow:
    0 26px 54px rgba(8, 22, 49, 0.34),
    inset 0 0 0 1px rgba(214, 228, 248, 0.34);
  color: #142b52;
}

.lead-panel::before {
  display: none;
}

/* ==========================================================================
   UX v7 - Detalle tecnico visual + fixing overlap CTA/WhatsApp
   ========================================================================== */

.landing-story-wrap {
  padding-bottom: 96px;
}

.lead-more {
  border-top: 1px dashed rgba(145, 171, 210, 0.6);
  padding-top: 14px;
  display: grid;
  gap: 12px;
}

.lead-detail-hero {
  border: 1px solid rgba(145, 171, 210, 0.5);
  background: linear-gradient(160deg, #f7fbff, #eef5ff);
  border-radius: 12px;
  padding: 12px;
}

.lead-detail-hero h4 {
  margin: 0 0 6px;
  color: #17355f;
  font-size: 1rem;
}

.lead-detail-hero p {
  margin: 0;
  color: #405d89;
  line-height: 1.45;
  font-size: 0.9rem;
}

.lead-arch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lead-arch-card {
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f1f6ff);
  border-radius: 12px;
  padding: 12px;
}

.lead-arch-card h5 {
  margin: 0 0 8px;
  color: #16325e;
  font-size: 0.92rem;
}

.lead-arch-card ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 6px;
}

.lead-arch-card li {
  color: #3f5d88;
  line-height: 1.4;
  font-size: 0.84rem;
}

.lead-safeguard-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lead-safeguard-strip article {
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f1f6ff);
  border-radius: 12px;
  padding: 11px;
}

.lead-safeguard-strip h5 {
  margin: 0 0 6px;
  color: #16325e;
  font-size: 0.86rem;
}

.lead-safeguard-strip p {
  margin: 0;
  color: #3f5d88;
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .landing-story-wrap {
    padding-bottom: 72px;
  }

  .lead-arch-grid {
    grid-template-columns: 1fr;
  }

  .lead-safeguard-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .landing-story-wrap {
    padding-bottom: 12px;
  }

  .lead-arch-card li {
    font-size: 0.8rem;
  }

  .whatsapp-fab {
    position: static;
    right: auto;
    left: auto;
    bottom: auto;
    top: auto;
    width: min(100%, 620px);
    margin: 10px auto 0;
    justify-content: center;
    border-radius: 12px;
  }
}

/* ============================================================================
   UX v9 - Azyan brand bridge: navy, amber, evidence-first login
   ============================================================================ */

:root {
  --azyan-bg: #070a11;
  --azyan-panel: rgba(13, 18, 29, 0.94);
  --azyan-panel-2: rgba(17, 24, 38, 0.96);
  --azyan-ink: #f4f1eb;
  --azyan-muted: #aab4c7;
  --azyan-line: rgba(169, 186, 216, 0.28);
  --azyan-gold: #e7b957;
  --azyan-gold-soft: rgba(231, 185, 87, 0.18);
  --azyan-ice: #9ebfe6;
}

html,
body {
  background: var(--azyan-bg);
}

body {
  color: var(--azyan-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 620px at 78% 10%, rgba(190, 132, 43, 0.17), transparent 65%),
    radial-gradient(760px 560px at 6% 92%, rgba(66, 105, 158, 0.18), transparent 64%),
    linear-gradient(145deg, #050810 0%, #0b101b 48%, #10151f 100%);
}

.login-shell {
  width: min(1440px, calc(100vw - 40px));
  gap: 16px;
  padding: 20px 0 28px;
}

.hero-panel,
.form-card,
.lead-panel {
  border-color: var(--azyan-line);
  background: linear-gradient(150deg, rgba(9, 13, 22, 0.98), rgba(16, 23, 36, 0.95));
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.hero-panel {
  border-radius: 20px;
  padding: 10px;
}

.hero-visual {
  border-color: rgba(231, 185, 87, 0.28);
  border-radius: 16px;
  min-height: clamp(520px, 78vh, 820px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
}

.hero-visual img {
  filter: grayscale(0.72) sepia(0.26) saturate(0.82) hue-rotate(165deg) contrast(1.12) brightness(0.52);
  transform: scale(1.08) translate3d(0, 0, 0);
}

.hero-visual::before {
  background:
    radial-gradient(circle at 74% 18%, rgba(231, 185, 87, 0.2), transparent 30%),
    radial-gradient(circle at 20% 78%, rgba(111, 164, 216, 0.16), transparent 34%);
}

.hero-visual::after {
  background:
    linear-gradient(180deg, rgba(4, 7, 13, 0.12), rgba(4, 7, 13, 0.72)),
    radial-gradient(circle at 72% 24%, rgba(231, 185, 87, 0.2), transparent 38%);
}

.hero-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(231, 185, 87, 0.8);
  border-radius: 18px;
  color: #0a0d13;
  background: radial-gradient(circle at 35% 30%, #fff3c7, var(--azyan-gold) 58%, #9c6d23);
  box-shadow: 0 0 34px rgba(231, 185, 87, 0.26);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-kicker,
.lead-kicker,
.security-pill,
.build-tag,
.hero-ops-item p {
  color: var(--azyan-gold);
}

.hero-title,
.hero-phase,
.hero-ops-item strong {
  color: var(--azyan-ink);
}

.form-panel {
  align-self: stretch;
}

.form-card {
  border-radius: 20px;
  padding: clamp(22px, 3vw, 42px);
}

.form-card h2,
.lead-panel h3,
.lead-panel h4,
.lead-panel h5 {
  color: var(--azyan-ink);
}

.subtitle,
.lead-intro,
.lead-card p,
.lead-blog-block p,
.lead-flow li,
.lead-detail-hero p,
.lead-arch-card li,
.lead-safeguard-strip p {
  color: var(--azyan-muted);
}

.login-sales-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  margin-bottom: 22px;
  padding: 13px 16px;
  border: 1px solid rgba(231, 185, 87, 0.72);
  border-radius: 12px;
  color: #10131a;
  background: linear-gradient(135deg, #f2cf78, #c9963a);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(181, 127, 34, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.login-sales-cta:hover,
.login-sales-cta:focus-visible {
  color: #10131a;
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(181, 127, 34, 0.28);
}

.form-card input[type="text"],
.form-card input[type="password"] {
  border-color: var(--azyan-line);
  color: var(--azyan-ink);
  background: rgba(5, 9, 16, 0.72);
}

.form-card input[type="text"]:focus,
.form-card input[type="password"]:focus {
  border-color: var(--azyan-gold);
  box-shadow: 0 0 0 3px var(--azyan-gold-soft);
}

#login-btn,
.lead-sales-btn-strong,
.lead-primary-btn {
  border-color: var(--azyan-gold);
  color: #0a0d13;
  background: linear-gradient(135deg, #f2cf78, #c9963a);
}

.lead-panel {
  color: var(--azyan-ink);
}

.lead-card,
.lead-blog-block,
.lead-detail-hero,
.lead-arch-card,
.lead-safeguard-strip article,
.lead-kpi-card,
.lead-decision-card {
  border-color: var(--azyan-line);
  background: rgba(11, 16, 27, 0.76);
}

.whatsapp-fab {
  border-color: rgba(231, 185, 87, 0.84);
  color: #10131a;
  background: linear-gradient(135deg, #f2cf78, #c9963a);
}

@media (max-width: 720px) {
  .login-shell {
    width: min(100% - 20px, 560px);
    display: flex;
    flex-direction: column;
    padding: 10px 0 18px;
  }

  .form-panel {
    order: 1;
  }

  .hero-panel {
    order: 2;
  }

  .hero-visual {
    min-height: 300px;
    max-height: 46svh;
  }

  .hero-ops {
    grid-template-columns: 1fr;
  }

  .form-card {
    padding: 20px 16px;
  }

  .login-sales-cta {
    margin-bottom: 16px;
  }
}

/* ==========================================================================
   UX v8 - Blog visuals and stronger decision graphics
   ========================================================================== */

.lead-blog-block {
  position: relative;
  overflow: hidden;
}

.lead-blog-block::after {
  content: "";
  position: absolute;
  inset: auto -12% -58% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 90, 232, 0.16), rgba(56, 90, 232, 0));
  pointer-events: none;
}

.lead-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.lead-flow li {
  margin: 0;
  position: relative;
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f2f7ff);
  border-radius: 12px;
  padding: 10px 11px 10px 44px;
  color: #34517e;
}

.lead-flow li strong {
  position: absolute;
  left: 11px;
  top: 9px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3e65ef, #2b4aac);
  color: #f2f7ff;
  font-size: 0.73rem;
  font-weight: 700;
}

.lead-flow-visual {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.lead-flow-visual article {
  position: relative;
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f1f6ff);
  border-radius: 12px;
  padding: 10px;
}

.lead-flow-visual article::after {
  content: "->";
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f89bb;
  font-weight: 700;
  font-size: 0.84rem;
}

.lead-flow-visual article:last-child::after {
  display: none;
}

.lead-flow-visual h5 {
  margin: 0 0 4px;
  color: #16325e;
  font-size: 0.84rem;
}

.lead-flow-visual p {
  margin: 0;
  color: #3f5d88;
  font-size: 0.78rem;
  line-height: 1.35;
}

.lead-visual-block {
  display: grid;
  gap: 10px;
}

.lead-visual-intro {
  margin: -1px 0 0;
  color: #415f8c;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lead-decision-radar {
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f0f6ff);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.lead-radar-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
}

.lead-radar-row span {
  color: #2d4772;
  font-size: 0.8rem;
  font-weight: 600;
}

.lead-radar-row strong {
  color: #1d3770;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lead-radar-track {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: rgba(123, 147, 188, 0.28);
  overflow: hidden;
}

.lead-radar-track i {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2f57df, #1fb0be);
}

.lead-decision-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead-decision-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(145, 170, 210, 0.52);
  background: linear-gradient(165deg, #ffffff, #f1f6ff);
  border-radius: 12px;
  padding: 11px;
}

.lead-decision-card.priority-high {
  border-left: 4px solid rgba(46, 106, 220, 0.88);
}

.lead-decision-card.priority-medium {
  border-left: 4px solid rgba(25, 154, 178, 0.82);
}

.lead-decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lead-decision-head h5 {
  margin: 0;
}

.lead-decision-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid rgba(89, 122, 181, 0.4);
  background: rgba(227, 237, 255, 0.92);
  color: #31518c;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.lead-card-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(123, 147, 188, 0.26);
  overflow: hidden;
}

.lead-card-meter span {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2f57df, #1fa7bf);
}

.lead-card-points {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 4px;
}

.lead-card-points li {
  color: #415e89;
  font-size: 0.8rem;
  line-height: 1.35;
}

.lead-case-meter {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(123, 147, 188, 0.26);
  overflow: hidden;
}

.lead-case-meter span {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #2f57df, #1fa7bf);
}

@media (max-width: 1120px) {
  .lead-flow-visual {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-flow-visual article::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .lead-flow li {
    padding: 9px 10px 9px 40px;
    font-size: 0.88rem;
  }

  .lead-flow li strong {
    width: 22px;
    height: 22px;
    left: 10px;
    top: 8px;
    font-size: 0.68rem;
  }

  .lead-flow-visual {
    grid-template-columns: 1fr;
  }

  .lead-radar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .lead-decision-grid {
    grid-template-columns: 1fr;
  }

  .lead-card-points li,
  .lead-flow-visual p {
    font-size: 0.78rem;
  }
}


/* Final cascade guard: keep the editorial detail blocks in the same dark system. */
.lead-flow li,
.lead-flow-visual article,
.lead-decision-radar,
.lead-decision-card {
  border-color: var(--azyan-line);
  background: rgba(11, 16, 27, 0.82);
  color: var(--azyan-muted);
}

.lead-flow li strong {
  background: linear-gradient(145deg, #f2cf78, #b47e2c);
  color: #10131a;
}

.lead-flow-visual h5,
.lead-decision-card h5,
.lead-radar-row span,
.lead-radar-row strong {
  color: var(--azyan-ink);
}

.lead-flow-visual p,
.lead-visual-intro,
.lead-card-points li {
  color: var(--azyan-muted);
}

.lead-radar-track,
.lead-card-meter {
  background: rgba(169, 186, 216, 0.18);
}

.lead-radar-track i,
.lead-card-meter span {
  background: linear-gradient(90deg, #c9963a, #f2cf78);
}

.lead-decision-badge {
  border-color: rgba(231, 185, 87, 0.46);
  background: rgba(231, 185, 87, 0.12);
  color: var(--azyan-gold);
}

/* Final cascade guard: every commercial card shares the Azyan stage. */
.lead-hero-band,
.lead-kpi-card,
.lead-card,
.lead-blog-block,
.lead-eval-grid article,
.lead-product-card,
.lead-case-metric,
.lead-persona-card,
.lead-faq-item {
  border-color: var(--azyan-line);
  background: rgba(11, 16, 27, 0.82);
  color: var(--azyan-muted);
}

.lead-hero-band h4,
.lead-kpi-card strong,
.lead-card h4,
.lead-blog-block h4,
.lead-eval-grid h5,
.lead-product-card h5,
.lead-persona-card h5,
.lead-faq-item h5,
.lead-case-metric strong {
  color: var(--azyan-ink);
}

.lead-hero-band p,
.lead-kpi-card p,
.lead-kpi-card span,
.lead-card p,
.lead-blog-block p,
.lead-eval-grid p,
.lead-product-card p,
.lead-persona-card p,
.lead-faq-item p,
.lead-case-metric p,
.lead-evidence-list li {
  color: var(--azyan-muted);
}

.lead-proof-strip span,
.lead-toggle-btn,
.lead-secondary-btn {
  border-color: var(--azyan-line);
  background: rgba(17, 24, 38, 0.9);
  color: var(--azyan-ice);
}

.lead-sales-btn {
  border-color: rgba(231, 185, 87, 0.72);
  background: linear-gradient(145deg, #f2cf78, #c9963a);
  color: #10131a;
}

.hero-logo svg {
  width: 48px;
  height: 48px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(101, 215, 242, 0.16));
}
