/* Gitly — landing. Mêmes couleurs, même police et mêmes courbes que l'appli. */

:root {
  --base: #060607;
  --bg: #0c0c0e;
  --panel: #101013;
  --raised: #161619;
  --hover: #17171b;
  --active: #202025;
  --line: #1c1c20;
  --line-strong: #2a2a30;
  --fg: #ededef;
  --muted: #9c9ca3;
  --faint: #62626b;
  --accent: #7b86e2;
  --add: #4cc38a;
  --del: #eb5757;
  --warn: #f2994a;
  --info: #4ea7fc;

  --sans: 'Geist', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Geist Mono', 'Cascadia Code', Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.36, 0.64, 1);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}
button:disabled {
  cursor: default;
}
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 1.5px solid color-mix(in srgb, var(--accent) 80%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  min-width: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  background: var(--panel);
  transition:
    color 0.15s,
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s var(--ease);
}

/* ───────────────────────────── Navigation ───────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--base) 78%, transparent);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav-links {
  position: relative;
  display: flex;
  gap: 2px;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  z-index: 1;
  padding: 6px 11px;
  border-radius: 7px;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* Pastille qui glisse sous l'élément survolé ou sélectionné (comme dans l'appli). */
.pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 7px;
  background: var(--hover);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.42s var(--ease),
    width 0.42s var(--ease),
    height 0.42s var(--ease),
    opacity 0.2s;
}
.pill.on {
  opacity: 1;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}
.dot-live {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--add);
}
.dot-live::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--add);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  80%,
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

.kbd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  color: var(--faint);
  transition:
    border-color 0.15s,
    color 0.15s;
}
.kbd-btn:hover {
  border-color: var(--line-strong);
  color: var(--muted);
}

/* ───────────────────────────── Boutons ───────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 9px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    opacity 0.15s,
    transform 0.15s var(--ease);
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--fg);
  color: #0b0b0c;
}
.btn-primary:hover:not(:disabled) {
  opacity: 0.9;
}
/* Reflet qui balaie le bouton principal. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 40%;
  transform: skewX(-14deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.45), transparent);
  transition: left 0.8s var(--ease);
}
.btn-primary:hover::after {
  left: 130%;
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--hover);
}
.btn-soon {
  cursor: not-allowed;
}
.btn-soon .tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0b0b0c;
  color: var(--fg);
}

/* ───────────────────────────── Héros ───────────────────────────── */

.hero {
  position: relative;
  padding: 72px 0 40px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: -60px 0 auto;
  height: 900px;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(55% 50% at 50% 30%, black, transparent 80%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 120px;
  width: 900px;
  height: 420px;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
  filter: blur(30px);
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    transform: scale(1.12) translateY(20px);
    opacity: 0.7;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 4px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
  font-size: 13px;
  color: var(--muted);
}
.eyebrow b {
  font-weight: 500;
  color: var(--fg);
}
.eyebrow .chip {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--active);
  color: var(--fg);
  font-size: 12px;
}

