:root {
  --sk-accent: #00a86b;
  --sk-accent-2: #00c17b;
  --sk-dark: #0f172a;
  --sk-dark-2: #1e293b;
  --sk-muted: #64748b;
  --sk-soft: #f1f5f9;
  --sk-line: rgba(15, 23, 42, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #f8fafc;
  color: var(--sk-dark);
  min-height: 100vh;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 1.25rem 1.25rem 3.5rem; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.nav-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.nav-brand img { height: 28px; width: auto; }
.nav-title { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sk-muted); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.lang {
  border: 1px solid var(--sk-line);
  background: #fff;
  border-radius: 999px;
  padding: .35rem;
  display: flex;
  gap: .2rem;
}
.lang button {
  border: 0;
  background: transparent;
  color: var(--sk-muted);
  font-weight: 700;
  font-size: .75rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang button.is-on { background: var(--sk-dark); color: #fff; }

.hero {
  background: linear-gradient(135deg, var(--sk-dark) 0%, var(--sk-dark-2) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 2.6rem 1.6rem 2.4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::after {
  content: '';
  position: absolute;
  top: -90px; right: -70px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,168,107,.32) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sk-accent-2);
  background: rgba(0,168,107,.14);
  padding: .35rem 1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 .7rem;
}
.hero p.lead {
  color: rgba(255,255,255,.72);
  font-size: 1.02rem;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: linear-gradient(135deg, #00a86b, #00c17b);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 14px;
  padding: .9rem 1.35rem;
  box-shadow: 0 10px 28px rgba(0,168,107,.28);
}
.cta:hover { filter: brightness(1.05); }
.cta-ghost {
  display: inline-flex;
  margin-left: .5rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}
.nav-actions a.cta-ghost {
  margin: 0;
  color: var(--sk-dark);
  font-size: .85rem;
}
.hint { margin-top: 1rem; color: rgba(255,255,255,.55); font-size: .85rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1.6rem 0 1rem;
}
.chip {
  border: 1px solid var(--sk-line);
  background: #fff;
  color: var(--sk-dark);
  border-radius: 999px;
  padding: .45rem .9rem;
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
}
.chip.is-on { background: var(--sk-dark); color: #fff; border-color: var(--sk-dark); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  align-items: start;
}
.card {
  background: #fff;
  border: 1px solid var(--sk-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-height: 190px;
}
.card .type {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sk-accent);
}
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.card .vendor { color: var(--sk-muted); font-size: .85rem; }
.card .meta { color: #94a3b8; font-size: .78rem; margin-top: auto; }

.card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sk-soft);
  margin-bottom: .15rem;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img.is-placeholder { display: flex; align-items: center; justify-content: center; }
.card-img.is-placeholder img { width: 40%; height: 40%; object-fit: contain; opacity: .5; }

.warn-box {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 14px;
  padding: .75rem .9rem;
  font-size: .83rem;
  line-height: 1.5;
  margin: .15rem 0 .75rem;
}
.warn-box strong { color: #7c2d12; }
.warn-box .warn-icon { font-size: 1.05rem; line-height: 1.3; flex: none; }
.card a.dl {
  margin-top: .65rem;
  text-decoration: none;
  background: var(--sk-soft);
  color: var(--sk-dark);
  font-weight: 700;
  font-size: .85rem;
  border-radius: 12px;
  padding: .65rem .85rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}
.card a.dl:hover { background: #dcfce7; color: #166534; }

.dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .65rem;
}
.dl-row .dl { margin-top: 0; flex: 1 1 auto; min-width: 130px; }

details.older-versions {
  margin-top: .5rem;
}
details.older-versions summary {
  cursor: pointer;
  font-size: .78rem;
  font-weight: 700;
  color: var(--sk-muted);
  list-style: none;
}
details.older-versions summary::-webkit-details-marker { display: none; }
details.older-versions summary::before { content: '\25b8\0000a0'; }
details.older-versions[open] summary::before { content: '\25be\0000a0'; }
details.older-versions > *:not(summary) { margin-top: .5rem; }

.empty, .status {
  background: #fff;
  border: 1px dashed var(--sk-line);
  border-radius: var(--radius);
  padding: 1.6rem;
  color: var(--sk-muted);
  text-align: center;
}

.foot {
  margin-top: 2.4rem;
  color: var(--sk-muted);
  font-size: .82rem;
  line-height: 1.55;
}
.foot a { color: var(--sk-accent); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .cta-ghost { display: block; margin: .9rem 0 0; }
}
