:root {
  --wni-orange: #ff5c35;
  --wni-black: #050505;
  --wni-paper: #f4f1ea;
  --wni-white: #fff;
}

.wni-app-suite {
  background: var(--wni-paper);
  color: var(--wni-black);
}

.wni-app-suite > .nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-top: 4px solid var(--wni-orange);
  background: var(--wni-black);
}

.wni-app-suite > .nav .brand-name,
.wni-app-suite > .nav .nav-links a,
.wni-app-suite > .nav .nav-menu-button {
  color: #fff;
}

.wni-app-suite > .nav .menu-button {
  border-color: rgba(255, 255, 255, .38);
}

.wni-app-suite .apps-hero {
  display: grid;
  grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(34px, 5vw, 80px);
  min-height: 650px;
  padding: clamp(56px, 6vw, 88px) max(4vw, 28px);
  background: var(--wni-black);
  overflow: hidden;
}

.wni-app-suite .apps-hero-copy {
  position: relative;
  z-index: 2;
}

.wni-app-suite .apps-hero-copy > span {
  color: var(--wni-orange);
}

.wni-app-suite .apps-hero h1 {
  max-width: 720px;
  margin: 22px 0 26px;
  color: #fff;
  font-size: clamp(58px, 6.7vw, 108px);
  line-height: .86;
  letter-spacing: -.07em;
}

.wni-app-suite .apps-hero h1 em {
  color: var(--wni-orange);
  font-style: normal;
}

.wni-app-suite .apps-hero-copy > p {
  max-width: 640px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
}

.apps-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.apps-hero-actions a {
  border: 1px solid var(--wni-orange);
  border-radius: 999px;
  background: var(--wni-orange);
  padding: 12px 18px;
  color: var(--wni-black);
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.apps-hero-actions span {
  max-width: 260px;
  color: rgba(255, 255, 255, .56);
  font-size: 10px;
  line-height: 1.45;
}

.apps-hero-art {
  position: relative;
  z-index: 1;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 28px;
  background: #111;
  box-shadow: 0 34px 90px rgba(255, 92, 53, .16);
  overflow: hidden;
}

.apps-hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  transform: scale(1.025);
  animation: apps-hero-drift 12s ease-in-out infinite alternate;
}

.apps-hero-art figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 14px;
  background: rgba(5, 5, 5, .86);
  padding: 13px 16px;
  color: #fff;
  backdrop-filter: blur(12px);
}

.apps-hero-art figcaption strong {
  color: var(--wni-orange);
  font-size: 12px;
}

.apps-hero-art figcaption span {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wni-app-suite .apps-filter {
  position: sticky;
  top: 76px;
  z-index: 20;
  gap: 8px;
  border-color: #d7d1c8;
  background: rgba(244, 241, 234, .94);
  padding: 13px max(4vw, 20px);
  backdrop-filter: blur(12px);
}

.wni-app-suite .apps-filter button {
  border-color: #aaa399;
  background: transparent;
  color: var(--wni-black);
}

.wni-app-suite .apps-filter button.active {
  border-color: var(--wni-black);
  background: var(--wni-black);
  color: #fff;
}

.wni-app-suite .apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  padding: 30px max(4vw, 20px) 72px;
}

.wni-app-suite .app-tile,
.wni-app-suite .app-tile.featured,
.wni-app-suite .app-tile.compact {
  display: flex;
  grid-column: auto;
  flex-direction: column;
  min-width: 0;
  min-height: 540px;
  border: 1px solid #161616;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 0 rgba(5, 5, 5, .06);
  overflow: hidden;
  transition: transform .24s ease, box-shadow .24s ease;
}

.wni-app-suite .app-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 0 rgba(255, 92, 53, .18);
}

.wni-app-suite .app-preview {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid #161616;
  background: var(--wni-black);
  overflow: hidden;
}

.wni-app-suite .app-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .75, .25, 1);
}

.wni-app-suite .app-tile:hover .app-preview img {
  transform: scale(1.04);
}

.wni-app-suite .app-preview > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: block;
  width: auto;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  background: rgba(5, 5, 5, .82);
  padding: 8px 10px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.wni-app-suite .cost-preview img,
.wni-app-suite .resume-preview img,
.wni-app-suite .directory-preview img {
  object-position: center;
}

.wni-app-suite .app-copy {
  display: flex;
  flex: 1;
  min-height: 250px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 26px;
}

.wni-app-suite .app-copy small {
  color: #d94321;
}

.wni-app-suite .app-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 2.3vw, 40px);
  line-height: .98;
}

.wni-app-suite .app-copy p {
  color: #5e5a54;
  font-size: 12px;
}

.wni-app-suite .app-copy b {
  margin-top: auto;
  color: #d94321;
}

@keyframes apps-hero-drift {
  0% { transform: scale(1.025) translate3d(-.7%, 0, 0); }
  100% { transform: scale(1.055) translate3d(.7%, -1%, 0); }
}

@media (max-width: 1180px) {
  .wni-app-suite .apps-hero {
    grid-template-columns: 1fr;
  }

  .wni-app-suite .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .wni-app-suite .apps-hero {
    min-height: auto;
    padding: 50px 16px 30px;
  }

  .wni-app-suite .apps-hero h1 {
    font-size: clamp(52px, 16vw, 74px);
  }

  .apps-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .apps-hero-art {
    border-radius: 18px;
  }

  .wni-app-suite .apps-filter {
    position: relative;
    top: auto;
    overflow-x: auto;
  }

  .wni-app-suite .apps-grid {
    grid-template-columns: 1fr;
    padding: 16px 14px 52px;
  }

  .wni-app-suite .app-tile,
  .wni-app-suite .app-tile.featured,
  .wni-app-suite .app-tile.compact {
    min-height: 500px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-hero-art img {
    animation: none;
  }

  .wni-app-suite .app-tile,
  .wni-app-suite .app-preview img {
    transition: none;
  }
}