h1 {
  position: relative;
  margin: 26px auto 0;
  max-width: 820px;
  font-size: clamp(40px, 6.4vw, 72px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.045em;
}
h1 .w {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  animation: word 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms + 120ms);
}
h1 .dim {
  color: var(--faint);
}
@keyframes word {
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
.lede {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: 17px;
  color: var(--muted);
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.fade-seq > * {
  opacity: 0;
  transform: translateY(12px);
  animation: word 0.8s var(--ease) forwards;
}
.fade-seq > :nth-child(1) {
  animation-delay: 0.05s;
}
.fade-seq > :nth-child(3) {
  animation-delay: 0.65s;
}
.fade-seq > :nth-child(4) {
  animation-delay: 0.75s;
}
.fade-seq > :nth-child(5) {
  animation-delay: 0.95s;
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  font-size: 13px;
  color: var(--faint);
}
.hint svg {
  animation: nudge 1.6s var(--ease) infinite;
}
@keyframes nudge {
  50% {
    transform: translateY(3px);
  }
}

/* ───────────────────────────── Fenêtre de l'appli (maquette) ───────────────────────────── */

.stage {
  position: relative;
  margin-top: 18px;
  perspective: 2000px;
}
.stage-glow {
  position: absolute;
  inset: 8% 6% -4%;
  background: radial-gradient(50% 50% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.scaler {
  position: relative;
  transform-origin: top left;
}
.app {
  position: absolute;
  top: 0;
  left: 0;
  width: 1120px;
  height: 700px;
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--base);
  overflow: hidden;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.003em;
  text-align: left;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.4),
    0 40px 120px -20px rgb(0 0 0 / 0.8);
  user-select: none;
  transform: rotateX(16deg) scale(0.94) translateY(30px);
  opacity: 0;
  transition:
    transform 1.4s var(--ease),
    opacity 1s var(--ease);
}
.stage.in .app {
  transform: none;
  opacity: 1;
}

.a-side {
  display: flex;
  flex-direction: column;
  width: 214px;
  flex-shrink: 0;
  padding: 0 8px 8px;
}
.a-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 8px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.a-top .chev {
  margin-left: auto;
  color: var(--faint);
}
.a-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-bottom: 8px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
}
.a-search span {
  flex: 1;
}
.a-search kbd {
  height: 17px;
  min-width: 17px;
  font-size: 10px;
  border-bottom-width: 1px;
}
.a-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.a-nav button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  text-align: left;
  transition: color 0.15s;
}
.a-nav button:hover,
.a-nav button.on {
  color: var(--fg);
}
.a-nav button svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
  transition: color 0.15s;
}
.a-nav button.on svg,
.a-nav button:hover svg {
  color: var(--fg);
}
.a-nav .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
}
.a-nav .pill {
  border-radius: 6px;
}
.a-nav .pill.sel {
  background: var(--active);
}
.a-label {
  margin: 20px 8px 4px;
  font-size: 12px;
  color: var(--faint);
}
.a-repo {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 28px;
  padding: 0 8px;
  color: var(--muted);
}
.a-repo i {
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}
.a-repo.on {
  color: var(--fg);
}
.a-repo.on i {
  background: var(--add);
}
.a-account {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin-top: auto;
  padding: 0 8px;
  border-radius: 6px;
}
.a-account small {
  display: block;
  font-size: 11px;
  color: var(--faint);
  line-height: 1.1;
}
.av {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 600;
  color: rgb(0 0 0 / 0.78);
}

.a-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.a-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px 0 10px;
  white-space: nowrap;
}
.a-head .crumb {
  color: var(--muted);
}
.a-head .sep {
  color: var(--faint);
}
.a-head .title {
  font-weight: 500;
}
.branch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
}
.a-head .right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.ci {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
}
.ci i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--add);
}
.ci.pending i {
  background: var(--warn);
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    opacity 0.15s,
    transform 0.15s var(--ease);
}
.a-btn:hover:not(:disabled) {
  background: var(--hover);
}
.a-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.a-btn.primary {
  border-color: transparent;
  background: var(--fg);
  color: #0b0b0c;
}
.a-btn.primary:hover:not(:disabled) {
  background: var(--fg);
  opacity: 0.9;
}
.a-btn:disabled {
  opacity: 0.4;
}
.a-btn.ghost {
  border-color: transparent;
  color: var(--muted);
}
.a-btn.ghost:hover {
  color: var(--fg);
}

