/* VIBR audio plugins | Copyright © Richard Leurs 2026 | GPL3.0 License */
:root {
  --bg: #0b0d12;
  --bg2: #11141b;
  --card: #141821;
  --line: rgba(255, 255, 255, .08);
  --text: #e9ecf3;
  --muted: #9aa3b5;
  --brand: #8b9bff;
  --brand2: #5be3c1;
  --radius: 20px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(139, 155, 255, .13), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(91, 227, 193, .09), transparent 55%), var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(255, 255, 255, .07); padding: .12em .4em; border-radius: 6px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(14px); background: rgba(11, 13, 18, .72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.brand .logo { width: 28px; height: 28px; filter: drop-shadow(0 0 9px rgba(162, 89, 255, .55)); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--brand), var(--brand2), var(--brand)); box-shadow: 0 0 14px rgba(139, 155, 255, .6); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav nav a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .05); color: var(--text) !important;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .18); }
.btn.primary { background: linear-gradient(135deg, var(--brand), #6f7dff); border-color: transparent; color: #0b0d12 !important; box-shadow: 0 10px 30px rgba(111, 125, 255, .35); }
.btn.primary:hover { background: linear-gradient(135deg, #a1adff, #7f8cff); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* ---------- hero ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hero { text-align: center; padding: clamp(70px, 12vw, 150px) 0 clamp(50px, 8vw, 90px); }
.eyebrow { display: inline-block; margin: 0 0 22px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(40px, 7.5vw, 84px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 24px; }
.grad { background: linear-gradient(100deg, #a5c943, #f28a38 35%, #28a9d5 65%, #8962d5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(17px, 2.2vw, 21px); }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta.center { margin-top: 36px; }

/* ---------- sections ---------- */
section { padding: 40px 0 70px; }
.section-head { margin-bottom: 34px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.02em; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- plugin cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  --accent: #8b9bff;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); opacity: .9; z-index: 2; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--accent) 45%, transparent); }
.card.featured { grid-column: 1 / -1; }
.shot {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background:
    radial-gradient(400px 200px at 50% 0, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), #0d1016;
  padding: 22px 22px 0;
}
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .75); transition: transform .35s; }
.card:hover .shot img { transform: scale(1.012); }
.body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.titlerow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.card h3 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.card h3 span { font-weight: 400; color: var(--muted); }
.chip { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.card p { margin: 0; color: #c3c9d8; }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; padding: 4px 12px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--muted); }
.featured .body p { max-width: 900px; }

.more { margin-top: 34px; padding: 26px 28px; border: 1px dashed rgba(255, 255, 255, .16); border-radius: var(--radius); }
.more h3 { margin: 0 0 4px; font-size: 20px; }
.more p { margin: 0 0 16px; color: var(--muted); }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 22px; color: var(--muted); }
.more strong { color: var(--text); }

/* ---------- making of ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.step { position: relative; padding: 26px 26px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step .num { position: absolute; top: 18px; right: 22px; font: 700 34px/1 ui-monospace, Menlo, monospace; color: rgba(255, 255, 255, .07); }
.step h3 { margin: 0 0 8px; font-size: 20px; }
.step p { margin: 0; color: #c3c9d8; font-size: 15.5px; }
.step a { color: var(--brand); }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stack span { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .04); color: var(--muted); font-size: 14px; }

/* ---------- license ---------- */
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.lic { padding: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.lic p { margin: 0; color: #c3c9d8; }
.lic a { color: var(--brand); }
.badge { display: inline-block; margin-bottom: 14px; padding: 5px 14px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; color: #0b0d12; background: linear-gradient(135deg, var(--brand2), var(--brand)); }

footer { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 34px 24px 50px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
footer a { color: var(--text); }

/* ---------- lightbox ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; overflow: visible; }
dialog::backdrop { background: rgba(5, 6, 9, .86); backdrop-filter: blur(6px); }
dialog img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
dialog .close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #1a1f2b; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }

@media (max-width: 860px) {
  .grid, .lic-grid { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- group filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 28px; }
.gbtn {
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
  padding: 7px 16px; border-radius: 999px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  transition: background .15s, color .15s, transform .15s;
}
.gbtn:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); transform: translateY(-1px); }
.gbtn[aria-pressed="true"] { background: var(--accent); color: #0b0d12; border-color: var(--accent); }
.gbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card[hidden] { display: none; }
