:root {
  color-scheme: light dark;
  --bg: #0d0f14;
  --bg-2: #10131a;
  --card: #141821;
  --line: #232937;
  --text: #e9ecf3;
  --muted: #9aa3b5;
  --btn: #f3f4f8;
  --btn-text: #0d0f14;
  --chip: #1b2030;
  --radius: 20px;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fa;
    --bg-2: #eef0f5;
    --card: #ffffff;
    --line: #e3e6ee;
    --text: #14161c;
    --muted: #5b6473;
    --btn: #14161c;
    --btn-text: #ffffff;
    --chip: #eef0f5;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px 64px; }

.top {
  max-width: 880px; margin: 0 auto; padding: 22px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.01em; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--text); color: var(--bg); font-weight: 800; font-size: 17px; line-height: 1; padding-bottom: 2px;
}
.top__link { color: var(--muted); text-decoration: none; font-size: 14px; }
.top__link:hover { color: var(--text); }

.hero { padding: 64px 0 36px; max-width: 640px; }
.hero h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 700; }
.hero p { margin: 0; color: var(--muted); font-size: 17px; }

.apps { display: grid; gap: 14px; }

.app {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
}
.app::before {
  content: ""; position: absolute; inset: -40% auto auto -10%; width: 60%; height: 140%;
  background: radial-gradient(closest-side, var(--accent), transparent 70%);
  opacity: 0; transition: opacity .35s ease; pointer-events: none; filter: blur(30px);
}
.app:hover::before { opacity: .12; }
.app > * { position: relative; }

.icon { width: 72px; height: 72px; }
.icon--bleed { border-radius: 22.5%; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 18px rgba(0,0,0,.25); }
.icon--lexi { transform: scale(1.12); }

.app__body { min-width: 0; }
.app__body h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; font-weight: 650; }
.app__tagline { margin: 0 0 10px; color: var(--muted); font-size: 15px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 12px; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 3px 9px; }

.app__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 236px; text-align: right; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--btn); color: var(--btn-text); text-decoration: none;
  font-weight: 650; font-size: 15px; padding: 11px 16px; border-radius: 12px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn__kind { font-weight: 500; opacity: .6; font-size: 13px; }

.meta { margin: 0; font-size: 13px; color: var(--muted); min-height: 1.4em; }
.meta.is-loading {
  width: 190px; height: 12px; border-radius: 6px; margin-top: 4px;
  background: linear-gradient(90deg, var(--chip) 25%, var(--line) 50%, var(--chip) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.meta.is-error { color: #d98f5f; }
@keyframes shimmer { to { background-position: -200% 0; } }

.links { margin: 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.links a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.links a:hover { color: var(--text); border-color: var(--text); }
.links .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); }
.hint { opacity: .8; }

.notes { margin-top: 56px; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.notes h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.01em; }
.notes ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.notes li { padding: 4px 0; }
.notes b { color: var(--text); font-weight: 600; }

.foot { max-width: 880px; margin: 0 auto; padding: 0 20px 48px; color: var(--muted); font-size: 13px; }
.foot p { margin: 4px 0; }
.foot__stamp:empty { display: none; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 720px) {
  .hero { padding: 44px 0 28px; }
  .app { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; }
  .icon { width: 56px; height: 56px; }
  .app__actions { grid-column: 1 / -1; align-items: stretch; text-align: left; min-width: 0; }
  .btn { justify-content: center; }
  .links { justify-content: flex-start; }
  .meta.is-loading { width: 60%; }
  .notes { padding: 22px 20px; }
}