.island {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 8px 8px 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--bg);
  overflow: hidden;
}
.view {
  position: absolute;
  inset: 0;
  display: flex;
  animation: view-in 0.34s var(--ease) both;
}
@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.scroll {
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

/* Lignes qui apparaissent en cascade. */
.row-in {
  animation: row-in 0.42s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 22ms);
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ── Changements ── */

.files {
  width: 300px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
}
.sec {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.sec .n {
  color: var(--faint);
  font-weight: 400;
}
.sec button {
  margin-left: auto;
  font-size: 12px;
  color: var(--faint);
  transition: color 0.15s;
}
.sec button:hover {
  color: var(--fg);
}
.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin: 0 6px;
  padding: 0 8px;
  border-radius: 6px;
  cursor: default;
  transition: background-color 0.15s;
}
.file:hover {
  background: var(--hover);
}
.file.sel {
  background: var(--active);
}
.file .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file .dir {
  margin-left: 6px;
  font-size: 12px;
  color: var(--faint);
}
.file .act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity 0.15s,
    transform 0.15s var(--ease),
    background-color 0.15s;
}
.file:hover .act {
  opacity: 1;
  transform: none;
}
.file .act:hover {
  background: var(--active);
  color: var(--fg);
}
.st {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.st.M {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 15%, transparent);
}
.st.A {
  color: var(--add);
  background: color-mix(in srgb, var(--add) 15%, transparent);
}
.st.D {
  color: var(--del);
  background: color-mix(in srgb, var(--del) 15%, transparent);
}
.empty-files {
  padding: 28px 16px;
  text-align: center;
  color: var(--faint);
}

.commitbox {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
}
.input {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  outline: none;
  transition: border-color 0.15s;
}
.input:hover {
  border-color: color-mix(in srgb, var(--faint) 60%, transparent);
}
.input:focus {
  border-color: var(--faint);
}
.input::placeholder {
  color: var(--faint);
}
textarea.input {
  height: 58px;
  margin-top: 8px;
  padding: 7px 10px;
  resize: none;
}
.commitbox .a-btn {
  width: 100%;
  margin-top: 8px;
}

.diff {
  flex: 1;
}
.diff-head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  flex-shrink: 0;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.diff-head .stats {
  margin-left: auto;
  display: flex;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.add {
  color: var(--add);
}
.del {
  color: var(--del);
}
.code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 20px;
  padding-bottom: 12px;
}
.ln {
  display: flex;
  white-space: pre;
  transition:
    background-color 0.18s,
    box-shadow 0.18s;
}
.ln .g {
  width: 44px;
  flex-shrink: 0;
  padding-right: 10px;
  text-align: right;
  color: var(--faint);
}
.ln .g + .g {
  border-right: 1px solid var(--line);
}
.ln .t {
  padding-left: 12px;
}
.ln.hunk {
  color: var(--info);
  background: color-mix(in srgb, var(--info) 7%, transparent);
}
.ln.a {
  background: color-mix(in srgb, var(--add) 10%, transparent);
}
.ln.a .t::before {
  content: '+';
  margin-right: 6px;
  color: var(--add);
}
.ln.d {
  background: color-mix(in srgb, var(--del) 10%, transparent);
}
.ln.d .t::before {
  content: '−';
  margin-right: 6px;
  color: var(--del);
}
.ln.c .t::before {
  content: ' ';
  margin-right: 6px;
}

/* ── Historique ── */

