/* Dust It Off! — website. Palette taken from the app (Traktor-like dark theme). */
:root {
  --bg: #0e0e0f;
  --panel: #18181a;
  --panel-high: #232325;
  --panel-highest: #2c2c2f;
  --outline: #3a3a3d;
  --text: #d2d2d2;
  --text-strong: #ececec;
  --text-dim: #8c8c8f;
  --blue: #3d8bff;
  --blue-dark: #23416e;
  --orange: #ff7a1a;
  --green: #4cc27a;
  --red: #f0453a;
  --bmc-yellow: #ffdd00;
  --bmc-dark: #0d0c22;
  --claude: #d97757;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--text-strong); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { background: var(--panel-high); padding: .1em .4em; border-radius: 4px; font-size: .9em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.dim { color: var(--text-dim); }
.bang { color: var(--orange); }

/* Language switch: only the active language's blocks are shown */
html[data-lang="en"] [lang="fr"]:not(html),
html[data-lang="fr"] [lang="en"]:not(html) { display: none !important; }

/* Placeholders the site owner must fill in */
.todo { background: rgba(255, 122, 26, .15); color: var(--orange); border: 1px dashed var(--orange);
        border-radius: 4px; padding: 0 .35em; font-style: normal; }

/* --- Header ------------------------------------------------------------------------ */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 15, .85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.top .brand img { height: 26px; width: auto; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; }
.top nav a { color: var(--text); }
.top nav a:hover { color: var(--text-strong); text-decoration: none; }
.lang-switch { display: flex; border: 1px solid var(--outline); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  background: none; border: 0; color: var(--text-dim); font: inherit; font-size: .8rem;
  padding: 4px 10px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--blue-dark); color: var(--text-strong); }

/* --- Buttons ----------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #5a9dff; }
.btn-ghost { border-color: var(--outline); color: var(--text-strong); }
.btn-ghost:hover { background: var(--panel-high); }
.btn svg { width: 20px; height: 20px; }
.btn-bmc { background: var(--bmc-yellow); color: var(--bmc-dark); }
.btn-bmc img { height: 24px; width: auto; }

/* --- Hero -------------------------------------------------------------------------- */
.hero { position: relative; padding: 80px 0 60px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background: radial-gradient(closest-side, rgba(61, 139, 255, .18), transparent 70%),
              radial-gradient(closest-side at 70% 60%, rgba(255, 122, 26, .10), transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero .logo { width: min(640px, 90%); margin: 0 auto 28px; }
.hero .tagline { font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--text-strong); margin-bottom: .4em; }
.hero .sub { max-width: 680px; margin: 0 auto 32px; color: var(--text-dim); font-size: 1.05rem; }
/* text, then the (transparent) picture on its right */
.free-badge { display: flex; align-items: center; justify-content: center; gap: 18px;
              margin: 0 auto 36px; max-width: 680px; }
.free-badge figcaption { color: var(--text-strong); font-size: 1.05rem; font-weight: 600; text-align: left; }
.free-badge img { width: 130px; height: auto; flex: none; filter: grayscale(1); }
@media (max-width: 520px) { .free-badge img { width: 96px; } .free-badge figcaption { font-size: .95rem; } }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text);
  background: var(--panel); border: 1px solid var(--outline); border-radius: 999px; padding: 4px 12px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge .dot.orange { background: var(--orange); }
.badge .dot.blue { background: var(--blue); }

/* --- App mockup (HTML/CSS, no real user data) --------------------------------------- */
.mockup {
  max-width: 900px; margin: 56px auto 0; text-align: left;
  background: var(--bg); border: 1px solid var(--outline); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02);
  font-size: 13px;
}
.mock-title { display: flex; align-items: center; gap: 8px; background: #f3f3f3; color: #222;
              padding: 6px 10px; font-size: 12px; }
