/* Mia Launcher page */
.ml-page {
  --ml-accent: #38bdf8;
  --ml-accent-2: #fbbf24;
  --ml-accent-dim: rgba(56, 189, 248, 0.12);
  --ml-gold-dim: rgba(251, 191, 36, 0.1);
  --ml-border: #2a2d3a;
  --ml-card: #1a1c24;
  --ml-muted: #a3a3a3;
}

.ml-hero {
  max-width: 56rem;
  margin: 0 auto 2rem;
  padding: 2rem 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--ml-border);
  background:
    radial-gradient(
      ellipse 80% 60% at 50% -20%,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 40% at 100% 100%,
      rgba(251, 191, 36, 0.08),
      transparent 50%
    ),
    var(--ml-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ml-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ml-accent-2);
  margin-bottom: 0.65rem;
}

.ml-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .ml-hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
  }
}

.ml-hero-copy h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.55rem;
  background: linear-gradient(90deg, var(--ml-accent), var(--ml-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ml-hero-copy h2 {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 0.75rem;
}

.ml-hero-lead {
  color: var(--ml-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.ml-hero-visual img {
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 0.75rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  object-fit: contain;
  cursor: zoom-in;
}

.ml-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.25rem 0 1rem;
}

.ml-premium-share {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background:
    radial-gradient(
      ellipse 70% 80% at 100% 50%,
      rgba(251, 191, 36, 0.1),
      transparent 60%
    ),
    rgba(8, 11, 24, 0.75);
}

.ml-premium-share__visual {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.ml-premium-share__img {
  display: block;
  object-fit: contain;
  border-radius: 0.6rem;
}

.ml-premium-share__img--launcher {
  width: 6.875rem;
  height: auto;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.ml-premium-share__img--mia {
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.ml-premium-share__link-icon {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ml-accent-2);
  line-height: 1;
}

.ml-premium-share__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fde68a;
  margin-bottom: 0.3rem;
}

.ml-premium-share__text {
  color: #c4c9d4;
  font-size: 0.86rem;
  line-height: 1.6;
  margin-bottom: 0.55rem;
}

.ml-premium-share__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ml-accent-2);
  text-decoration: none;
}

.ml-premium-share__link:hover {
  text-decoration: underline;
}

.ml-hero-stat,
.ml-jump a,
.ml-cta-tags span,
.ml-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ml-hero-stat {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--ml-border);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.76rem;
  color: var(--ml-muted);
}

.ml-hero-stat svg,
.ml-jump a svg,
.ml-cta-tags svg,
.ml-hero-kicker svg,
.ml-feature-icon svg {
  color: var(--ml-accent);
  stroke: currentColor;
}

.ml-hero-stat strong {
  color: var(--ml-accent-2);
}

.ml-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.ml-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.ml-icon-svg,
.ml-ui-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  display: block;
}

.ml-feature-icon .ml-ui-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.ml-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.ml-btn--primary {
  color: #101014;
  background: linear-gradient(135deg, var(--ml-accent-2), #f59e0b);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.ml-btn--ghost {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ml-border);
}

.ml-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ml-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ml-border);
  background: rgba(255, 255, 255, 0.03);
  color: #d4d4d4;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}

.ml-jump a:hover {
  color: #f5f5f5;
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
}

.ml-section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.5rem;
}

.ml-section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: #f5f5f5;
  margin-bottom: 0.5rem;
}

.ml-section-head p {
  color: var(--ml-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.ml-features {
  margin-bottom: 2.5rem;
}

.ml-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .ml-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .ml-features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ml-feature-card {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  border: 1px solid var(--ml-border);
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.ml-feature-card:hover {
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.ml-feature-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: var(--ml-accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.18);
}

.ml-feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f5f5f5;
  margin-bottom: 0.25rem;
}

.ml-feature-card p {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ml-muted);
}

.ml-changelog {
  margin-bottom: 2.5rem;
}

.ml-changelog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .ml-changelog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ml-changelog-card {
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--ml-border);
  background: linear-gradient(160deg, var(--ml-accent-dim), rgba(0, 0, 0, 0.2));
}

.ml-changelog-card--latest {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(160deg, var(--ml-gold-dim), rgba(0, 0, 0, 0.2));
}

.ml-changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.ml-changelog-head h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #f5f5f5;
}

.ml-version-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--ml-accent-2);
}

.ml-version-badge--muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ml-border);
  color: var(--ml-muted);
}

.ml-changelog-grid.is-loading,
.ml-changelog-grid__loading,
.ml-changelog-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ml-muted);
  font-size: 0.84rem;
  padding: 1.5rem 1rem;
}

.ml-changelog-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ml-changelog-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ml-muted);
}

.ml-changelog-card li::before {
  content: none;
}

.ml-changelog-card li svg {
  margin-top: 0.1rem;
  color: var(--ml-accent);
  flex-shrink: 0;
}

.ml-cta {
  max-width: 40rem;
  margin: 0 auto 1.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border-radius: 1.25rem;
  border: 1px solid rgba(251, 191, 36, 0.22);
  background:
    radial-gradient(
      ellipse 70% 80% at 50% 0%,
      rgba(251, 191, 36, 0.12),
      transparent 60%
    ),
    var(--ml-card);
}

.ml-cta h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #f5f5f5;
}

.ml-cta p {
  color: var(--ml-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.ml-cta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1rem;
}

.ml-cta-tags span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--ml-border);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.74rem;
  color: var(--ml-muted);
}

.ml-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #737373;
  margin-top: 1rem;
}

.ml-disclaimer a {
  color: var(--ml-accent);
  text-decoration: underline;
}

.ml-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ml-overlay.activo {
  opacity: 1;
  pointer-events: auto;
}

.ml-overlay-img {
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 5rem);
  border-radius: 0.75rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  transform: scale(0.7);
  transition: transform 0.3s ease;
}

.ml-overlay.activo .ml-overlay-img {
  transform: scale(1);
}

.ml-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  font-size: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 51;
}