.hist {
  flex: 1;
}
.commit {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding-right: 16px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background-color 0.15s;
}
.commit:hover {
  background: var(--hover);
}
.commit.sel {
  background: var(--active);
}
.commit svg {
  flex-shrink: 0;
  overflow: visible;
}
.commit .subj {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.commit .who {
  width: 92px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.commit .when {
  width: 76px;
  flex-shrink: 0;
  text-align: right;
  font-size: 12px;
  color: var(--faint);
}
.commit .sha {
  width: 56px;
  flex-shrink: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}
.ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  margin-right: 6px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  font-size: 11px;
  vertical-align: 1px;
  color: var(--muted);
}
.ref.head {
  border-color: color-mix(in srgb, var(--add) 45%, transparent);
  color: var(--fg);
}
.ref.head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--add);
}
.ref.tag {
  color: var(--warn);
}
.commit.new {
  animation: commit-new 1.4s var(--ease);
}
@keyframes commit-new {
  0% {
    background: color-mix(in srgb, var(--add) 22%, transparent);
  }
}
.details {
  width: 340px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding: 18px;
}
.details h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.kv {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.kv div:last-child {
  border-bottom: 0;
}
.kv span:first-child {
  color: var(--faint);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.chips .a-btn {
  height: 26px;
  font-size: 12px;
}

/* ── GitHub ── */

.tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  flex-shrink: 0;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.tabs > button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.tabs > button:hover,
.tabs > button.on {
  color: var(--fg);
}
.tabs .pill {
  background: var(--active);
  border-radius: 6px;
}
.tabs .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 16px;
  min-width: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--info);
  color: #000;
  font-size: 10px;
  font-weight: 600;
}
.tabs .repo-name {
  margin-right: 8px;
  padding: 0 6px;
}
.item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: background-color 0.15s;
}
.item:hover {
  background: var(--hover);
}
.item.sel {
  background: var(--active);
}
.item .ico {
  margin-top: 2px;
  flex-shrink: 0;
}
.item .body {
  flex: 1;
  min-width: 0;
}
.item .ttl {
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .side {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--faint);
}
.lbl {
  display: inline-flex;
  align-items: center;
  height: 18px;
  margin-left: 6px;
  padding: 0 7px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  vertical-align: 1px;
}
.pr-panel {
  width: 46%;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding: 18px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--add);
  background: color-mix(in srgb, var(--add) 15%, transparent);
}
.state.merged {
  color: #b48cf2;
  background: color-mix(in srgb, #b48cf2 15%, transparent);
}
.br {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--hover);
  font-family: var(--mono);
  font-size: 11px;
}
.sectitle {
  margin: 20px 0 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.checks {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: 6px;
}
.check span:nth-child(2) {
  flex: 1;
}
.check small {
  font-size: 12px;
  color: var(--faint);
}
.spin {
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pop {
  animation: pop 0.45s var(--spring);
}
@keyframes pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
}
.review {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

/* Menu déroulant de la maquette. */
.menu-wrap {
  position: relative;
}
.menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  width: 230px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--raised);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
  transform-origin: top left;
  animation: menu-in 0.18s var(--ease);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-4px);
  }
}
.menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  text-align: left;
  transition: background-color 0.08s;
}
.menu button:hover {
  background: var(--active);
}

/* ── Accueil ── */

.home {
  flex-direction: column;
  padding: 22px;
  gap: 18px;
}
.home-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.home-head p {
  margin: 0;
  color: var(--muted);
}
.home-head .right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.home-grid {
  display: flex;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--panel) 40%, transparent);
  overflow: hidden;
}
.card-title {
  display: flex;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
  padding: 0 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.repo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.15s;
}
.repo-row:hover {
  background: var(--hover);
}
.repo-row .sq {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
}
.repo-row .body {
  flex: 1;
  min-width: 0;
}
.repo-row .body b {
  font-weight: 500;
}
.repo-row .body small {
  display: block;
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo-row .owner {
  color: var(--muted);
}
.mini-bar {
  width: 64px;
  height: 3px;
  border-radius: 9px;
  background: var(--hover);
  overflow: hidden;
}
.mini-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--fg);
  border-radius: 9px;
  transition: width 0.35s var(--ease);
}

/* Toast de la maquette. */
.a-toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--raised);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
  animation: toast-in 0.5s var(--spring);
}
.a-toast.out {
  animation: toast-out 0.25s ease-in forwards;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
}
@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ───────────────────────────── Sections ───────────────────────────── */

