/* Bardstar hub page */

.grad-gold {
  background: linear-gradient(100deg, #f7c65a, #f5b83d 40%, #8a6dff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hub-hero .stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, var(--text-3), transparent),
    radial-gradient(1px 1px at 28% 72%, var(--text-3), transparent),
    radial-gradient(1.5px 1.5px at 46% 12%, var(--text-3), transparent),
    radial-gradient(1px 1px at 62% 82%, var(--text-3), transparent),
    radial-gradient(1.5px 1.5px at 78% 32%, var(--text-3), transparent),
    radial-gradient(1px 1px at 88% 64%, var(--text-3), transparent),
    radial-gradient(1px 1px at 94% 12%, var(--text-3), transparent),
    radial-gradient(1.5px 1.5px at 6% 88%, var(--text-3), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .35; } to { opacity: .75; } }

/* constellation */
.constellation { position: relative; width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto; }
.constellation .lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.constellation .lines path { stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 6; fill: none; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -300; } }
.orb { position: absolute; border-radius: 24%; box-shadow: var(--shadow-lg); animation: float 7s ease-in-out infinite; }
.orb-core { left: 50%; top: 50%; width: 26%; height: auto; transform: translate(-50%, -50%); animation: core 6s ease-in-out infinite; box-shadow: 0 0 0 10px color-mix(in srgb, var(--text) 6%, transparent), 0 30px 80px -24px rgba(12, 12, 20, .45); }
.o1 { left: 12%; top: 13%; width: 21%; height: auto; animation-delay: -1s; }
.o2 { left: 72%; top: 13%; width: 16%; height: auto; animation-delay: -3s; }
.o3 { left: 76%; top: 60%; width: 15%; height: auto; animation-delay: -5s; }
.o4 { left: 44%; top: 80%; width: 15%; height: auto; animation-delay: -2s; }
.o5 { left: 7%; top: 60%; width: 16%; height: auto; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes core { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.04); } }
@media (max-width: 960px) { .constellation { width: min(80%, 360px); margin-top: 8px; } }

/* featured app */
.app-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); margin-bottom: 20px; overflow: hidden; }
@media (max-width: 860px) { .app-feature { grid-template-columns: minmax(0, 1fr); } }
.app-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.app-id img { border-radius: 24%; box-shadow: var(--shadow); flex: none; }
.app-id .h3 { margin: 0; }
.app-cat { font-size: 14px; color: var(--text-3); }
.badge-live { margin-left: auto; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); display: inline-flex; align-items: center; gap: 6px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.app-big { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 32px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.08; margin: 22px 0 12px; }
.app-feature .cta-row { margin-top: 24px; }

.app-feature-visual {
  --accent: #6b4eff;
  position: relative; border-radius: 20px; padding: 28px 22px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background: radial-gradient(80% 80% at 30% 20%, rgba(138, 109, 255, .22), transparent 70%), var(--bg-2);
  border: 1px solid var(--line);
}
.mini-pill { align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: #121218; color: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); font-size: 13px; font-variant-numeric: tabular-nums; }
.mini-pill .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.4s infinite; color: #ff4d4d; }
.mini-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.mini-wave i { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(#b7a6ff, #8a6dff); transform-origin: center; animation: bar 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -83ms); }
@keyframes bar { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.mini-before { font-size: 15px; color: var(--text-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 50%, transparent); text-align: center; }
.mini-arrow { align-self: center; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #6b4eff; color: #fff; box-shadow: 0 6px 20px -6px #6b4eff; }
.mini-arrow svg { width: 16px; height: 16px; }
.mini-after { align-self: center; font-size: 18px; font-weight: 600; background: var(--surface); padding: 12px 16px; border-radius: 14px 14px 14px 4px; box-shadow: var(--shadow); border: 1px solid var(--line); }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1040px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .app-grid { grid-template-columns: minmax(0, 1fr); } }
.app-card { text-decoration: none; display: flex; flex-direction: column; gap: 16px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.app-card .muted { font-size: 15.5px; flex: 1; }
.app-foot { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--text-2); padding-top: 14px; border-top: 1px solid var(--line); }
.app-foot svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.app-card:hover .app-foot { color: var(--text); }
.app-card:hover .app-foot svg { transform: translateX(3px); }
.reveal[style*="--d"] { transition-delay: var(--d); }

/* coming-soon cards: icon, name, short tagline, join link */
.app-grid-soon { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; margin: 0 auto; }
@media (max-width: 860px) { .app-grid-soon { grid-template-columns: minmax(0, 1fr); max-width: 460px; } }
.app-grid-soon .app-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.app-grid-soon .app-join { grid-column: 2; }
.app-grid-soon .app-card > img { border-radius: 24%; box-shadow: var(--shadow-sm); }
.app-grid-soon .h3 { margin: 0 0 4px; }
.app-grid-soon .app-tag { color: var(--text-2); font-size: 16.5px; }
.app-join { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }
.app-join svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.app-card:hover .app-join svg { transform: translateX(3px); }

/* hero: Yapstar front and centre */
.app-lockup {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; font-size: 14.5px;
  transition: border-color .2s, transform .2s var(--ease);
}
.app-lockup:hover { border-color: var(--line-2); transform: translateY(-1px); }
.app-lockup img { width: 30px; height: 30px; border-radius: 24%; }
.app-lockup b { font-weight: 650; }
.app-lockup .badge-live { margin-left: 2px; }
.hero-more { margin-top: 22px; }
.hub-demo { position: relative; max-width: 520px; width: 100%; margin: 0 auto; padding: 28px 18px; }
.hub-demo-card {
  min-height: 360px; box-shadow: var(--shadow-lg); padding: 24px 22px 30px;
  background:
    radial-gradient(70% 60% at 20% 10%, rgba(138, 109, 255, .26), transparent 70%),
    radial-gradient(60% 50% at 90% 100%, rgba(245, 184, 61, .16), transparent 70%),
    var(--surface);
}
.hub-demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.hub-demo-head img { border-radius: 24%; box-shadow: var(--shadow-sm); }
.hub-demo-head div { display: flex; flex-direction: column; line-height: 1.25; }
.hub-demo-head b { font-size: 15px; font-weight: 650; }
.hub-demo-head div span { font-size: 13px; color: var(--text-3); }
.kbd-pair { margin-left: auto; display: inline-flex; gap: 4px; }
.kbd-pair kbd { font: 600 12px/1 var(--font); padding: 6px 8px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 1px 0 var(--line-2); color: var(--text-2); }
.hub-orb { position: absolute; border-radius: 24%; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
.ho1 { left: -6px; top: 4px; animation-delay: -1s; }
.ho2 { right: -4px; top: 30%; animation-delay: -3s; }
.ho3 { left: -10px; bottom: 16%; animation-delay: -5s; }
.ho4 { right: 22px; bottom: -4px; animation-delay: -2s; }
@media (max-width: 560px) { .hub-orb { display: none; } .hub-demo { padding: 8px 0; } .hub-demo-card { min-height: 0; } }
.app-card .app-id { flex-wrap: nowrap; }
@media (max-width: 480px) { .app-lockup .faint { display: none; } }
