@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-semibold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/inter-bold.woff2) format("woff2"); }

:root {
  --bg: #0b090e;
  --surface: #1a1520;
  --surface-2: #231c2b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f6f4f8;
  --text-2: #b9b4c0;
  --text-3: #8a8592;
  --accent: #ffa24c;
  --accent-2: #ff5f6d;
  --grad: linear-gradient(100deg, var(--accent), var(--accent-2));
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
svg { fill: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 10px; background: var(--text); color: #120e17; font-weight: 600; }
.skip-link:focus { top: 12px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 9, 14, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.brand span { color: var(--accent); }
.back { color: var(--text-2); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  font: 600 15px/1.2 Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.btn.primary { background: var(--grad); border-color: transparent; color: #1a0f08; box-shadow: 0 10px 30px -12px rgba(255, 130, 80, 0.7); }
.btn.primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.small { padding: 9px 16px; font-size: 14px; }

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 84px 0 44px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto; height: 640px; z-index: -1;
  background:
    radial-gradient(560px 300px at 18% 18%, rgba(255, 162, 76, 0.26), transparent 70%),
    radial-gradient(520px 300px at 82% 6%, rgba(255, 95, 109, 0.2), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 75%);
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
h1 { margin-top: 14px; max-width: 16em; text-wrap: balance; font-size: clamp(38px, 7vw, 70px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.lede { margin-top: 20px; max-width: 36em; font-size: clamp(17px, 2.2vw, 20px); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; padding: 0; list-style: none; }
.stats li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); color: var(--text-2); font-size: 14.5px; }
.stats b { color: var(--text); font-variant-numeric: tabular-nums; }

/* how it works */
.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px 74px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.025); counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #1a0f08; font-weight: 700;
}
.steps b { font-size: 16.5px; }
.steps span { color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.steps a { color: var(--accent); }

/* sections */
.top, .requests, .suggest { margin-top: 72px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-heading h2 { margin-top: 6px; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.idea-count { color: var(--text-3); font-size: 15px; white-space: nowrap; }

/* most wanted */
.podium { display: grid; gap: 18px; grid-template-columns: 1.4fr 1fr; grid-template-areas: "one two" "one three"; }
.podium[data-count="1"] { grid-template-columns: 1fr; grid-template-areas: "one"; }
.podium[data-count="2"] { grid-template-areas: "one two"; }
.podium-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 28px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.podium-card.rank-1 { grid-area: one; padding: 32px 32px 36px; border-color: transparent;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 162, 76, 0.18), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box; }
.podium-card.rank-2 { grid-area: two; }
.podium-card.rank-3 { grid-area: three; }
.rank { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.rank .medal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 700; color: var(--text); }
.rank-1 .rank { color: var(--accent); }
.rank-1 .medal { background: var(--grad); border: 0; color: #1a0f08; }
.rank .medal svg { width: 18px; height: 18px; }
.podium-card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.rank-1 h3 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -0.02em; }
.podium-card h3 a { text-decoration: none; }
.podium-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.podium-card .summary { color: var(--text-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.podium-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 14px; }
.podium-card .includes { margin-top: 6px; font-size: 15px; }
.rank-1 .summary { font-size: 17.5px; -webkit-line-clamp: unset; display: block; }
.podium-card .tally strong { font-size: 30px; }
.rank-1 .tally strong { font-size: 56px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-empty { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); }
.top-empty svg { flex: none; width: 44px; height: 44px; color: var(--accent); }
.top-empty b { color: var(--text); font-size: 18px; }
.top-empty p { margin-top: 2px; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
input, select {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface);
  color: var(--text); font: 400 15px/1.4 Inter, system-ui, sans-serif;
}
.search input { padding-left: 42px; border-radius: 999px; }
input::placeholder { color: var(--text-3); }
.pills { display: flex; flex-wrap: wrap; order: 3; flex: 1 1 100%; gap: 8px; }
.pill {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
  color: var(--text-2); font: 600 14px/1.2 Inter, system-ui, sans-serif; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.pill:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.pill[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #120e17; }
.pill span { margin-left: 4px; opacity: 0.55; font-weight: 400; }
.selects { display: flex; gap: 10px; margin-left: auto; }
.selects label { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 14px; }
.selects select { width: auto; padding: 8px 12px; }
.board-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 18px; color: var(--text-3); font-size: 14px; }
.refresh { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent); font: 600 14px Inter, system-ui, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-button:disabled { opacity: 0.5; cursor: default; }
.notice { padding: 14px 18px; border: 1px solid var(--line-2); border-radius: 12px; color: var(--text-2); }

/* idea cards */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 26px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), #16111c);
  scroll-margin-top: 96px; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.card:hover { transform: translateY(-2px); border-color: rgba(255, 162, 76, 0.35); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9); }
.card:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 162, 76, 0.25); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category { color: var(--text-3); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge { padding: 3px 10px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge[data-state="proposed"] { color: #c7b8ff; background: rgba(182, 156, 255, 0.1); border-color: rgba(182, 156, 255, 0.3); }
.badge[data-state="needs-research"] { color: #ffd08a; background: rgba(255, 190, 90, 0.1); border-color: rgba(255, 190, 90, 0.3); }
.badge[data-state="planned"] { color: #7fe3b4; background: rgba(95, 211, 160, 0.12); border-color: rgba(95, 211, 160, 0.35); }
.badge[data-state="in-progress"] { color: #8db8ff; background: rgba(122, 168, 255, 0.12); border-color: rgba(122, 168, 255, 0.35); }
.badge[data-state="shipped"] { color: #1a0f08; background: #7fe3b4; border-color: #7fe3b4; }
.badge[data-state="not-planned"] { color: var(--text-3); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.summary { color: var(--text-2); font-size: 15.5px; }
.includes { display: grid; gap: 8px; padding: 0; list-style: none; font-size: 14.5px; }
.includes li { position: relative; padding-left: 22px; color: var(--text-2); line-height: 1.5; }
.includes li::before { content: ""; position: absolute; left: 3px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.reply { margin: 2px 0 0; padding: 12px 14px; border-left: 3px solid var(--accent, #c8884a); border-radius: 0 10px 10px 0; background: rgba(255, 255, 255, 0.04); color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.reply b { display: block; margin-bottom: 2px; color: var(--text); font-size: 12.5px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.source { color: var(--text-3); font-size: 13px; }
.source a { text-underline-offset: 3px; }
.source a:hover { color: var(--text); }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.tally { display: flex; align-items: baseline; gap: 6px; color: var(--text-3); font-size: 14px; }
.tally strong { color: var(--text); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(255, 162, 76, 0.45); border-radius: 999px;
  background: rgba(255, 162, 76, 0.1); color: var(--accent); font: 600 14.5px/1.2 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.vote-btn svg { width: 18px; height: 18px; flex: none; }
.vote-btn:hover { background: var(--grad); border-color: transparent; color: #1a0f08; transform: translateY(-1px); }
/* an idea that shipped: the card says so, and points to what it became */
.card[data-status="shipped"] { border-color: rgba(127, 227, 180, 0.28); background: linear-gradient(180deg, rgba(127, 227, 180, 0.07), #16111c 60%); }
a.badge { text-decoration: none; }
a.badge[data-state="shipped"]:hover { filter: brightness(1.08); }
.release-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(127, 227, 180, 0.45); border-radius: 999px;
  background: rgba(127, 227, 180, 0.1); color: #7fe3b4; font: 600 14.5px/1.2 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.release-btn svg { width: 18px; height: 18px; flex: none; }
.release-btn:hover { background: #7fe3b4; border-color: transparent; color: #0f2a1d; transform: translateY(-1px); }
.meter { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.05); }
.meter i { display: block; width: var(--w, 0%); height: 100%; background: var(--grad); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty p { margin: 6px 0 18px; color: var(--text-2); }
.status-key { margin-top: 22px; max-width: 62em; color: var(--text-3); font-size: 14px; }
.status-key a { color: var(--accent); }

/* suggest */
.suggest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 40px;
  border: 1px solid transparent; border-radius: 24px;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(255, 162, 76, 0.16), transparent 70%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
}
.suggest > div:first-child { flex: 1 1 420px; max-width: 40em; }
.suggest h2 { margin-top: 6px; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; letter-spacing: -0.025em; }
.suggest p { margin-top: 12px; color: var(--text-2); }
.suggest-actions { display: flex; flex-wrap: wrap; gap: 12px; }

footer { margin-top: 96px; padding: 32px 0 44px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; }
footer div { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps ol { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .podium, .podium[data-count] { grid-template-columns: 1fr; grid-template-areas: none; }
  .podium-card.rank-1, .podium-card.rank-2, .podium-card.rank-3 { grid-area: auto; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .back { display: none; }
  .hero { padding: 56px 0 32px; }
  .feature-grid { grid-template-columns: 1fr; }
  .search, .selects { flex: 1 1 100%; }
  .selects label { flex: 1; min-width: 0; }
  .selects select { flex: 1; min-width: 0; width: 100%; }
  .suggest { padding: 28px 22px; }
  .podium-card.rank-1 { padding: 26px 22px 30px; }
  .top-empty { flex-direction: column; align-items: flex-start; }
  .card-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