section {
  position: relative;
}
.block {
  padding: 120px 0 0;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.kicker .n {
  font-family: var(--mono);
  color: var(--faint);
}
h2.big {
  margin: 14px 0 0;
  max-width: 640px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
}
h2.big .dim {
  color: var(--faint);
}
.sub {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

/* Apparition au défilement. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

.steps {
  position: relative;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.steps li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px 0 12px 0;
  color: var(--faint);
  transition: color 0.4s;
}
.steps li .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
  transition:
    background-color 0.4s,
    color 0.4s,
    border-color 0.4s;
}
.steps li b {
  display: block;
  font-weight: 500;
  color: inherit;
}
.steps li small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
}
.steps li.on {
  color: var(--fg);
}
.steps li.on small {
  color: var(--muted);
}
.steps li.on .num {
  border-color: var(--fg);
  background: var(--fg);
  color: #0b0b0c;
}
.steps li.done .num {
  border-color: var(--add);
  color: var(--add);
}

/* Cadre des démos de section. */
.demo {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--bg);
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.demo-bar .t {
  font-weight: 600;
  letter-spacing: -0.01em;
}
.demo-bar .r {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Démo de connexion ── */

.onb {
  height: 470px;
  position: relative;
}
.onb-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  animation: step-in 0.5s var(--ease) both;
}
@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
  }
}
.onb-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
}
.found {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--fg);
  text-align: left;
  animation: pop 0.55s var(--spring);
}
.found small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.found .avwrap {
  position: relative;
}
.found .avwrap i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--add);
  animation: pop 0.5s var(--spring) 0.25s backwards;
}
.cbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.cbox svg {
  transform: scale(0);
  transition: transform 0.3s var(--spring);
}
.on > .cbox,
.cbox.on {
  border-color: var(--fg);
  background: var(--fg);
  color: #0b0b0c;
}
.on > .cbox svg,
.cbox.on svg {
  transform: scale(1);
}
.repo-row.pickable {
  cursor: pointer;
}
.repo-row.pickable.on {
  background: var(--active);
}
.lang {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}
.lang i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.onb-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.onb-foot .path {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.job .top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.job .top b {
  flex: 1;
  font-weight: 500;
}
.job .top small {
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 3px;
  margin: 8px 0 0 26px;
  border-radius: 9px;
  background: var(--hover);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 9px;
  background: var(--fg);
  transition: width 0.4s var(--ease);
}
.code-cells {
  display: flex;
  gap: 6px;
}
.code-cells span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  animation: cell 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i) * 45ms);
}
.code-cells span.dash {
  width: 10px;
  border: 0;
  background: none;
  color: var(--faint);
}
@keyframes cell {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
}

/* ── Démo d'indexation à la ligne ── */

.stage-lines .ln {
  cursor: pointer;
}
.stage-lines .ln.a:hover,
.stage-lines .ln.d:hover {
  box-shadow: inset 2px 0 0 var(--faint);
}
.stage-lines .ln.pick.a {
  background: color-mix(in srgb, var(--add) 26%, transparent);
  box-shadow: inset 2px 0 0 var(--add);
}
.stage-lines .ln.pick.d {
  background: color-mix(in srgb, var(--del) 26%, transparent);
  box-shadow: inset 2px 0 0 var(--del);
}
.stage-lines .ln.staged {
  opacity: 0.38;
}
.stage-lines .ln.staged .g:first-child::before {
  content: '✓';
  float: left;
  margin-left: 8px;
  color: var(--add);
}
.stage-lines .ln.c,
.stage-lines .ln.hunk {
  cursor: default;
}

/* ── Liste des autres fonctions ── */

.specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.spec {
  position: relative;
  padding: 26px 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Halo qui suit la souris. */
.spec::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--fg) 5%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.spec:hover::before {
  opacity: 1;
}
.spec h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.spec p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.spec code {
  display: inline-block;
  margin-top: 14px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* ── Raccourcis ── */

.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin-top: 40px;
}
.key {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.2s;
}
.key span {
  flex: 1;
}
.key .ks {
  display: flex;
  gap: 4px;
}
.key.hit {
  color: var(--fg);
}
.key.hit kbd {
  color: #0b0b0c;
  background: var(--fg);
  border-color: var(--fg);
  transform: translateY(1px);
}
.key::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--fg);
  transition: width 0.6s var(--ease);
}
.key.hit::after {
  width: 100%;
}
.tip-line {
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
}

/* ── Appel final ── */

