/* Benoit Saint-Moulin
   Traktor Bridge : website, same palette as the application */

:root {
    --bg: #16191c;
    --bg-2: #212529;
    --bg-3: #343a40;
    --line: #495057;
    --fg: #f8f9fa;
    --muted: #adb5bd;
    --accent: #00b4d8;
    --accent-2: #0096c7;
    --ok: #4caf50;
    --warn: #ffc107;
    --low: #ff4d4d;
    --mid: #4dff88;
    --high: #4d8dff;
    --radius: 10px;
    --wrap: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* running text justified, the hyphens keep narrow cards free of big gaps */
p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
p.small { text-align: left; hyphens: manual; }
.hero p { text-align: center; hyphens: manual; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- top bar */

.bar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(22, 25, 28, .92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bg-3);
}
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; }
.brand img { width: 34px; height: 34px; }
.brand:hover { text-decoration: none; }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: .95rem; }
.bar nav a { color: var(--muted); }
.bar nav a:hover { color: var(--fg); text-decoration: none; }
.bar nav a[aria-current] { color: var(--fg); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---- hero */

.hero { padding: 56px 0 20px; text-align: center; }
.hero .icon { width: 140px; height: 140px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 300; letter-spacing: -.02em; }
.hero h1 b { font-weight: 600; color: var(--accent); }
.hero .lead { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; text-align: justify; hyphens: auto; }
.badge {
    display: inline-block; margin-top: 22px; padding: 6px 14px; border-radius: 99px;
    background: rgba(76, 175, 80, .12); color: var(--ok); border: 1px solid rgba(76, 175, 80, .4);
    font-size: .9rem;
}
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
    display: inline-block; padding: 12px 26px; border-radius: 8px; font-weight: 600;
    border: 1px solid var(--line); color: var(--fg); background: var(--bg-3);
}
.btn:hover { text-decoration: none; background: var(--line); }
.btn.go { background: var(--accent); border-color: var(--accent); color: #06121a; }
.btn.go:hover { background: var(--accent-2); }
.btn small { display: block; font-size: .72rem; font-weight: 400; opacity: .75; text-align: center; }
.small { font-size: .85rem; color: var(--muted); }

.shot { margin: 32px auto 0; max-width: 1180px; }
.shot img, .gallery img {
    width: 100%; display: block; border-radius: var(--radius);
    border: 1px solid var(--bg-3); box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* ---- sections */

section { padding: 32px 0; }
section.alt { background: var(--bg-2); }
h2 { font-size: 2rem; font-weight: 300; margin-bottom: 10px; }
h2 + p.sub { color: var(--muted); margin-bottom: 22px; }
h2 + p.sub:last-child { margin-bottom: 0; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
    background: var(--bg-2); border: 1px solid var(--bg-3); border-radius: var(--radius); padding: 22px;
}
section.alt .card { background: var(--bg); }
.card p { color: var(--muted); font-size: .95rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 14px; }
.formats > div { background: var(--bg-2); border: 1px solid var(--bg-3); border-radius: var(--radius); padding: 20px 22px; }
.formats p { color: var(--muted); font-size: 1.05rem; }

.about { max-width: var(--wrap); }
.about p { color: var(--muted); margin-bottom: 14px; }

.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { list-style: none; counter-increment: s; background: var(--bg); border: 1px solid var(--bg-3);
    border-radius: var(--radius); padding: 20px 20px 20px 62px; position: relative; color: var(--muted); }
.steps li b { color: var(--fg); display: block; }
.steps li::before {
    content: counter(s); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px;
    border-radius: 50%; background: var(--accent); color: #06121a; font-weight: 700;
    display: grid; place-items: center;
}

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--bg-3); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: var(--bg-2); }
td code, p code, li code { font-size: .88em; }
code { background: var(--bg-3); padding: 1px 6px; border-radius: 4px; font-family: Consolas, monospace; }
pre { background: var(--bg-2); border: 1px solid var(--bg-3); border-radius: var(--radius);
    padding: 14px 16px; overflow-x: auto; margin: 12px 0; }
pre code { background: none; padding: 0; }

.two { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
.two + .two { margin-top: 36px; }
.gallery p { color: var(--muted); }

.check li { list-style: none; padding: 6px 0 6px 28px; position: relative; color: var(--muted); }
.check li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 10px; height: 10px;
    border-radius: 50%; background: var(--accent); }
.check li b { color: var(--fg); }

.note { border-left: 3px solid var(--warn); background: rgba(255, 193, 7, .07);
    padding: 12px 16px; border-radius: 6px; color: var(--muted); margin: 16px 0; }
.note b { color: var(--warn); }

.wave { display: flex; gap: 2px; height: 26px; align-items: center; margin: 14px 0 0; }
.wave i { flex: 1; border-radius: 1px; }

