:root {
  --bg: #07101f;
  --panel: #0d1830;
  --line: #22314f;
  --text: #e8eefb;
  --muted: #93a3c2;
  --accent: #8fb4ff;
  --warn: #ff7a45;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #12306b 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; }
.mid { font: 600 11px/1 ui-monospace, monospace; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.badge {
  justify-self: end;
  font: 600 11px/1 ui-monospace, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
}

main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 32px 24px; flex: 1; }
.eyebrow {
  font: 600 11px/1 ui-monospace, monospace;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow span { width: 7px; height: 7px; background: var(--warn); display: inline-block; }
.eyebrow b { color: var(--text); font-weight: 600; }
h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; margin: 12px 0; font-weight: 600; letter-spacing: -.01em; }
.lede { color: var(--muted); max-width: 820px; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.card {
  position: relative;
  aspect-ratio: 3 / 4.2;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  background: var(--panel) center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transition: transform .15s ease, border-color .15s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 31, .15) 0%, rgba(7, 16, 31, .55) 45%, rgba(7, 16, 31, .95) 100%);
}
.card > * { position: relative; }
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: var(--accent); outline: none; }
.card .num { position: absolute; top: 12px; left: 14px; font: 12px ui-monospace, monospace; color: var(--muted); }
.card .tag { font: 600 10px ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h2 { font-size: 22px; line-height: 1.15; margin: 6px 0 8px; font-weight: 600; }
.card p { margin: 0; font-size: 12px; color: #c3cde3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card .go { margin-top: 10px; font: 11px ui-monospace, monospace; color: var(--accent); }

.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--text); }
.screen { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.note { color: var(--muted); font-size: 13px; max-width: 900px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 11px ui-monospace, monospace;
}

@media (max-width: 640px) {
  .top { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .mid { display: none; }
  main { padding: 24px 16px; }
  footer { flex-direction: column; padding: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
