/* Stage 1: performance, readability and interaction refinements */

.section-video[poster],
.hero-video[poster] {
  opacity: 1;
}

.hero-copy {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  text-shadow: 0 0.15rem 1rem rgba(0, 0, 0, 0.95);
}

.hero h1 {
  text-shadow: 0 0.2rem 1.8rem rgba(0, 0, 0, 0.72);
}

.stat-card {
  background: rgba(4, 3, 6, 0.5);
}

.stat-card span,
.stat-card p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.7rem;
  line-height: 1.35;
}

.app-card-bottom > div > p:last-child,
.support-panel p,
.support-note {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.55;
}

.direction-icon {
  display: inline-grid;
  width: 1.2rem;
  height: 1.2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  font-size: 0.68rem;
  line-height: 1;
}

.web-footer p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
}

@media (max-width: 800px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header.is-open .site-nav a,
  .web-header.is-open .web-nav a {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video,
  .apps-video {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
  }
}

.poster-only {
  opacity: 1 !important;
  animation: none !important;
}

/* Keep the apps and websites desktop navigation visually consistent. */
@media (min-width: 801px) {
  .site-header {
    min-height: 4rem;
    align-items: center;
    padding: 0.5rem 0.6rem 0.5rem 1.15rem;
    border-radius: 999px;
    background: rgba(5, 4, 7, 0.34);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header::before {
    display: block;
  }

  .site-header.is-scrolled {
    background: rgba(5, 4, 7, 0.84);
    box-shadow:
      0 1rem 3rem rgba(0, 0, 0, 0.3),
      inset 0 1px 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .site-nav {
    position: relative;
    top: auto;
    left: auto;
    min-height: 0;
    gap: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav a {
    min-width: 0;
    padding: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    font-weight: 400;
  }

  .site-nav a:first-child {
    color: #fff;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: transparent;
    color: #fff;
  }

  .site-header .site-nav .mobile-project-cta {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.7rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #fff;
    transition:
      border-color 180ms ease,
      transform 180ms ease;
  }

  .site-header .site-nav .mobile-project-cta:hover,
  .site-header .site-nav .mobile-project-cta:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.03);
  }
}
