:root {
  --bg: #0b1020;
  --panel: #131a2e;
  --panel-2: #182039;
  --line: #26304d;
  --text: #e6e9f2;
  --muted: #9aa4bf;
  --accent: #f5b301;
  --accent-ink: #1a1400;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245, 179, 1, .10), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: inherit; }

.top, main, footer { width: min(1120px, 100% - 40px); margin-inline: auto; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand { font-weight: 700; font-size: 18px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .dim { color: var(--muted); font-weight: 500; }
.mark {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
}

nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }
nav .pill { color: var(--text); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

.hero { padding: 64px 0 40px; max-width: 780px; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 20px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 30px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.08); }

.facts { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.facts li { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.facts strong { display: block; color: var(--text); margin-bottom: 2px; }

.demo {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; margin: 28px 0 64px;
}
.demo h2 { margin: 0 0 8px; font-size: 22px; }
.demo p { margin: 0 0 8px; color: var(--muted); max-width: 640px; }
.demo p strong { color: var(--text); }
.demo .button { flex: none; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 28px; letter-spacing: -.01em; }

.filter { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.filter button {
  font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0;
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }

.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px;
}
.card[hidden] { display: none; }
.card:hover { border-color: #3a4770; }
.card .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.card .platform { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.card .category::before { content: "·"; margin-right: 8px; }
.card .price { margin-left: auto; color: var(--text); font-weight: 700; font-size: 15px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; flex: 1; }
.card .links { display: flex; gap: 8px; }
.card .links a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
}
.card .links a:hover { border-color: var(--muted); }
.card .links .buy { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

footer { padding: 56px 0 40px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 720px) {
  nav a:not(.pill) { display: none; }
  .hero { padding-top: 36px; }
  .facts { grid-template-columns: 1fr; }
  .demo { flex-direction: column; align-items: flex-start; padding: 24px; }
}
