.hero { padding: clamp(24px, 6vw, 56px) 0 28px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.hero h1 .grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--text-2); font-size: 17px; margin: 12px 0 0; max-width: 620px; }
.hero .search { margin: 26px 0 0; max-width: 640px; }
.hero .search input { height: 54px; font-size: 16px; border-radius: 16px; padding-left: 48px; }
.hero .search > .icon { left: 17px; }

.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.app-card {
  --a: #8b5cf6; --b: #22d3ee;
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 210px;
  border-radius: 20px; text-decoration: none; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: radial-gradient(420px 220px at 100% 0%, color-mix(in srgb, var(--a) 28%, transparent), transparent 70%);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--a) 50%, transparent); }
.app-card .top { display: flex; align-items: center; gap: 12px; }
.app-card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: 0 10px 24px -10px var(--a); flex: none; }
.app-card .ico .icon { width: 22px; height: 22px; }
.app-card h2 { margin: 0; font-size: 19px; letter-spacing: -0.02em; }
.app-card .desc { color: var(--text-3); font-size: 13px; }
.app-card .big { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.app-card .big small { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; margin-left: 6px; }
.app-card .stats { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.app-card .stats b { color: var(--text); }
.app-card .covers { position: absolute; right: -6px; bottom: -14px; display: flex; z-index: -1; opacity: .9; }
.app-card .covers > * { width: 52px; height: 74px; border-radius: 8px; overflow: hidden; margin-left: -18px; box-shadow: 0 8px 18px -6px rgba(0,0,0,.6); border: 2px solid var(--surface-solid); transform: rotate(var(--r, 0deg)); background: var(--surface-2); }
.app-card .covers img { width: 100%; height: 100%; object-fit: cover; }
.app-card .go { position: absolute; top: 20px; right: 20px; color: var(--text-3); transition: transform .2s, color .2s; }
.app-card:hover .go { transform: translateX(3px); color: var(--text); }
.app-card .go .icon { transform: rotate(180deg); }

.results { margin-top: 18px; display: grid; gap: 18px; }
.results h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); display: flex; justify-content: space-between; }
.results h3 a { text-transform: none; letter-spacing: 0; color: var(--accent); text-decoration: none; font-weight: 600; }
.res-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.res { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; min-width: 0; }
.res:hover { border-color: var(--border-strong); background: var(--surface-2); }
.res .th { width: 36px; height: 50px; border-radius: 6px; overflow: hidden; background: var(--surface-2); flex: none; }
.res .th img { width: 100%; height: 100%; object-fit: cover; }
.res .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res .s { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res > div:last-child { min-width: 0; }
footer.foot { color: var(--text-3); font-size: 13px; margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
footer.foot a { color: var(--text-2); }
