/* ═══════════════════════════════════════════════════════════
   apps-page.css — /apps (Ajvika App Directory)
   Built on main.css + theme-toggle.css variables, so the light
   and dark themes work like the rest of ajvika.com.

   TEXT EFFECT CLASSES (driven by assets/js/apps-page.js)
     .fx-words      word-by-word blur-rise reveal   (data-delay="ms")
     .fx-shimmer    moving gradient sweep through the text
     .fx-type       typewriter cycling data-words='["a","b"]'
     .fx-scramble   decode/scramble; data-scramble-on="load|hover"
                    (default: when scrolled into view)
     .fx-count      count-up number to data-to
     .fx-letters    letter wave when the card is hovered
     .fx-underline  underline that draws itself in
     .fx-fade       fade-up on load with --d delay
   All motion is switched off under prefers-reduced-motion.
   ═══════════════════════════════════════════════════════════ */

.apps-page #theme-toggle { display: none; }   /* page is always dark */

.apps-page {
  --ap-line: color-mix(in srgb, var(--default-color), transparent 86%);
  --ap-soft: color-mix(in srgb, var(--accent-color), transparent 88%);
  --ap-gold: #e0a92a;
  --ap-gold-soft: rgba(224, 169, 42, .14);
  --ap-card: var(--surface-color);
}
html[data-theme="dark"] .apps-page { --ap-gold: #fbbf24; --ap-gold-soft: rgba(251, 191, 36, .14); }

/* Buttons outside .hero get the hero look (same as /products) */
.apps-page .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 15px;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 6px;
  transition: .3s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .1);
}
.apps-page .btn-get-started:hover { background: color-mix(in srgb, var(--accent-color), black 12%); color: var(--contrast-color); }

/* ── Status dots ─────────────────────────────────────────── */
.apps-page .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-color); display: inline-block; flex: none; }
.apps-page .dot.live { animation: ap-pulse 2s infinite; }
.apps-page .dot.beta { background: var(--ap-gold); }
@keyframes ap-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-color), transparent 45%); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ════════════════ HERO ════════════════ */
.apps-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 84px;
  background:
    radial-gradient(900px 500px at 82% -10%, color-mix(in srgb, var(--accent-color), transparent 80%), transparent 60%),
    radial-gradient(700px 600px at -5% 120%, color-mix(in srgb, var(--accent-color), transparent 85%), transparent 55%),
    var(--background-color);
}
.apps-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ap-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ap-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 420px at 70% 25%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 420px at 70% 25%, #000, transparent 75%);
  animation: ap-grid 18s linear infinite;
}
@keyframes ap-grid { to { background-position: 46px 46px, 46px 46px; } }

.apps-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; pointer-events: none;
  background: var(--accent-color);
}
.apps-orb-1 { width: 260px; height: 260px; right: 6%; top: 12%; animation: ap-float 9s ease-in-out infinite alternate; }
.apps-orb-2 { width: 180px; height: 180px; right: 28%; bottom: -40px; opacity: .25; background: #7c5cff; animation: ap-float 11s ease-in-out infinite alternate-reverse; }
@keyframes ap-float { to { transform: translate(-30px, 24px) scale(1.12); } }

.apps-eyebrow {
  font-family: "Courier New", monospace;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-color);
  display: flex; align-items: center; gap: 10px; margin-bottom: 22px;
}
.apps-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

.apps-title {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: clamp(36px, 6.2vw, 66px);
  line-height: 1.04;
  letter-spacing: -1.2px;
  color: var(--heading-color);
  max-width: 15ch;
  margin: 0;
}
.apps-title > span { display: block; }

.apps-typeline {
  margin: 18px 0 0;
  font-family: var(--heading-font);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  min-height: 1.5em;
}
.fx-type { color: var(--accent-color); }
.fx-caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 3px;
  background: var(--accent-color); vertical-align: -0.15em;
  animation: ap-caret 1s steps(1) infinite;
}
@keyframes ap-caret { 50% { opacity: 0; } }

.apps-lede {
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 58ch;
  margin: 16px 0 0;
}