.final {
  padding: 140px 0 120px;
  text-align: center;
}
.final .logo-big {
  display: inline-flex;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
.final h2.big {
  margin-inline: auto;
}
.final .sub {
  margin-inline: auto;
}
.final .hero-cta {
  margin-top: 30px;
}
.ver {
  margin-top: 18px;
  font-size: 13px;
  color: var(--faint);
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 13px;
  color: var(--faint);
}
footer .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer .grow {
  flex: 1;
}

/* ───────────────────────────── Palette de commandes ───────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16vh 16px 0;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.palette {
  width: min(560px, 100%);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--raised);
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.6);
  overflow: hidden;
  font-size: 14px;
  transform: scale(0.96) translateY(12px);
  opacity: 0;
  transition:
    transform 0.28s var(--ease),
    opacity 0.2s;
}
.overlay.open .palette {
  transform: none;
  opacity: 1;
}
.palette input {
  width: 100%;
  height: 50px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  outline: none;
  font-size: 15px;
}
.palette input::placeholder {
  color: var(--faint);
}
.p-list {
  position: relative;
  max-height: 340px;
  overflow: auto;
  padding: 6px;
}
.p-group {
  padding: 8px 10px 4px;
  font-size: 12px;
  color: var(--faint);
}
.p-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  text-align: left;
  color: var(--muted);
}
.p-item.on {
  color: var(--fg);
}
.p-item svg {
  width: 15px;
  height: 15px;
  color: var(--faint);
}
.p-item .ks {
  margin-left: auto;
  display: flex;
  gap: 3px;
}
.p-list .pill {
  background: var(--active);
}
.p-empty {
  padding: 24px;
  text-align: center;
  color: var(--faint);
}

/* ───────────────────────────── Petits écrans ───────────────────────────── */

@media (max-width: 900px) {
  .nav-links,
  .kbd-btn {
    display: none;
  }
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .specs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .keys {
    grid-template-columns: minmax(0, 1fr);
  }
  .block {
    padding-top: 90px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 14px;
  }
  .hero {
    padding-top: 48px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .soon .label-long {
    display: none;
  }
  .onb {
    height: 440px;
  }
  .hide-sm {
    display: none !important;
  }
  .eyebrow {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  h1 .w,
  .fade-seq > *,
  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

/* ───────────────────────────── Compléments ───────────────────────────── */

/* La maquette réduite ne doit jamais élargir la page. */
.stage {
  overflow-x: clip;
}

/* Sélecteur à segments des démos (même principe que dans l'appli). */
.seg {
  position: relative;
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}
.seg button {
  position: relative;
  z-index: 1;
  height: 22px;
  padding: 0 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.seg button:hover,
.seg button.on {
  color: var(--fg);
}
.seg .pill {
  border-radius: 5px;
  background: var(--active);
}

#lines {
  max-height: 420px;
}

.unread {
  width: 6px;
  height: 6px;
  margin-top: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--info);
}

@media (max-width: 560px) {
  .seg button {
    padding: 0 7px;
  }
  .demo-bar .t {
    display: none;
  }
}

/* ───────────────────────────── Téléchargements ───────────────────────────── */

.dl-slot {
  display: inline-flex;
}
.dl-in {
  animation: word 0.6s var(--ease) both;
}
.soon.ready {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--add) 40%, var(--line-strong));
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 40px auto 0;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 118px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 50%, transparent);
  text-align: left;
  overflow: hidden;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    transform 0.35s var(--ease);
}
.dl-os {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.dl-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-size: 13px;
  color: var(--faint);
}
.dl-card.ready {
  border-color: var(--line-strong);
  animation: dl-pop 0.6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.dl-card.ready .dl-state {
  color: var(--fg);
  font-weight: 500;
}
.dl-card.ready:hover {
  transform: translateY(-3px);
  border-color: var(--faint);
  background: var(--hover);
}
.dl-card.ready::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--fg) 7%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
.dl-card.ready:hover::after {
  transform: translateX(100%);
}
.dl-card.mine {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
}
.dl-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--faint);
}
.dl-mine {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--fg);
  color: #0b0b0c;
  font-size: 11px;
  font-weight: 600;
}
.dl-card.later {
  opacity: 0.6;
}
@keyframes dl-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@media (max-width: 640px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dl-card {
    min-height: 0;
  }
}
