/**
 * Mobile / tablet — hide hero dashboard visuals (≤1024px)
 */

.hero__visual-mobile {
  display: none;
}

@media (max-width: 1024px) {
  .landing-page .hero {
    min-height: auto !important;
    height: auto !important;
    padding-bottom: 20px !important;
  }

  .landing-page .hero__content > .hero__visual,
  .landing-page .hero__content > .hero__visual-mobile {
    margin: 0 !important;
  }

  .landing-page .hero__visual,
  .landing-page .hero__visual--desktop,
  .landing-page .hero__visual-mobile {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: none !important;
  }

  .hero-mobile-card {
    position: relative;
    width: 100%;
    padding: 14px 14px 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(0, 212, 255, 0.22);
    background: linear-gradient(155deg, rgba(8, 20, 38, 0.96), rgba(4, 12, 26, 0.94));
    box-shadow:
      0 12px 36px rgba(0, 0, 0, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    box-sizing: border-box;
  }

  .hero-mobile-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
  }

  .hero-mobile-card__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
  }

  .hero-mobile-card__stat,
  .hero-mobile-card__wide {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.16);
    padding: 12px;
    box-sizing: border-box;
  }

  .hero-mobile-card__wide {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .hero-mobile-card__label {
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .hero-mobile-card__value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cyan);
    line-height: 1.2;
    word-break: break-word;
  }

  .hero-mobile-card__bar {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: rgba(0, 212, 255, 0.35);
  }

  .hero-mobile-card__bar--alt {
    background: rgba(0, 114, 255, 0.4);
  }
}

@media (max-width: 480px) {
  .hero-mobile-card {
    padding: 12px 12px 12px 16px;
    border-radius: 12px;
  }

  .hero-mobile-card__row {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .hero-mobile-card__stat,
  .hero-mobile-card__wide {
    padding: 10px 12px;
  }

  .hero-mobile-card__value {
    font-size: 0.98rem;
  }
}

@media (min-width: 1025px) {
  .hero__visual-mobile {
    display: none !important;
  }
}

[data-theme="light"] .hero-mobile-card {
  background: linear-gradient(155deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.98));
  border-color: rgba(0, 136, 179, 0.22);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-mobile-card__stat,
[data-theme="light"] .hero-mobile-card__wide {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 136, 179, 0.18);
}

[data-theme="light"] .hero-mobile-card__value {
  color: var(--blue);
}

[data-theme="light"] .hero-mobile-card__bar {
  background: rgba(0, 136, 179, 0.35);
}

[data-theme="light"] .hero-mobile-card__bar--alt {
  background: rgba(0, 102, 204, 0.4);
}