.apps-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.apps-stat {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface-color), transparent 30%);
  border: 1px solid var(--ap-line);
  color: var(--default-color); font-size: 14px;
  backdrop-filter: blur(6px);
  transition: border-color .25s, transform .25s;
}
a.apps-stat:hover { border-color: var(--accent-color); transform: translateY(-2px); color: var(--default-color); }
.apps-stat b { font-family: var(--heading-font); color: var(--heading-color); font-size: 16px; min-width: 1ch; font-variant-numeric: tabular-nums; }
.apps-stat i { color: var(--accent-color); }

/* ── Ticker ──────────────────────────────────────────────── */
.apps-ticker {
  overflow: hidden;
  border-block: 1px solid var(--ap-line);
  background: color-mix(in srgb, var(--accent-color), transparent 94%);
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.apps-ticker-track { display: flex; gap: 22px; width: max-content; animation: ap-marquee 38s linear infinite; }
.apps-ticker:hover .apps-ticker-track { animation-play-state: paused; }
.apps-ticker span { font-family: var(--heading-font); font-weight: 700; font-size: 15px; color: var(--heading-color); white-space: nowrap; letter-spacing: .3px; }
.apps-ticker i { font-style: normal; color: var(--accent-color); }
@keyframes ap-marquee { to { transform: translateX(-50%); } }

/* ── Filter bar ──────────────────────────────────────────── */
.apps-filterbar {
  position: sticky; top: var(--ap-header-h, 0px); z-index: 20;
  padding: 12px 0;
  background: color-mix(in srgb, var(--background-color), transparent 12%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ap-line);
}
.apps-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.apps-filters button {
  border: 1px solid var(--ap-line); background: transparent;
  color: var(--default-color); font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, color .2s, border-color .2s;
}
.apps-filters button small { font-weight: 700; opacity: .7; }
.apps-filters button:hover { border-color: var(--accent-color); color: var(--accent-color); }
.apps-filters button.is-active { background: var(--accent-color); border-color: var(--accent-color); color: var(--contrast-color); }
.apps-search {
  display: flex; align-items: center; gap: 8px; margin: 0;
  border: 1px solid var(--ap-line); border-radius: 999px; padding: 6px 14px;
  background: var(--surface-color); min-width: min(260px, 100%);
}
.apps-search:focus-within { border-color: var(--accent-color); }
.apps-search i { color: color-mix(in srgb, var(--default-color), transparent 40%); }
.apps-search input { border: 0; outline: 0; background: transparent; color: var(--default-color); font-size: 14px; width: 100%; }

/* ════════════════ SECTIONS + CARDS ════════════════ */
.apps-section { padding: 56px 0 8px; }
.apps-section[hidden] { display: none; }
.apps-section-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.apps-section-head h2 {
  font-family: var(--heading-font); font-weight: 700; font-size: 28px; letter-spacing: -.4px;
  display: flex; align-items: center; gap: 12px; margin: 0; color: var(--heading-color);
}
.apps-section-head .count { font-family: "Courier New", monospace; font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 35%); }
.apps-section-head p { margin: 0 0 0 auto; max-width: 44ch; font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 20%); }

.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 20px; }

.app-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate;
  background: var(--ap-card);
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .05);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.app-card[hidden] { display: none; }
/* cursor spotlight */
.app-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent-color), transparent 86%), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.app-card:hover::before { opacity: 1; }
.app-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent-color), transparent 55%); box-shadow: 0 22px 44px -22px rgba(0, 0, 0, .45); }
.app-card.is-testing:hover { border-color: color-mix(in srgb, var(--ap-gold), transparent 50%); }
.app-card.is-testing::before { background: radial-gradient(380px circle at var(--mx) var(--my), var(--ap-gold-soft), transparent 60%); }

