:root {
  color: #f4f1e8;
  background: #0b0d0f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: #0b0d0f; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-nav {
  min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 max(1.25rem, calc((100vw - 1420px) / 2)); border-bottom: 1px solid #2b3139;
  background: rgba(11, 13, 15, .96);
}
.site-nav a { color: #aeb6c2; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.site-nav a:hover, .site-nav a.active { color: #55d6a5; }
.site-nav .brand { color: #f4f1e8; }
.site-nav > div { display: flex; align-items: center; gap: 1.3rem; }

.hero {
  padding: clamp(3rem, 8vw, 7rem) max(1.25rem, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid #2b3139;
  background:
    radial-gradient(circle at 80% 15%, rgba(84, 214, 165, .16), transparent 31rem),
    radial-gradient(circle at 15% 95%, rgba(105, 174, 248, .12), transparent 26rem),
    #0b0d0f;
}
.eyebrow { color: #55d6a5; font-size: .78rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 930px; margin: .85rem 0 1rem; font-size: clamp(2.45rem, 6vw, 5.9rem); line-height: .94; letter-spacing: -.055em; }
.hero p { max-width: 700px; color: #aeb6c2; font-size: clamp(1rem, 1.8vw, 1.3rem); line-height: 1.55; }
.summary { display: flex; flex-wrap: wrap; gap: .65rem 1.8rem; margin-top: 2.2rem; color: #aeb6c2; }
.summary strong { color: #f4f1e8; font-size: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; }
.hero-actions a {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: .7rem 1rem;
  border: 1px solid #394351; border-radius: 7px; color: #f4f1e8; background: #151a21;
  font-size: .85rem; font-weight: 750; text-decoration: none;
}
.hero-actions a.primary { color: #07120e; border-color: #55d6a5; background: #55d6a5; }
.hero-actions a:hover { transform: translateY(-1px); }

main { width: min(1420px, calc(100% - 2.5rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .85rem; margin-bottom: 1rem; }
.toolbar label { display: grid; gap: .35rem; color: #929eae; font-size: .78rem; }
select, .toolbar button {
  min-height: 42px; border: 1px solid #343c48; border-radius: 7px; color: #f4f1e8;
  background: #151a21; padding: .58rem .75rem;
}
.toolbar button { cursor: pointer; margin-left: auto; }
.toolbar button:hover { border-color: #55d6a5; }
.notice { min-height: 1.5rem; margin: 0 0 1rem; color: #f4d06f; }

.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.app-card { overflow: hidden; border: 1px solid #2d3540; border-radius: 13px; background: #11151b; }
.preview-wrap { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #171d25; }
.preview { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.preview[hidden] { display: none; }
.preview-fallback { width: 100%; height: 100%; background: linear-gradient(135deg, #172b29, #1e2635 48%, #3c2742); }
.runtime {
  position: absolute; top: .7rem; right: .7rem; padding: .3rem .52rem; border: 1px solid #47515f;
  border-radius: 99px; color: #c6cfdb; background: rgba(8, 10, 13, .82); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.runtime[data-runtime="running"] { color: #55d6a5; border-color: #33876b; }
.runtime[data-runtime="hosted"] { color: #55d6a5; border-color: #33876b; }
.runtime[data-runtime="starting"] { color: #f4d06f; border-color: #8a743c; }
.runtime[data-runtime="exited"] { color: #e77b8b; border-color: #7e404a; }
.card-body { padding: 1rem; }
.card-meta { display: flex; justify-content: space-between; gap: .75rem; color: #8f9aaa; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.score { color: #55d6a5; }
.name { margin: .55rem 0 .2rem; font-size: 1.3rem; }
.model { color: #c38cff; font-size: .9rem; }
.note { min-height: 2.6rem; color: #aeb6c2; font-size: .88rem; line-height: 1.45; }
.actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .5rem; }
.actions.hosted-actions { grid-template-columns: 1fr; }
.actions button, .actions a {
  min-height: 39px; display: inline-grid; place-items: center; border: 1px solid #394351;
  border-radius: 7px; color: #f4f1e8; background: #1a2028; text-decoration: none; cursor: pointer;
}
.actions .start { color: #07120e; border-color: #55d6a5; background: #55d6a5; font-weight: 750; }
.actions .open[aria-disabled="true"] { opacity: .42; pointer-events: none; }
.actions button:disabled { opacity: .45; cursor: wait; }
.path { display: block; margin-top: .85rem; overflow: hidden; color: #697485; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 620px) {
  .site-nav { align-items: flex-start; flex-direction: column; padding-block: .85rem; }
  .site-nav > div { width: 100%; gap: .85rem; overflow-x: auto; }
  main { width: min(100% - 1.5rem, 1420px); }
  .toolbar { align-items: stretch; }
  .toolbar label { flex: 1 1 100%; }
  .toolbar button { width: 100%; margin-left: 0; }
}
