.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 182px;
  padding: 0;
  border-color: rgba(100, 116, 139, 0.42);
  background:
    radial-gradient(ellipse at 7% 50%, rgba(239, 68, 68, 0.14), transparent 29%),
    radial-gradient(ellipse at 50% -28%, rgba(245, 158, 11, 0.09), transparent 35%),
    radial-gradient(ellipse at 93% 50%, rgba(34, 197, 94, 0.11), transparent 29%),
    radial-gradient(ellipse at 50% 58%, rgba(59, 130, 246, 0.055), transparent 44%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.995), rgba(3, 9, 20, 0.998));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(148, 163, 184, 0.05),
    0 20px 54px rgba(0, 0, 0, 0.30),
    0 0 48px rgba(59, 130, 246, 0.025);
}

/* Branded RGB edge. */
.hero-card::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(239, 68, 68, 0.98),
    rgba(245, 158, 11, 0.92) 50%,
    rgba(34, 197, 94, 0.97));
  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Vignette and subtle glass sheen. */
.hero-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.028), transparent 22%, transparent 78%, rgba(255, 255, 255, 0.016)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 36%),
    radial-gradient(ellipse at 50% 56%, rgba(148, 163, 184, 0.042), transparent 56%);
}

.hero-card .brand-lockup {
  position: static;
  display: block;
  width: 100%;
  min-height: 182px;
  margin: 0;
}

/* Soft central illumination makes the wordmark feel like the focal surface. */
.hero-card .brand-lockup::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: min(860px, 62vw);
  height: 156px;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(ellipse, rgba(147, 197, 253, 0.09), rgba(99, 102, 241, 0.026) 44%, transparent 72%);
  filter: blur(9px);
  transform: translate(-50%, -50%);
  animation: otl-hero-breathe 7s ease-in-out infinite;
}

/* A restrained RGB rail anchors the composition beneath the lockup. */
.hero-card .brand-lockup::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 50%;
  width: min(620px, 46%);
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(239, 68, 68, 0.22) 18%,
    rgba(245, 158, 11, 0.24) 50%,
    rgba(34, 197, 94, 0.22) 82%,
    transparent);
  box-shadow: 0 0 14px rgba(148, 163, 184, 0.055);
  transform: translateX(-50%);
}

/* The lockup itself is centered on the full banner. Its width follows the
   wordmark, so the tagline is centered against the title's actual box rather
   than against a much wider invisible container. */
.hero-card .brand-lockup > div:last-child {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: max-content;
  max-width: calc(100% - 460px);
  min-width: 0;
  justify-items: stretch;
  padding: 6px 0 10px;
  overflow: visible;
  text-align: center;
  transform: translate(-50%, -50%);
}

.hero-card h1 {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0.06em 0.035em 0.14em;
  overflow: visible;
  color: #f8fafc;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #d7e1ed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(3rem, 4.55vw, 4.55rem);
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: -0.052em;
  text-align: center;
  white-space: nowrap;
  filter:
    drop-shadow(0 10px 26px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 18px rgba(226, 232, 240, 0.035));
}

.otl-hero-tagline {
  display: block;
  width: 100%;
  margin: -2px auto 0;
  color: #d6e0ec;
  font-size: clamp(1.04rem, 1.3vw, 1.22rem);
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.36);
}

.hero-card > p {
  display: none !important;
}

/* Compact glass signal emblem. */
.hero-card .signal-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 36px;
  display: grid;
  width: auto !important;
  height: auto;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(125, 150, 184, 0.40);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.90), rgba(2, 6, 23, 0.84));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.085),
    inset 0 -14px 26px rgba(0, 0, 0, 0.18),
    0 13px 32px rgba(0, 0, 0, 0.31),
    0 0 32px rgba(96, 165, 250, 0.05);
  transform: translateY(-50%);
}

.hero-card .signal-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(148, 163, 184, 0.085), transparent 65%);
  filter: blur(10px);
}

.hero-card .signal-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 14px;
  pointer-events: none;
}

.hero-card .signal-dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.22),
    0 0 17px currentColor;
}

/* Balance the emblem by vertically centering Account on the opposite edge. */
.hero-card .otl-account-launcher {
  top: 50% !important;
  right: 28px !important;
  margin-top: -20px;
  border-color: rgba(125, 150, 184, 0.36);
  background: rgba(2, 6, 23, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.24),
    0 0 24px rgba(96, 165, 250, 0.025);
}

.hero-card .otl-account-launcher:hover {
  border-color: rgba(147, 197, 253, 0.52);
  background: rgba(10, 18, 34, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 12px 32px rgba(0, 0, 0, 0.27),
    0 0 24px rgba(96, 165, 250, 0.055);
}

@keyframes otl-hero-breathe {
  0%, 100% { opacity: 0.68; transform: translate(-50%, -50%) scale(0.98); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.025); }
}

@media (max-width: 1080px) {
  .hero-card .brand-lockup > div:last-child {
    max-width: calc(100% - 390px);
  }

  .hero-card h1 {
    font-size: clamp(2.7rem, 5.65vw, 4rem);
  }
}

@media (max-width: 860px) {
  .hero-card .signal-mark {
    display: none;
  }

  .hero-card .brand-lockup > div:last-child {
    max-width: calc(100% - 250px);
  }

  .hero-card .brand-lockup::after {
    width: 52%;
  }
}

@media (max-width: 680px) {
  .hero-card {
    min-height: 0;
    padding: 22px 20px;
  }

  .hero-card .brand-lockup {
    position: relative;
    min-height: 0;
  }

  .hero-card .brand-lockup::before,
  .hero-card .brand-lockup::after {
    display: none;
  }

  .hero-card .brand-lockup > div:last-child {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    width: 100%;
    max-width: none;
    padding: 0;
    transform: none;
  }

  .hero-card h1 {
    width: auto;
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.45rem);
    line-height: 1.06;
    white-space: normal;
  }

  .otl-hero-tagline {
    margin-top: 2px;
    font-size: clamp(1rem, 4.4vw, 1.14rem);
  }

  .hero-card .otl-account-launcher {
    top: auto !important;
    right: auto !important;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-card .brand-lockup::before {
    animation: none;
  }
}