/* featured (Ajvika Connect) — animated gradient border */
.app-card.is-featured { border-color: transparent; background:
  linear-gradient(var(--ap-card), var(--ap-card)) padding-box,
  conic-gradient(from var(--ap-angle, 0deg), var(--accent-color), #7c5cff, var(--accent-color), transparent 70%, var(--accent-color)) border-box;
  animation: ap-spin 6s linear infinite;
}
@property --ap-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ap-spin { to { --ap-angle: 360deg; } }

.app-card-top { display: flex; align-items: flex-start; gap: 14px; }
.app-glyph {
  width: 52px; height: 52px; flex: none; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent-color), transparent 80%), color-mix(in srgb, var(--accent-color), transparent 92%));
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 65%);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.app-card:hover .app-glyph { transform: rotate(-6deg) scale(1.08); }
.app-card.is-testing .app-glyph { background: linear-gradient(150deg, var(--ap-gold-soft), transparent); border-color: color-mix(in srgb, var(--ap-gold), transparent 60%); }
.app-glyph.is-icon { padding: 0; overflow: hidden; background: #0f1f33; }
.app-glyph { position: relative; }
.app-glyph img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
/* Apps without their own Play icon show the Ajvika logo + an emoji badge */
.app-glyph.is-brand, .app-card.is-testing .app-glyph.is-brand { background: #ffffff; border-color: color-mix(in srgb, var(--accent-color), transparent 60%); }
.app-glyph.is-brand img { object-fit: contain; padding: 6px; }
.app-glyph.is-icon { overflow: visible; }
.app-glyph.is-icon > img { overflow: hidden; }
.app-glyph-badge {
  position: absolute; right: -7px; bottom: -7px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; line-height: 1;
  background: var(--surface-color); border: 1px solid var(--ap-line);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.apps-hub-node { overflow: visible !important; }
.apps-hub-node img { border-radius: 13px; background: #fff; object-fit: contain; }
.apps-hub-node .app-glyph-badge { right: -6px; bottom: -6px; width: 22px; height: 22px; font-size: 12px; }

.app-title-block { flex: 1; min-width: 0; }
.app-title-block h3 { font-family: var(--heading-font); font-weight: 700; font-size: 19px; letter-spacing: -.3px; margin: 0; color: var(--heading-color); }
.app-tagline { color: var(--accent-color); font-weight: 500; font-size: 13.5px; margin-top: 2px; }
.app-card.is-testing .app-tagline { color: var(--ap-gold); }

.app-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.app-pill, .app-plat {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Courier New", monospace; font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; font-weight: 600;
}
.app-pill.live { background: var(--ap-soft); color: var(--accent-color); border: 1px solid color-mix(in srgb, var(--accent-color), transparent 65%); }
.app-pill.beta { background: var(--ap-gold-soft); color: var(--ap-gold); border: 1px solid color-mix(in srgb, var(--ap-gold), transparent 60%); }
.app-plat { color: color-mix(in srgb, var(--default-color), transparent 25%); border: 1px solid var(--ap-line); gap: 5px; }

.app-desc { color: color-mix(in srgb, var(--default-color), transparent 12%); font-size: 14.5px; flex: 1; margin: 0; }

.app-addr {
  font-family: "Courier New", monospace; font-size: 12.5px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background: color-mix(in srgb, var(--default-color), transparent 95%);
  border: 1px solid var(--ap-line); border-radius: 9px;
  padding: 8px 12px; display: flex; align-items: center; gap: 8px; word-break: break-all;
  transition: border-color .2s, color .2s;
}
.app-addr:hover { border-color: var(--accent-color); color: var(--accent-color); }
.app-addr .bi-arrow-up-right { transition: transform .25s; }
.app-addr:hover .bi-arrow-up-right { transform: translate(2px, -2px); }

.app-play-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.app-play { display: inline-flex; flex-direction: column; align-items: center; gap: 0; transition: transform .2s; }
.app-play:hover { transform: translateY(-2px); }
.app-play img { height: 46px; width: auto; }
.app-play small { font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--default-color), transparent 25%); margin-top: -4px; }

.app-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; padding: 10px 16px; border-radius: 10px; transition: all .2s;
}
.app-btn i { transition: transform .25s; }
.app-btn:hover i { transform: translateX(3px); }
.app-btn.primary { background: var(--accent-color); color: var(--contrast-color); }
.app-btn.primary:hover { background: color-mix(in srgb, var(--accent-color), black 14%); color: var(--contrast-color); }
.app-btn.ghost { color: var(--accent-color); border: 1px solid color-mix(in srgb, var(--accent-color), transparent 60%); }
.app-btn.ghost:hover { background: var(--ap-soft); }
.app-card.is-testing .app-btn.ghost { color: var(--ap-gold); border-color: color-mix(in srgb, var(--ap-gold), transparent 55%); }
.app-card.is-testing .app-btn.ghost:hover { background: var(--ap-gold-soft); }
.app-note { font-size: 12.5px; font-style: italic; color: color-mix(in srgb, var(--default-color), transparent 30%); }

.apps-empty { text-align: center; padding: 50px 0 10px; color: color-mix(in srgb, var(--default-color), transparent 20%); }
.apps-empty button { background: none; border: 0; color: var(--accent-color); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ════════════════ CONNECT HUB ════════════════ */
.apps-connect { padding: 80px 0 40px; }
.apps-connect-copy { font-size: 16px; color: color-mix(in srgb, var(--default-color), transparent 10%); max-width: 52ch; }
.apps-hub { position: relative; width: min(380px, 86vw); aspect-ratio: 1; margin: 0 auto; }
.apps-hub::before, .apps-hub::after {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent-color), transparent 55%);
  animation: ap-rotate 40s linear infinite;
}
.apps-hub::after { inset: 30%; animation-direction: reverse; animation-duration: 28s; }
.apps-hub-core {
  position: absolute; inset: 36%; border-radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 2px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 70%), var(--surface-color) 70%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 50%);
  box-shadow: 0 0 60px color-mix(in srgb, var(--accent-color), transparent 60%);
  animation: ap-breathe 3.2s ease-in-out infinite;
}
.apps-hub-core img { width: 42%; height: auto; }
.apps-hub-core span { font-family: var(--heading-font); font-weight: 700; font-size: 12px; color: var(--heading-color); letter-spacing: .5px; }
@keyframes ap-breathe { 50% { box-shadow: 0 0 90px color-mix(in srgb, var(--accent-color), transparent 45%); } }
@keyframes ap-rotate { to { transform: rotate(360deg); } }

