/* Basic marketplace-inspired styling */
:root {
  /* Dark theme (default) */
  --bg: #0e0e10;
  --bg-gradient: linear-gradient(180deg, #0f172a 0%, #0b1020 100%);
  --card: rgba(22,25,42,0.72);
  --text: #f5f7fb;
  --muted: #c6cbd3;
  --primary: #0078d4;
  --primary-emboss: #0a6bb8;
  --border: rgba(73,93,137,0.25);
  /* Icon backdrop for better contrast on transparent logos */
  --icon-backdrop: rgba(255,255,255,0.12);
  --icon-border: rgba(255,255,255,0.18);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg-gradient);
}
.container { width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 20px; }

.site-header { border-bottom: 1px solid var(--border); backdrop-filter: saturate(160%) blur(6px); background: rgba(13,16,28,0.6); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 16px; }
.brand-icon { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.35); background: var(--icon-backdrop); border: 1px solid var(--icon-border); }
.title { font-size: 20px; margin: 0; }
.subtitle { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.header-actions { display: flex; gap: 8px; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; padding: 28px 0; }
.hero-left { display: flex; gap: 20px; align-items: center; }
.hero-icon { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 8px 36px rgba(0,0,0,0.4); background: var(--icon-backdrop); border: 1px solid var(--icon-border); }
.hero-title { font-size: 28px; margin: 0 0 4px; }
.hero-desc { margin: 0 0 10px; color: var(--muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: center; }
.version-text { color: var(--muted); font-size: 13px; margin: 0; }
.howto ol { margin: 8px 0 0; color: var(--muted); }

.content { padding: 10px 0 28px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.card h3 { margin-top: 0; }
.features { margin: 0; padding-left: 18px; }
.more { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: rgba(16,19,30,0.6); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 64px; }
.footer-inner p { margin: 0; color: var(--muted); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); color: var(--text); text-decoration: none; font-weight: 600; box-shadow: inset 0 -2px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(0,0,0,0.25); transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: inset 0 -2px 0 rgba(255,255,255,0.12), 0 10px 18px rgba(0,0,0,0.28); }
.btn.primary { background: linear-gradient(180deg, var(--primary) 0%, var(--primary-emboss) 100%); }
.btn.ghost { background: rgba(255,255,255,0.06); }
.btn.disabled { opacity: 0.7; pointer-events: none; }
.btn-wide { min-width: 220px; justify-content: center; }

.badge img { height: 20px; }

/* Screenshot figure: responsive and contained within card */
.screenshot { margin: 0; }
.screenshot img {
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1116 / 768;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
}
.card .screenshot { overflow: hidden; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* Light theme overrides */
@media (prefers-color-scheme: light) {
  :root {
    --text: #0f172a;
    --muted: #576276;
    --bg-gradient: linear-gradient(180deg, #f7fafc 0%, #eef2f9 100%);
    --card: rgba(255,255,255,0.85);
    --border: rgba(0,0,0,0.08);
    --primary: #0067c2;
    --primary-emboss: #0059a6;
    --icon-backdrop: rgba(0,0,0,0.06);
    --icon-border: rgba(0,0,0,0.12);
  }
  .site-header { background: rgba(255,255,255,0.7); }
  .site-footer { background: rgba(255,255,255,0.7); }
  .btn { border-color: rgba(0,0,0,0.06); box-shadow: inset 0 -2px 0 rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.08); }
  .btn.ghost { background: rgba(0,0,0,0.06); }
}