.mock-title img { width: 16px; height: 16px; border-radius: 3px; }
.mock-title .win { margin-left: auto; letter-spacing: 14px; color: #555; }
.mock-head { background: var(--panel); border-bottom: 1px solid var(--outline); }
.mock-head .mlogo { height: 30px; width: auto; margin: 0 auto; padding-top: 10px; box-sizing: content-box; }
.mock-tabs { display: flex; gap: 28px; padding: 6px 18px 0; }
.mock-tab { padding: 6px 2px 8px; color: var(--text-dim); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mock-tab.on { color: var(--blue); border-bottom: 2px solid var(--blue); }
.mock-body { padding: 14px 18px 16px; }
.mock-actions { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.mock-btn { background: var(--panel-high); color: var(--blue); border-radius: 999px; padding: 4px 12px; font-weight: 600; }
.mock-btn.fill { background: var(--blue); color: #fff; }
.mock-btn.text { background: none; margin-left: auto; color: var(--text-dim); }
.mock-status { color: var(--text); margin-bottom: 6px; }
.mock-progress { height: 3px; background: var(--panel-highest); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 42%; background: var(--blue); }
.mock-list { background: var(--panel); border-radius: 8px; padding: 6px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 6px; }
.mock-row + .mock-row { border-top: 1px solid rgba(255, 255, 255, .03); }
.cover { width: 40px; height: 40px; border-radius: 6px; flex: none; position: relative; overflow: hidden; }
.cover.c1 { background: linear-gradient(135deg, #ff3d8b, #7a1aff); }
.cover.c2 { background: linear-gradient(135deg, #1ad1ff, #1a4dff); }
.cover.c3 { background: linear-gradient(135deg, #ffb31a, #ff4d1a); }
.cover.c4 { background: var(--panel-highest); display: grid; place-items: center; color: var(--text-dim); }
.cover.dim { opacity: .35; }
.st { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; color: #000; font-weight: 700; }
.st.done { background: var(--green); }
.st.run { border: 2px solid var(--blue); border-top-color: transparent; animation: spin 1s linear infinite; }
.st.wait { border: 2px solid var(--text-dim); }
@keyframes spin { to { transform: rotate(360deg); } }
.mock-row .info { flex: 1; min-width: 0; }
.mock-row .name { color: var(--text-strong); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .meta { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .cov { font-size: 12px; }
.cov.ok { color: var(--blue); } .cov.warn { color: var(--text-dim); }
.mock-row .bar { width: 120px; height: 4px; background: var(--panel-highest); border-radius: 2px; overflow: hidden; }
.mock-row .bar span { display: block; height: 100%; width: 63%; background: var(--blue); }
.mock-foot { text-align: center; padding: 6px; background: var(--panel); border-top: 1px solid var(--outline); }
.mock-foot span { display: inline-flex; align-items: center; gap: 6px; background: var(--bmc-yellow); color: var(--bmc-dark);
                  font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 6px; }
.mock-foot img { height: 14px; width: auto; }

/* --- Sections ---------------------------------------------------------------------- */
section { padding: 80px 0; }
section.alt { background: linear-gradient(180deg, transparent, rgba(24, 24, 26, .7) 15%, rgba(24, 24, 26, .7) 85%, transparent); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .kicker { color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 22px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #4a4a4e; transform: translateY(-2px); }
.card .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
             background: var(--blue-dark); color: var(--blue); margin-bottom: 14px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--text-dim); margin: 0; font-size: .95rem; }

/* Pipeline steps */
.steps { counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step { position: relative; background: var(--panel); border: 1px solid var(--outline); border-radius: var(--radius); padding: 22px 20px 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: 20px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #000; font-weight: 800; display: grid; place-items: center; font-size: .9rem;
}
.step p { color: var(--text-dim); margin: 0; font-size: .93rem; }

/* Stems colours (as in Traktor's stem decks) */
.stems { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; }
.stem { display: inline-flex; align-items: center; gap: 8px; background: var(--panel-high); border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: .9rem; }
.stem i { width: 10px; height: 10px; border-radius: 3px; }

/* Split blocks */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.note { border-left: 3px solid var(--orange); background: var(--panel); padding: 14px 18px; border-radius: 0 10px 10px 0; }
.note.blue { border-left-color: var(--blue); }

/* Download */
.download-box {
  background: var(--panel); border: 1px solid var(--outline); border-radius: 18px; padding: 36px;
  display: grid; gap: 30px; grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 820px) { .download-box { grid-template-columns: 1fr; padding: 24px; } }
.reqs { list-style: none; padding: 0; margin: 0; }
.reqs li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--panel-highest); }
.reqs li:last-child { border-bottom: 0; }
.reqs .k { color: var(--text-dim); min-width: 140px; }
.win-only { display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); font-weight: 600; margin-bottom: 14px; }
.win-only svg { width: 20px; height: 20px; }
.small { font-size: .87rem; color: var(--text-dim); }

/* Made by Claude Code */
.claude-card {
  display: flex; gap: 28px; align-items: center; background: var(--panel);
  border: 1px solid var(--outline); border-radius: 18px; padding: 32px;
}
.claude-card img { width: 72px; height: 72px; flex: none; }
@media (max-width: 640px) { .claude-card { flex-direction: column; text-align: center; } }
.claude-link { color: var(--claude); font-weight: 600; }

/* Tip */
.tip { text-align: center; }
.tip p { max-width: 560px; margin: 0 auto 24px; color: var(--text-dim); }

/* --- Footer ------------------------------------------------------------------------ */
footer { border-top: 1px solid var(--outline); padding: 36px 0 48px; font-size: .88rem; color: var(--text-dim); }
footer .wrap { display: grid; gap: 18px; }
footer .row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
footer img.icon { width: 28px; height: 28px; border-radius: 6px; }
footer a { color: var(--text); }

/* --- Legal page -------------------------------------------------------------------- */
.legal { padding: 50px 0 80px; }
.legal .wrap { max-width: 900px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: .6em; border-top: 1px solid var(--outline); }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
table.licences { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0 20px; }
table.licences th, table.licences td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--panel-highest); vertical-align: top; }
table.licences th { color: var(--text-strong); background: var(--panel); position: sticky; top: 60px; }
table.licences td:nth-child(2) { white-space: nowrap; }
.toc { background: var(--panel); border: 1px solid var(--outline); border-radius: 12px; padding: 16px 22px; }
.toc ol { margin: 0; padding-left: 1.2em; }

@media (max-width: 720px) {
  .top nav { display: none; }
  .top .lang-switch { margin-left: auto; }
  .mock-row .bar, .mock-btn.text { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
