.apps-page-shell {
  --apps-ink: #f3f0e8;
  --apps-muted: #a3a3a0;
  --apps-dark: #090a0c;
  --apps-line: rgba(255, 255, 255, 0.16);
  --apps-orange: #ff6b35;
  --apps-yellow: #ffc857;
  background: var(--apps-dark);
  color: var(--apps-ink);
}

.apps-page-shell .header {
  background: rgba(9, 10, 12, 0.82);
  border-color: var(--apps-line);
}

.apps-page-shell .main {
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.apps-page-shell .footer {
  max-width: min(1440px, 100%);
  border-color: var(--apps-line);
  color: var(--apps-muted);
}

.apps-page {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.apps-kicker {
  margin: 0;
  color: var(--apps-muted);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.apps-hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  overflow: hidden;
}

.apps-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  width: clamp(340px, 48vw, 690px);
  aspect-ratio: 1;
  right: clamp(-360px, -18vw, -120px);
  top: clamp(-220px, -12vw, -80px);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 40%, #ffe29a 0 4%, var(--apps-yellow) 16%, var(--apps-orange) 43%, #6f1d76 68%, transparent 69%);
  filter: saturate(1.1);
  box-shadow: 0 0 140px rgba(255, 107, 53, 0.24);
}

.apps-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--apps-dark) 0 38%, transparent 72%),
    linear-gradient(0deg, var(--apps-dark) 0, transparent 30%);
}

.apps-hero__copy {
  position: relative;
  z-index: 1;
}

.apps-hero__title {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 5.6rem);
  font-weight: 770;
  letter-spacing: -0.045em;
  line-height: 1;
  white-space: nowrap;
}

.apps-hero__orbit {
  position: absolute;
  z-index: -1;
  right: clamp(-120px, 2vw, 48px);
  top: clamp(10px, 4vw, 64px);
  width: clamp(360px, 58vw, 830px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0 65%, #000 82% 100%);
  mask-image: linear-gradient(to right, transparent 0 65%, #000 82% 100%);
  transform: rotate(-18deg) scaleY(0.54);
}

.apps-hero__orbit-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 18%;
  bottom: 3.5%;
  border-radius: 50%;
  background: var(--apps-ink);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.85);
}

.apps-page-shell .nav__dropdown {
  color: var(--apps-ink);
  background: #16181d;
  border-color: var(--apps-line);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 clamp(24px, 5vw, 72px) clamp(56px, 7vw, 96px);
}

.app-card {
  --app-accent: #ffc857;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--apps-line);
  border-radius: 24px;
  overflow: hidden;
  background: #111318;
}

.app-card--search { --app-accent: #9cbcff; }

.app-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.65;
  overflow: hidden;
  border-bottom: 1px solid var(--apps-line);
}

.app-card__visual--relay {
  background: repeating-radial-gradient(circle at center, transparent 0 48px, #ffc85718 49px 50px, transparent 51px 78px), radial-gradient(ellipse at center, #604820, #171719 72%);
}

.app-card__relay-icon {
  width: 42%;
  height: auto;
  border-radius: 23%;
  transform: rotate(-7deg);
  box-shadow: 0 20px 50px #0008;
}

.app-card__visual--search {
  padding: 28px;
  background: radial-gradient(ellipse at bottom, #283f74, #171d2a 75%);
}

.app-card__screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  box-shadow: 0 16px 40px #0007;
}

.app-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 3vw, 40px);
}

.app-card h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 3.3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.app-card__tagline {
  margin: 0 0 14px;
  font-size: 1.18rem;
  color: var(--app-accent);
  font-weight: 650;
}

.app-card__description {
  margin: 0;
  color: #c4c5cb;
  line-height: 1.65;
}

.app-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  margin: 24px 0 32px;
  list-style: none;
  font-size: 0.8rem;
  color: var(--apps-muted);
}

.app-card__features li::before {
  content: "•";
  margin-right: 8px;
  color: var(--app-accent);
}

.app-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 10px;
  color: #111318;
  background: var(--app-accent);
  font-weight: 720;
  transition: transform 160ms ease, filter 160ms ease;
}

.app-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  text-decoration: none;
}

.app-button:focus-visible {
  outline: 3px solid var(--apps-ink);
  outline-offset: 4px;
}

.app-card__link-note {
  margin: 12px 0 0;
  color: var(--apps-muted);
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 760px) {
  .apps-grid { grid-template-columns: 1fr; }
  .apps-hero::before { right: -300px; }
  .apps-hero__orbit { display: none; }
}

@media (max-width: 560px) {
  .apps-page-shell .nav__links { gap: 10px; }
  .app-card__visual--search { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-button { transition: none; }
}