/* small decorative previews inside the feature cards, all sitting at the bottom of their card */
.viz { margin: 16px 0 0; }
#features .card, #alone .card { display: flex; flex-direction: column; }
#features .card p, #alone .card p { margin-bottom: 16px; }
#features .viz, #alone .viz { margin-top: auto; }
.pads { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.pads b { aspect-ratio: 1; border-radius: 4px; display: grid; place-items: center; font-size: .72rem;
    color: #0b0e10; font-weight: 700; }
.ticks { display: flex; gap: 3px; height: 26px; align-items: flex-end; }
.ticks i { flex: 1; background: var(--line); height: 40%; border-radius: 1px; }
.ticks i.bar { background: var(--accent); height: 100%; }
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips span { font-size: .8rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line);
    color: var(--muted); font-variant-numeric: tabular-nums; }
.chips span.k { color: #0b0e10; border-color: transparent; font-weight: 700; }
.covers { display: flex; gap: 8px; }
.covers i { width: 44px; height: 44px; border-radius: 5px; }
.tree { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.tree div { white-space: nowrap; }
.tree .l1 { padding-left: 16px; }
.tree .l2 { padding-left: 32px; }
.tree em { font-style: normal; color: var(--accent); }
/* a playlist with one row lifted by the drag, and where it will land */
.rows { display: grid; gap: 6px; }
.rows .r { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; border-radius: 5px;
    background: rgba(255, 255, 255, .04); }
.rows .r i { height: 6px; border-radius: 3px; background: var(--line); }
.rows .r i.g { width: 8px; height: 12px; border-radius: 0; background:
    radial-gradient(circle, var(--muted) 1.1px, transparent 1.5px) 0 0 / 4px 4px; }
.rows .r.drag { background: rgba(0, 180, 216, .16); border: 1px solid var(--accent); transform: translateX(12px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .4); }
.rows .r.drag i:not(.g) { background: var(--accent); opacity: .7; }
.rows .drop { height: 2px; border-radius: 1px; background: var(--accent); margin: -3px 0; }
/* file glyphs: the project is one file that holds the work, drawn between two ordinary sheets */
.files { display: flex; gap: 14px; align-items: center; height: 66px; }
.files svg { display: block; overflow: visible; }
.files .o { fill: rgba(255, 255, 255, .03); stroke: var(--line); stroke-width: 1.4; stroke-linejoin: round; }
.files rect { fill: var(--line); }
.files .hl .o { fill: rgba(0, 180, 216, .12); stroke: var(--accent); stroke-width: 1.6; }
.files .hl .b { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* pre-listen: a play button and a pair of headphones */
.listen { display: flex; gap: 18px; align-items: center; height: 66px; }
.listen svg { display: block; }
.listen .p { fill: var(--accent); }
.listen .t { fill: #0b0e10; }
.listen .h { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.listen .h.c { fill: rgba(0, 180, 216, .14); }
.cuewave { position: relative; padding-top: 16px; }
.cuewave .wave { margin: 0; height: 34px; }
.cuewave .wave i { background: #4a5a66; }
.cuewave .mk { position: absolute; top: 0; bottom: 0; width: 2px; }
.cuewave .mk span { position: absolute; top: 0; left: 0; font-size: .65rem; font-weight: 700; color: #0b0e10;
    padding: 0 4px; border-radius: 0 3px 3px 0; line-height: 14px; }
.cuewave .loop { position: absolute; top: 16px; bottom: 0; background: rgba(0, 180, 216, .22);
    border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.author { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.author p { color: var(--muted); margin-bottom: 14px; }
.links { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 10px; }
.links a { display: block; padding: 12px 14px; border: 1px solid var(--bg-3); border-radius: 8px; color: var(--muted); }
.links a b { display: block; color: var(--fg); }
.links a:hover { border-color: var(--accent); text-decoration: none; }

footer { border-top: 1px solid var(--bg-3); padding: 40px 0; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* long paths in the guide wrap instead of widening the page */
.doc article code { word-break: break-word; }

/* ---- faq */

.faq { max-width: 820px; padding-top: 50px; padding-bottom: 80px; }
.faq h1 { font-size: 2.4rem; font-weight: 300; margin-bottom: 10px; }
.faq h2 { font-size: 1.3rem; font-weight: 600; color: var(--accent); margin: 38px 0 10px; }
.faq p { color: #d6dadd; margin-bottom: 12px; }

/* ---- guide */

.doc { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 40px 0 80px; }
.toc { position: sticky; top: 78px; align-self: start; font-size: .92rem; }
.toc a { display: block; padding: 4px 0; color: var(--muted); }
.toc a:hover { color: var(--fg); text-decoration: none; }
.toc b { display: block; margin: 14px 0 4px; color: var(--fg); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
/* without it a long pre widens the grid column past the screen */
.doc article { min-width: 0; }
.doc article h2 { margin-top: 50px; padding-top: 10px; border-top: 1px solid var(--bg-3); }
.doc article h2:first-child { margin-top: 0; border-top: none; }
.doc article h3 { margin-top: 26px; }
.doc article p, .doc article li { color: #d6dadd; }
.doc article p { margin: 10px 0; }
.doc article ul, .doc article ol { margin: 10px 0 10px 22px; }
.doc article li { margin: 4px 0; }
.doc article table { margin: 14px 0; }
.doc article img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--bg-3); margin: 14px 0; }
kbd { background: var(--bg-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
    padding: 0 6px; font: .85em Consolas, monospace; }

@media (max-width: 860px) {
    .two, .author, .doc, .grid.three, .formats { grid-template-columns: 1fr; }
    .toc { position: static; }
    .bar nav { gap: 14px; font-size: .88rem; }
    .links { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .bar nav a.opt { display: none; }
    /* the icon alone on a phone, the menu needs the room */
    .brand { font-size: 0; gap: 0; }
    .bar nav { gap: 12px; font-size: .85rem; }
    section { padding: 26px 0; }
    .hero .icon { width: 110px; height: 110px; }
}