.apps-hub-node {
  --r: calc(min(380px, 86vw) * .42);
  position: absolute; left: 50%; top: 50%;
  width: 48px; height: 48px; margin: -24px 0 0 -24px;
  border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; font-size: 22px;
  background: var(--surface-color); border: 1px solid var(--ap-line);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
  --a: calc(var(--i) * 360deg / var(--n, 8) + var(--ap-orbit) * var(--dir, 1));
  /* move round the ring, then turn back by the same angle so the icon stays upright */
  transform: rotate(var(--a)) translate(0, calc(var(--r) * -1)) rotate(calc(var(--a) * -1));
  animation: ap-bob 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.4s);
}
.apps-hub-node img { width: 100%; height: 100%; object-fit: cover; }
@keyframes ap-bob { 50% { translate: 0 -6px; } }

/* ════════════════ CTA ════════════════ */
.apps-cta {
  border-radius: 24px; padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background:
    radial-gradient(600px 300px at 92% 0%, color-mix(in srgb, var(--accent-color), transparent 78%), transparent 60%),
    var(--surface-color);
  border: 1px solid var(--ap-line);
}
.apps-cta h2 { font-family: var(--heading-font); font-size: clamp(24px, 3vw, 32px); letter-spacing: -.5px; max-width: 20ch; margin: 0; color: var(--heading-color); }
.apps-cta p { margin: 8px 0 0; max-width: 46ch; font-size: 15px; color: color-mix(in srgb, var(--default-color), transparent 15%); }

/* ════════════════ TEXT EFFECTS ════════════════ */

/* word reveal */
.fx-words .fx-w { display: inline-block; white-space: pre; }
.fx-ready .fx-words .fx-w,
.fx-words.fx-armed .fx-w {
  opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(8px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1), filter .7s;
  transition-delay: calc(var(--wd, 0ms) + var(--wi) * 70ms);
}
.fx-words.fx-in .fx-w { opacity: 1; transform: none; filter: none; }

/* gradient shimmer */
.fx-shimmer, .fx-shimmer .fx-w {
  background: linear-gradient(100deg,
    var(--accent-color) 0%, var(--accent-color) 35%,
    #b6f2ff 50%,
    var(--accent-color) 65%, #7c5cff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: ap-shimmer 4.5s ease-in-out infinite;
}
html[data-theme="light"] .fx-shimmer, html[data-theme="light"] .fx-shimmer .fx-w {
  background-image: linear-gradient(100deg, #0189b3 0%, #02a9d4 35%, #6fdcff 50%, #02a9d4 65%, #5b3fd6 100%);
}
@keyframes ap-shimmer { 0%, 15% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }

/* letter wave on card hover */
.fx-letters .fx-l { display: inline-block; white-space: pre; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), color .3s; transition-delay: calc(var(--li) * 22ms); }
.app-card:hover .fx-letters .fx-l { transform: translateY(-3px); color: var(--accent-color); }
.app-card.is-testing:hover .fx-letters .fx-l { color: var(--ap-gold); }

/* drawn underline */
.fx-underline {
  color: var(--accent-color); font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .5s cubic-bezier(.2, .7, .2, 1);
  padding-bottom: 1px;
}
.fx-underline.fx-in, .fx-underline:hover { background-size: 100% 2px; }

/* scramble keeps width steady */
.fx-scramble { font-variant-numeric: tabular-nums; }
.fx-scramble .fx-glitch { color: var(--accent-color); opacity: .8; }

/* load fade */
.fx-fade { animation: ap-fadeup .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
@keyframes ap-fadeup { from { opacity: 0; transform: translateY(16px); } }

/* ════════════════ RESPONSIVE ════════════════ */
@media (max-width: 768px) {
  .apps-hero { padding: 64px 0 60px; }
  .apps-section-head p { margin-left: 0; flex-basis: 100%; }
  .apps-cta { padding: 30px 22px; }
  .apps-filterbar { position: static; }
  .apps-search { flex: 1; }
  .apps-orb-1 { width: 160px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .apps-page *, .apps-page *::before, .apps-page *::after { animation: none !important; transition: none !important; }
  .fx-words .fx-w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .fx-underline { background-size: 100% 2px; }
}

/* Google Play badge fallback (if the badge image can't load) */
.app-play-fallback {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; margin: 3px 0;
  padding: 0 14px; border-radius: 8px; background: #000; color: #fff;
  font-size: 13px; font-weight: 600; border: 1px solid #555; white-space: nowrap;
}
.app-play-fallback i { color: #34d399; font-size: 16px; }

/* Format chips (Ajvika Office) */
.app-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.app-tags span { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; color: #fff; background: #5b6b80; }
.app-tags span:nth-child(1) { background: #2b6fd6; }
.app-tags span:nth-child(2) { background: #1e9e57; }
.app-tags span:nth-child(3) { background: #d4562a; }
.app-tags span:nth-child(4) { background: #e02f3a; }
.app-tags span:nth-child(5) { background: #7c5cff; }
.app-tags span:nth-child(6) { background: color-mix(in srgb, var(--accent-color), #0a1420 55%); color: var(--accent-color); }

/* Hub: inner ring of app icons + hover */
.apps-hub-node { z-index: 1; transition: box-shadow .25s, border-color .25s; }
.apps-hub-node:hover { z-index: 2; border-color: var(--accent-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color), transparent 60%), 0 8px 22px rgba(0,0,0,.3); }
.apps-hub-node.is-inner { --r: calc(min(380px, 86vw) * .255); width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 11px; }
.apps-hub-node.is-inner img { border-radius: 10px; }
.apps-hub-node img { background: #0f1f33; }

/* Smooth orbit: rings rotate, icons stay upright */
@property --ap-orbit { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
.apps-hub { animation: ap-orbit 60s linear infinite; }
.apps-hub:hover { animation-play-state: paused; }
.apps-hub-node.is-inner { --dir: -1.5; }
@keyframes ap-orbit { to { --ap-orbit: 360deg; } }

/* Hub sits in the hero, right of the headline */
.apps-hero-hub { display: flex; justify-content: center; animation-name: ap-fadeup; }
.apps-hero-hub .apps-hub { width: min(440px, 86vw); }
.apps-hero-hub .apps-hub-node { --r: calc(min(440px, 86vw) * .42); }
.apps-hero-hub .apps-hub-node.is-inner { --r: calc(min(440px, 86vw) * .255); }
.apps-connect-center .apps-connect-copy { margin: 0 auto; }
@media (max-width: 991px) { .apps-hero-hub .apps-hub { width: min(360px, 84vw); } .apps-hero-hub .apps-hub-node { --r: calc(min(360px, 84vw) * .42); } .apps-hero-hub .apps-hub-node.is-inner { --r: calc(min(360px, 84vw) * .255); } }
